From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB and filters
Date: Mon, 17 Mar 2003 22:44:25 +0000 [thread overview]
Message-ID: <marc-lartc-104794115003404@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104793496727887@msgid-missing>
On Monday 17 March 2003 22:35, Stephane Ouellette wrote:
> Stef Coene wrote:
> >On Monday 17 March 2003 22:01, Stephane Ouellette wrote:
> >>Folks,
> >>
> >> after spending a lot of time experimenting with HTB, I found that
> >>filters cannot be attached to HTB classes...
> >>
> >>The class hierarchy I use is the following (for my upstream internet
> >> link):
> >>
> >>
> >> PRIO (with priomap that sends everything by default to
> >>class 1:3)
> >> / | \
> >> / | \
> >> / | \
> >> 1:1 1:2 1:3
> >> PFIFO PFIFO HTB qdisc (default to 4:100)
> >
> >The default class MUST be a leaf class. A leaf class is a class with no
> > child classes. If no filter is matched, the packet is dequeued in the
> > default class. This means that no filter is tested so your packets ends
> > in 4:100. The filters attached to 4:100 are never checked.
> >
> >Stef
>
> Stef,
>
> If I understand correctly, all filters related to the HTB leaf
> classes should be attached to the HTB qdisc.
No, I was only speaking about the default class. You have a filter that put
some packets in 4:200. The rest of the traffic goes to the default class
4:100. But the packets are immediatly dequeued in class 4:100 so the filters
attached to 4:100 are never checked. You can simulate a default class if you
add a u32 filter with src 0/0.
The default class is for unclassified packets.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-03-17 22:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-17 21:01 [LARTC] HTB and filters Stephane Ouellette
2003-03-17 21:12 ` Stef Coene
2003-03-17 21:35 ` Stephane Ouellette
2003-03-17 22:44 ` Stef Coene [this message]
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=marc-lartc-104794115003404@msgid-missing \
--to=stef.coene@docum.org \
--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.