Community discussions

MikroTik App
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

PCQ rate dont work

Wed Dec 02, 2009 7:27 pm

hello, I have a mikrotik motherboard with problems with the PCQ. I have configured queue tree with all the ports I want to prioritize (wiki) , ie 80, 443, sip, etc ... I have created different types of rate queues for each of these services, for example: www, rate=2M, but the funny thing is that instead of offering every customer 2mbps, the 2Mbps shared among users browsing! configuration is the same as in another 9 router, other work fine.
I checked the firewall configuration, queue, everything .... but can not find the reason.
I hope someone can help me!
Thanks in advance!
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: PCQ rate dont work

Wed Dec 02, 2009 7:32 pm

So post your configuration. Without it anyone is just guessing.
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Wed Dec 02, 2009 9:46 pm

OK thank you for reply, What part of the configuration to display?
Export mangle, look like this:
/ip firewall mangle
add action=mark-packet chain=prerouting comment=icmp disabled=no in-interface="(unknown)" new-packet-mark=icmp_in passthrough=no protocol=icmp
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=icmp_out out-interface="(unknown)" passthrough=no protocol=icmp
add action=mark-packet chain=prerouting comment=p2p disabled=no in-interface=wan new-packet-mark=p2p_in p2p=all-p2p passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=p2p_out out-interface=wan p2p=all-p2p passthrough=no
add action=mark-packet chain=prerouting comment=pop3 disabled=no in-interface=wan new-packet-mark=pop3_in passthrough=no protocol=tcp src-port=110
add action=mark-packet chain=postrouting comment="" disabled=no dst-port=110 new-packet-mark=pop3_out out-interface=wan passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=smtp disabled=no in-interface=wan new-packet-mark=smtp_in passthrough=no protocol=tcp src-port=25
add action=mark-packet chain=postrouting comment="" disabled=no dst-port=25 new-packet-mark=smtp_out out-interface=wan passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=ftp disabled=no in-interface=wan new-packet-mark=ftp_in passthrough=no protocol=tcp src-port=21
add action=mark-packet chain=postrouting comment="" disabled=no dst-port=21 new-packet-mark=ftp_out out-interface=wan passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=ssh disabled=no dst-port=22 in-interface=wan new-packet-mark=ssh_in passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=ssh_out out-interface=wan passthrough=no protocol=tcp src-port=22
add action=mark-packet chain=prerouting comment=winbox disabled=no dst-port=8291 new-packet-mark=winbox_in passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=winbox_out passthrough=no protocol=tcp src-port=8291
add action=mark-packet chain=prerouting comment=dns disabled=no new-packet-mark=dns_in passthrough=no protocol=udp src-port=53
add action=mark-packet chain=postrouting comment="" disabled=no dst-port=53 new-packet-mark=dns_out passthrough=no protocol=udp
add action=mark-packet chain=prerouting comment=www disabled=no in-interface=wan new-packet-mark=www_in passthrough=no protocol=tcp src-port=80
add action=mark-packet chain=postrouting comment="" disabled=no dst-port=80 new-packet-mark=www_out out-interface=wan passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=ssl disabled=no in-interface=wan new-packet-mark=ssl_in passthrough=no protocol=tcp src-port=443
add action=mark-packet chain=postrouting comment="" disabled=no dst-port=443 new-packet-mark=ssl_out out-interface=wan passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=udp disabled=no in-interface=wan new-packet-mark=udp_in passthrough=no protocol=udp
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=udp_out out-interface=wan passthrough=no protocol=udp
add action=mark-packet chain=prerouting comment=tcp disabled=no in-interface=wan new-packet-mark=tcp_in passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=tcp_out out-interface=wan passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=other disabled=no in-interface=wan new-packet-mark=other_in passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no new-packet-mark=other_out out-interface=wan passthrough=no

Queque Type:

/queue type
set default kind=pfifo name=default pfifo-limit=50
set ethernet-default kind=pfifo name=ethernet-default pfifo-limit=50
set wireless-default kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set synchronous-default kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 red-limit=60 red-max-threshold=50 red-min-threshold=10
set hotspot-default kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=pcq_down_2M pcq-classifier=dst-address pcq-limit=50 pcq-rate=2048000 pcq-total-limit=2000
add kind=pcq name=pcq_up_150k pcq-classifier=src-address pcq-limit=50 pcq-rate=150000 pcq-total-limit=2000
add kind=pcq name=pcq_down_1M pcq-classifier=dst-address pcq-limit=50 pcq-rate=1000000 pcq-total-limit=2000
add kind=pcq name=pcq_down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=pcq_up_100k pcq-classifier=src-address pcq-limit=50 pcq-rate=100000 pcq-total-limit=2000
add kind=pcq name=pcq_up pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=pcq_down_1.5M pcq-classifier=dst-address pcq-limit=50 pcq-rate=1500000 pcq-total-limit=2000
set default-small kind=pfifo name=default-small pfifo-limit=10

I have two R52 in B-only connects to two antennas 120, one in vertical polarization and the other horizontally. Use hotspot + freeradius + mysql for accounting and authentication.
RouterBoard 433AH v.3.30, downgrade from 4.2 because I thought that this was the problem,but.......persist.

Thank in advance, tell me if you need more data.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: PCQ rate dont work

Wed Dec 02, 2009 9:49 pm

Please post the queue trees.
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Thu Dec 03, 2009 9:26 am

You are right, I forgot post my queue tree.......

/queue tree

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=512k \

max-limit=512k name=upload_wan1 parent=global-out priority=4

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=icmp_down packet-mark=icmp_in parent=global-in priority=\

1 queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=icmp_up packet-mark=icmp_out parent=global-out priority=\

1 queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=winbox_down packet-mark=winbox_in parent=global-in \

priority=1 queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=winbox_up packet-mark=winbox_out parent=global-out \

priority=1 queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=dns_down packet-mark=dns_in parent=global-in priority=1 \

queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=dns_up packet-mark=dns_out parent=global-out priority=1 \

queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=www_up packet-mark=www_out parent=upload_wan1 priority=2 \

queue=pcq_up

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=ssl_up packet-mark=ssl_out parent=upload_wan1 priority=1 \

queue=pcq_up

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=5k \

max-limit=5k name=p2p_up packet-mark=p2p_out parent=upload_wan1 priority=\

8 queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=100k name=udp_up packet-mark=udp_out parent=upload_wan1 \

priority=6 queue=pcq_up

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=tcp_up packet-mark=tcp_out parent=upload_wan1 priority=4 \

queue=pcq_up_100k

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=other_up packet-mark=other_out parent=upload_wan1 \

priority=7 queue=pcq_up

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=9M name=download_wan1 parent=global-in priority=4

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=www_down packet-mark=www_in parent=download_wan1 \

priority=2 queue=pcq_down_2M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=ssl_down packet-mark=ssl_in parent=download_wan1 \

priority=1 queue=pcq_down

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=5k \

max-limit=5k name=p2p_down packet-mark=p2p_in parent=download_wan1 \

priority=8 queue=wireless-default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=udp_down packet-mark=udp_in parent=download_wan1 \

priority=6 queue=pcq_down

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=tcp_down packet-mark=tcp_in parent=download_wan1 \

priority=4 queue=pcq_down_1M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=other packet-mark=other_in parent=download_wan1 \

priority=7 queue=pcq_down

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=pptp_down packet-mark=pptp_in parent=global-in priority=\

1 queue=wireless-default

Thank for everything.

Best regards,

Andrew,
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ rate dont work

Thu Dec 03, 2009 11:59 am

what number do you see in 'PCQ Queues' value in statistics of that queue?
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Thu Dec 03, 2009 10:43 pm

OK, thanks for your help:
You do not have the required permissions to view the files attached to this post.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ rate dont work

Fri Dec 04, 2009 2:30 am

omg, 'www_in' have 4.9M Avg. Rate, type=pcq_down_2M, PCQ Queues = 1 and PCQ Rate = 2M... Avg Rate should be no more than 2M. Shoot me %) are your previous config hold good?..
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Fri Dec 04, 2009 10:24 am

Hello 4.9M appears in the queue because now I have assigned a PCQ-rate = 0, because if I attach rate = 2M all customers share 2M when surfing, when I assign the avg rate = 2M, avg-rate does not exceed 2M ever.
But if PCQ (queue per connection) creates queues for each client with the value of "rate", should be creating queues 2M for customers if need at any given time.This config. is working in another router.
Now I assing rate=2M in ww-in:
Thank you very much for your interest.
You do not have the required permissions to view the files attached to this post.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ rate dont work

Fri Dec 04, 2009 1:23 pm

funny... can I have access to your router? my UIN is in profile...
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Thu Dec 10, 2009 9:32 am

No, sorry, I can post any configuration you need but access my router, no.

Have you seen any problems in the statistics of the queue?

Why is 2Mbps shared between all users?

Someone else, some idea?

Thanks
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ rate dont work

Mon Dec 14, 2009 1:58 pm

huh, Hotspot is evil ))) that's why I asked for access to the router - I could see that in real environment, but I didn't faced with that in configs
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Wed Dec 16, 2009 2:29 pm

hello again, I have been watching the behavior of the router and I noticed something unusual in www_in statistics (queue tree) "PCQ Queues" value never changes, always in one, why? other routers are different values depending on the number of users who need bandwidth. well this computer RAM memory is decreasing gradually with the passing hours, this router is a 4-hour operation on 105MB of RAM, another 433 after 4 hours has 108Mb of RAM, and the funny thing is that it continues to decline to 80 or 85MB when it takes 10 to 15 days!
Is it possible that the Routerboard is wrong?
RouterBoard with problems:
Pantallazo-2.png
And this is another that work fine:
Pantallazo-1.png
Thank you very much for your help!!!!!
You do not have the required permissions to view the files attached to this post.
 
User avatar
raftak
newbie
Topic Author
Posts: 44
Joined: Wed Feb 20, 2008 1:58 pm
Location: ""with the source""

Re: PCQ rate dont work

Mon Dec 21, 2009 9:55 am

Another suggestion?
 
dziadzi
just joined
Posts: 19
Joined: Wed Feb 24, 2010 2:32 pm

Re: PCQ rate dont work

Sat Feb 27, 2010 12:02 am

I have this same problem with pcq users queues (I create one tree for users having the same bandwith).

For upload I have as many queues as many users generating traffic. For download I have only one PCQ queue independently on how many users are connected and generate down traffic.

Did you find any solution?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ rate dont work

Sat Feb 27, 2010 7:18 am

please post your config
 
dziadzi
just joined
Posts: 19
Joined: Wed Feb 24, 2010 2:32 pm

Re: PCQ rate dont work

Tue Mar 02, 2010 1:18 am

please post your config
I resolved my problem. I tried to limit incoming traffic on vlan interface, where PPPoE server was binded and always only one PCQ queue was created.
When I limit bandwidth for incoming traffic on "global-in" it works.
Of course in this case I have separate firewall mark rules for incoming and outgoing traffic

Who is online

Users browsing this forum: Ahrefs [Bot], Aska, Google [Bot] and 223 guests