Re: Gred/dsmark/htb

Linux Advanced Routing and Traffic Control

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

 



comp.techs wrote:
Hi, I am trying to get assured forwarding/expedited forwarding with gred and htb working. Below is the script I am using.
The following steps are what I thing is how the script works. My problem is that if I remove the HTB qdisc from the script and have the GREDS parent as the dsmark it works, but when I add the htb as a parent of GRED and DSmark the parent of htb it does not work?
Any suggestion appreciated.
thx jason
1. The DS field is marked by iptables in prerouting/mangle to the appropriate class. 2. DSMark masks the ds and copies ths dscp to the tcindex field. 3. filters are selected as per what dscp there handle is.
 4. the minor of the filter is returned back to the dsmark and copied to the tcindex
#!/bin/sh
tc qdisc del dev eth0 root
tc qdisc add dev eth0 handle 1:0 root dsmark indices 16 set_tc_index
tc filter add dev eth0 parent 1:0 protocol ip prio 1 tcindex \
mask 0xfc shift 2 pass_on
#af class 1

I think all the filters below here should be on 2:0

tc filter add dev eth0 parent 1:0 protocol ip prio 1 \
handle 10 tcindex classid 1:11
tc filter add dev eth0 parent 1:0 protocol ip prio 1 \
handle 12 tcindex classid 1:12
tc filter add dev eth0 parent 1:0 protocol ip prio 1 \
handle 14 tcindex classid 1:13
#af class 2

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