Community discussions

MikroTik App
 
red_hat1614
just joined
Topic Author
Posts: 5
Joined: Mon Nov 20, 2006 2:19 pm

Limit different bandwidth in day and night

Sat Feb 03, 2007 3:49 pm

hi all i am using mikrotik 2.9 and i am limiting as add dst address = 10.0.1.5/32 interface = wan limit at 128000/128000 and i want to give more bandwidth at night times can anyone give me some idea
 
virtualmystic
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Fri Jan 19, 2007 7:09 pm
Location: Lahore, pakistan

Sat Feb 03, 2007 9:23 pm

specify queue time to limit queue effect for specified period of time..

Asad
 
red_hat1614
just joined
Topic Author
Posts: 5
Joined: Mon Nov 20, 2006 2:19 pm

Sun Feb 04, 2007 6:09 am

if i specified a time limit its working either day or night but i want to give different speed in day and nights, can you give me a code how to specify that
 
virtualmystic
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Fri Jan 19, 2007 7:09 pm
Location: Lahore, pakistan

Sun Feb 04, 2007 9:30 am

i want to give different speed in day and nights
create multiple queues for day n night..n schedule them accordingly..
 
red_hat1614
just joined
Topic Author
Posts: 5
Joined: Mon Nov 20, 2006 2:19 pm

Sun Feb 04, 2007 9:33 am

Can You give me an example how to give multiple queues
 
virtualmystic
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Fri Jan 19, 2007 7:09 pm
Location: Lahore, pakistan

Sun Feb 04, 2007 2:12 pm

system scheduler> print det
Flags: X - disabled
0 name="schedule1" on-event=/queue simple set [find max-
limit=48000/48000] max-limit=56000/56000
start-date=jan/01/1970 start-time=13:13:00 interval=1d run-count=239
this script will change the max-limit of all the queues having max-limit 48000/48000 to 56000/56000 at 13:13 hrs every day. schedule another script like this to restore the settings..


cheers

Asad Raza
 
red_hat1614
just joined
Topic Author
Posts: 5
Joined: Mon Nov 20, 2006 2:19 pm

Sun Feb 04, 2007 3:50 pm

thanx i tried it but its not working
 
tjdykb
just joined
Posts: 7
Joined: Sun Oct 29, 2006 12:42 pm
Location: Jakarta
Contact:

Sun Feb 11, 2007 12:37 pm

make a scheduled (eg. for day-time use) .. and then for the rest use ..
the queue order matters .. if you put the day-time queue before the normal queue the normal queue wont work if the day-time queue active (scheduled)... (same target address)

Here is my example ..

 4    name="mine.daytime-intl" target-addresses=172.16.5.0/29      dst-address=0.0.0.0/0 interface=all parent=Traffic International 
      direction=both priority=8 queue=default-small/default-small 
      limit-at=8000/8000 max-limit=32000/32000 burst-limit=64000/64000 
      burst-threshold=32000/32000 burst-time=30s/30s 
      total-queue=default-small time=8h-22h,mon,tue,wed,thu,fri 

 5    name="mine.intl" target-addresses=172.16.5.0/29 
      dst-address=0.0.0.0/0 interface=all parent=Traffic International 
      direction=both priority=8 queue=default-small/default-small 
      limit-at=16000/16000 max-limit=192000/192000 total-queue=default-small 
 
ashisheitl
Member Candidate
Member Candidate
Posts: 115
Joined: Fri Dec 01, 2006 10:33 am

Sun Feb 11, 2007 1:38 pm

U need to create 2 Queue for the same target address and allote diff. speed.

Write a script and configure a scheduler for queue. The script will automatically enable and Disable the queue.

Example.

[admin@LAN Server] queue simple> pr
Flags: X - disabled, I - invalid, D - dynamic
0 name="day" target-addresses=10.10.10.2/32 dst-address=0.0.0.0/0
interface=LAN parent=none direction=both priority=8
queue=default-small/default-small limit-at=32000/64000
max-limit=64000/128000 total-queue=default-small

1 X name="night" target-addresses=10.10.10.2/32 dst-address=0.0.0.0/0
interface=LAN parent=none direction=both priority=8
queue=default-small/default-small limit-at=128000/256
max-limit=256000/512000 total-queue=default-small
[admin@LAN Server] queue simple>

Script
-----------
[admin@LAN Server] system script> pr
0 name="day" owner="admin"
policy=ftp,reboot,read,write,policy,test,winbox,password
last-started=feb/11/2007 09:14:03 run-count=2
source=/queue simple enable day; /queue simple disable night

1 name="night" owner="admin"
policy=ftp,reboot,read,write,policy,test,winbox,password run-count=0
source=/queue simple enable night; /queue simple disable day
[admin@LAN Server] system script>

Schedular for the Queue
----------------------------

[admin@LAN Server] system scheduler> pr
Flags: X - disabled
# NAME ON-EVENT START-DATE START-TIME INTERVAL RUN-COUNT
0 DAY day feb/11/2007 06:00:00 1d 0
1 NIGHT night feb/11/2007 18:00:00 1d 0
[admin@LAN Server] system scheduler>

Try this , it will help u to solve your problem

ASHISH.
 
dgreenmania
just joined
Posts: 4
Joined: Sun May 07, 2006 5:23 pm
Location: Borneo
Contact:

Thu May 10, 2007 9:08 pm

how to script with queuetree ?
Thanks
J
 
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Fri May 11, 2007 6:32 am

how to script with queuetree ?
Thanks
J
Instead of /Queue Simple, Use / Queue Tree....Simple
 
MICPROF
Member Candidate
Member Candidate
Posts: 106
Joined: Thu Jan 27, 2011 7:22 pm
Contact:

Re: Limit different bandwidth in day and night

Thu Mar 17, 2011 8:08 pm

 
n21roadie
Forum Guru
Forum Guru
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Limit different bandwidth in day and night

Tue Nov 01, 2011 1:07 pm

I have tried to setup http://wiki.mikrotik.com/wiki/Limit_Dif ... _and_Night
and my configuration is to be applied to the CPE and not the AP, at present i also use pppoe to CPE so i need to limit if possible the ethernet side and not the pppoe(wlan) side below is the configration i tried day limit= 256k upload 3M download, night 128k upload 1M download,the script is working but I must have ommited something as it's not limiting the bandwidth, using OS5.6

/queue simple
name=”Day” target-addresses=192.168.1.254 dst-address=0.0.0.0/0 interface=ether1 parent=none direction=both priority=8 queue=default-small/default-small limit-at=256k/3M max-limit=256k/3M total-queue=default-small

name=”Night” target-addresses=192.168.1.254 dst-address=0.0.0.0/0 interface=ether1 parent=none direction=both priority=8 queue=default-small/default-small limit-at=128k/1M max-limit=128k/1M total-queue=default-small

/system script
name=Day source=”/queue simple enable Day; /queue simple disable Night”

name=Night source=”/queue simple enable Night; /queue simple disable Day”