How to Configure Fair Bandwidth Sharing for PPPoE Users on MikroTik RB4011 (RouterOS v7)?

I’m using a MikroTik RB4011 running RouterOS v7 to manage multiple PPPoE users. The goal is to ensure dynamic and fair bandwidth distribution — for example, if the total internet speed is 200 Mbps and 10 users are active, each should automatically get 20 Mbps. What is the best method to achieve this in RouterOS v7—using PCQ queues, Queue Trees, or a custom script? Also, how can I optimise it for performance without overloading the CPU?

How will your MikroTik know your total internet speed is 200?

Assuming you have one WAN only, yes some sort of queueing is an appropriate approach.
Read through these first - Queues - RouterOS - MikroTik Documentation
Then some vids
https://www.youtube.com/watch?v=tnzxrt6bgbs
https://www.youtube.com/watch?v=qWt0yh0udOw (, useful but dated, hasnt released his udpated version yet)

Then come back and ask more questions.

1 Like

Sure :slight_smile:

This is how my MikroTik will know that my WAN bandwidth is 600 Mbps. Basically I have to divide the load.

Divide what by what? 200Mb or 600Mb or NNN Mb by what? By current number of users

Do you offer dynamic max speed or static one? Where you get the number 200/600 from?

I want to dynamically allocate it. For example, my total bandwidth is 600 Mbps dedicated. If I have 20 users active, they should get equal bandwidth. If there are ten, they should get bandwidth in increments of 10.

Dont impose a rate-limit on the PPP connections, and impose a simple PCQ queue on your uplink with 200M or 600m or whatever the capacity is. PCQ will dynamically and equally allocate bandwidth.

1 Like

Or if you want to set hard limit, then set a queue with hard limit and in the user ppp login/logout script check the number of connections and change the limit in that queue to the new value each time when users logis in or out.