Robert Davidson
2002-Oct-23 19:26 UTC
Filters fail when encapsulating prio qdisc in cbq class
Hello all, I am trying to raise the priority of VoIP traffic, and am able to get it into the appropriate PRIO bands like so: /sbin/tc qdisc add dev eth0 root handle 2: prio bands 3 priomap 0 1 2 /sbin/tc qdisc add dev eth0 parent 2:1 handle 3: sfq /sbin/tc qdisc add dev eth0 parent 2:2 handle 4: sfq /sbin/tc qdisc add dev eth0 parent 2:3 handle 5: sfq /sbin/tc filter add dev eth0 parent 2: protocol ip prio 1 \ u32 match ip dst 10.0.0.20 flowid 2:1 /sbin/tc filter add dev eth0 parent 2: protocol ip prio 2 \ u32 match ip dst 10.0.0.2 flowid 2:2 /sbin/tc filter add dev eth0 parent 2: protocol ip prio 2 \ u32 match ip dst 0.0.0.0/0 flowid 2:0 However when I try to encapsulate the prio qdisc (see below), tc status reports that none of the packets are going into the bands. What am I missing? tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit # shape everything at $UPLINK speed - this prevents huge queues in your # DSL modem which destroy latency: # main class tc class add dev $DEV parent 1: classid 1:1 cbq rate ${UPLINK}kbit \ allot 1500 prio 5 bounded isolated tc qdisc add dev $DEV parent 1:1 handle 2: prio bands 3 priomap 0 1 2 tc qdisc add dev $DEV parent 2:1 handle 3: sfq tc qdisc add dev $DEV parent 2:2 handle 4: sfq tc qdisc add dev $DEV parent 2:3 handle 5: sfq tc filter add dev $DEV parent 2: protocol ip prio 1 \ u32 match ip dst 10.0.0.20 flowid 2:1 tc filter add dev $DEV parent 2: protocol ip prio 2 \ u32 match ip dst 10.0.0.2 flowid 2:2 tc filter add dev $DEV parent 2: protocol ip prio 3 \ u32 match ip dst 0.0.0.0/0 flowid 2:3 Many thanks to the contributors to lartc.org, docum.org and the wondershaper who have gotten me this far. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/