Community discussions

MikroTik App
 
Skylin3
just joined
Topic Author
Posts: 8
Joined: Mon Jun 14, 2021 1:52 pm

Simple queues bad config or priority doesnt work in 7.1 beta6?

Mon Jun 14, 2021 3:06 pm

Device: RBD52G-5HacD2HnD (hap ac2)
ROS 7.1 beta6.
Task: make gaming traffic for two PCs independent (not interfere each other) is high priority and all other traffic is low priority.
Now I got 2 problems:
1.gaming traffic interfere - PC that connected with router on eth3 (1.12) does have better connection than PC, what connected on eth2 (1.10) and was joined game earlier than eth3. Priority configured to make eth2>eth3.
2. other traffic interfering with gaming traffic - got ping spikes\small lags if watching youtube from wlan1 in parallel with gaming.
Measurements (variance client with server):
Only one PC gaming - 0.0001 ms
Two PCs simultaneously gaming: eth2 PC - 0.0030ms with spikes, eth3 PC - 0.0015ms without spikes
One PC gaming with other traffic (like smartphone browsing on wlan) - 0.130ms spikes.

So, my config:
eth2,eth3,wlan1 is in bridge and one subnet - 192.168.1.0/24
global simple queue for shaping before ISP - bufferbloat in browser test is A+.
100\100mbit\s ISP connection


[b]/queue type[/b]
add fq-codel-interval=50ms fq-codel-limit=1024 fq-codel-quantum=1100 \
    fq-codel-target=50ms kind=fq-codel name=steam_fq

[b]/queue simple[/b]
add dst=WAN max-limit=80M/80M name=Global queue=default/default target=192.168.1.0/24 \
    total-queue=default
add limit-at=15M/15M max-limit=20M/20M name=steam1 packet-marks=steam-pk \
    parent=Global priority=1/1 queue=steam_fq/steam_fq target=192.168.1.10/32 \
    total-queue=fq_codel
add limit-at=15M/15M max-limit=20M/20M name=steam2 packet-marks=steam-pk \
    parent=Global priority=2/2 queue=steam_fq/steam_fq target=192.168.1.12/32 \
    total-queue=fq_codel
add max-limit=80M/80M name=Other packet-marks=other-pk parent=Global queue=\
    default/default target=192.168.1.0/24 total-queue=default
    

[b]/ip firewall filter[/b]
add action=accept chain=forward comment=\
    "1.1. Forward and Input Established and Related connections" \
    connection-state=established,related
add action=drop chain=forward connection-state=invalid
add action=accept chain=input connection-state=established,related
add action=drop chain=input connection-state=invalid
add action=drop chain=forward connection-nat-state=!dstnat connection-state=new \
    in-interface-list=internet
add action=add-src-to-address-list address-list=ddos-blacklist \
    address-list-timeout=1d chain=input comment=\
    "1.2. DDoS Protect - Connection Limit" connection-limit=100,32 \
    in-interface-list=internet protocol=tcp
add action=tarpit chain=input connection-limit=3,32 protocol=tcp \
    src-address-list=ddos-blacklist
add action=jump chain=forward comment="1.3. DDoS Protect - SYN Flood" \
    connection-state=new jump-target=SYN-Protect protocol=tcp tcp-flags=syn
add action=jump chain=input connection-state=new in-interface-list=internet \
    jump-target=SYN-Protect protocol=tcp tcp-flags=syn
add action=return chain=SYN-Protect connection-state=new limit=200,5:packet \
    protocol=tcp tcp-flags=syn
add action=drop chain=SYN-Protect connection-state=new protocol=tcp tcp-flags=\
    syn
add action=drop chain=input comment="1.4. Protected - Ports Scanners" \
    src-address-list="Port Scanners"
add action=add-src-to-address-list address-list="Port Scanners" \
    address-list-timeout=none-dynamic chain=input in-interface-list=internet \
    protocol=tcp psd=21,3s,3,1
add action=drop chain=input comment="1.9. Drop All Other" in-interface-list=\
    internet

[b]/ip firewall mangle[/b]
add action=mark-connection chain=forward comment="Steam UDP Ports" \
    new-connection-mark=steam-conn passthrough=yes port=\
    27000-28999,3478,4379,4380 protocol=udp
add action=mark-connection chain=forward comment="Steam TCP Ports" dst-port=\
    27015-27030,27036,27037 new-connection-mark=steam-conn passthrough=yes \
    protocol=tcp
add action=mark-packet chain=forward comment=all-steam-pk connection-mark=\
    steam-conn new-packet-mark=steam-pk passthrough=no
add action=mark-connection chain=forward comment=other-conn \
    new-connection-mark=other-conn passthrough=yes
add action=mark-packet chain=forward comment=other-pk connection-mark=\
    other-conn new-packet-mark=other-pk passthrough=no
Thanks for any help.

Who is online

Users browsing this forum: ccrsxx, johnson73, Qalderu, rplant and 88 guests