Community discussions

MikroTik App
 
User avatar
Bitnik
just joined
Topic Author
Posts: 12
Joined: Sun Jan 21, 2007 12:48 pm

Need help of Expert...

Mon Jan 22, 2007 1:01 pm

8) Hi there people, I have a problem (have MikroTik 2.9.2 installed) - need a script, or do no (something like that) that will automaticly limit users when they downloading more than 3 minutes at speed higher than 120 Kbps, then, if they stops downloading and speed is lower than 120 Kbps, after 5 minutes it will automaticly remove the limit... (this need not for whole UserList, but for each user personaly) IS THIS REAL ??? ( sorry for my E nglish and silly question, but we Realy need that in our network and office)... :(
 
savage
Forum Guru
Forum Guru
Posts: 1220
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Mon Jan 22, 2007 2:19 pm

burst queues?
Regards,
Chris
 
User avatar
Bitnik
just joined
Topic Author
Posts: 12
Joined: Sun Jan 21, 2007 12:48 pm

Mon Jan 22, 2007 4:05 pm

ofcose :)
 
User avatar
mneumark
Member
Member
Posts: 375
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Tue Jan 23, 2007 8:48 am

Your best bet it to use queues to accomplish this... http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php

If you want them to be bursted to over 120kb for 5 minutes then set the burst time for 300 seconds.
 
pekr
Member Candidate
Member Candidate
Posts: 138
Joined: Tue Feb 22, 2005 9:05 pm
Location: Czech Republic
Contact:

Tue Jan 23, 2007 5:53 pm

mneumark,

burst of course is something different than op asks for, no? :-) Your burst treshold simply defines, that once speed decreases under the treshold value, queue is allowed for burst speed download/upload, for a given period of time.

But - op (original poster) wanted to let user to download at the speed he pays for, but after 5 minutes, to lower it to some lower speed, and let it that way till the end of the hardware ...

I would probably try to experiment in the following manner - marking connection (prerouting, tcp, port 80 = http downloads), marking packet, putting it to e.g. http-downloads address-list, setting desired period. Then, for the user, I would create child simple queue, limiting http protocol to desired speed, if it is NOT on the address-list .... Could that work? :-)

Cheers,
Petr
 
savage
Forum Guru
Forum Guru
Posts: 1220
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Tue Jan 23, 2007 9:18 pm

No its not...

User goes fast for 5 minutes, slows down, if slow for 5 minutes, go fast again...

it's exactly the same that a burst queue does, the burst times and thresholds are just rather long...
Regards,
Chris
 
valens
Trainer
Trainer
Posts: 246
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Wed Jan 24, 2007 1:57 am

yes, queue burst can do like that....
 
pekr
Member Candidate
Member Candidate
Posts: 138
Joined: Tue Feb 22, 2005 9:05 pm
Location: Czech Republic
Contact:

Wed Jan 24, 2007 9:21 am

But according to docs not surely how Savage describes it? Or am I missing something? According the docs the burst time is NOT guaranteed all the times. At least doc in following section shows, that once average speed is above treshold, the burst is interrupted (as there is no need for it anymore). So, and just imo, queue burst will not serve op with intened purpose.

http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php

If I am really wrong guys, then tell me (but then I would really like to know, how it really works :-) Any other articles around?)

Thanks,
Petr
 
User avatar
samsoft08
Long time Member
Long time Member
Posts: 617
Joined: Sat Nov 26, 2005 10:52 pm

Wed Jan 24, 2007 8:00 pm

first , I dont know why to give a user who is downloading a big file a reward for his action by increasing his speed after a period of time while he is eating the bandwidth ? the reasonable thing is to decrease a speed for some one who is still downloading a big files ..
second , savage is right , thats what burst does , but there are 2 dissadvantages of burst :
1- burst repeat itself each time the user doesnt reach the average speed .
2- burst not applied to each single tcp connection , its applied to each
user with all his tcp connections all together ..

i think we need some rule that has the fourth dimension TIME .. which is not exist in MT only in burst ..
 
pedja
Long time Member
Long time Member
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Thu Jan 25, 2007 9:40 am

Original question is indded exaclty what bursting can do.

The latest MT allows very good feature: nesting queues, which gives you even more power (i guess it would be possible to set multiple level bursting that way), but you surely can set burst to specific packets, not just all traffic one user makes.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Thu Jan 25, 2007 10:27 am

perk and samsoft you had wonderful possibility to attend MT training in MUM - Poland, but i see you missed it.

burst will happen if requirements are met:
1) average download speed is lover than burst threshold.
2) there is bandwidth available for burst to happen

and if ISP says - you will be able download with speed A but in reality i get A/2 i would punch him in face with agreement. Except if ISP is foolish enough to offer 100MBit speed :D (if ethernet)

lets stop this discussion here - or go and read other thread where this was discussed.

Who is online

Users browsing this forum: anon31337, Baidu [Spider], HakanE, kos, mbovenka, mohkhalifa, sid5632 and 110 guests