Community discussions

MikroTik App
 
Cameron Earnshaw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun May 30, 2004 6:46 pm
Contact:

PCQ

Mon Mar 14, 2005 4:55 pm

Finally got a pcq rulle working properly. I have two problems:

1. System resources show 100% cpu usage whenever pcq is running. M router is an Athalon 1.8 GHz with 768 MB RAM, and I have about 200 clients. Everything seems to be running fine though, with no noticeable lag when I log-in with Winbox.

2. Of course pcq means "per connection", and I notice that a client performing multiple downloads simultaneously gets the full rate for each download. Is there any way to limit them "per client" without making a separate rule for each client?

Thanks!
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Mon Mar 14, 2005 4:58 pm

what classifiers did you use in /queue type? could you please put here the printout from that menu
 
Cameron Earnshaw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun May 30, 2004 6:46 pm
Contact:

Mon Mar 14, 2005 7:11 pm

Here they are. I'm not sure whether pcq-limit is set properly. Is this the number of simultaneous connections?

4 name="PCQ-Download" 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=4000000 pcq-limit=300
pcq-classifier=dst-address

5 name="PCQ-Upload" 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=5000000 pcq-limit=100
pcq-classifier=src-address
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Tue Mar 15, 2005 2:56 pm

pcq-rate (integer; default: 0) - maximal data rate allowed for each PCQ sub-queue. Value 0 means that there is no limitation set
this property sets the maximum for each client in your case. how much network traffic do you have?

the number of simultaneous connections may be limited in firewall. please see the manual for the example.
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 284
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Tue Mar 15, 2005 8:14 pm

pcq-rate (integer; default: 0) - maximal data rate allowed for each PCQ sub-queue. Value 0 means that there is no limitation set
this property sets the maximum for each client in your case. how much network traffic do you have?

the number of simultaneous connections may be limited in firewall. please see the manual for the example.
Let me explain.... if you set pcq-rate=128000 that each of you clients will download(upload) with 128kbit :)
 
Cameron Earnshaw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun May 30, 2004 6:46 pm
Contact:

Wed Mar 16, 2005 8:37 am

So then is it that pcq-limit is for the entire queue and pcq-rate is per client (actually per connection?)

Any idea why I get 100% cpu usage as soon as I turn pcq on? It is 1.4 GHz with 768MB of RAM, so should be powerful enough, don't you think?
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Wed Mar 16, 2005 1:09 pm

quote again from the manual:
pcq-limit (integer; default: 50) - how many packets to hold in a PCQ
that does not mean speed - that means amount. in pther words, when the queue is already full (i.e., the speed has reached the maximal value, and PCQ is not allowing any more packets to pass), how many packets to have waiting for their turn to be sent. i would suggest it to be as low as possible, as this, in my opinion, would reduce delays and cpu load. not sure about the later, though...
 
Cameron Earnshaw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun May 30, 2004 6:46 pm
Contact:

Thu Mar 24, 2005 6:35 am

My apologies to the Mikrotik folks. Turns out it was not the PCQ that was causing the problem but our own stupidity. We had a memory chip mismatch (one 512 MB and a 256 MB DDR) in the computer. Changed them both to 512 MB DDR and now cpu loading is only 4-6%.

Regarding the pcq-limit, I find this a bit confusing as I wonder how you know when you have the setting correct?
 
Cameron Earnshaw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun May 30, 2004 6:46 pm
Contact:

Thu Mar 24, 2005 6:57 am

the number of simultaneous connections may be limited in firewall. please see the manual for the example.
Seems you have better luck locating these things in the manual than I do. Perhaps if the manual were better organized or had an index? In any event, would you mind advising which section of the manual you found this? It doesn't appear to be in "Firewall" section. Thanks!
 
wildbill442
Forum Guru
Forum Guru
Posts: 1055
Joined: Wed Dec 08, 2004 7:29 am
Location: Sacramento, CA

Thu Mar 24, 2005 8:05 am

try queues, or bandwidth management....

There's also this really neat feature "search/find" its built in to most text editors, document viewers, web browsers. :)

Mikrotik goes into a lot of detail on their queues/bandwidth management, there's also other free documentation on how bandwidth management and QoS work available on the web.
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Thu Mar 24, 2005 11:41 am

 
Cameron Earnshaw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun May 30, 2004 6:46 pm
Contact:

Sat Mar 26, 2005 8:25 am

Well, with all due respect, this is about the extent of details on connection limiting that I found in the manual.

"connection-limit (integer; default: 0) - match the number of concurrent connections from each particular IP address"

I think I could have guessed that. I agree that not a lot of explanation is really needed, but perhaps a few lines, such as a notice that it only works with TCP, for example.

Is there a way to limit the number of udp connections too?

Who is online

Users browsing this forum: CGGXANNX and 29 guests