Community discussions

MikroTik App
 
akosenko
newbie
Topic Author
Posts: 48
Joined: Fri Aug 21, 2009 8:56 am
Location: Lipetsk, Russia

Certain Bandwidth Equal Distribution between Users ???

Sun Aug 23, 2009 9:39 am

Hi, sorry for my english, my problem is How to make this: "Certain Bandwidth Equal Distribution between Users" in wiki there's no information or example, but i tried http://wiki.mikrotik.com/wiki/PCQ_Examples - Equal Bandwidth for a Number of Users - it's work, but my situation is - i have a Certain Bandwidth for my internet connection and i want equally distribute it among active users, ie if one active user, then his get full badwidth, if two active users, then they get full bandwidth/2 etc. Mikrotik routeros also make NAT for this users.

Please, give me right example of my situation or for "Certain Bandwidth Equal Distribution between Users".
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Re: Certain Bandwidth Equal Distribution between Users ???

Thu Nov 05, 2009 4:53 pm

Hi

I'd like to see the example of this too

thanks
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Re: Certain Bandwidth Equal Distribution between Users ???

Thu Nov 05, 2009 7:53 pm

OK I've found this "Equal bandwidth sharing among users" http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php for ROS 2.9

I'm a bit confused now according to the above example it would be poss to share 10mbps between say two users where one is having 8mbps and the other is having 2mbps but according to this http://wiki.mikrotik.com/wiki/PCQ the two users would both be getting equal 5mbps queues. This would become a problem with say 50 users divided up equally...

does that make any sense.

thanks
 
zahiy
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Tue Aug 11, 2009 6:17 pm
Location: Arara Village - Palestine

Re: Certain Bandwidth Equal Distribution between Users ???

Wed Dec 16, 2009 12:45 am

OK I've found this "Equal bandwidth sharing among users" http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php for ROS 2.9

I'm a bit confused now according to the above example it would be poss to share 10mbps between say two users where one is having 8mbps and the other is having 2mbps but according to this http://wiki.mikrotik.com/wiki/PCQ the two users would both be getting equal 5mbps queues. This would become a problem with say 50 users divided up equally...

does that make any sense.

thanks

Dont be confused, it DOES make sense, in this exmple it says that the total bandwidth will be equally divided for all users, if user A is downloading 2Mbs (which does not mean he only gets 2Mbs, it means that the remote server is giving him max 2Mbs) so user B can get the rest of the bandwidth (Again, he can get up to 8Mbs if he could).

in simple words, if your ISP gives you 10Mbs of bandwidth this does NOT mean you always getting 10Mbs, it can vary UP TO 10Mbs
 
akosenko
newbie
Topic Author
Posts: 48
Joined: Fri Aug 21, 2009 8:56 am
Location: Lipetsk, Russia

Re: Certain Bandwidth Equal Distribution between Users ???

Wed Dec 16, 2009 2:10 pm

OK I've found this "Equal bandwidth sharing among users" http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php for ROS 2.9
It's very bad example and it doesn't work with NAT. It works only with routing, not NAT. In my case this example doesn't work.

I'm found next way to realize equal distribution with NAT and PCQ:

- use GLOBAL-OUT for outgoing traffic in Queue Tree and mangle forward

- use Simple Queues without specified Max-Limit, Limit-At, Target and Distination addresses. Specified only interface or use interface all. - Why so - because
if your ISP gives you 10Mbs of bandwidth this does NOT mean you always getting 10Mbs, it can vary UP TO 10Mbs
and
Note! If your ISP cannot guarantee you a fixed amount of traffic, you can use just one queue for upload and one for download, attached directly to the interface:

/queue tree add parent=Local queue=pcq-download packet-mark=users
/queue tree add parent=Public queue=pcq-upload packet-mark=users
- for PCQ-Limit use big values, for example for 7500kbitps downstream I'm use PCQ-Limit = 1920 and pcq-rate=0, maybe it's wrong, but i can't found examples how to realize equal bandwidth sharing with NAT.

Who is online

Users browsing this forum: Amazon [Bot] and 31 guests