From: "Bc.Slavomir Danas" Date: Wed, 14 Feb 2007 13:50:31 +0000 Subject: [LARTC] HTB policing affects shaping performance? Please, help. Message-Id: <20070214135031.21a9765c@ns1.ctn.sk> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1989194897==" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============1989194897== Content-Type: multipart/alternative; boundary="----------flower-power-b573e2154f258d8c6f9c98594fbaf429" This is a multi-part message in MIME format. ------------flower-power-b573e2154f258d8c6f9c98594fbaf429 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This is my simple situation: I want to policy download and shape upload going through my router. It has two interfaces: eth0 (10.4.10.222/24 connected to LAN) and eth1 (= 172.16.0.1/24 connected to my laptop). My setup: [eth1] tc qdisc add dev eth1 root handle 1: htb default 999 tc qdisc add dev eth1 parent 1: classid 1:1 htb rate 1Mbit tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 17= 2.16.0.2 flowid 1:1 [eth0] tc qdisc add dev eth0 root handle 1: htb default 999 tc qdisc add dev eth0 parent 1: classid 1:1 htb rate 1Mbit tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src = 172.16.0.2 flowid 1:1 I'm trying to access shared folders (samba) on ip 10.4.10.10 from my lap= top with ip 172.16.0.2. Everything works as expected when downloading or uploading (correctly sh= aped and policed at 1Mbit). But when I try to download and upload at the= same time, my speed drops down rapidly on both download and upload (app= rox. 350kbit and 550kbit). I tried to replace tc filter with iptables CL= ASSIFY but with the same result. What is the correct approach when configuring separate queues with guara= nteed rate without affecting each other=3F Running 2.6.19-gentoo-r5, iptables-1.3.5, iproute2-ss061214 Thanx in advance. Slavius. ------------flower-power-b573e2154f258d8c6f9c98594fbaf429 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This is my simple situation:
I want to policy download and shape uplo= ad going through my router.
It has two interfaces: eth0 (10.4.10.222/= 24 connected to LAN) and eth1 (172.16.0.1/24 connected to my laptop).My setup:
[eth1]
tc qdisc add dev eth1 root handle 1: htb default= 999
tc qdisc add dev eth1 parent 1: classid 1:1 htb rate 1Mbit
tc= filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 172.= 16.0.2 flowid 1:1
[eth0]
tc qdisc add dev eth0 root handle 1: htb = default 999
tc qdisc add dev eth0 parent 1: classid 1:1 htb rate 1Mbit
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 17= 2.16.0.2 flowid 1:1

I'm trying to access shared folders (samba) o= n ip 10.4.10.10 from my laptop with ip 172.16.0.2.
Everything works a= s expected when downloading or uploading (correctly shaped and policed a= t 1Mbit). But when I try to download and upload at the same time, my spe= ed drops down rapidly on both download and upload (approx. 350kbit and 5= 50kbit). I tried to replace tc filter with iptables CLASSIFY but with th= e same result.
What is the correct approach when configuring separate= queues with guaranteed rate without affecting each other=3F

Runn= ing 2.6.19-gentoo-r5, iptables-1.3.5, iproute2-ss061214

Thanx in = advance.

Slavius.
------------flower-power-b573e2154f258d8c6f9c98594fbaf429-- --===============1989194897== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1989194897==--