Limit Bandwidth Hotspot per User

Hi all!

Currently i’m using Mikrotik version 2.9.8 level4. I have problem in limiting the bandwidth per user in hotspot. I tried to do the “rate limit” in Servers Profiles. I put 900k = 900kbps. However, i’ve found out that this “rate limit” is limiting the bandwidth on “LAN-HOTSPOT”. How can i do the rate limit per user so that each user in the hotspot can at least get 512Kbps each? and how can i limit the P2P bandwidth to 128kbps per user in hotspot?

below is the printscreen of my hotspot config. thanks!

Make a set of hotspot user profiles like
ip hotspot user profile
add name=“wire256/64” address-pool=hs-pool-real idle-timeout=none
keepalive-timeout=2m status-autorefresh=1m shared-users=unlimited
rate-limit=“256k/64k” incoming-packet-mark=“hs-auth”
outgoing-packet-mark=“hs-auth” transparent-proxy=yes
open-status-page=always advertise=no
add name=“wire512/128” address-pool=hs-pool-real idle-timeout=none
keepalive-timeout=2m status-autorefresh=1m shared-users=unlimited
rate-limit=“512k/128k” incoming-packet-mark=“hs-auth”
outgoing-packet-mark=“hs-auth” transparent-proxy=yes
open-status-page=always advertise=no
add name=“wire1024/256” address-pool=hs-pool-real idle-timeout=none
keepalive-timeout=2m status-autorefresh=1m shared-users=unlimited
rate-limit=“1024k/256k” incoming-packet-mark=“hs-auth”
outgoing-packet-mark=“hs-auth” transparent-proxy=yes
open-status-page=always advertise=no
add name=“wire512/512” address-pool=hs-pool-real idle-timeout=none
keepalive-timeout=2m status-autorefresh=1m shared-users=unlimited
rate-limit=“512k/512k” incoming-packet-mark=“hs-auth”
outgoing-packet-mark=“hs-auth” transparent-proxy=yes
open-status-page=always advertise=no

Set the default user profile to your most used preference.

rate-limit assigns up/down limit per each HotSpot profile users, however active list shows, that all clients are authorized trough RADIUS.
It means, that you have to set rate-limit configuration on RADIUS.

hai kenk and sergejs! Thanks for your reply. i really appreciate it.

kenk..the settings that u gave me will it limit the hotspot per user? i shall give it a try..

sergejs..im using aradial radius server version 3.16. when u said do the limit at radius..did u mean the radius server or the radius setting in Mikrotik?

thanks.

put3ri, I mean rate-limit in your RADIUS-server (rate-limit option to limit user’s banwidth).

thanks sergejs! i will try. by the way, is the MUM in singapore still on? the fee that we have to pay would be in what currency? singapore dollar? us dollar? im very interested to come.. thanks for your info.

Yes, you have opportunity to register (it costs in us $), detailed information about registration,
http://mum.mikrotik.com/index.php?go=reg
Page will ge very detailed information about MUM event.

thanks sergejs!

Dear Sergejs, if i’m using radius, if i set the limit on the mikrotik hotspot means that it won’t work is it? unless i put the limit on the radius then the limit works?

how about the user profile, will it work?

Local HotSpot is consulted first, than remote RADIUS database.
If you have HotSpot configuration on the router(rate-limit, etc.), local rate-limit, etc. will be applied for HotSpot clients.
To configure local HotSpot rate-limit option,

 ip hotspot user profile set default rate-limit=

.

Hi everyone!

I tried to apply the rate-limit on the radius as follows:

on the NasCfgDbs file, i put the settings as follows:

[Mikrotik]
Dictionary=Mikrotik.dic
IgnoreAcctSig=Yes
UniquePorts=No
BW:User-Service-Type:Framed-User,Framed-Protocol=PPP,Framed-Address=$FramedAddress,Framed-Filter-Id=$FramedFilterId,Framed-Netmask=255.255.255.255,Rate-Limit=$Rate-Limit

on the Mikrotik dictionary, the settings are as follows:

ATTRIBUTE Rate-Limit            26       [vid=14988 type1=8 len1=+2 data=string]



#ATTRIBUTE       Rate-Limit              8       string

then i create a group in the radius to use the service rate-limit. then i test it out, however an error message says: problem in user configuration.

what could be the problem? i check the user config already. cant find whats the actual problem. please help.

Sergejs,


ip hotspot user profile set default rate-limit=

this would apply to the user right?

if i put under server profile then it would apply to the server?

At one time, Rate-Limit only worked for PPP sessions…has this changed? We’ve been using the following for bandwidth allocation with hotspot users via radius without issue:

Ascend-Data-Rate (Upload)
Ascend-Xmit-Rate (Download)

Give these a try :slight_smile:

Rate-Limit is more flexible than Ascend-Data-Rate, as you can use bursting and priority.

http://forum.mikrotik.com/t/now-hotspot-user-can-see-balance-data-from-status-page/65363/1