Page 1 of 1

How mutch clients on one Microtic ?

Posted: Sun Jul 23, 2006 2:51 am
by byzon
Is there a limit on the Queues ?
And do somebody have a big number of clients ? if so , lets say ?

I have a 1100 people on one machine , it works good :)

The machine is Intel(R)2.7 , 1000 MiB of ram , When there are more people in the network the CPU is 60 - 70 %

Posted: Sun Jul 23, 2006 8:25 am
by sergejs
There is not any queue limit.
Certainly, queues require some router's resources (60-70% CPU load means, that CPU is working :D ).
There are ways to optimize your queues (e.g. using PCQ, etc.), if you have 1100 queues entries.

Posted: Sun Jul 23, 2006 11:42 pm
by byzon
I have been reached queue1772 :) what exacly you mean "optimize" can u explain exacly , soory for the english it is bad :)

Posted: Mon Jul 24, 2006 8:08 am
by normis
if you have 1100 queues with the same speed limit, it just wastes your resources. just make one PCQ queue (see manual) that will limit all your users each with the same limit (you will replace 1100 queues with 1-2)

Posted: Mon Jul 24, 2006 5:55 pm
by Ozelo
if you have 1100 queues with the same speed limit, it just wastes your resources. just make one PCQ queue (see manual) that will limit all your users each with the same limit (you will replace 1100 queues with 1-2)
Could this be done on a PPPOE server which every ppp interface have a dynamic simple queue? Thanks in advance..

Posted: Mon Jul 24, 2006 9:30 pm
by ParisDragon
if you have 1100 queues with the same speed limit, it just wastes your resources. just make one PCQ queue (see manual) that will limit all your users each with the same limit (you will replace 1100 queues with 1-2)
The way I understand PCQ queues it shares that bandwidth equally among all users, in this case 1100 users would each have an equal share of bandwidth, if the queue is set to 2M for example and 4 users who should get 2M each are sharing it at the same time, they each get 512k?

Is there some way that is would give them each 2M?

Posted: Tue Jul 25, 2006 8:34 am
by sergejs
ParisDragon,
you can use PCQ in the another way too.
e.g. mark clients and specify certain bandwidth 2M/2M.
Of course you should have 8M line, if you want 4 users to get 2M/2M.

Posted: Tue Jul 25, 2006 4:36 pm
by ParisDragon
ParisDragon,
you can use PCQ in the another way too.
e.g. mark clients and specify certain bandwidth 2M/2M.
Of course you should have 8M line, if you want 4 users to get 2M/2M.
Let's hope Mikrotik takes our suggestions of Bandwidth queue groups where each member of the group gets the bandwidth assigned for the group.

Posted: Tue Jul 25, 2006 8:09 pm
by sergejs

Posted: Tue Jul 25, 2006 10:54 pm
by ParisDragon
It would be if you didnt have to use IPs or subnets to define them, for example, grouped would be using a firewall address list or a group of IPs defined somewhere (ex. 128k users, 512k users) and inside the group was the IPs of the clients needing this shaping, then the simple queue could have Target "128k users" instead of an IP etc.

Here is a mock up using the link you sent:

1. Setup PCQ queue types - one for download and one for upload. dst-address is classifier for user's download traffic, src-address for upload traffic:

/queue type add name="PCQ_download128k" kind=pcq pcq-rate=128000 pcq-classifier=dst-address
/queue type add name="PCQ_upload64k" kind=pcq pcq-rate=64000 pcq-classifier=src-address

/queue type add name="PCQ_download512k" kind=pcq pcq-rate=512000 pcq-classifier=dst-address
/queue type add name="PCQ_upload128k" kind=pcq pcq-rate=128000 pcq-classifier=src-address


2. Setup your IP groups to define users to utilize this:
/add ip group "128k Users"
/ip group 0 add ip-addresse=192.168.0.12
/ip group 0 add ip-addresse=192.168.0.17
/ip group 0 add ip-addresse=192.168.0.21
/ip group 0 add ip-addresse=192.168.0.7
/add ip group "512k Users"
/ip group 1 add ip-addresse=192.168.0.9
/ip group 1 add ip-addresse=192.168.0.217
/ip group 1 add ip-addresse=192.168.0.24
/ip group 1 add ip-addresse=192.168.1.10

3. Simple Queue for download/upload:

/queue simple add queue=PCQ_upload64k/PCQ_download128k target-group="128k users"

/queue simple add queue=PCQ_upload128k/PCQ_download512k target-group="512k users"

Posted: Wed Jul 26, 2006 7:40 am
by sergejs
1) User groups are defined in 'ip firewall address-list' in the same way.
2) You can use queue tree instead of simple queues to accomplish scenario in described way.

Posted: Wed Jul 26, 2006 4:38 pm
by wildbill442
Could this be done on a PPPOE server which every ppp interface have a dynamic simple queue? Thanks in advance..
I would like to know this as well.. By default the PPPoE dynamic queues use a Default-small queue type. So in theory, if you were to change the default-small queue type from the default (PFIFO) to PCQ I believe you could achieve this... Test it and report back, or if someone has done this before please confirm!

Thanks.

Posted: Thu Aug 10, 2006 11:44 pm
by byzon
With pcq work great ! From 70, 95 CPU Load my CPU is 25 , 40 good ! thanks all !

How to get the graphs of each customer usages ?

Posted: Sat Aug 12, 2006 9:13 am
by prawira
Good to see the 70-95% drop to 25%..

but.. one question left...

How to see the graph of each customer usages ?

Paul

Posted: Tue Aug 15, 2006 1:24 pm
by byzon
I dont have a idea :)