I need help in configuring bandwidth controller on mikrotik. Following is my setup.
I have 20, 1mbps customers and total maximum bandwidth allowed at present is 3 Mbps between 20 customers.
My connection sharing ratio is 1:10
To share the speed equally between users i have following setup.
1 - USER AUTHENTICATES THROUGH PPPOE
2 - I CLASIFY THE TRAFFIC AND MARK THE PACKETS FOR THE TYPE OF BROADBAND CONNECTION
3 - I HAVE CREATED PCQ QUEUES FOR TYPE OF PLAN TO SHARE THE CONNECTION EQUALY BETWEEN USERS
4 - FINALLY I HAVE CREATED QUEUE TREE FOR UPLOAD and DOWNLOAD LIMITATIONS, WITH-LIMIT AT - 2Mbps AND MAX-LIMIT - 3Mbps
What I want to achieve is that each customer should not exceed 1 Mbps customer even though there is max of 3Mbps is available. Currently if there is only one user active then particular user will take all the available bandwidth (i.e. 3Mbps). This creates the problem for me as if there are more customers online then speed will be less and customers are complaining that they used to get 3Mbps and now its less. What i want to achieve is that each user should not exceed more than 1 Mbps speed even though more bandwidth is available.
i would suggest you set a pfifo queue (the default queue) for every customer (20 queues are not that much for a router) with max-limit 1Mbps, the parent of the 20 queues should have a max limit of 3Mbps or even better (3*0.90)Mbps just to be sure that packets don’t get queued in your ISP’s router. I don’t encourage using limit-at for the parent queue.
and this also means you have to mark the traffic of each client (20 or 40 rules in mangle chain, also no big deal for the router)
I am running ISP so users will not be static so above option is not valid for me.
Following is my setup however PCQ-RATE option doesn’t seem to be working. If one user is online he is talking all (3Mbps) bandwidth. What I want to achieve is that maximum bandwidth per user should not exceed 1Mbps.
I am running ISP and my customers are authenticating through PPPoE. They will get private IP in the range of 172.20.8.0/22 and access the internet through NAT. I have also other users in different ip range, different broadband plan, however to narrow down the problem I am pasting the config for one type of customer only.
users are not connected to ether2, users are connected to pppoe interfaces, one interface per user so…
/ip firewall mangle
add chain=forward action=mark-packet new-packet-mark=1024-upload src-address=172.20.8.0/22
add chain=forward action=mark-packet new-packet-mark=1024-download dst-address=172.20.8.0/22