Community discussions

MikroTik App
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Simple Queue question

Thu Jun 23, 2016 4:33 pm

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?
 
dave864
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Fri Mar 11, 2016 2:37 pm

Re: Simple Queue question

Thu Jun 23, 2016 10:50 pm

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
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Simple Queue question

Thu Jun 30, 2016 6:04 pm

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
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Simple Queue question

Thu Jun 30, 2016 6:06 pm

Target = 192.168.0.0/24
Max limit = 10M
Limit at = 2M
How it should work?
I need 2M limit, but in your example I see 2M reservation.
 
dave864
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Fri Mar 11, 2016 2:37 pm

Re: Simple Queue question

Thu Jun 30, 2016 11:03 pm

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
 
dave864
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Fri Mar 11, 2016 2:37 pm

Re: Simple Queue question

Thu Jun 30, 2016 11:22 pm

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.
 
dave864
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Fri Mar 11, 2016 2:37 pm

Re: Simple Queue question

Thu Jun 30, 2016 11:37 pm

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
 
dave864
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Fri Mar 11, 2016 2:37 pm

Re: Simple Queue question

Sat Jul 02, 2016 2:15 pm

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?
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Simple Queue question

Sat Jul 02, 2016 4:21 pm

The limit at parameter tells the router to give 2M to reach IP.

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

Hope this helps
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/viewtopic.php?t=103523

and here 

http://forum.mikrotik.com/viewtopic.php?t=56183

Please someone confirm.
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Simple Queue question

Tue Apr 04, 2017 5:57 pm

It is impossible to set per-ip limit in ROS?
I must manually create 253 rules for each ip?
 
sash7
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Sun Mar 20, 2016 10:39 pm

Re: Simple Queue question

Tue Apr 04, 2017 8:39 pm

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...
 
Rey46
newbie
Posts: 25
Joined: Sat Aug 06, 2016 5:00 pm

Re: Simple Queue question

Tue Apr 04, 2017 10:43 pm

It is impossible to set per-ip limit in ROS?
I must manually create 253 rules for each ip?
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.
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Simple Queue question

Wed Apr 05, 2017 11:52 am

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...
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.
 
sash7
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Sun Mar 20, 2016 10:39 pm

Re: Simple Queue question

Wed Apr 05, 2017 1:41 pm

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
Image

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

Who is online

Users browsing this forum: DanMos79, frozenchair, GoogleOther [Bot], Kobra, kxrist, sindy and 47 guests