From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?BERTRAND_Jo=EBl?= Date: Tue, 30 Oct 2007 09:21:46 +0000 Subject: Re: [LARTC] Some questions about HTB Message-Id: <4726F7AA.5060308@systella.fr> List-Id: References: <47262B0D.10106@systella.fr> In-Reply-To: <47262B0D.10106@systella.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org BERTRAND Jo=EBl wrote: > Hello, I think I have found my mistake... ... > # eth0 >=20 > tc qdisc add dev $PUBLIC_INTERFACE root handle 2: htb default 200 > tc class add dev $PUBLIC_INTERFACE parent 2: classid 2:1 \ > htb rate $MAX_PUBLIC_RATE burst 20k >=20 > tc class add dev $PUBLIC_INTERFACE parent 2: classid 2:200 \ > htb rate 16kbit > tc qdisc add dev $PUBLIC_INTERFACE parent 2:200 sfq perturb 10 >=20 > # 213.215.42.71 >=20 > tc class add dev $PUBLIC_INTERFACE parent 2:1 classid 2:71 \ > htb rate 1024kbps ceil 1024kbps burst 20k > tc qdisc add dev $PUBLIC_INTERFACE parent 2:71 handle 71: sfq perturb 10 > tc filter add dev $PUBLIC_INTERFACE protocol ip parent 2:71 \ should be tc filter add dev $PUBLIC_INTERFACE protocol ip parent 2: > prio 1 handle 71 fw flowid 2:71 >=20 > # 213.215.42.72 >=20 > tc class add dev $PUBLIC_INTERFACE parent 2:1 classid 2:72 \ > htb rate 512kbit > tc qdisc add dev $PUBLIC_INTERFACE parent 2:72 handle 72: sfq perturb 10 > tc filter add dev $PUBLIC_INTERFACE protocol ip parent 2:72 \ > prio 1 handle 72 fw flowid 2:72 >=20 > When I start for example a ftp connection (and only one) on=20 > 213.215.42.71, traffic shaping works fine (fw mark are set by iptables=20 > rules). When more than one connection are done, paquet transfert is very = > slow (~20 kbps even I specify 1024kbps). I suspect a mistake in my code=20 > but I don't know how fix it. I have tried to use quantum, r2q, burst,=20 > cburst without any success. Any idea ? Regards, JKB _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc