Keeping RouterOS Queues on Top

One frustration I have recently dealt with is the dynamic simple queue behavior in MikroTik RouterOS that started sometime after version 3. Somewhere in there, they started adding new, dynamically created queues (created by MikroTik HotSpot or UserManager/PPPOE) to the top of the list instead of at the bottom.
This really causes an issue with static queues you might have in place for prioritizing traffic like VOIP. When the dynamic user queues are inserted above your VOIP queue, VOIP traffic from that user’s target IP no longer has priority. I contacted and Janis Megis from MikroTik indicated it was a requested feature that would be added at some point in the future. This caused me a lot of grief recently workign with a large HotSpot deployment on a RouterBoard RB1200.

Until then, here is a solution.

Create a script with the following code:

/queue simple move [find name=”VOIP”] [:pick [find] 0]

In this code, I have a simple queue named UDP that I always want at the top of the list of queues. You can repeat this code for other queues to be placed below this queue like this:

/queue simple move [find name=”VOIP”] [:pick [find] 0]
/queue simple move [find name=”VIDEO”] [:pick [find] 1]
/queue simple move [find name=”SSH”] [:pick [find] 2]

Then, create a scheduler job to run the script every 10 seconds or so and you should be in QOS heaven!

Steve Discher

Steve Discher was born in Apple Valley, California and today makes his home in College Station, Texas with his wife and three children. He is a 1987 graduate of Texas A-M University and owns ISP Supplies, a wireless distribution company, and conducts MikroTik training classes. His hobbies include flying his Piper Cub and RV camping with his family.

Recent Posts

  • Using MikroTik LHG as a UE With a Baicells eNodeB

    This has been a dream for a long time, and a DIY project for those industrious individuals willing to cobble it together, but now it is a reality in a production device. First of all why would you want to …

  • New ISP Supplies App

    Now available on the Playstore and the iPhone Appstore, the ISP Supplies App! With great features like a powerful search engine and a reorder list, it makes it fast and easy to place orders on the go. Favorite products for quick …

  • Update: Block Countries Based on IP Addresses and Networks

    If you never used my web site to build firewalls and QOS, you have been working too hard! I recently (today) updated the database of IP addresses by Country to generate MikroTik IP Address Lists by country. Check it …

See More News