Simple Queue question

Hello,

I have network 192.168.0.0/24
I need these limits:

  1. Summary Limit (for entire network) = 10 Mbit/s
  2. Individual limit for each IP-addresses = 2 Mbit/s

how to do it?

Target = 192.168.0.0/24
Max limit = 10M
Limit at = 2M
Queue type = PCQ-UPLOAD-DEFAULT and also PCQ-DOWNLOAD-DEFAULT


I have one for the ISPQueue connection /16 and one for each smaller /24 group. These smaller groups has the main ISP queue linked using the PARENT=ISPQueue setting

How it should work?
I need 2M limit, but in your example I see 2M reservation.

The limit at parameter tells the router to give 2M to reach IP. The max of the connection is 10M. The PCQ type will use this information to try and guarantee 2M per ip. So…
Say you have 2 users. Each will get 2M. Total used will be 4M

Say you have 5 users, each gets 2M with total 10M.

Say you have 10 users, each gets 1M with total 10M.

The limit at setting is per ip. The total is total pipe you have for all users.

Hope this helps

The PCQ type works very well for me but…
PCQ is per connection queueing. From what I understand, it detects a connection based on ip.

I haven’t tested it for a while but I could be wrong on its effect. I’ll test this weekend to find out. I seem to remember having it allow an individual user to user all the capacity until another user needed some.

Err. Just done a quick test on 6.34.6 it appears the simple queue isn’t working.

Both limit at and max limit are not working as I thought they did.

I’ll do some more testing tomorrow night, but you might be right with the limit at setting reserving capacity. If that’s true then either set a simple queue per ip address or use queue tree

It does look like the way I have it setup is to try and reserve or guarantee a minimum service. But that any one user can use all the capacity if available.

To have 5 users, each will need to be manually setup with ip addressed and have a queue each. Seems like hard work. Is there another way of doing it?

I think the limit-at is for whole pcq and not per ip. so if we have a just a simple queue with target of 192.168.88.0/24 (pcq-upload & pcq-download queues) and limit-at set to 2M then the limit-at is total for all subnet and not for every ip.
read here post no 3
http://forum.mikrotik.com/t/how-limit-at-works/94169/1

and here

http://forum.mikrotik.com/t/help-with-pcq-queues/51244/1

Please someone confirm.

It is impossible to set per-ip limit in ROS?
I must manually create 253 rules for each ip?

no, you need one simple queue with target=192.168.0.0/24 and max-limit=10M/10M + set queue type=pcq for upload/download and set these with pcq-rate=2M in both

1 client - 2M, up to 5 client - get 2M each. 10 client - 1M each…

From terminal you can write

:for x from 100 to 254 do={/queue simple add name="queue-$x" max-limit=2M/10M target="192.168.0.$x"}

With “show columns → Total downloaded/uploaded bytes” you can also see the traffic per ip.

  1. On which tab i should set queue type=pcq? On “Advanced” tab i do not see Queue Type=pcq, but see Queue Type = “pcq-download-default” and “pcq-upload-default”.

  2. On which tab i should set “pcq-rate”? I do not see “pcq-rate” field.

In simple queue you can select these two: pcq-download-default and pcq-upload-default for download and upload

Then in Queue / Queue Types tab you can find these two, click them and edit Rate = 2M

https://wiki.mikrotik.com/wiki/Manual:Queue#Queue_Types