Hello every one, Thank you very much if you have any idea with this problem
.
I have a network and want to QoS with the options:
1/ Every client will have 3Mbps max download bandwidth (I don’t care about upload bandwidth).
2/ And the traffic of some services (I am testing with ICMP) will have the higher priority than others.
I have research and see the guide of Giordano at link http://mum.mikrotik.com/presentations/IT14/giordano.pdf
I made a test with the lab like that:
Internet <----> Another Router <----> Mikrotik Router <-----> PC client to test.
I had setup DHCP Client on WAN interface and Src NAT to go Internet.
I have simple the Firewall Mangle rule to mark the packet of ICMP and the others.
0 chain=forward action=mark-connection new-connection-mark=icmp-con passthrough=yes protocol=icmp dst-address=192.168.88.0/24 log=no log-prefix=""
1 chain=forward action=mark-packet new-packet-mark=icmp-pkt passthrough=no connection-mark=icmp-con log=no log-prefix=""
2 chain=forward action=mark-connection new-connection-mark=other-con passthrough=yes dst-address=192.168.88.0/24 connection-mark=no-mark log=no log-prefix=""
3 chain=forward action=mark-packet new-packet-mark=other-pkt passthrough=no connection-mark=other-con log=no log-prefix=""
After that I made the Queue tree to set priority for the traffic.
0 name="total-bandwidth" parent=global packet-mark="" limit-at=0 queue=default priority=8 max-limit=8M burst-limit=0 burst-threshold=0 burst-time=0s
1 name="icmp" parent=total-bandwidth packet-mark=icmp-pkt limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
2 name="other" parent=total-bandwidth packet-mark=other-pkt limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
Then I made a test: ping 8.8.8.8 -t and download at full speed. The result is very good, ping alway 1-2ms even while the queue is full.
good.png
The problem is happen when I add 1 more simple queue to limit the bandwidth for every client.
0 name="client" target=192.168.88.0/24 parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=0/0 max-limit=0/3M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
The ping’s time increase very much (23-27ms) and some time drop.
bad.png
I have tried change some option to made ping’s time decrease but nothing help. I don’t know I miss some config or do some thing wrong.
If anyone have idea to please tell me, thank you so much. This is very important to me.