Community discussions

MikroTik App
 
ppp
just joined
Topic Author
Posts: 1
Joined: Wed Jun 10, 2009 6:55 am

Help!! QoS w/priority doesn't seem to working with my config

Mon Aug 23, 2010 8:24 am

I'm currently trying to setup my router with QoS with priority.

I have followed the outline from Janis' PDF:

http://mum.mikrotik.com/presentations/U ... is_qos.pdf

1. Mangle traffics at prerouting chain (HTTP request/download and ICMP)
2. Setup priority queue for traffic shaping (Global-in with 3 queues: HTTP request/download and ICMP)
3. Mangle traffics at forward chain
4. Use PCQ for per user shaping (use local/wan interface for upload/download respectively) with pcq-rate set

I'm not prioritize users like Janis' showed in the PDF, but using PCQ to limit the users' traffic.

So here are my configurations:

/ip firewall mangle pr
2 chain=prerouting action=mark-packet new-packet-mark=icmp passthrough=no protocol=icmp

3 chain=prerouting action=mark-connection new-connection-mark=http-conn passthrough=yes protocol=tcp port=80

4 chain=prerouting action=mark-packet new-packet-mark=http passthrough=yes connection-mark=http-conn

5 chain=prerouting action=mark-packet new-packet-mark=http-request passthrough=no packet-mark=http connection-bytes=0-500000

6 chain=prerouting action=mark-packet new-packet-mark=http-download passthrough=no packet-mark=http connection-bytes=500000-0

18 chain=forward action=mark-connection new-connection-mark=conn passthrough=yes

19 chain=forward action=mark-packet new-packet-mark=packet passthrough=no connection-mark=conn


/queue tree pr
0 name="priority" parent=global-in limit-at=200k priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s

1 name="http-request" parent=priority packet-mark=http-request limit-at=1M queue=default priority=1 max-limit=2M burst-limit=3M burst-threshold=1800k burst-time=16s

2 name="http-download" parent=priority packet-mark=http-download limit-at=100k queue=default-large priority=7 max-limit=2M burst-limit=0 burst-threshold=0 burst-time=0s

3 name="download" parent=lan limit-at=128k priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s

4 name="upload" parent=wan limit-at=128k priority=8 max-limit=2M burst-limit=0 burst-threshold=0 burst-time=0s

5 name="dw" parent=download packet-mark=packet limit-at=0 queue=pcq_download priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

6 name="up" parent=upload packet-mark=packet limit-at=0 queue=pcq_upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

7 name="icmp" parent=priority packet-mark=icmp limit-at=2k queue=default priority=1 max-limit=1M burst-limit=0 burst-threshold=0 burst-time=0s

/queue type print

5 name="pcq_upload" kind=pcq pcq-rate=256000 pcq-limit=30 pcq-classifier=src-address pcq-total-limit=2000

6 name="pcq_download" kind=pcq pcq-rate=256000 pcq-limit=30 pcq-classifier=dst-address pcq-total-limit=2000

With above config, I've found out that the ICMP priority will not change anything at all (ping behavior will be the same as long as there is a HTTP download). The ping is under 1ms without HTTP download and more than 900ms+ with HTTP download.

As long as I'm using PCQ, changing the priority for ICMP doesn't change the response time. Is there anything I'm missing? I'm using masquerading and according to Janis one needs to use global-out with download/upload mangle instead of interface HTB. But I did try to use global-out too, and it doesn't make any difference.

What should I do to get ICMP response time faster? Anything I can change in my configuration?

Thanks in advance.
 
kirkian
just joined
Posts: 17
Joined: Thu Apr 07, 2011 9:36 pm

Re: Help!! QoS w/priority doesn't seem to working with my co

Sun Apr 17, 2011 7:39 pm

I'm currently trying to setup my router with QoS with priority.

I have followed the outline from Janis' PDF:

http://mum.mikrotik.com/presentations/U ... is_qos.pdf

1. Mangle traffics at prerouting chain (HTTP request/download and ICMP)
2. Setup priority queue for traffic shaping (Global-in with 3 queues: HTTP request/download and ICMP)
3. Mangle traffics at forward chain
4. Use PCQ for per user shaping (use local/wan interface for upload/download respectively) with pcq-rate set

I'm not prioritize users like Janis' showed in the PDF, but using PCQ to limit the users' traffic.

So here are my configurations:

/ip firewall mangle pr
2 chain=prerouting action=mark-packet new-packet-mark=icmp passthrough=no protocol=icmp

3 chain=prerouting action=mark-connection new-connection-mark=http-conn passthrough=yes protocol=tcp port=80

4 chain=prerouting action=mark-packet new-packet-mark=http passthrough=yes connection-mark=http-conn

5 chain=prerouting action=mark-packet new-packet-mark=http-request passthrough=no packet-mark=http connection-bytes=0-500000

6 chain=prerouting action=mark-packet new-packet-mark=http-download passthrough=no packet-mark=http connection-bytes=500000-0

18 chain=forward action=mark-connection new-connection-mark=conn passthrough=yes

19 chain=forward action=mark-packet new-packet-mark=packet passthrough=no connection-mark=conn


/queue tree pr
0 name="priority" parent=global-in limit-at=200k priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s

1 name="http-request" parent=priority packet-mark=http-request limit-at=1M queue=default priority=1 max-limit=2M burst-limit=3M burst-threshold=1800k burst-time=16s

2 name="http-download" parent=priority packet-mark=http-download limit-at=100k queue=default-large priority=7 max-limit=2M burst-limit=0 burst-threshold=0 burst-time=0s

3 name="download" parent=lan limit-at=128k priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s

4 name="upload" parent=wan limit-at=128k priority=8 max-limit=2M burst-limit=0 burst-threshold=0 burst-time=0s

5 name="dw" parent=download packet-mark=packet limit-at=0 queue=pcq_download priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

6 name="up" parent=upload packet-mark=packet limit-at=0 queue=pcq_upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

7 name="icmp" parent=priority packet-mark=icmp limit-at=2k queue=default priority=1 max-limit=1M burst-limit=0 burst-threshold=0 burst-time=0s

/queue type print

5 name="pcq_upload" kind=pcq pcq-rate=256000 pcq-limit=30 pcq-classifier=src-address pcq-total-limit=2000

6 name="pcq_download" kind=pcq pcq-rate=256000 pcq-limit=30 pcq-classifier=dst-address pcq-total-limit=2000

With above config, I've found out that the ICMP priority will not change anything at all (ping behavior will be the same as long as there is a HTTP download). The ping is under 1ms without HTTP download and more than 900ms+ with HTTP download.

As long as I'm using PCQ, changing the priority for ICMP doesn't change the response time. Is there anything I'm missing? I'm using masquerading and according to Janis one needs to use global-out with download/upload mangle instead of interface HTB. But I did try to use global-out too, and it doesn't make any difference.

What should I do to get ICMP response time faster? Anything I can change in my configuration?

Thanks in advance.
It seems that this config not work.

Who is online

Users browsing this forum: 4l4R1, johnson73, kruhek, markinhusxp and 217 guests