All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Gred/dsmark/htb
Date: Thu, 12 Jan 2006 21:43:57 +0000	[thread overview]
Message-ID: <43C6CD9D.1010409@dsl.pipex.com> (raw)
In-Reply-To: <648A21EA469E3848922D9860785CD5EF45670A@aspen-mail01.aspenview.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

  reply	other threads:[~2006-01-12 21:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-10 16:50 [LARTC] Gred/dsmark/htb comp.techs
2006-01-12 21:43 ` Andy Furniss [this message]
2006-01-18 16:49 ` comp.techs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43C6CD9D.1010409@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.