Networking Forums

Networking Forums > Computer Networking > Linux Networking > load balancing / sharing internet connection query

Reply
Thread Tools Display Modes

load balancing / sharing internet connection query

 
 
Jeroen Geilman
Guest
Posts: n/a

 
      08-07-2003, 05:19 PM
nospam wrote:

> Could someone please tell me how, or point to appropriate fm, to load
> balance between several people sharing the same internet connection
> (I wish to share with my flatmates), so that each machine gets a slice
> of whatever bandwidth is available, and no one gets to hog the lot?


Yes, read the Advanced Routing Howto on www.tldp.org:

http://www.tldp.org/HOWTO/Adv-Routin...rtc.qdisc.html

Do NOT expect to grep this in one reading !

It's quite complicated, but it can be done...

> also could I have two connections, and share those amongst multiple
> clients?


Again, TLDP is your friend:

http://www.tldp.org/HOWTO/Adv-Routin...ple-links.html

and:

http://www.tldp.org/HOWTO/Adv-Routin...loadshare.html

> regards max


Received and accepted ;-)

--
Jeroen Geilman

On KNode, thankfully...
 
Reply With Quote
 
 
 
 
Steve Wolfe
Guest
Posts: n/a

 
      08-07-2003, 08:39 PM
> Do NOT expect to grep this in one reading !

Would you, by chance, mean "grok"?

steve



 
Reply With Quote
 
max barwell
Guest
Posts: n/a

 
      08-08-2003, 03:39 PM
Could someone please tell me how, or point to appropriate fm, to load
balance between several people sharing the same internet connection
(I wish to share with my flatmates), so that each machine gets a slice
of whatever bandwidth is available, and no one gets to hog the lot?

also could I have two connections, and share those amongst multiple
clients?

regards max
 
Reply With Quote
 
joseph philip
Guest
Posts: n/a

 
      08-13-2003, 05:03 PM
On Sat, 09 Aug 2003 03:39:51 +1200, max barwell wrote:

> Could someone please tell me how, or point to appropriate fm, to load
> balance between several people sharing the same internet connection (I
> wish to share with my flatmates), so that each machine gets a slice of
> whatever bandwidth is available, and no one gets to hog the lot?
>
> also could I have two connections, and share those amongst multiple
> clients?
>
> regards max



After going through the tc man page etc, you need a plan. The easiest
would be to create a class that takes up the full upload bandwidth. Then,
attach stochastic fairness queuing to it. SFQ does some magic so one
stream ( the one dl-ing iso's, say) does not drown out your shoutcast
stream.



#!/bin/bash
TC=/sbin/tc
EXT=ppp0
MAXRATE="160kbit"
BW="bandwidth $MAXRATE"
AVPKT="avpkt 1200"
ALLOT="allot 1400"

# Delete any old stuff hanging around - deleting the

# root removes all the sub qdiscs and classes

$TC qdisc del dev $EXT root 2> /dev/null >/dev/null

$TC qdisc add dev $EXT root handle 1:0 cbq $AVPKT $BW


# A root CLASS set to bandwidth we are capable of..

$TC class add dev $EXT parent 1:0 classid 1:1 cbq rate $MAXRATE $ALLOT
prio 5 $AVPKT $BW bounded isolated

###############################################
# Q U E U E D I S C IP L I N E S #
###############################################
#
# perturb : seconds to wait before changing
# hash function
# quantum values : 1492 1 packet
# 2984 2 packets
# 4476 3 packets
# 5968 4 packets
# 7460 5 packets

$TC qdisc add dev $EXT parent 1:1 sfq perturb 10 quantum 1492




You can also specify a ratio based distribution of bandwidth, which the
lartc.org has an example of.


x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 90,000 other groups
x-- Access to over 800 Gigs/Day - $8.95/Month
x-- UNLIMITED DOWNLOAD

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple NICs connected to the internet (not load balancing) domainrarr@googlemail.com Windows Networking 1 07-15-2008 08:08 PM
NLB on DC's for DNS load balancing BSweeney Windows Networking 10 07-25-2007 02:48 PM
Connection sharing query new pc replacing old SRT Home Networking 15 02-15-2007 11:51 PM
Load Balancing Phil Andersen Windows Networking 2 04-15-2004 08:16 PM
Load Balancing Multiple Internet Conenctions Neil Mowatt Linux Networking 1 12-04-2003 02:05 PM



1 2 3 4 5 6 7 8 9 10 11