From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Wed, 20 Jul 2005 18:56:03 +0000 Subject: Re: [LARTC] Transfer rate above the desired (tc+htb) Message-Id: <42DE9E43.7@dsl.pipex.com> List-Id: References: <3941d81c0507201042563b5e45@mail.gmail.com> In-Reply-To: <3941d81c0507201042563b5e45@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Alvaro Motta wrote: > Hi folks. >=20 > I started to play with tc+htb last week, and I must confess that this > thing is really driving me nuts. >=20 > All we want to do is control bw, with no borrowing. >=20 > In order to get the feeling on this subject, I have setup the > following test bed. >=20 > ---A---B---C--- >=20 > On B: eth0 connecting A and eth1 connecting C. >=20 > The script. >=20 > tc qdisc del dev eth0 root > tc qdisc add dev eth0 root handle 1: htb default 50 > tc class add dev eth0 parent 1: classid 1:1 htb rate 32kbit ceil 32kbit > tc filter add dev eth0 protocol ip parent 1:0 prio 100 u32 match ip > src 10.4.0.0/16 match ip dst 0.0.0.0/0 classid 1:1 Should be src 192.168.0.0/24. Andy. >=20 > If I try to transfer a 1M file from C to A: >=20 > [root@localpost tmp]# wget 192.168.0.23/1M > --09:22:32-- http://192.168.0.23/1M =3D> `1M.8' > Connecting to 192.168.0.23:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 1,024,000 [text/plain] > 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 1,024,000 183.12K/s ETA 00= :00 > 09:22:38 (182.88 KB/s) - `1M' saved [1,024,000/1,024,000] >=20 > Wasn't it supposed to be around the 32KB/s? >=20 > If I play with the numbers (rate=CEil) I get the following results: > 128k =3D> 404.78 KB/s > 64k =3D> 337.9 KB/s > 16k =3D> 68.86 KB/s > 8k =3D> 31.12 KB/s > 1k =3D> 3.77 KB/s >=20 > I even tried to set the rate to 1kbps in root, but also led to pretty > much the same results. >=20 > With no qdisc, the rate will go close to 1000 KB/s >=20 > B machine: > 2.6.11-1.1369_FC4 > iproute-2.6.11-1 > TC HTB version 3.3 >=20 > I have no clue on what I am doing wrong. Could anyone browse the above > script and give me hint? >=20 > Thanks in advance, >=20 > AL > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >=20 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc