Exclude one website from bandwidth limites

Hi we are having one video on demand website which is hosted within our network to serve our subscribers to watch online video and download we have bandwidth limits with 128kbs, 256kbps, 512kbps, 1024kbps.

Now the issue is that if a subscriber on 128kbps want to watch video or download videos from our video on demand website he/she face buffering and slow downloading.

I want to exclude that website from any kind of bandwidth limits so that all subscribers with any bandwidth limit have the full speed access to that website which is hosted in our network.

Please reply soon as it is very urgent.

Birender Singh Budhwar

If it’s so urgent why didn’t you at least post your current configuration, or at the very least described in a few sentences how you’re currently applying rate limits - since that would have a pretty big impact on what the solution has to look like?

Hi

My most of the clients are connect with hotspot and i set the limit in hotspot profile and during user creation i select that limit profile and apply.

Hotspot users get bandwidth limitations via simple queues. Queue trees attached to global-in and global-out override them (they get hit first). So a simple way to override bandwidth destined to the video server is to mark traffic to and from it, and then implement a queue tree for those packets.

First, mark the packets. Adjust the first rule to match traffic you want to be excepted from the Hotspot simple queue, you can add further rules for more exemptions. If you already have mangle rules make sure these new ones can be hit.

/ip firewall mangle
add chain=prerouting action=mark-connection dst-address=ip.of.video.server new-connection-mark=video passthrough=yes
add chain=prerouting action=mark-packet connection-mark=video new-packet-mark=video passthrough=yes

Then create an upload and download queue and assign a much larger rate limit than what Hotspot users usually get, here it’s 25 meg up and down shared between all users:

/queue tree
add name="video-up" parent=global-in packet-mark=video queue=default max-limit=25m
add name="video-down" parent=global-out packet-mark=video queue=default max-limit=25m

If you’d like to limit all traffic together at 25 meg but give no single user more than 1 meg, you can use PCQ:

/queue type
add name="per-user-video" kind=pcq pcq-rate=1000000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000

And then change the queue type on the queue trees:

/queue tree
set [find name="video-up"] queue="per-user-video"
set [find name="video-down"] queue="per-user-video"

thanks i will try this today… and thanks for your quick reply

Birender Singh Budhwar

Hi i try this method but it’s not work out please help me for the same…

My setup details are given below

  1. Internet connected to windows based system with two NIC first is connected with internet and second is ICS connected with RB433AH

  2. RB433AH is getting internet from ICS second NIC in windows based box and it give internet to subscribers via hotspot.

  3. Subscribers are authorized by Radius server and radius server send attributes to RB433AH like bandwidth attribute Mikrotik-Rate-Limit with 128k/128k, 256k/256k, 512k/512k, 1024k/1024k, 2048k/2048k so when users login to hotspot their bandwidth are assigned by radius server with Mikrotik-Rate-Limit attribute.

  4. by above solution mark connection and mark packet doesn’t work.

One interesting thing is that i add that video server website to Walled Garden so before login website runs very smooth and buffering goes very fast for 50 MB video it takes less then 20 seconds because it uses hs-default queue as user is not logged in but if user logged in then Walled Garden website also effected by the bandwidth limit to the users and videos starts buffering if user is an 128k speed limit then he/she is facing buffering problem and for 50MB video you can images how much time it take to download on 128k speed.

can Mikrotik developers can add this feature to their next release 4.6 to exclude some website from bandwidth limit like providers own website to their subscribers…

Any comments on the same will be appreciated…

when you specify mikrotik-rate-limit with radius server, does the bandwidth limit reflect in mikrotik queue simple list? also what radius server type are you using?

Yes rate limit is shown in mikrotik queue simple list..

You can directly create the user ID’s in radius server user manager and set the option in web gui and your are ready to go. no need to even touch the winbox and mikrotik usermanager.

we are using radius server from Wifi4india Inetrnet Services Ltd.

thanks for this tutorial , i tried to do it with my ccr1036 with 6.3 version but there is no global-in and global-out in queue for this version , and i searched it how to do that and cant see another tutorial just saying using (mangle and simple queue) but how can i do that , please answer me and thank you again .