Ehud Shabtai
2007-Feb-18 11:01 UTC
Modifying traffic shaping rates according to the amount of active users
Hi, I''m trying to divide my bandwidth between different services, but I''d like to take into account the number of active users. For example, l want divide my bandwidth between HTTP and SMTP and guarantee HTTP 80% of the bandwidth. However, I have many users on my system (tens of thousands) and if only 1% of my active users are using HTTP (and the other 99% SMTP), I''d like somehow to change the HTTP rate to a lower limit. Is there any way to do it automatically, assuming that each user has a different IP? Thanks, -- Ehud Shabtai http://www.freemap.co.il/map/ _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Andrew Beverley
2007-Feb-18 11:58 UTC
Re: Modifying traffic shaping rates according to the amount of active users
> I''m trying to divide my bandwidth between different services, but I''d > like to take into account the number of active users. > > For example, l want divide my bandwidth between HTTP and SMTP and > guarantee HTTP 80% of the bandwidth. > > However, I have many users on my system (tens of thousands) and if > only 1% of my active users are using HTTP (and the other 99% SMTP), > I''d like somehow to change the HTTP rate to a lower limit. > > Is there any way to do it automatically, assuming that each user has a > different IP?How about use HTB? Set the HTTP guaranteed rate to 80%, and the upper (ceil) limit of other classes to 100%. This then means that if HTTP is not using 80% of your link, then the spare bandwidth not used will be shared between the other classes. Andy Beverley
Ehud Shabtai
2007-Feb-18 12:25 UTC
Re: Modifying traffic shaping rates according to the amount of active users
On 2/18/07, Andrew Beverley <andy@andybev.com> wrote:> > I''m trying to divide my bandwidth between different services, but I''d > > like to take into account the number of active users. > > How about use HTB? Set the HTTP guaranteed rate to 80%, and the upper > (ceil) limit of other classes to 100%. This then means that if HTTP is > not using 80% of your link, then the spare bandwidth not used will be > shared between the other classes.I''m trying to avoid a situation where a small group of users get most of the bandwidth. If just 1% of my active users are using HTTP, then I''d like to set its rate to 10%. If 10% of the active users are using HTTP than limit HTTP to 50%, etc'' up to 80%. I''m trying to set dynamic rate limits according to the distribution of IP addresses. -- Ehud Shabtai http://www.freemap.co.il/map/
Flechsenhaar, Jon J
2007-Feb-19 17:02 UTC
RE: Modifying traffic shaping rates according to the amount ofactive users
Based on your requirements I would use HTB. Ceil (the maximum borrowed rate) HTTP traffic to 80% of your bandwidth in one class. In the other class ceil rate to 20%. If HTTP needs more bandwidth or SMTP they can borrow between each other. Example: 40% SMTP 60% HTTP - HTTP class will loan its additional bandwith to the SMTP class based on the parent class rate. initial parent 100 kbps Borrowing class 1 - 80 kbps - 40 class 2 - 20 kbps - 60 Hope this helps. Jon Flechsenhaar Boeing WNW Team Network Services (714)-762-1231 202-E7 ________________________________ From: Ehud Shabtai [mailto:eshabtai@gmail.com] Sent: Sunday, February 18, 2007 3:02 AM To: lartc@mailman.ds9a.nl Subject: [LARTC] Modifying traffic shaping rates according to the amount ofactive users Hi, I''m trying to divide my bandwidth between different services, but I''d like to take into account the number of active users. For example, l want divide my bandwidth between HTTP and SMTP and guarantee HTTP 80% of the bandwidth. However, I have many users on my system (tens of thousands) and if only 1% of my active users are using HTTP (and the other 99% SMTP), I''d like somehow to change the HTTP rate to a lower limit. Is there any way to do it automatically, assuming that each user has a different IP? Thanks, -- Ehud Shabtai http://www.freemap.co.il/map/ _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc