Community discussions

MikroTik App
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

bandwidth limitation

Thu Apr 18, 2013 8:40 am

Hi,

I' m using Mikrotik Router as Hotspot Gateway along with Radius Manager for AAA.

What we define in radius manager

- Username/Password
- Expiry
- bandwidth Limitation.

When bandwidth limited using Radius Manager , all the traffic get restricted . The bandwidth limit in radius manager should only allow for international traffic but i dont want to restrict for local traffic.

What I did ?

created a list of local address ..

How can we do this ?

Pls help

- Shiva
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: bandwidth limitation

Fri Apr 19, 2013 5:02 am

Simple queues are ordered so you can put a queue at the top with a high limit that matches the traffic that you don't want limited.
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: bandwidth limitation

Fri Apr 19, 2013 6:48 am

yes I did that already.

- created a simple queue rule with unlimited bandwidth.
- when hotspot users logged in , dynamic hostpot queue rule is created which has higher priority than the static queue.
comes first than static.

Is there any solution to this ??
 
jeffkid
just joined
Posts: 1
Joined: Fri Apr 19, 2013 8:22 am

Re: bandwidth limitation

Fri Apr 19, 2013 8:31 am

I need a solution to this same problem. Is there no one who can tell how to bring the dynamic queue after the static queue?
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: bandwidth limitation

Fri Apr 19, 2013 9:08 am

yes, why we need this because we are running hotspot not pppoe :

- I'm using Radius Manager for bandwidth Limitation.
- When user's get authenticated from Radius Manager , Users come along with Limited bandwidth (suppose 512kbps/512kbps), above static queue.

Currently I 'm doing :

- User Authentication/Expiry will be done using Radius Manager.
- For Bandwidth Limitation , I have creates a static queue in Mikrotik with IP , but not guaranteed whether users gets same ip address all the time.Because users gets ip from DHCP pool.
- But somehow I have managing this using Mangle rule .
- using Mangle rule , we can separate local traffic ( I have put all the local address in address list and do match).
- local traffic called "local" and outside traffic called "Oversea".
- while creating static queue , assign ip address / limit required bandwidth and i advance choose packet mark "Oversea' to 0.0.0.0/0.

I have somehow managed and working like this currently. But is not the best solution .


Write a script which will put put every created dynamic hotspot queue after static . If we are able to to do like this , everything will work perfect .
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: bandwidth limitation

Sun Apr 21, 2013 12:53 pm

Now is problem solved.

What i Did ..

- make simple queue with all the local address with priority 1.
- created a script which will find queue with priority 1 and move to 0.
- make a schedule for script to run every 10 sec.

with this script ...

- static queue will always remain at top .
- All the hotspot user queue created dynamically will move after static.

But still having problem with high latency while ping to DNS, Local sites etc.

-Shiva
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: bandwidth limitation

Mon Apr 22, 2013 4:11 pm

I've never noticed a static queue that was at the top move based upon new dynamic queues. You should be able to do this without the script. You can manually move a static queue to the top by dragging it in winbox.
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: bandwidth limitation

Tue Apr 23, 2013 8:14 am

I have noticed that all the dynamic hotspot simple queue created after successful authentication remains at top which i had to manually drag it to down or move static manually to top. I had to repeat this process everytime when new hotspot users logs in.

Thats why i went for script which will always put static to top , any users logs in, dynamic rule created , scripts runs in every 10 seconds , check , out static back to top.
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: bandwidth limitation

Tue Apr 23, 2013 5:02 pm

I've never used simple queues with hotspot users so that may very well be true. My simple queues come from PPPoE.

Good to know.
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: bandwidth limitation

Tue Apr 23, 2013 9:42 pm

I agree , No issues with PPPoE. Only with Hotspot.

Now I need one script to add packet marks to every dynamic hotspot simple queue.

Who is online

Users browsing this forum: GoogleOther [Bot] and 81 guests