can i do this in MT

hi guys

my Internet BW is 512kps down /256kps up
i need to divid Equally the BW for active users Automatically
EX
when 10 users is active the BW for each one is 51.2kps down / 25.6kps up
when 20 users is active the BW for each one is 25.6kps down / 12.8kps up

thanx

I think pcq is what you need :wink:

http://wiki.mikrotik.com/wiki/PCQ_Examples

Yes, mrz your link is good. But mr wissammohamed says that he want to flexible his connection.. ex : 10 connextion or 20 connection, the entire network must have the equal bw. Can anyone suggest the script for this??, coz i didn’t understand about how to script… :laughing:

this is the solution

just a question about PCQ :

does PCQ only divide the connections equally , what if there is some connections are much higher in download rate ?

You don’t need scripts at all, PCQ adds dynamic queue for each active user, and divides available bandwidth equally among all users.

does PCQ only divide the connections equally , what if there is some connections are much higher in download rate ?

Lets say we have 3 users and total bandwidth is 3mbit/s.
Users one and two are browsing the web, reading emails etc., they both are using (lets say) 1Mbit/s, not more. Third user is downloading something and he gets 2Mbit/s (all bandwidth that is not used)
But if all three users want to download something at the same time, they all get 1Mbit/s, as PCQ dynamically equalizes traffic.

thanx for everyone whos replay to me

i cearte this rule from this example
http://wiki.mikrotik.com/wiki/PCQ_Examples

[admin@MikroTik] queue> simple print
Flags: X - disabled, I - invalid, D - dynamic
0 name=“queue2” target-addresses=192.168.100.0/24 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=4 queue=PCQ_upload/PCQ_download limit-at=0/0 max-limit=0/0 total-queue=default-small

this rule divid the BW equaly to my active users
i apply this rule two days ago
when i check my users speed i see that its equal to 60 kps

even if the number of active users is 20 or 10 5 or 1 user
the speed of the active user is equal to 66kps

where is my error in my rule

note i need from this rule to divid the BW equaly to my active users
for ex
my BW is 3m and i have 3 active users
the BW divid to them equaly (each user 1m)
and when one user is active ( he take all the BW)
thanx for everyone

Don’t make duplicate posts. Your question was already asked and answered in another topic.