Community discussions

MikroTik App
 
hzeid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Tue Oct 12, 2004 11:57 am
Location: Lebanon

PCQ Question

Mon Nov 14, 2005 10:51 am

Hello Guys.
i am having a problem in PCQ limits

/ queue tree
add name="all-out" parent=global-out flow="" limit-at=0 \
queue=wireless-default priority=8 max-limit=0 burst-limit=0 \
burst-threshold=0 burst-time=0 disabled=no
add name="128kd-16ku" parent=all-out flow=128kd-16ku limit-at=0 \
queue=128kd-16ku priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0 disabled=no
add name="256kd-32ku" parent=all-out flow=256kd-32ku limit-at=0 \
queue=256kd-32ku priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0 disabled=no

add name="all-in" parent=global-in flow="" limit-at=0 queue=wireless-default \
priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0 \
disabled=no
add name="16ku-128kd" parent=all-in flow=16ku-128kd limit-at=0 \
queue=16ku-128kd priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0 disabled=no
add name="32ku-256kd" parent=all-in flow=32ku-256kd limit-at=0 \
queue=32ku-256kd priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0 disabled=no

/ queue type
set default name="default" kind=pfifo bfifo-limit=15000 pfifo-limit=50 \
red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 \
sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 pcq-classifier=""
set ethernet-default name="ethernet-default" kind=pfifo bfifo-limit=15000 \
pfifo-limit=50 red-limit=60 red-min-threshold=10 red-max-threshold=50 \
red-burst=20 sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 \
pcq-classifier=""
set wireless-default name="wireless-default" kind=sfq bfifo-limit=15000 \
pfifo-limit=50 red-limit=60 red-min-threshold=10 red-max-threshold=50 \
red-burst=20 sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 \
pcq-classifier=""
set synchronous-default name="synchronous-default" kind=red \
bfifo-limit=15000 pfifo-limit=50 red-limit=60 red-min-threshold=10 \
red-max-threshold=50 red-burst=20 sfq-perturb=5 sfq-allot=1514 \
pcq-rate=0 pcq-limit=50 pcq-classifier="
add name="128kd-16ku" kind=pcq bfifo-limit=15000 pfifo-limit=50 red-limit=60 \
red-min-threshold=10 red-max-threshold=50 red-burst=20 sfq-perturb=5 \
sfq-allot=1514 pcq-rate=132000 pcq-limit=50 pcq-classifier=dst-address
add name="256kd-32ku" kind=pcq bfifo-limit=15000 pfifo-limit=50 red-limit=60 \
red-min-threshold=10 red-max-threshold=50 red-burst=20 sfq-perturb=5 \
sfq-allot=1514 pcq-rate=264000 pcq-limit=50 pcq-classifier=dst-address
add name="32ku-256kd" kind=pcq bfifo-limit=15000 pfifo-limit=50 red-limit=60 \
red-min-threshold=10 red-max-threshold=50 red-burst=20 sfq-perturb=5 \
sfq-allot=1514 pcq-rate=32768 pcq-limit=50 pcq-classifier=src-address
add name="16ku-128kd" kind=pcq bfifo-limit=15000 pfifo-limit=50 red-limit=60 \
red-min-threshold=10 red-max-threshold=50 red-burst=20 sfq-perturb=5 \
sfq-allot=1514 pcq-rate=17000 pcq-limit=50 pcq-classifier=src-address
/ ip firewall mangle
add in-interface=ip-address protocol=tcp tcp-options=syn-only action=passthrough \
tcp-mss=1360 comment="" disabled=no
add src-address=10.20.130.80/32 in-interface=ip-address action=passthrough \
mark-flow=16ku-128kd mark-connection=16ku-128kd comment="" disabled=no
add src-address=10.20.130.91/32 in-interface=ip-address action=passthrough \
mark-flow=12ku-64kd mark-connection=12ku-64kd comment="" disabled=no
add src-address=10.20.130.92/32 in-interface=ip-address action=passthrough \
mark-flow=16ku-128kd mark-connection=16ku-128kd comment="" disabled=no
add src-address=10.20.130.93/32 in-interface=ip-address action=passthrough \
mark-flow=32ku-256kd mark-connection=32ku-256kd comment="" disabled=no
add in-interface=!ip-address connection=16ku-128kd action=accept mark-flow=128kd-16ku \
comment="" disabled=no
add in-interface=!ip-address connection=32ku-256kd action=accept mark-flow=256kd-32ku \
comment="" disabled=no


well i see in the torch that some costumers are using more than the bandwidth i have specified for them
when i torch the specified costumes i mostly see that the excess bandth is through udp ports
is there anything wrong in my configuration??? please help me
 
hzeid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Tue Oct 12, 2004 11:57 am
Location: Lebanon

Tue Nov 15, 2005 11:08 am

am i asking something wrong or is it soo much silly that no one is answering or pcq is hard to work with????
 
hzeid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Tue Oct 12, 2004 11:57 am
Location: Lebanon

Wed Nov 16, 2005 9:04 pm

pls pls at least say anything guys.
i read somewhere that i should not be using the global-in and global-out
but i am not sure with that i tried to mess up with the and found that the better thing is using them.
also the udp excess of connection i told u about after doing some tracing and testing is for the some voice softwares but i think if u limit some one to a specific bandwidth no matter what he use he should be optimized not to use more than his limit or does pcq means or doesn't work in such a manner
 
gianluca
Member Candidate
Member Candidate
Posts: 258
Joined: Sun Aug 08, 2004 11:00 pm
Location: Italy - Spain - USA

Sun Nov 27, 2005 12:59 am

global-in and global-out reffers to the same traffic exepct the traffic originated/generate from/to teh router itself.

shaping is normally done on the one leaving a certain interface.

I dont understand how a customer can have more bandwidth that the one allowed by your pcq. can you be more specific?
 
hzeid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Tue Oct 12, 2004 11:57 am
Location: Lebanon

Sun Nov 27, 2005 12:21 pm

thanks gianluca for ur reply well i have read a thread in this forum that i should change the global in =all and the global out=all out to something elase like internet and local but when i tried this things got worse. in the limatations i have posted for example i have costumer with ip address 10.20.130.80 is limited to 16k up and 128 down some time i see a traffic which is about 32 on the up when i do torch to this specific ip i see that connection using the up is udp so what i am not sure of is pcq limiting tcp connections only or it limit udp also. note also i have dropeed all p2p so i am sure it is not a p2p application and i think it is a mesenger voice or camera application. again thanks gianluca for ur reply and hope that u have a solution to what i am experiencing

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 44 guests