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.