Community discussions

MikroTik App
 
Hyunckel
just joined
Topic Author
Posts: 14
Joined: Fri Aug 19, 2022 8:26 am

Mark packet/Priority

Thu Sep 01, 2022 9:01 am

Hi

I'm trying to give priority to gaming and I want to make sure that my config is correct.

I've seen some people put the game server IP address in dst-address in both mark connection rules, and others in src-address in one rule and in dst-address in the second and I don't know which one is correct.
/ip firewall mangle
add action=mark-connection chain=prerouting comment="Gaming mark connection" \
    new-connection-mark=Gaming_conn passthrough=yes src-address=49.51.0.0/16
add action=mark-connection chain=prerouting dst-address=49.51.0.0/16 \
    new-connection-mark=Gaming_conn passthrough=yes
add action=mark-packet chain=prerouting comment="Gaming mark packet" \
    connection-mark=Gaming_conn new-packet-mark=Gaming_packets passthrough=no

/queue simple
add comment="Main Parent" max-limit=200M/200M name="Global" queue=\
    sfq-default/sfq-default target=10.20.0.0/24,10.100.0.0/24 \
    total-queue=sfq-default
add limit-at=10M/10M max-limit=20M/20M name=Gaming packet-marks=Gaming_packets \
    parent="Global" priority=1/1 queue=\
    pcq-upload-default/pcq-download-default target=\
    10.20.0.0/24,10.100.0.0/24
add max-limit=200M/200M name=Clients parent="Global" target=\
    10.20.0.0/24,10.100.0.0/24
 
Hyunckel
just joined
Topic Author
Posts: 14
Joined: Fri Aug 19, 2022 8:26 am

Re: Mark packet/Priority

Thu Sep 01, 2022 11:21 pm

This forum, man.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3005
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Mark packet/Priority

Fri Sep 02, 2022 12:36 am

i see that rules OK

only be sure your provider service have perfect performance and latency up to 200M including when you saturate that 200M with a lot of traffic

your main objective will be to limit bandwidth before your provider does it so if your provider limits you on 200M maybe you have to limit somewhat between 5% up to 30% lower than that, all depends on how aggressive is your provider to limit and how intensive is your bandwidth consumption
 
Hyunckel
just joined
Topic Author
Posts: 14
Joined: Fri Aug 19, 2022 8:26 am

Re: Mark packet/Priority

Fri Sep 02, 2022 1:43 am

i see that rules OK

only be sure your provider service have perfect performance and latency up to 200M including when you saturate that 200M with a lot of traffic

your main objective will be to limit bandwidth before your provider does it so if your provider limits you on 200M maybe you have to limit somewhat between 5% up to 30% lower than that, all depends on how aggressive is your provider to limit and how intensive is your bandwidth consumption

Thank you so much 🙌🏽

Who is online

Users browsing this forum: almdandi, rnasci, sebi099, shampooms and 165 guests