From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Thu, 12 Jan 2006 21:43:57 +0000 Subject: Re: [LARTC] Gred/dsmark/htb Message-Id: <43C6CD9D.1010409@dsl.pipex.com> List-Id: References: <648A21EA469E3848922D9860785CD5EF45670A@aspen-mail01.aspenview.org> In-Reply-To: <648A21EA469E3848922D9860785CD5EF45670A@aspen-mail01.aspenview.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc