MikroTik Queue Generator

Generate MikroTik RouterOS 6 and 7 simple queue scripts instantly with automatic bandwidth calculation. Easily create queue limits, burst settings, priorities, and ready-to-paste MikroTik queue scripts for bandwidth management.
Loading...
Mbps
Mbps
%
x
sec
Calculated Values
Max Limit Download20,000,000 bps
Max Limit Upload10,000,000 bps
Limit-At Download16,000,000 bps
Limit-At Upload8,000,000 bps
Burst Download30,000,000 bps
Burst Upload15,000,000 bps
Queue Typefq-codel
Generated Script

Overview

Generate complete MikroTik simple queue scripts for RouterOS 6 and RouterOS 7 from a handful of inputs. The tool converts Mbps values into the bps units RouterOS expects, computes max-limit, limit-at, and optional burst values, and outputs a ready-to-paste /queue simple add command. It is aimed at network engineers and ISP admins who manage per-client bandwidth on MikroTik routers.

Common Use Cases

How to Use

1
Select the RouterOS version, 6 or 7; it determines the queue type written into the script, default-small for RouterOS 6 and fq-codel for RouterOS 7.
2
Enter a queue name and the target IP or CIDR address for the client or subnet.
3
Type the download and upload speeds in Mbps; the tool converts them to bps by multiplying by 1,000,000 for the max-limit.
4
Set the limit-at percentage to define the guaranteed rate, calculated as a percentage of max-limit.
5
Choose a queue priority from 1 (highest) to 8 (lowest).
6
Enable burst and set the burst multiplier and burst time in seconds to add burst-limit, burst-threshold, and burst-time, then copy the generated script.

Example Scenario

Home client with a burst-enabled 20/10 Mbps queue

For CLIENT-01 at 192.168.1.10 on RouterOS 7, enter 20 Mbps download and 10 Mbps upload. With limit-at at 80 percent and burst enabled at a 1.5x multiplier for 16 seconds, the calculated values become a download max-limit of 20000000 bps, an upload max-limit of 10000000 bps, limit-at of 16000000 bps download and 8000000 bps upload, and burst-limit of 30000000 bps download and 15000000 bps upload, and the generated fq-codel script is ready to paste into the terminal.

Technical Notes

Bandwidth inputs in Mbps are converted to bits per second by multiplying by 1,000,000. For example, 20 Mbps becomes 20000000 bps, which is the exact unit RouterOS simple queue limits accept.

limit-at is the guaranteed minimum rate and is derived by multiplying max-limit by the limit-at percentage. At 80 percent, a 20 Mbps max-limit produces a 16000000 bps limit-at.

When burst is enabled the script adds burst-limit (max-limit times the multiplier), burst-threshold (set equal to limit-at), and burst-time in seconds, letting a client exceed max-limit for short periods before being throttled.

The queue type is chosen automatically from the RouterOS version: default-small for RouterOS 6 and fq-codel for RouterOS 7.

The generated command always lists upload values before download values in each pair, such as max-limit=10000000/20000000, matching the upload/download convention used by MikroTik.

Common Mistakes

Frequently Asked Questions

max-limit is the maximum rate a queue can reach when the link is free, while limit-at is the guaranteed minimum rate that is always available to the client even when the link is congested.

burst-threshold is set equal to limit-at. When average traffic stays below the threshold, the client can burst above max-limit up to burst-limit for the burst-time period.

RouterOS 7 ships with fq-codel as the default simple queue type, so the tool selects it for version 7 and default-small for RouterOS 6.

Yes, the generated command uses standard RouterOS syntax, so it can be pasted into the Winbox terminal or executed over SSH.

Related Topics