Mikrotik-Rate-Limit not working

Hello,
I’m currently using Radiator with a Mikrotik 1100 RouterOS v5.24. I have radius authentication and accounting working and my radius server is passing the Mikrotik-Rate-Limit to the Mikrotik as it should. I can see this from server logs and the Mikrotik log itself as seen below.

"Time Sep/11/2013 16:26:52
Buffer memory
Topics
radius
debug
packet
Message MT-Rate-Limit = “rx-rate=128000, tx-rate=128000"”

However when doing speed tests with this connection, it appears to be wide open as I’m getting the max speed my network permits. Any ideas as to why this isn’t working?

Hi.

I think your Rate Limit String is wrong (MT-Rate-Limit = “rx-rate=128000, tx-rate=128000"”). Try with this values,

512k/512k 1M/1M 256K/256K 30/30

Or Just

512k/512k

I am using this Wiki page as reference http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client

Thanks for the reply and sorry for the slow response. So I tried it the way you suggested and I see in the logs the Mikrotik applying it, but the filter still doesn’t seem to be working.

From the Mikrotik log -

Time Sep/16/2013 18:32:23
Buffer memory
Topics
radius
debug
packet
Message MT-Rate-Limit = “rx-rate=128K, tx-rate=128K”

From the Radius server -
User-Service = Framed-User
Framed-Protocol = PPP
Framed-Netmask = 255.255.255.255
Framed-Routing = None
Motorola-Canopy-HIGHERBW = “<0><0><0><1>”
Framed-MTU = 1500
Framed-Compression = Van-Jacobsen-TCP-IP
Mikrotik-Rate-Limit = “rx-rate=128K, tx-rate=128K”

Any ideas?

I finally got this working by using the following on my radius server.

elsif ($acct_type eq “1M/384k”) {
${$_[1]}->add_attr(‘Mikrotik-Rate-Limit’,
‘384k/1M’);\

thanks again.