Community discussions

MikroTik App
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Hotspot with rate limited users + L7 Qos

Mon Jul 27, 2009 6:33 am

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.
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Tue Jul 28, 2009 7:22 pm

Am still stuck at this point, anyone?
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Wed Jul 29, 2009 12:37 am

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.
You do not have the required permissions to view the files attached to this post.
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: Hotspot with rate limited users + L7 Qos

Wed Jul 29, 2009 2:44 am

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.
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Wed Jul 29, 2009 3:43 am

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?
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: Hotspot with rate limited users + L7 Qos

Fri Jul 31, 2009 2:57 am

Oops! Missed that. Sorry, I don't do L7.
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Sat Aug 01, 2009 4:13 pm

bump..
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Mon Aug 03, 2009 3:26 am

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
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Thu Aug 06, 2009 1:11 am

up!
 
ericsooter
Member Candidate
Member Candidate
Posts: 285
Joined: Mon Mar 07, 2005 6:16 pm
Location: Oklahoma USA

Re: Hotspot with rate limited users + L7 Qos

Thu Aug 06, 2009 7:52 am

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".
 
Still
just joined
Topic Author
Posts: 16
Joined: Mon Jul 27, 2009 5:27 am
Location: Alexandria, Egypt

Re: Hotspot with rate limited users + L7 Qos

Fri Aug 07, 2009 12:26 am

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.