Page 1 of 1

Script for cutting down the bandwidth momentarily

Posted: Thu Nov 01, 2007 5:30 pm
by claudio_
Hello.

I need a script that cut the bandwidth from 256kbs to 150kbs (maybe with simple queues) if one user with an "X" ip address (for example: 192.168.12.100) is using full dadicated download bandwidth 256kbs for an interval of time 2 min.

If is it possible after 10 min to bring again its initial bandwidth (256kb/s)

Thank You in advance.

Re: Script for cutting down the bandwidth momentarily

Posted: Thu Nov 01, 2007 5:46 pm
by mrz
I don't think script would be a good solution in this case. Just use queue to limit at 150k and burst value to 256k. That will do exactly what you want.

Re: Script for cutting down the bandwidth momentarily

Posted: Fri Nov 02, 2007 12:55 pm
by claudio_
OK.
Thank You!

Is this a right configuration ?

name="106" target-addresses=192.168.12.106/32 dst-address=0.0.0.0/0 interface=local parent=none priority=8
queue=default/default limit-at=150000/150000 max-limit=150000/150000 burst-limit=250000/250000 burst-time=2m/2m
total-queue=default


Regards.

Re: Script for cutting down the bandwidth momentarily

Posted: Fri Nov 02, 2007 1:25 pm
by mrz
Your burst won't gonna last 2 minutes.
Check out manual, what burst time value means:
http://www.mikrotik.com/testdocs/ros/2. ... 4174415684

Re: Script for cutting down the bandwidth momentarily

Posted: Fri Nov 02, 2007 2:37 pm
by claudio_
Thank You
It was very useful.