From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Sat, 25 Feb 2006 15:01:02 +0000 Subject: Re: [LARTC] Shared ADSL SHAPER Message-Id: <4400712E.5060307@dsl.pipex.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Rasmus Melgaard wrote: > Hi, >=20 > I'm trying to make a shaper / firewall to improve sharing of bandwidth on= a=20 > ADSL (3mbit down / =BD mbit up) >=20 > Since the ADSL is very asymmetric, down is unimportant, I make a ingress = rate=20 > limit shaper to ensure, all shaping is at the Shaper, and not on the Rout= er=20 > or the ISP. >=20 > The Idea is then to make one HTB hierarchy and have each client (IP) filt= ererd=20 > and put in a child-HTB queue. This is the main idea, I have added prio to= =20 > each HTB-child to keep priorities for each client. >=20 > I currently use a reduced setup with total-uplink limited to 160kbit, and= i=20 > run first the firewall script (first) and then the Shaper script, below. >=20 > The problem is know that if a take Azureus, bittorrent client, and let it= go=20 > (no uplink limitation), it now kills its own downlink speed. If I limit t= he=20 > uplink speed in Azureus the downlink will grow again, it is quiet obvious= .=20 >=20 > I've tried adding some trick from the net, to especially improve ACK=20 > performance, but it hasn't helped. I haven't checked the script but assuming it's OK I think that this=20 could be fixed - I use the python client and it seems OK. When you back off you will get fairness from the client - so you should=20 use sfq. You will need to priorotise small packets - I use < 128. You also need to limit the length of the sfq to say 20 - 30 so that you=20 get plenty of drops and less acks for the download get piggybacked on=20 the upload packets - bittorrent uses tcp full duplex which makes it a=20 bit of a special case for shaping. Always remember that unless you patch/use overhead parameters that you=20 need to back off from the advertises link rate. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc