Friday, September 21, 2012

Bandwidth Management based on time



Bandwidth Differentiating by time

Some of the ways we can find to make a distinction bandwidth by the time we wanted. The following inform me how I know and the easiest. This process I have ever been run on Mikrotik RB750, RB1000 and RB1200. please try

I use Simple Queue menu, Script and Scheduler.

Is like we have a network 192.168.1.0/24 and want to set the bandwidth to differentiate on day and night. as details below
Network 192.168.1.0/24
Bandwidth = 06:00am – 18:00pm – 1Mbps. <Max-Limit>
Bandwidth = 18:00pm – 06:00am – 2Mbps. <Max-Limit>
Create two simple queue on the same network with a different bandwidth.
/queue simple
#name=”Day” target-addresses=192.168.1.0/24 dst-address=0.0.0.0/0
interface=<ether-x> parent=none direction=both priority=8
queue=default-small/default-small limit-at=512k/512k
max-limit=1M/1M total-queue=default-small

#name=”Night” target-addresses=192.168.1.0/24 dst-address=0.0.0.0/0
interface=<ether-x> parent=none direction=both priority=8
queue=default-small/default-small limit-at=1M/1M
max-limit=2M/2M total-queue=default-small
Then copy the following script:
/system script
#name=”Day” source=/queue simple enable Day; /queue simple disable Night

#name=”Night” source=/queue simple enable Night; /queue simple disable Day
And Schedule:
/system scheduler
#name=”Day” on-event=Day policy=read,write start-date=oct/13/2007 start-time=06:00:00 interval=1d

#name=”Night” on-event=Night policy=read,write start-date=oct/13/2007 start-time=18:00:00 interval=1d

FYI: setting the clock on the system clock to run first.

if the process is not running make sure the setting on the router with the same schedulernya system.

Good luck

1 comment: