need help on, changing max-limit base on devices active.

can anyone help me script this,

in simple queue, i have ‘Users’ as parent, with PC1 and PC2 as child.
Users, max-limit=10m
PC1, limit-at=1m, max-limit=5m
PC2, limit-at=1m, max-limit=5m

then i need script with this below,

if at the same time, PC1 and PC2 device is active, limit-at=1m, max-limit=5m.
if PC1 is active but not PC2 , PC1, max-limit=10m
if PC2 is active but not PC1, PC2 , max-limit=10m


or next if can do. i will use youtube as an example.

if PC1 or PC2, receives src address from youtube, max-limit=5m , limit-at=1m
then if PC1 or PC2 doesnt receive src address from youtube, max-limit=10m,

Me too interested in this :slight_smile:

I just tried for the very first time such a rate-limiting on a CRS326 switch device with RouterOS 7.0beta5 using simple queue
as described at https://help.mikrotik.com/docs/display/ROS/Queues#heading-Configurationexample ,
but there was effectively absolutely nothing of a rate-limiting as the PC had the full bandwidth for itself, so my 1st attempt unfortunately did not work :frowning:
It seems one also needs to do something in the firewall, although the above documentation seems to indicate that setting up a simple queue is all one needs.

I need to read more about this stuff. Maybe in a few days we could find a solution also for your illustrated 2 PC setup as I will do a similar test setup.