bandwidth limitation

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

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.

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 ??

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?

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 .

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

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.

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.

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.

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

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