From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Fri, 29 Apr 2005 19:08:57 +0000 Subject: Re: [LARTC] Packets Going to default class Message-Id: <42728649.9070402@dsl.pipex.com> List-Id: References: <002601c54bc0$848f6040$097d3fca@southern> In-Reply-To: <002601c54bc0$848f6040$097d3fca@southern> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org hareram wrote: > Hi > > I have tested with FC3 but iam not able get any good results on that. > in the list some one recomend me that > 3.17 HTB should work > > I saw latest FC4 test2 has the HTB 3.17 with iptables 1.3.0 > > i have install in my P4 box, and trying to test > > when iam uploading its working perfect, but when iam downloading its > going to default class > can some one experinced the same problem > > below is the my config > > $TC qdisc add dev $IFACE root handle 1: htb default 15 > $TC class add dev $IFACE parent 1: classid 1:1 htb rate ${CEIL}kbit ceil > ${CEIL}kbit > $TC class add dev $IFACE parent 1:1 classid 1:10 htb rate 512kbit ceil > 512kbit prio 0 > $TC class add dev $IFACE parent 1:1 classid 1:15 htb rate 256kbit ceil > 256kbit prio 0 > $TC qdisc add dev $IFACE parent 1:10 handle 10: sfq perturb 10 > $TC qdisc add dev $IFACE parent 1:15 handle 15: sfq perturb 10 > $TC filter add dev $IFACE parent 1:0 protocol ip prio 0 handle 10 fw > classid 1:10 > $TC filter add dev $IFACE parent 1:0 protocol ip prio 0 handle 15 fw > classid 1:15 > > $TC qdisc add dev $NFACE root handle 2: htb default 40 > $TC class add dev $NFACE parent 2: classid 2:1 htb rate ${CEIL}kbit ceil > ${CEIL}kbit > $TC class add dev $NFACE parent 2:1 classid 2:20 htb rate 512kbit ceil > 512kbit prio 0 > $TC class add dev $NFACE parent 2:1 classid 2:40 htb rate 256kbit ceil > 256kbit prio 0 > $TC qdisc add dev $NFACE parent 2:20 handle 20: sfq perturb 10 > $TC qdisc add dev $NFACE parent 2:40 handle 40: sfq perturb 10 > $TC filter add dev $NFACE parent 2:0 protocol ip prio 0 handle 20 fw > classid 2:20 > $TC filter add dev $NFACE parent 2:0 protocol ip prio 0 handle 40 fw > classid 2:40 > > $I -t mangle -A FORWARD -s a.b.c.d/24 -d 0/0 --j MARK --set-mark 10 # > $I -t mangle -A FORWARD -s 0/0 -d a.b.c.d/24 --j MARK --set-mark 20 # > > the out put show like below for the download... here can observe that > all the traffic going to 2:40 instead of 2:20 > could some one telling what is wrong, or is still problem with 3.17 too > or any problem with iptables > > any suggestions will be great I can't see why that doesn't work for you - A copy and paste of it works OK for me. You don't really need the filters for default classes and it's best to delete the root qdisc before you add a new one. Maybe you still had some filters around from an earlier test that messesd things up. I am using the latest TC, iptables and 2.6.12-rc1. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc