Community discussions

MikroTik App
 
darnpunk
just joined
Topic Author
Posts: 5
Joined: Sun Aug 02, 2015 2:38 pm

Dynamic bandwidth speed per IP

Tue Jan 12, 2016 8:54 am

Hi,

I am intending to use Mikrotik as the main gateway router and would like to set the maximum speed for download and upload dynamically for a certain VLAN or IP range. For example, on VLAN 10 with a maximum bandwidth of 100Mbps:

If there is 1 device connected, it gets 100Mbps download and 50Mbps upload
If there are 2 devices connected, each gets 50Mbps download and 25Mbps upload
.....
If there are more than 10 devices connected, each gets 5Mbps download and 2Mbps upload

Can this be done with RouterOS?
 
Muqatil
Trainer
Trainer
Posts: 573
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: Dynamic bandwidth speed per IP

Wed Jan 13, 2016 11:40 am

Those are the droids you are looking for: http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ
 
darnpunk
just joined
Topic Author
Posts: 5
Joined: Sun Aug 02, 2015 2:38 pm

Re: Dynamic bandwidth speed per IP

Wed Jan 13, 2016 12:07 pm

Those are the droids you are looking for: http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ
Hey, that looks like the solution. From what I understand, you can only set maximum rate. Is there anyway to set minimum rate?
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Dynamic bandwidth speed per IP

Wed Jan 13, 2016 10:08 pm

Those are the droids you are looking for: http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ
Hey, that looks like the solution. From what I understand, you can only set maximum rate. Is there anyway to set minimum rate?
By default, PCQ automatically gives minimum bandwidth = 100%/N where N is the number of active sub-queues.
For a typical "nobody can hog the bandwidth" configuration, the default should be fine, and all you need to do is define the max-limit so the queue knows how much bandwidth there is to work with.