> > with full uploads running (cable, 40-50k/s), my ping rests anywhere
> > between 700 and 1200 ms. QoS might be the ticket that i heard on irc (as
> > opposed to the aforementioned fair queueing)
> > 
> 
> QoS RULES the school..
 
agreed.  and to tie this into linux...i use not QoS but cbq (class based
queueing.  maybe that really is just a type of QoS, dunno.) on my linux ip
masq router, attached directly to my cablemodem (att broadband, in colorado,
but should work ok for rr too).

it's not difficult these days, tho it was very undocumented in the earlier
days of kernel 2.4 && iptables.

start with the "cbq.init" script available from the freshmeat project of
the same name (http://freshmeat.net/projects/cbq.init).  it is internally
self-documenting and takes things out of the realm of needing to calculate
a string of hex numbers for iptables and allows you to designate rates,
percentages, etc in a somewhat intuitive and at least human-parseable
fashion.

then hit the bandwidth limiting howto via google or your favorite LDP
mirror and read up on the required kernel modules and utility packages,
get everything built/installed (suse 7.3 came with the required modules
and utilities), and start tweaking the settings.

i am now a very happy filesharer...i have limited outgoing bandwidth
for my http(s)d, and ftpd to ~25k/s total, leaving me a few for myself no
matter how many leeches are hitting me.

and, if i need faster upload i can turn down the allowed outgoing for
the servers, and my own outgoing ftp/scp is not limited due to the way
i set it up.

the only real hitch in setting this up was that it took me some time to
figure out how to get an ftp server to send only on specific ports...
i ended up using ncftpd (free version, <=3 connections at a time) and
turning off passive, and then all real data traffic finally flowed from
port 21.  the bsd ftp server that suse ships as in.ftpd has an option
in the man page to disable passive mode, but it is not implemented in the
source, beware =)

and as an example of how simple things are with cbq.init, here's the config
file that does all of my traffic limiting:

DEVICE=eth0,100Mbit,10Mbit              # interface, speed, weight
RATE=200Kbit                            # chosen-allowed thruput on cmodem
WEIGHT=20Kbit                           # recommended value
PRIO=5                                  # priority relative to other rules
RULE=:20,                               # outgoing traffic on these ports
RULE=:12345,                            #    is limited to $RATE above
RULE=:443,                              #    you can do a range of ports/IPs, 2
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://www.utacm.org/mailman/listinfo/siglinux

Reply via email to