LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-27-2008, 09:26 AM   #1
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 212
Blog Entries: 1

Rep: Reputation: 33
How to distribute Network bandwidth between Network clients dynamically ?


Hello all,

I am running a IPTABLES + Squid environment.

I want to distribure Network Bandwidth (mostly internet connectivity) over no. of clients dynamically. By means of dynamically,

e.g.
Total B/w : 1 mbps
If no. of clients = 50 then, each client can use max 1mb/50 = 20 kbps
If no. of clients = 20 then, each client can use max 1mb/20 = 50 kbps

Note : No. of clients should be decided runtime without user interaction.

How can i achieve this using iptables rules ?

Any pros/cons for this type of environment ?

I am start searching on the net for same, but your help will be definitely useful.

Thanks in advance,
 
Old 02-27-2008, 09:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
with all due respect that's a horrible horribile way to allocate bandwidth. if you do that you'll waste about 90% of your potential bandwidth at any one time. if one user isn't currently downloading anything why should that bandwidth not be used by another use? that's why your ADSL service has a contention ratio. Would you rather have a dedicated 100k link or a shared 10mb link with 100kbps guarenteed?

traffic shaping at ip level is reasonably easily done via tc / htb: http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm and within squid you have delay pools to explore. are you only interesting in proxied web traffic?

Last edited by acid_kewpie; 02-27-2008 at 09:35 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network bandwidth limiting - how to limit the whole network sKAApGIF Linux - Networking 2 01-07-2010 04:12 PM
network bandwidth entz Linux - Networking 1 11-17-2007 07:16 PM
Distribute updates to settings on a Debian based network (Lots of opinions wanted) amon Debian 0 04-11-2006 04:54 PM
How do i monitor my network bandwidth krishvij Linux - Networking 4 04-27-2005 04:47 AM
Network bandwidth 1/2 what it should be geniarse Linux - Networking 4 09-21-2004 09:02 AM


All times are GMT -5. The time now is 05:53 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration