Page 1 of 1

Hotspot with rate limited users + L7 Qos

Posted: Mon Jul 27, 2009 6:33 am
by Still
Hey guys.. It's my first post and also my first serious interaction with MT so bear with me :)

Well, what am trying to achieve is to find a decent model for a mini WISP management server offering the following:

* Hotspot service.
* Bandwidth sharing between customers (only 1 speed plan for now).
* Transparent webproxy service.
* A solid QoS implementation.

What am trying to do is to provide the best possible Voip (skype included) experience, followed by web browsing, audio & video streaming, http & ftp files downloading... all the way to p2p apps. which i want to disable completely.

I red much about queues, L7 patterns and filters, mangle..etc.
What puzzles me, is how to put all these together, is this achievable with simple queues? if not, then what parent queues should i use in queue tree? and what about that hotspot simple queue which always appears no matter what?
One more thing. should i use L7 filters only or can i mix 'em with normal filters too (based on ports..etc)?
So obviously, am missing the basic outer frame which holds all these stuff together..

Any suggestions, tips or advices are most appreciated,
Thanks.

Re: Hotspot with rate limited users + L7 Qos

Posted: Tue Jul 28, 2009 7:22 pm
by Still
Am still stuck at this point, anyone?

Re: Hotspot with rate limited users + L7 Qos

Posted: Wed Jul 29, 2009 12:37 am
by Still
Well, trying the example in the WiKi, and adding some missing values like Limit At & Max Limit (not sure those are necessary)
i noticed that Queued Bytes, B queued & packets queued barely changes, i tried to download a file, test call in skype and those variables sometimes jump to values other than 0 ,not continuously though.

What am doing wrong? and where exactly should i add a queue rule so i can limit the DL/UL rates of each hotspot client? in simple queues maybe?

Any input is appreciated.

Re: Hotspot with rate limited users + L7 Qos

Posted: Wed Jul 29, 2009 2:44 am
by eneimi
Use simple queue (static):
http://wiki.mikrotik.com/wiki/Cable_setup

Otherwise you can apply rate limit in /ip hotspot user profile (dynamic):
http://wiki.mikrotik.com/wiki/Hotspot%2 ... priorities

If you'll be implementing web proxy and you want unlimited speeds from a cache, then see this:
http://wiki.mikrotik.com/wiki/Queue_wit ... _Web-Proxy

I do not see your requirement for L7.

Re: Hotspot with rate limited users + L7 Qos

Posted: Wed Jul 29, 2009 3:43 am
by Still
Use simple queue (static):
http://wiki.mikrotik.com/wiki/Cable_setup

Otherwise you can apply rate limit in /ip hotspot user profile (dynamic):
http://wiki.mikrotik.com/wiki/Hotspot%2 ... priorities

If you'll be implementing web proxy and you want unlimited speeds from a cache, then see this:
http://wiki.mikrotik.com/wiki/Queue_wit ... _Web-Proxy

I do not see your requirement for L7.
Thanks for the reply.
But, how do you think i can prioritize Voip traffic in Skype/Yahoo/MSN without using L7 filter?

Re: Hotspot with rate limited users + L7 Qos

Posted: Fri Jul 31, 2009 2:57 am
by eneimi
Oops! Missed that. Sorry, I don't do L7.

Re: Hotspot with rate limited users + L7 Qos

Posted: Sat Aug 01, 2009 4:13 pm
by Still
bump..

Re: Hotspot with rate limited users + L7 Qos

Posted: Mon Aug 03, 2009 3:26 am
by Still
All i need to know is the general frame of how this can be accomplished, queue tree? simple queues? and why the queue counters doesn't increase as they should..etc
No rocket science involved :D

Re: Hotspot with rate limited users + L7 Qos

Posted: Thu Aug 06, 2009 1:11 am
by Still
up!

Re: Hotspot with rate limited users + L7 Qos

Posted: Thu Aug 06, 2009 7:52 am
by ericsooter
I have only experimented with L7 rules. For one thing, they are extremely heavy on the router's cpu. It looks like your queues are catching traffic. They only show as queued bytes when the queues hit their limits. Not seeing all your mangle rules; I do know that sometimes you have to mangle them in "prerouting".

Re: Hotspot with rate limited users + L7 Qos

Posted: Fri Aug 07, 2009 12:26 am
by Still
I have only experimented with L7 rules. For one thing, they are extremely heavy on the router's cpu. It looks like your queues are catching traffic. They only show as queued bytes when the queues hit their limits. Not seeing all your mangle rules; I do know that sometimes you have to mangle them in "prerouting".

Thank you very much replying.
Great to know that the queues are actually working, i was in doubt because of the 0 queued bytes.
Yes, the mangle have postrouting & prerouting rules for each kind of traffic, actually it's almost the same as the example here in the wiki: http://wiki.mikrotik.com/wiki/Basic_tra ... _protocols

Am still not sure if i must put values in Max Limit and Limit At in global-in & global-out.
How to bandwidth limit each hotspot user while in the same time use those L7 queues?

For ex. User A, should be max limited at 64k/256k, in the same time Skype and HTTP traffic should be given the max priority possible, all other traffic should be lowest in priority. how can this be accomplished? Put the master queues as DSL_in & DSL_out with parent as global-in & global-out, another bandwidth limited sub queues for each hotspot user with parent= DSL_in and DSL_out, and under each user queues yet another sub queues for each kind of traffic.
Is this the best approach? kinda complicated imo.