Page 1 of 1

Simple Queue - Limit at a certain time

Posted: Mon Dec 06, 2010 4:05 pm
by hyp3R
Hello everyone. If I manage to set this up properly, it would be a huge plus to my network. Please if you could assist me with this, I would be really pleased.

What I need is a simple queue which would set users to a certain bandwidth limit at a certain time.

What I want to do is set download and upload limit from 16:00 to 00:00 (midnight).

Basically, what I've figured out alone is how to make a simple queue for a single user and dragging it on the top of the queue list to have a priority.

Whatsoever, only thing I managed to make is limit in download and upload but when I try to use P2P option for an example or time, the queue generated by hotspot get a priority and that rule is applied instead of the one I made manually.

Basically, I have around 200 users on the network with only 10MB. Link is very expensive and we can't afford more.
We are a wireless company and we are changing our services and prices.

Please if you know how and if this is possible, tell me how to make it work like that.
Best wishes,
Alex

Note - Check out the screenshot I've attached into my post.

Re: Simple Queue - Limit at a certain time

Posted: Mon Dec 06, 2010 4:25 pm
by fewi
Queue trees attached to global-in and global-out always override simple queues. Use those instead.

Re: Simple Queue - Limit at a certain time

Posted: Mon Dec 06, 2010 8:09 pm
by hyp3R
Thanks for your answer. Anyway, would you be kind to explain this a bit better and step by step how to make it. Am not very experienced with MikroTik. Still studying for trainings etc.

Thanks in advance,
Alex

Re: Simple Queue - Limit at a certain time

Posted: Tue Dec 07, 2010 11:39 pm
by savagedavid
Queue trees attached to global-in and global-out always override simple queues. Use those instead.
This is not the case. A Simple queue will get traffic before the queue tree.
See: http://wiki.mikrotik.com/wiki/Manual:Queue for more details
Whatsoever, only thing I managed to make is limit in download and upload but when I try to use P2P option for an example or time, the queue generated by hotspot get a priority and that rule is applied instead of the one I made manually.
Silly question perhaps: is the clock on your router set correctly? Alternatively are you using an NTP client?

Re: Simple Queue - Limit at a certain time

Posted: Tue Dec 07, 2010 11:41 pm
by fewi
This is not the case. A Simple queue will get traffic before the queue tree.
Not if the queue tree is attached to global-in or global-out. Interface queues tree do come after simple queues.
I override dynamic Hotspot simple queues the same way to be able to use PCQ.

Simple queues really just transparently generate items in global-in, global-out and global-total. I know the manual says:
If you have simple queues and queue tree in the same HTB - simple queues will get traffic first.
But that isn't how it actually works.

Re: Simple Queue - Limit at a certain time

Posted: Wed Dec 08, 2010 8:30 am
by savagedavid
Fair enough - I will test it out myself (I don't mix queue trees and simple queues so I am only referencing the manual). If it is the case we need to lobby to have it changed.

Re: Simple Queue - Limit at a certain time

Posted: Wed Dec 08, 2010 8:41 am
by savagedavid

Simple queues really just transparently generate items in global-in, global-out and global-total. I know the manual says:
If you have simple queues and queue tree in the same HTB - simple queues will get traffic first.
But that isn't how it actually works.
You are totally correct. I tested it out using the same packet mark for a Simple and Tree queue. The Tree queue gets the packets before the Simple queue.

Thanks for pointing that out - karma for you!

Re: Simple Queue - Limit at a certain time

Posted: Wed Dec 08, 2010 4:25 pm
by fewi
I hope they don't change it back - if they do there's no way to run queue trees for rate limiting on PPPoE and Hotspots, which is sorely needed in big deployments.

So I just hope they change the manual ;o)