Mikrotik – Share Internet Speed Evenly

If you have a slower internet package, or too many users for your available internet speed, it could be very beneficial to be able to split up your internet speed based on the number of simultaneous users. The ability to do this is well-beyond any consumer-grade router with QOS settings that I’ve seen, but it’s pretty simple if you’re using a Mikrotik router.

Firewall filter setup

A default router / wireless AP setup is fine, though you may need to disable fasttrack under IP > Firewall > Filter:

In my limited experience and almost no testing, turning off fasttrack where your Mikrotik is your firewall can result in low speeds if you have a fast internet connection. I can’t give a lot of data on this, but I remember being limited to 100-200Mbps on a 700Mbps connection when I had fasttrack disabled, and seeing less than 100Mbps on a 400Mbps connection, in both cases using a RB750Gr3.

At the time, I was unable to get simple queues working with fasttrack, but according to this post, you apparently can if you put in an accept rule before the fasttrack rule. At some point I can test that, but not today.

Queue types setup

You’ll want to create two queue types under Queues > Queue Types. For this example, I’m using a connection that is set to 6Mbps x 1.5Mbps and expected to be capable of that speed at all times. You’ll want to change the value to reflect your own internet speed. I just named them pcq_download and pcq_upload. Here are the screenshots:

The only things I changed from the default settings were the speed and for upload_pcq I checked Src. Address as the classifier, rather than Dst. Address.

Simple Queues setup

This particular router is using the default Mikrotik network, so the General tab looks like this:

Under Simple Queues > Advanced, you’ll want to select the new pcq_upload and pcq_download queue types you just created:

That’s it. I’ve tested this numerous times and it seems to work quite well. For a single user, they get access to the full speed. When a second or third user is detected (actively using the internet, not just connected), speed is limited on the first device, etc.

Use cases

I figured out these settings because as a small, rural WISP, we offer lower speed packages (10Mbps or less) out of necessity. Rural DSL, at least in this region that I’m aware of, can be much slower than wireless for the same basic reason: cost and the ability to recover investments. If one of our customers has multiple simultaneous users and they have a Mikrotik we sold them, we can set this up as a courtesy. If you happen to live away from the city and/or don’t have access to 25Mbps-100Mbps+ internet and have several people online at the same time, these settings can help out a lot.

Further, if you’re in some kind of shared-internet environment, like an office, dorm, large public event or even an apartment complex, being able to split up the available internet speed fairly based on the number of active users can be exceptionally useful.

Related Articles:

Posted on Published

Leave a Reply

Your email address will not be published. Required fields are marked *