Hello Everyone,
I’ve read a lot about queues and i have tried a lot of configurations trying to achieve my goal: avoid any delay/timeout on pings made by the router itself when the link is congested by LAN traffic. Since there was a change on V6 where they remove global-in, global-out, global-total and just add “global” in a different possition i’m really confused and i’m not 100% sure if the mangle rules i’m using are correct. What i have done is this:
Mangle:
ICMP Upload: Chain output → protocol: icmp (request) → new-mark: icmp-up (also have tried with postrouting and src-address=“router address”)
ICMP Download: Chain input → protocol: icmp (reply) → new-mark: icmp-down (also tryied with prerouting dst-address=“router address”)
ALL Traffic Upload: Chain Forward → input interfacet: LAN → output interface: WAN1 → new-mark: all-up (also have tried with postrouting and src-address !=“router address”)
ALL Traffic Download: Chain Forward → input interfacet: WAN1 → output interface: LAN → new-mark: all-down (also tryied with prerouting and dst-address !=“router address”)
Queue:
Parent Download: Limit-At and Max-limit: 10 M
Child: ICMP-download, Limit-At and Max- limit 512k, Priority 1
Child2: All-Download, Limit-At 9M and Max- limit 10M, Priority 8
Parent Upload: Limit-At and Max-limit: 10 M
Child: ICMP-Upload, Limit-At and Max- limit 512k, Priority 1
Child2: All-Upload, Limit-At 9M and Max- limit 10M, Priority 8
I have tested the same rules but marking all the router traffic (BTest traffic) so when i do a bandwidth test uploading, the queue gives the priority to the router traffic even without specifying max-limit or limit-at, but when i try to do the same for download it doesn’t work. i can’t even start the Btest. So i think that’s why is also not working for icmp, the thing is that icmp traffic is so low that i need to test it with something else.
This is my test scenario
Download (Laptop1 perspective): Laptop1 (iperf Server) <----10M only link-- Mikrotik (BT client, receive) <—10M only link— Laptop2 (iperf client, BTest Server) //// BTest couldn’t start, disconnected message.
Upload (Laptop1 perspective): Laptop1 (iperf client) --10M only link–> Mikrotik (BT client, send) —10M only link–> Laptop2 (iperf server, BTest Server) ////// Works OK, BTest takes all the bandwidth even when iperf traffic was at 100% (10M, 9.7 real)
Any help will be appreciated.