LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2009, 01:58 PM   #1
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
How to distribute bandwidth across clients.


Is there any way to distribute bandwidth across 100 clients connected to internet through squid proxy server?

For example, if i want to divide 30Kbs to every client. And to some clients i want to allot 50KBs?

Or any iptables solution for that?

Cheers!!
 
Old 05-12-2009, 02:18 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Why would you want to do that? That's just going to waste the majority of the bandwidth you're paying good money for. If someone isn't using their strict 30kbps allocation, it just goes begging?? Use something like Delay Pools in squid which will allow for suitable amounts of bursting within limits, meaning that accessing small articles, up to a few meg will be able to get it nice and quick. If they start sucking down an iso then other more bursty traffic can leapfrog it to keep good speeds.
 
Old 05-12-2009, 02:35 PM   #3
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226

Original Poster
Blog Entries: 3

Rep: Reputation: 38
Thank you,

What i really want is:

I want to ensure the minimum bandwidth for each user.. lest say 30KB's for every client if they all use bandwidth simultaneously. And distribute the available bandwidth of offline clients to online clients.

And delay pools are for http traffic.. what to do for other traffic?


Cheers!!

Last edited by baig; 05-12-2009 at 02:36 PM.
 
Old 05-12-2009, 03:45 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you said you were going via squid. What else are you actually doing? You might rather check a shaping script like the really nice wondershaper. This is a script to implement a generic htb setup, which is the tool you'd generally turn to to be as strict as you want so also may be worth reading in its own right http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm

Note that proxied traffic will come from the address of the proxy, not the client, so you'd need to be applying lower level controls before the proxy, not after it.

Last edited by acid_kewpie; 05-13-2009 at 04:19 AM.
 
Old 05-13-2009, 04:18 AM   #5
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
What you want, as acid pointed, is traffic shaping. If you want to write your own scripts, or see how its done, I suggest you look at LARTC:
http://lartc.org/howto/lartc.qdisc.html
http://lartc.org/wondershaper/

Last edited by chitambira; 05-13-2009 at 04:19 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to distribute Network bandwidth between Network clients dynamically ? p_s_shah Linux - Server 1 02-27-2008 09:31 AM
which distribute paranoyakX Linux - Software 7 01-25-2006 10:01 AM
Clients BandWidth Calculation ahmad82pkn Linux - Networking 0 10-22-2005 08:38 AM
how do I limit bandwidth to my PROFTPD clients overproof Linux - Newbie 3 04-17-2005 11:34 AM
How to control the bandwidth by clients' MAC address(in REdHat 7.2)? yuzuohong Linux - Networking 1 05-12-2002 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration