From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Sun, 01 Sep 2002 08:44:39 +0000 Subject: Re: [LARTC] HTB shares equally when borrowing enabled :( Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Sunday 01 September 2002 01:04, Tak=E1cs B=E1lint wrote: > Hi, > > I'm fighting seriously with a most simple HTB setup. I'd like to share > the incoming 64kbps into 5 and 59 for two different machines under NAT. > HTB seems to hold the required limits when ceil is not set (no > borrowing), but when borrowing enabled it seems to share equally rather > then keeping the specified ratio. > My setup is below. A typical output of "tc -s -d qdisc show dev eth1" > and "tc -s -d class show dev eth1" is given. HTB seems to disobey the > specified rate (last entry: rate 40Kbit is set for 1:10 and 16466bps is > measured, while rate 472Kbit is set for 1:11 and rate 20755bps is > measured). > Setting the explicit bandwith (ceil=3D64kbps everywhere) does not work. > Playing with burst and cburst did not any change. You have to put a ceil of 64kbps everywhere so class 1:10 and 1:11 share th= e=20 same 64 kbps : run_tc class add dev eth1 parent 1: classid 1:1 htb rate ceil 64kbps run_tc class add dev eth1 parent 1:1 classid 1:10 htb rate 5kbps ceil 64kb= ps=20 prio 2 run_tc class add dev eth1 parent 1:1 classid 1:11 htb rate 59kbps ceil 64k= bps=20 prio 1 And if that's not working, try ceil=3D62kbps. You have to do this so YOU a= re=20 controlling the link and not the modem. And take sum of class =3D 62kbps. Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/