Hi everyone, in this post I want to show you how to limit bandwidth on MikroTik with Simple Queue. Simple Queue is the easiest way to limit upload and download speed per IP, per subnet, or per interface. It works well for internet cafes, boarding houses, small offices, or simply making sure one device does not eat up all the bandwidth.
The lab is the MikroTik CHR RouterOS 7.25.2 from this series, with a LAN client at 192.168.56.101 that gets its IP from the MikroTik DHCP server and reaches the internet through NAT masquerade. I measured every step directly from the client, including burst, a target mistake that stops the limit from working, and a FastTrack test, since FastTrack is often blamed when Simple Queue is not working.
Measure the Speed Before Adding a Limit
Run a download test from the client

I used wget on a Linux client to download a 50 MB file from the Cloudflare test server. The report-speed=bits option shows the speed in bits per second, the same unit MikroTik uses for limits.
wget -O /dev/null --report-speed=bits "https://speed.cloudflare.com/__down?bytes=50000000"The speed before the limit is about 961 Kb/s. On Windows you can use a speedtest site or download a large file in your browser. Keep in mind that browsers show MB/s (bytes), while MikroTik uses Mbps (bits). 1 MB/s is roughly 8 Mbps.
Why only about 1 Mbps

/system license printThe 961 Kb/s figure looks low because this lab uses CHR with a free level license. The free license limits speed to about 1 Mbps per interface. Physical routers such as the hEX or hAP do not have this restriction. That is why I use limits below 1 Mbps in this article, so the effect is easy to see. The steps are exactly the same for a 10M or 100M limit.
Creating a Simple Queue in WinBox
Open Queues

Click Queues, make sure you are on the Simple Queues tab, then click New.
Fill in the target and limit

Fill in Name, for example klien-101. In Target, enter the client IP 192.168.56.101. In Max Limit, the left field is Target Upload and the right field is Target Download. I set 128k for upload and 256k for download, then clicked OK.
Upload and download direction is seen from the target’s side. Upload is data the client sends to the internet, and download is data the client receives. The k suffix means kilobits per second and M means megabits per second. The terminal version:
/queue simple add name=klien-101 target=192.168.56.101 max-limit=128k/256k comment="limit klien 1"To limit a whole subnet at once, set the target to 192.168.56.0/24. However, all clients will share the same limit instead of each getting their own. To split bandwidth evenly per client, use PCQ, which I will cover in the next article.
The queue is active

The queue appears in the list with Upload Max Limit 128k and Download Max Limit 256k. While the client is downloading, the queue icon turns red, which means usage is close to the limit.
Testing the Limit
Download from the client after the limit

The same wget command now gets only about 228 Kb/s. The number is a little below 256k because part of the bandwidth is used by TCP/IP headers.
Check the queue statistics

/queue simple print stats where name=klien-101The rate column shows 6.2kbps/254.5kbps, which means 6.2 kbps upload and 254.5 kbps download, right under the max-limit. The dropped column 0/22 shows packets discarded for exceeding the limit. In WinBox, you can also see these numbers on the Statistics and Traffic tabs of the queue window.
Adding Burst So Browsing Feels Fast
Burst lets a client go over the max-limit for a short time, for example when opening a web page or at the start of a download. Burst stays active as long as the client’s average usage is below the burst-threshold, calculated over the burst-time window.
Set up burst

/queue simple set klien-101 burst-limit=256k/768k burst-threshold=96k/192k burst-time=16s/16sThis means download can go up to 768k as long as the average over the last 16 seconds is still below 192k. The burst-threshold should be lower than the max-limit, while the burst-limit should be higher than the max-limit. In WinBox, fill in the Burst Limit, Burst Threshold, and Burst Time fields in the queue window.
Speed at the start of the download

About 6 seconds after the download starts, wget shows 461 Kb/s, almost twice the max-limit.
Speed after the burst runs out

Once the average usage passes the threshold, the speed drops back to about 249 Kb/s. This is why burst suits browsing: pages open quickly, but long downloads are still limited.
Simple Queue Not Working
My experience: I deliberately tried the two causes most often mentioned on forums. The result was interesting, because only one of them actually made the limit fail in my lab.
The target mistake

/queue simple set klien-101 target=10.0.2.15I changed the target to the router’s WAN IP, a common mistake made by people who think the limit should be placed on the internet side.
The limit stops working right away

The client download immediately goes back to 963 Kb/s, as if there were no limit. Simple Queue matches traffic by the target IP. Because NAT masquerade only changes the address when the packet leaves the router, the client’s traffic is still seen with its LAN IP, so the target must be the client’s LAN IP.
The FastTrack test

The MikroTik documentation says FastTracked connections are not limited by Simple Queue, and the default configuration on a new router usually includes a FastTrack rule. I added a FastTrack rule and an accept established rule like the default configuration, then repeated the download.
/ip firewall filter add chain=forward action=fasttrack-connection connection-state=established,related comment="uji fasttrack" place-before=0
/ip firewall filter print stats where comment="uji fasttrack"
/ip firewall connection print count-only where fasttrackThe FastTrack rule counted packets and there was 1 connection marked fasttrack, but on this CHR 7.25.2 the queue still limited the speed at 257.5 kbps. So in my lab FastTrack did not make traffic bypass the queue. Results on a physical router may differ, so if your Simple Queue is not working, check the FastTrack rule first. To be sure, disable it temporarily and test again.
/ip firewall filter disable [find action=fasttrack-connection]Common Problems and How to Fix Them
The limit does not work at all
Make sure the target is the client’s LAN IP, not the WAN IP or the router’s IP. Also check for a FastTrack rule in IP Firewall Filter, and see whether the rate in the queue statistics moves while the client is downloading.
A client gets the wrong limit
Queues are processed from top to bottom and the first match is used. If a queue for 192.168.56.0/24 sits above the queue for 192.168.56.101, that client will fall under the subnet limit. Move the more specific queue to the top by dragging it in WinBox or with place-before in the terminal.
The speed is a little below the limit
This is normal, because TCP/IP headers are counted too. Speedtest results are usually about 5 to 8 percent below the max-limit.
Upload and download are swapped
Max-limit is written as upload/download from the target’s side. If the target is a client IP, the second number is the client’s download speed.
Traffic between LAN devices is limited too
If the client often transfers files with a local server, set the Dst field to the WAN interface so the queue only limits traffic to the internet.
At this point you can limit bandwidth per IP with Simple Queue, add burst, and troubleshoot why a limit is not working. In the next article we will split bandwidth evenly across many clients with PCQ. If you have run into a Simple Queue that was not working, share the cause in the comments.












