Share Bandwidth equally in between Users using PCQ

Hi;

I have a scenario where I want to share bandwidth in between users, say I have 2 Mbps download and 1 Mbps upload and I want to share it equally, but in case if the number of users get changed I want mikrotik to dynamically recalculate the available bandwidth and share it equally in between users

2 Mbps -------2 users = 1Mbps per each;

now in case number of users became 4, 512 kbps per each, I need this to be done dynamically

please help me out with this and how can I check if my configuration is correct ? how to test it?

Use PCQ. It behaves this way by default.

http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ#PCQ_Rate_Examples

thanks for your reply…

I am using it and had put the PCQ-rate to be 0 as per the manual it should share whatever BW available in between users, but how to make sure what I did is correct or is taking affect? , where in Mikrotik I can prove this ?

As explained on the linked wiki page, please make sure you specify either pcq-rate, or max-limit. In your case, you should be specifying max-limit= to ensure proper PCQ behaviour.

Test it however you wish. I use multiple test PCs to generate traffic and watch the throughput.

yes I used the rate to be 0 and the max limit to be 512 kbps for example, and regarding the test I did the same as you but I think it can’t guarantee to me that the BW sharing is correct there is should a common point (for example in Mikrotik itself) to see how much each device is consuming

Sorry; To my knowledge, there is not.

thanks for your reply…

in my case I put rate = 0 so that is divide the BW dynamically, and put max limit to be 480 kbps so that the total BW doesn’t exceed 480 kbps, but when I monitor the queue status from queue tab—> queue tree I see the Avg. rate raise more than the max limit so I could see it goes some times up to 490 or 510 sometimes and cross the max limit (480 kbps)

This is normal. It can fluctuate due to burst traffic and the size of the queue.