Page 1 of 1

Quality of Service (QoS)

Posted: Tue Jul 08, 2008 9:29 pm
by m4rk0
Hello,

I have 16/16Mbps fiber optic connection and I have RB600 as Router/Gateway at end. One port is connected on Fiber Optic Media Converter and another is connected to switch where is about 50 RB's. I have about 600 users and I'm trying to create QoS. I have this in Queue Tree:
 0 X name="MASTER" parent=global-total packet-mark="" limit-at=0 queue=default-small priority=1 max-limit=18000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 1 X name="HTTP" parent=MASTER packet-mark=HTTP limit-at=12000000 queue=default-small priority=2 max-limit=16000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 2 X name="DNS" parent=MASTER packet-mark=DNS limit-at=2000000 queue=default-small priority=3 max-limit=3000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 3 X name="EMAIL" parent=MASTER packet-mark=SMTP limit-at=2000000 queue=default-small priority=4 max-limit=4000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 4 X name="FTP" parent=MASTER packet-mark=FTP limit-at=4000000 queue=default-small priority=5 max-limit=6000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 5 X name="MANAGEMENT" parent=MASTER packet-mark=MANAGEMENT limit-at=4000000 queue=default-small priority=4 
     max-limit=6000000 burst-limit=0 burst-threshold=0 burst-time=0s 

 6 X name="P2P" parent=MASTER packet-mark=P2P limit-at=2000000 queue=default-small priority=8 max-limit=4000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 7 X name="ICMP" parent=MASTER packet-mark=ICMP limit-at=512000 queue=default-small priority=6 max-limit=34000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 8 X name="VOIP" parent=MASTER packet-mark=VOIP limit-at=6000000 queue=default-small priority=2 max-limit=8000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 9 X name="CHAT" parent=MASTER packet-mark=CHAT limit-at=2000000 queue=default-small priority=4 max-limit=4000000 
     burst-limit=0 burst-threshold=0 burst-time=0s 

10 X name="OTHER" parent=MASTER packet-mark=OTHER_UNMATCHED limit-at=2000000 queue=default-small priority=8 
     max-limit=4000000 burst-limit=0 burst-threshold=0 burst-time=0s 
With proper Firewall Mangle. And I'm experiencing problems with upload speed. I have proper 16Mbps download, but upload is about 3Mbps and when I turn off QoS (Queue Tree) upload work perfect with download about 16/16Mbps. And the question is why QoS kills my upload?

Re: Quality of Service (QoS)

Posted: Wed Jul 09, 2008 1:42 am
by gmsmstr
I'm sure any Mikrotik Consultant can help you out. Check the consultant list ...

Re: Quality of Service (QoS)

Posted: Sun Jul 13, 2008 12:00 pm
by magnavox
Hello m4rk0.

In your configuration, you consider any queue as children of global-total.
Global-total see sum of global output and global input traffic.
Try to split traffic in two parent queue (double the mangle tules): upload (global-out) and download (global-in).

ciauz! ;)

Re: Quality of Service (QoS)

Posted: Sun Jul 13, 2008 9:58 pm
by m4rk0
Hello m4rk0.

In your configuration, you consider any queue as children of global-total.
Global-total see sum of global output and global input traffic.
Try to split traffic in two parent queue (double the mangle tules): upload (global-out) and download (global-in).

ciauz! ;)
Hey thank You for Your answer, I tried to set global-in and later global-out and in both ways UPLOAD die, DOWNLOAD works fine...

Re: Quality of Service (QoS)

Posted: Sun Jul 13, 2008 10:01 pm
by magnavox
Can you post your Queue and Mangle export?

tnx ;)

Re: Quality of Service (QoS)

Posted: Fri Aug 01, 2008 10:32 am
by magnavox
Can you post your Queue and Mangle export?

tnx ;)
Hola, can you share you solution? ;)

Re: Quality of Service (QoS)

Posted: Fri Aug 01, 2008 9:18 pm
by NickOlsen
this is what i use for my 15/2 cable service. Works really well, you might have to modify it for your own needs though.
http://141networks.com/files/queue.txt

Re: Quality of Service (QoS)

Posted: Wed Aug 06, 2008 8:32 pm
by m4rk0
this is what i use for my 15/2 cable service. Works really well, you might have to modify it for your own needs though.
http://141networks.com/files/queue.txt
Thank You, I'll test that.

Re: Quality of Service (QoS)

Posted: Thu Jan 20, 2011 11:39 pm
by zahiy
NickOlsen, your link has died, can you post it again?

Re: Quality of Service (QoS)

Posted: Fri Jan 21, 2011 7:18 pm
by SeaburyNorton
Would like to read it myself! :D

Re: Quality of Service (QoS)

Posted: Mon Jan 24, 2011 10:17 am
by prince90s
NickOlsen, your link has died, can you post it again?

Re: Quality of Service (QoS)

Posted: Mon May 02, 2011 7:31 am
by tevolo
What was the result of your question?
Did you figure it out and how? Thanks.

Re: Quality of Service (QoS)

Posted: Tue May 03, 2011 3:37 am
by cdga12
HI

Please , i need your help,

I attached my configuration for htb (QOS) , i have a point to point: PUCP----UCLC (using 2 mikrotik , rb433ah),

my lan network is 172.16.1.0/24 and my other lan is 172.16.3.0/24,

i have 4 categories (voip, video, dedicated and besteffort), voip and video with mayor priority,

my problem is that i want limit the besteffort trafic always , but besteffor never down and fight with my voip and video traffic. I need that my traffic of besteffoft down when i am inyecting video and voip traffic,

please , help me!!!

i atacched my configuration, and my picture (with the bessteffor in color blue, i canĀ“t have this traffic for below the traffic video, i tried with down his max-limit ) the other traffics are videoconferencia and voip,


configruation:

nodo PUCP

[admin@n1-pucp] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=mark-connection new-connection-mark=voip-con passthrough=yes src-address=172.16.1.0/24 dst-address=172.16.1.0/24 dscp=46

1 chain=prerouting action=mark-packet new-packet-mark=voip passthrough=no connection-mark=voip-con

2 chain=prerouting action=mark-connection new-connection-mark=video-con passthrough=yes src-address=172.16.1.0/24 dst-address=172.16.1.0/24 dscp=38

3 chain=prerouting action=mark-packet new-packet-mark=video passthrough=no connection-mark=video-con

4 chain=prerouting action=mark-connection new-connection-mark=tdedicado-con passthrough=yes src-address=172.16.1.0/24 dst-address=172.16.1.0/24 dscp=30

5 chain=prerouting action=mark-packet new-packet-mark=tdedicado passthrough=no connection-mark=tdedicado-con

6 chain=prerouting action=mark-connection new-connection-mark=besteffort-con passthrough=yes src-address=172.16.1.0/24 dst-address=172.16.1.0/24 dscp=0

7 chain=prerouting action=mark-packet new-packet-mark=besteffort passthrough=no connection-mark=besteffort-con



[admin@n1-pucp] > queue type print
0 name="default" kind=pfifo pfifo-limit=50

1 name="ethernet-default" kind=pfifo pfifo-limit=50

2 name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514

3 name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20
red-avg-packet=1000

4 name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514

5 name="SFQ_VoIP" kind=sfq sfq-perturb=10 sfq-allot=1514

6 name="SFQ_video" kind=sfq sfq-perturb=10 sfq-allot=1514

7 name="SFQ_dedicado" kind=sfq sfq-perturb=10 sfq-allot=1514

8 name="PCQ_besteffort" kind=pcq pcq-rate=128000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

9 name="default-small" kind=pfifo pfifo-limit=10


[admin@n1-pucp] > queue tree print
Flags: X - disabled, I - invalid
0 name="trafico_total" parent=local limit-at=0 priority=8 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

1 name="leaf_voip" parent=trafico_total packet-mark=voip limit-at=524288 queue=SFQ_VoIP priority=1 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

2 name="leaf_video" parent=trafico_total packet-mark=video limit-at=8912896 queue=SFQ_video priority=2 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

3 name="leaf_dedicado" parent=trafico_total packet-mark=tdedicado limit-at=524288 queue=SFQ_dedicado priority=6 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

4 name="leaf_besteffort" parent=trafico_total packet-mark=besteffort limit-at=524288 queue=PCQ_besteffort priority=8 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s


UCLC


[admin@n2-uclc] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=mark-connection new-connection-mark=voip-con passthrough=yes src-address=172.16.3.0/24 dst-address=172.16.3.0/24 dscp=46

1 chain=prerouting action=mark-packet new-packet-mark=voip passthrough=no connection-mark=voip-con

2 chain=prerouting action=mark-connection new-connection-mark=video-con passthrough=yes src-address=172.16.3.0/24 dst-address=172.16.3.0/24 dscp=38

3 chain=prerouting action=mark-packet new-packet-mark=video passthrough=no connection-mark=video-con

4 chain=prerouting action=mark-connection new-connection-mark=tdedicado-con passthrough=yes src-address=172.16.3.0/24 dst-address=172.16.3.0/24 dscp=30

5 chain=prerouting action=mark-packet new-packet-mark=tdedicado passthrough=no connection-mark=tdedicado-con

6 chain=prerouting action=mark-connection new-connection-mark=besteffort-con passthrough=yes src-address=172.16.3.0/24 dst-address=172.16.3.0/24 dscp=0

7 chain=prerouting action=mark-packet new-packet-mark=besteffort passthrough=no connection-mark=besteffort-con


[admin@n2-uclc] > queue type print
0 name="default" kind=pfifo pfifo-limit=50

1 name="ethernet-default" kind=pfifo pfifo-limit=50

2 name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514

3 name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000

4 name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514

5 name="SFQ_VoIP" kind=sfq sfq-perturb=10 sfq-allot=1514

6 name="PCQ_besteffort" kind=pcq pcq-rate=128000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

7 name="SFQ_dedicado" kind=sfq sfq-perturb=10 sfq-allot=1514

8 name="SFQ_video" kind=sfq sfq-perturb=10 sfq-allot=1514

9 name="default-small" kind=pfifo pfifo-limit=10


[admin@n2-uclc] > queue tree print
Flags: X - disabled, I - invalid
0 name="trafico_total" parent=local limit-at=0 priority=8 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

1 name="leaf_voip" parent=trafico_total packet-mark=voip limit-at=524288 queue=SFQ_VoIP priority=1 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

2 name="leaf_video" parent=trafico_total packet-mark=video limit-at=8912896 queue=SFQ_video priority=2 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

3 name="leaf_dedicado" parent=trafico_total packet-mark=tdedicado limit-at=524288 queue=SFQ_dedicado priority=6 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

4 name="leaf_besteffort" parent=trafico_total packet-mark=besteffort limit-at=524288 queue=PCQ_besteffort priority=8 max-limit=10485760 burst-limit=0 burst-threshold=0 burst-time=0s

My total bandwith=11mbps
please you can see the picture with 3 types of traffics:
1) i inyected besteffor traffic with bandwith=6mbps, for 20 seconds = color blue
2) i inyected video1 traffic with bandwith=1mbps, for 20 seconds = color green light
3) i inyected video2 traffic with bandwith=2mbps, from=5 seconds to=20 seconds, color=purple
4) i inyected video3 trafiifc with bandwith= 4mbps, from=10 seconds to=20seconds, color=brown
i inyected voip traffic too., 2 voip calls- priority=1