Community discussions

MikroTik App
 
User avatar
m4rk0
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Sat Feb 16, 2008 8:30 pm
Location: BA

Quality of Service (QoS)

Tue Jul 08, 2008 9:29 pm

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?
http://www.mreza-wisp.ba/
Please, give Karma if I fix your problem
Certified MTCNA
 
User avatar
gmsmstr
Trainer
Trainer
Posts: 942
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: Quality of Service (QoS)

Wed Jul 09, 2008 1:42 am

I'm sure any Mikrotik Consultant can help you out. Check the consultant list ...
Dennis Burgess, MCTCE, MTCNA, MCTCTE, MTCWE, MTCNIE, A+, N+, MCP, MTCSE Mikrotik Certified Consultant / Trainer
Need Mikrotik Support: http://www.linktechs.net -- Link Technologies, Inc.
-- Author of "Learn RouterOS: Second Edition"
 
magnavox
Member
Member
Posts: 347
Joined: Thu Jun 14, 2007 1:03 pm

Re: Quality of Service (QoS)

Sun Jul 13, 2008 12:00 pm

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! ;)
Best Regards...
 
User avatar
m4rk0
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Sat Feb 16, 2008 8:30 pm
Location: BA

Re: Quality of Service (QoS)

Sun Jul 13, 2008 9:58 pm

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...
http://www.mreza-wisp.ba/
Please, give Karma if I fix your problem
Certified MTCNA
 
magnavox
Member
Member
Posts: 347
Joined: Thu Jun 14, 2007 1:03 pm

Re: Quality of Service (QoS)

Sun Jul 13, 2008 10:01 pm

Can you post your Queue and Mangle export?

tnx ;)
Best Regards...
 
magnavox
Member
Member
Posts: 347
Joined: Thu Jun 14, 2007 1:03 pm

Re: Quality of Service (QoS)

Fri Aug 01, 2008 10:32 am

Can you post your Queue and Mangle export?

tnx ;)
Hola, can you share you solution? ;)
Best Regards...
 
NickOlsen
Member Candidate
Member Candidate
Posts: 127
Joined: Wed Feb 13, 2008 9:30 pm

Re: Quality of Service (QoS)

Fri Aug 01, 2008 9:18 pm

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
 
User avatar
m4rk0
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Sat Feb 16, 2008 8:30 pm
Location: BA

Re: Quality of Service (QoS)

Wed Aug 06, 2008 8:32 pm

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.
http://www.mreza-wisp.ba/
Please, give Karma if I fix your problem
Certified MTCNA
 
zahiy
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Tue Aug 11, 2009 6:17 pm
Location: Arara Village - Palestine

Re: Quality of Service (QoS)

Thu Jan 20, 2011 11:39 pm

NickOlsen, your link has died, can you post it again?
Zahi J. Younis
 
User avatar
SeaburyNorton
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Sep 28, 2010 9:39 pm

Re: Quality of Service (QoS)

Fri Jan 21, 2011 7:18 pm

Would like to read it myself! :D
 
prince90s
just joined
Posts: 22
Joined: Sun Jan 23, 2011 9:44 pm

Re: Quality of Service (QoS)

Mon Jan 24, 2011 10:17 am

NickOlsen, your link has died, can you post it again?
 
User avatar
tevolo
Member Candidate
Member Candidate
Posts: 114
Joined: Sun Mar 29, 2009 8:39 pm

Re: Quality of Service (QoS)

Mon May 02, 2011 7:31 am

What was the result of your question?
Did you figure it out and how? Thanks.
 
cdga12
just joined
Posts: 3
Joined: Thu Apr 07, 2011 11:46 pm

Re: Quality of Service (QoS)

Tue May 03, 2011 3:37 am

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
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: AlejandroOviedo, FabioA and 105 guests