Re: PRIO inside HTB - trouble attaching filters correctly?

Linux Advanced Routing and Traffic Control

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

 






<snip>
Hello everyone!

I'm simply trying to put a PRIO inside an HTB (used to throttle). I've got
interactive traffic on the network that I want to give priority (VoIP +
Citrix + Video).

I've used the filters in a CBQ script fine, but am having trouble adjusting
them to this setup such that they properly assign the traffic.

tc qdisc del root dev $e

tc qdisc add dev $e root handle 1: htb default 3

tc class add dev $e parent 1: classid 1:1 htb rate $wanRate

# now that we've throttled the interface, we create the PRIO queue
tc qdisc add dev $e parent 1:1 handle 10: prio
# instantly creates classes 10:1, 10:2, 10:2

tc qdisc add dev $e parent 10:1 handle 1: pfifo
tc qdisc add dev $e parent 10:2 handle 2: pfifo
tc qdisc add dev $e parent 10:3 handle 3: sfq
</snip>

Fixed! The problem is that htb was not seeing any of the rules that I
applied to the lower stuff, so it wasn't forwarding traffic there.

The fix:

tc qdisc add dev $e root handle 1: htb default 1

By saying default 1, all htb traffic gets forwarded to classid 1:1, which
has the PRIO queue attached.

-Ron

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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