Community discussions

MikroTik App
 
User avatar
fernando143
just joined
Topic Author
Posts: 19
Joined: Mon Jul 16, 2018 5:49 pm

Ping ICMP queue tree and test bandwidth high latency

Sat Jul 21, 2018 9:48 pm

Hello, I am trying to configure the packet marking and the queue tree to prioritize these packages:
1) ICMP
2) Leauge of legends
3) Other

This is how I have configured in mangle:
Flags: X - disabled, I - invalid, D - dynamic 
0    ;;; ICMP
      chain=prerouting action=mark-connection new-connection-mark=ICMP_C passthrough=yes protocol=icmp log=no log-prefix="" 
1    chain=prerouting action=mark-packet new-packet-mark=ICMP_PACKET passthrough=no protocol=icmp connection-mark=ICMP_C log=no log-prefix="" 

2    ;;; LOL UDP - DOWN
      chain=prerouting action=mark-connection new-connection-mark=LOL_DOWN_C passthrough=yes protocol=udp dst-address=192.168.5.253 src-port=5000-5500 log=no 
      log-prefix="" 
3    chain=prerouting action=mark-packet new-packet-mark=LOL_DOWN_PACKET passthrough=no connection-mark=LOL_DOWN_C log=no log-prefix="" 

4    ;;; LOL UDP - UP
      chain=prerouting action=mark-connection new-connection-mark=LOL_UP_C passthrough=yes protocol=udp src-address=192.168.5.253 dst-port=5000-5500 log=no log-prefix="" 
5    chain=prerouting action=mark-packet new-packet-mark=LOL_UP_PACKET passthrough=no connection-mark=LOL_UP_C log=no log-prefix="" 

6    ;;; OTHERS
      chain=prerouting action=mark-connection new-connection-mark=OTHERS_C passthrough=yes connection-mark=no-mark log=no log-prefix="" 
7    chain=prerouting action=mark-packet new-packet-mark=OTHERS_PACKET passthrough=no connection-mark=OTHERS_C log=no log-prefix=""
This is how I have configured in queue tree:
Flags: X - disabled, I - invalid 
0   ;;; Down
     name="DOWNLOAD" parent=global packet-mark="" limit-at=0 queue=DOWN priority=8 max-limit=1900k burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

1   ;;; Up
     name="UPLOAD" parent=Wan packet-mark="" limit-at=0 queue=UP priority=8 max-limit=350k burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

2   name="lol_down" parent=DOWNLOAD packet-mark=LOL_DOWN_PACKET limit-at=200k queue=DOWN priority=1 max-limit=200k burst-limit=0 burst-threshold=0 burst-time=0s 
     bucket-size=0.1 

3   name="lol_up" parent=UPLOAD packet-mark=LOL_UP_PACKET limit-at=100k queue=UP priority=1 max-limit=100k burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

4   name="others_down" parent=DOWNLOAD packet-mark=OTHERS_PACKET limit-at=0 queue=DOWN priority=8 max-limit=1900k burst-limit=0 burst-threshold=0 burst-time=0s 
     bucket-size=0.1 

5   name="others_up" parent=UPLOAD packet-mark=OTHERS_PACKET limit-at=0 queue=UP priority=8 max-limit=350k burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

6   name="icmp_down" parent=DOWNLOAD packet-mark=ICMP_PACKET limit-at=64k queue=DOWN priority=1 max-limit=100k burst-limit=0 burst-threshold=0 burst-time=0s 
     bucket-size=0.1 

7   name="icmp_up" parent=UPLOAD packet-mark=ICMP_PACKET limit-at=64k queue=UP priority=1 max-limit=100k burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
I think everything is fine.
But when I do speed tests to test the latency, the latency goes up and sometimes says timeout
I have uploaded a video where I show the behavior of the ICMP latency when I am doing a speed test, and I download a file.
At the beginning of the speed test, latency increases and then decreases. I think that should never increase the latency.

https://www.youtube.com/watch?v=SiFIvxO_5W4

So, am I doing something wrong?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13047
Joined: Thu Mar 03, 2016 10:23 pm

Re: Ping ICMP queue tree and test bandwidth high latency

Sat Jul 21, 2018 11:38 pm

Did I see correctly that latency went up at beginning of DL speed test while at UL speed test it remained constant (with a single ping timing out)?
You have to keep in mind that prioritization can be done on transmitting side of a bottleneck. If your WAN link is a bottleneck, then for UL it's your router that makes things better (or worse) while for DL it's ISP's router that makes the difference. From video I gather that your router does it's job in UL. For DL you can't do much on your side. Well, you can help a bit with prioritization of ACKs for the priority DL traffic, bu that's a drop in the sea. It's hard to say about ping timeouts, perhaps you could check the delay of ICMP packets incurred by router by using torch tool.
 
User avatar
fernando143
just joined
Topic Author
Posts: 19
Joined: Mon Jul 16, 2018 5:49 pm

Re: Ping ICMP queue tree and test bandwidth high latency

Sun Jul 22, 2018 12:12 am

Did I see correctly that latency went up at beginning of DL speed test while at UL speed test it remained constant (with a single ping timing out)?
You have to keep in mind that prioritization can be done on transmitting side of a bottleneck. If your WAN link is a bottleneck, then for UL it's your router that makes things better (or worse) while for DL it's ISP's router that makes the difference. From video I gather that your router does it's job in UL. For DL you can't do much on your side. Well, you can help a bit with prioritization of ACKs for the priority DL traffic, bu that's a drop in the sea. It's hard to say about ping timeouts, perhaps you could check the delay of ICMP packets incurred by router by using torch tool.
Hi, yes you saw correctly, the latency went up at beginning of DL.
I have got 2M of download and 384k of upload.
for download, it is limited to 1900k and for the upload, it is limited to 350k

So, when I'm downloading at 1900k/s, my ISP doesn't should have bottleneck.

I have a question, if the traffic of download at the wan does bottleneck, the router should drop some packets of "other traffic" and puts priority to packets ICMP. Is it correct?

Who is online

Users browsing this forum: tangent and 51 guests