Mikrotik - Give full priority to Roku streaming

molesza

Active Member
Joined
Jan 24, 2012
Messages
81
Reaction score
3
Basically I have a 4 meg connection at home that is shared with a flat mate. I'm not worried about him maxing the connection normally. However, when I get home and want to watch something on my Roku I have to manually limit him on my roku with simple queues.

I have read many articles and tried tons of stuff to try and limit him but it is not working.

Basically what I would like to achieve is the following:

If my roku is idle then he can download with full available bandwidth. If I want to watch my roku then I would like my mikrotik to see this and then limit him and possibly all other IP addresses so that I can use the bandwidth.

So in a nutshell roku must get all the traffic it wants and the rest of the network can use what's remaining of the bandwidth.

Has anyone implemented something similar?

Before anyone says that it's not cool to limit him, he gets Internet for free and is aware that I want to achieve this. He's only downloading anyhow so it doesn't matter if it slows right down for an hour or so.

Thanks for taking the time to read my post.
 
Hi Molesza,

In a nutshell you need to create a queue for both him and your Roku each. Simply specify max bandwidth for both, however for the roku give it a priority of like 2 and give the queue for him a priority of 8. Also make sure the Roku queue is above his queue. Its a very simple blunt way of doing it.

If you going to work alot with Mikrotik i suggest looking at this blog:

https://aacable.wordpress.com/category/mikrotik-related/

Also search Greg Sowell Mikrotik blog.

Regards,
Peon
 
Hi Molesza,

In a nutshell you need to create a queue for both him and your Roku each. Simply specify max bandwidth for both, however for the roku give it a priority of like 2 and give the queue for him a priority of 8. Also make sure the Roku queue is above his queue. Its a very simple blunt way of doing it.

If you going to work alot with Mikrotik i suggest looking at this blog:

https://aacable.wordpress.com/category/mikrotik-related/

Also search Greg Sowell Mikrotik blog.

Regards,
Peon

Thanks for your reply. I have something like that already setup. Though I am not sure whether the Roku queue is above the other queues. For testing purposes as my flat mate is not here I am trying to configure "Myles Roku" as top priority and "Server" as low priority.

I have set "limit-at" for download of roku to 2MB which i understand will only start limiting the download at 2MB and 256k for upload. The server "limit-at" is at 1k for both upload and download, which should start queueing packets at only 1k.

Below you will see a screen grab of my queues. Please have a look and let me know if they look ok. I have a dhcp script that automatically adds queues for any leases given out. So every connected device has a queue.

You can see in the screenshot that Server is getting almost all the bandwidth and the Roku nothing. I would like that to be the other way round.

OJqESBR.png
 
Thanks for your reply. I have something like that already setup. Though I am not sure whether the Roku queue is above the other queues. For testing purposes as my flat mate is not here I am trying to configure "Myles Roku" as top priority and "Server" as low priority.

I have set "limit-at" for download of roku to 2MB which i understand will only start limiting the download at 2MB and 256k for upload. The server "limit-at" is at 1k for both upload and download, which should start queueing packets at only 1k.

Below you will see a screen grab of my queues. Please have a look and let me know if they look ok. I have a dhcp script that automatically adds queues for any leases given out. So every connected device has a queue.

You can see in the screenshot that Server is getting almost all the bandwidth and the Roku nothing. I would like that to be the other way round.

OJqESBR.png

put the roku at the top of the queue?

edit: nvm sorry didnt read correctly.

i dno, on the rb750 i have here the top of the queue gets priority, then again mine is numbered 0 and downwards, not all deurmekaar like yours.
 
Last edited:
I could be wrong. But I still think you should seperate your Roku from LAN queue. Give your LAN queue a priority of like 5 and above the LAN queue give the roku a priority of 2.
 
try take that LAN network queue out and only queue the IP addresses, in the correct order, high priority top and first

that lan queue might be overruling the rest, seemed so when i just made one with IPs under it.

or yeah do as Peon says, LAN queue 2.0/27(32hosts or what ever) and roku outside of that subnet queue, above the lan queue
 
Last edited:
@molesza my recommendation would be to avoid simple queues and setup queue trees based on MAC addresses/static IP's

Then setup parent queues for max upload/download and then prioritize each person/device similar to how I have mine setup below:
Capture.png
add burst-limit=80M burst-time=5s limit-at=50M max-limit=80M name="Global Download" parent=bridge-local (local lan bridge) priority=4 queue=default
add burst-limit=80M burst-time=5s limit-at=50M max-limit=80M name="Global Upload" parent=PPPoE (WAN/PPPoE Dialout interface) priority=1 queue=default

add burst-limit=15M burst-time=5s limit-at=8M max-limit=15M name=mediapc_down packet-mark=mediapc parent=Streaming_down priority=4 queue=default
add burst-limit=10M burst-time=5s limit-at=3M max-limit=10M name=mediapc_up packet-mark=mediapc parent=Streaming_up priority=1 queue=default



Mangle Rules to mark traffic by mac:
Capture2.png
add action=mark-connection chain=forward comment="<person/device>" new-connection-mark=<device/person>-bw src-mac-address=00:00:00:00:00:00 (obviously the device/person's mac address)
add action=mark-packet chain=forward connection-mark=<person/device>-bw new-packet-mark=<device/person>

I am by no means an expert so I am pretty sure this can be improved upon but for our 100mb this works like a bomb everyone can do whatever they want without it effecting anyone else's experience. If you want more information/help we can organise to chat on skype so just PM me.

I hope this helps, took me a while to figure this with plenty trial and error. One point I missed was that if you have fasttrack firewall rules it will allow connections to bypass the queue tree (3weeks of struggling and eventually figured it out)
 
Thanks for the reply. I appreciate it. Would you be kind enough to export your router os configuration for firewall and queues? Would like to study your configuration
 
Top
Sign up to the MyBroadband newsletter
X