I have a friend with a bandwidth sharing problem. There are two linux boxes (one Debian Sarge, one SuSE 9.3) attached to an old Linksys 10/100 wired router on cable internet (3Mbps confirmed download speed). When the Debian box is downloading a large file, it hogs all the bandwidth, and the SuSE box is very slow on the internet. Is there an easy way to limit download speed on one or both boxes to make them share nicely? I looked through the manual for the router, and I don't see a way to do it there. If there's not an easy way to do it, I'd still like to hear the difficult way to do it. Thanks, Greg
--- Gregory Avedissian <gma2006@verizon.net> wrote:
Is there an easy way to limit download speed on one or both boxes to make them share nicely? I looked through the manual for the router, and I don't see a way to do it there. If there's not an easy way to do it, I'd still like to hear the difficult way to do it.
The buzzword to read up on is "traffic shaping". Assymetry is going to be a problem -- while you have a lot of control over what you transmit, you don't have so much control over what the other end transmits, but that's what you really want to throttle. --Andre __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Since my home upload speed is relatively slower, I use a modified ipshaper script to prioritize the outgoing traffic (web, ssh, udp...). This is done with the tc command and runs on a linux firewall, but also depends on iptables to classify the traffic. You could do the same for downloading, it just drops incoming packets when rate ceilings are reached for that classification, forcing the sender to throttle down. Of course this runs on a linux box tho. Have you considered replacing the linksys? This would allow you to split the bandwidth, and when one host needed more, would "borrow" it from the other if it wasn't using it. If the other host was/is, then too bad, it is stuck at that rate. More info is here: #!/bin/sh # # ipshaper - DSL/Cable modem outbound traffic shaper and prioritizer. # Based on the ADSL/Cable wondershaper (www.lartc.org) # -Beaty On 4/27/06, Andre Lehovich <andrel@yahoo.com> wrote:
--- Gregory Avedissian <gma2006@verizon.net> wrote:
Is there an easy way to limit download speed on one or both boxes to make them share nicely? I looked through the manual for the router, and I don't see a way to do it there. If there's not an easy way to do it, I'd still like to hear the difficult way to do it.
The buzzword to read up on is "traffic shaping". Assymetry is going to be a problem -- while you have a lot of control over what you transmit, you don't have so much control over what the other end transmits, but that's what you really want to throttle.
--Andre
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (3)
-
Andre Lehovich
-
Beaty McCloud
-
Gregory Avedissian