[plug] advanced routing
Craig Ringer
craig at postnewspapers.com.au
Fri Sep 26 14:27:30 WST 2003
> i have a 56k internet connection, and i was wondering if anyone had an
> idea of how to limit my bandwidth so i have at least 2k for webpages. i
> tried doing this using squid, but it started getting very messy when i
> had to use SOCKS for some programs. Then i stumbled across advanced
> routing and thought that it could be done using this method, only the
> how-tos on the net dont tell you very much so i didnt get very far.
I strongly suggest using the HTB traffic scheduler. The Linux Advanced
Routing Guide should help - http://lartc.org/ and http://www.tldp.org/
You'll find the HTB home page at http://luxik.cdi.cz/~devik/qos/htb/,
it's well worth a read. IMHO HTB is much nicer than CBQ to work with,
and it's integrated into (very) recent kernels.
I can send you a sample script I hacked out quickly, it's ugly, written
for my 512/128k ADSL, and totally comment free, but it might be of some
use. Oh, it's also hardcoded to my network - 4 primary hosts with static
IPs assigned via DHCP, 192.168.0.{2,3,4,5} with the firewall (not
included) as 192.168.0.1 .
Limitations: Hosts other than those hardcoded get the scraps from the
bottom of the bandwitdth bucket ; doesn't help network /latency/ under
high loads as much as I'd like (ie ssh interactive performance is still
marginal when the link is maxed, but marginal is better than type a
command then go for coffee); still not really tweaked to optimal
performance.
Nonetheless, the link goes from so loaded that web page loads time out
to fairly useable when the QoS rules are active. If only I could afford
1.5Mbps ADSL, I'd give the housemate responsable for 99% of the load a
fixed 512k and the rest of us the other megabit....
Craig Ringer
>
> can anyone shead some light onto the subject?
> Ryan
> _______________________________________________
> plug mailing list
> plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qos_init
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20030926/d36cc091/attachment.ksh>
More information about the plug
mailing list