Community discussions

MikroTik App
 
claudio_
just joined
Topic Author
Posts: 15
Joined: Thu Nov 01, 2007 4:28 pm

Script for cutting down the bandwidth momentarily

Thu Nov 01, 2007 5:30 pm

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.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Script for cutting down the bandwidth momentarily

Thu Nov 01, 2007 5:46 pm

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.
 
claudio_
just joined
Topic Author
Posts: 15
Joined: Thu Nov 01, 2007 4:28 pm

Re: Script for cutting down the bandwidth momentarily

Fri Nov 02, 2007 12:55 pm

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.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Script for cutting down the bandwidth momentarily

Fri Nov 02, 2007 1:25 pm

Your burst won't gonna last 2 minutes.
Check out manual, what burst time value means:
http://www.mikrotik.com/testdocs/ros/2. ... 4174415684
 
claudio_
just joined
Topic Author
Posts: 15
Joined: Thu Nov 01, 2007 4:28 pm

Re: Script for cutting down the bandwidth momentarily

Fri Nov 02, 2007 2:37 pm

Thank You
It was very useful.

Who is online

Users browsing this forum: No registered users and 43 guests