Re: Packets Going to default class

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

<snip>

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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux