Community discussions

MikroTik App
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Limit Bandwidth Hotspot per User

Mon Jul 24, 2006 7:56 pm

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!

Image
 
kenk
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Sat Jun 05, 2004 7:22 am
Location: Tumbi Umbi, Australia

Tue Jul 25, 2006 2:19 am

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Jul 25, 2006 8:21 am

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.
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Tue Jul 25, 2006 6:29 pm

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Jul 25, 2006 8:05 pm

put3ri, I mean rate-limit in your RADIUS-server (rate-limit option to limit user's banwidth).
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Wed Jul 26, 2006 4:19 am

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Wed Jul 26, 2006 7:24 am

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.
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Wed Jul 26, 2006 8:34 am

thanks sergejs!
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Thu Jul 27, 2006 6:53 am

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?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Thu Jul 27, 2006 7:36 am

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=
.
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Thu Jul 27, 2006 8:40 am

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.
 
put3ri
just joined
Topic Author
Posts: 9
Joined: Mon Jul 24, 2006 6:47 pm
Location: Malaysia

Thu Jul 27, 2006 9:02 am

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?
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Thu Jul 27, 2006 5:39 pm

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 :)
 
User avatar
Tony Burton
newbie
Posts: 37
Joined: Sun Oct 23, 2005 11:02 am
Location: New Zealand
Contact:

Sun Aug 06, 2006 10:36 pm

Rate-Limit is more flexible than Ascend-Data-Rate, as you can use bursting and priority.
 
akmjahangir
newbie
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

Re: Limit Bandwidth Hotspot per User

Sun Apr 14, 2013 7:15 am

Who is online

Users browsing this forum: No registered users and 76 guests