Community discussions

 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Traffic Shaping using PCQ

Mon Aug 27, 2007 10:06 am

Hi Everyone, I have to shape traffic on my Router. I want to give prorities some of the users groups.
I have three type of users: Unlimit 1 (Priority 2 This is some network I am using PCQ type and its PCQ-RATEs are 128k/512k U/D), Unlimit 2 (Priority 3 For this network I use PCQ type with PCQ-RATE 64k/128k U/D ), Megabyte (I want to give each of users of this group equally 512k-1024k/512k-2048k UP/Down Now I am Using PCQ-Rate and it gives fixed amount of speed to each one)

A little explanation: For All groups I have Marked all packets and used src-address classifier for upload queue and dst-address classifier for download queue.

Now I want to make some queue tree to shape my traffic.
Some Advise or some helps, I'll be thanksfull :idea:
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: Traffic Shaping using PCQ

Mon Aug 27, 2007 4:10 pm

Can enyone explain why when using PCQ with pcq-rate in queue tree the parent could not bee limited. Look at my codes
/ queue tree 
add name="queue3" parent=global-in packet-mark=10UP limit-at=0 queue="PCQ-Upload 128k" priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s \
    disabled=no 
add name="queue4" parent=global-out packet-mark=10DOWN limit-at=0 queue="PCQ-Download 512k" priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no 
add name="queue5" parent=global-in packet-mark=2508 limit-at=0 queue="PCQ-Upload 128k" priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s \
    disabled=no 
add name="queue6" parent=global-out packet-mark=25081 limit-at=0 queue="PCQ-Download 128k" priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no 
And look at queue types
/ queue type 
set default name="default" kind=pfifo pfifo-limit=5 
set ethernet-default name="ethernet-default" kind=pfifo pfifo-limit=50 
set wireless-default name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514 
set synchronous-default name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000 
set hotspot-default name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514 
add name="PCQ-Download 128k" kind=pcq pcq-rate=128000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 
add name="PCQ-Upload 64k" kind=pcq pcq-rate=64000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 
add name="PCQ-Upload 128k" kind=pcq pcq-rate=128000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 
add name="PCQ-Download 512k" kind=pcq pcq-rate=521000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 
add name="PCQ-Download 256k" kind=pcq pcq-rate=256000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 
add name="PCQ-Upload 256k" kind=pcq pcq-rate=256000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 
add name="PCQ-Upload 512k" kind=pcq pcq-rate=521000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 
add name="PCQ-Download 64k" kind=pcq pcq-rate=64000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 
add name="default-small" kind=pfifo pfifo-limit=10 
 
User avatar
fatonk
Member
Member
Posts: 439
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: Traffic Shaping using PCQ

Mon Aug 27, 2007 6:45 pm

Hello,

try setting the max-limit in queue tree to desired rate, and this can I think solve your problem if I have understood you correctly.

Regards.

Faton
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: Traffic Shaping using PCQ

Tue Aug 28, 2007 10:09 am

Thanks Very much, I did what YOU say and it is working

Who is online

Users browsing this forum: No registered users and 95 guests