From: Werner Almesberger <wa@almesberger.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Structuring my shaping (fwd)
Date: Sun, 20 Oct 2002 04:20:51 +0000 [thread overview]
Message-ID: <marc-lartc-103508775725057@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103489653022215@msgid-missing>
Hayden Myers wrote:
> I still don't understand how I can have multiple classes with a different
> filter for each class and then change one of the filters without blowing
> away the rest and having to have different priorities. I'm shaping
> traffic between users so all filters should have the same priority.
First of all, you need to distinguish between filters and filter
elements. iproute2/tc makes this distinction rather vague, but
it's still there.
Filters are organized in lists at qdiscs or classes. Within each
such list, they are unique with respect to protocol and priority.
So you can't have multiple filters with the same priority. Note
that the filter priority has nothing to do with the priority of
the class in the qdisc.
If any of this sounds confusing to you, you may want to have a
quick look at one of the following two documents:
ftp://icaftp.epfl.ch/pub/people/almesber/pub/tcio-current.ps.gz
ftp://icaftp.epfl.ch/pub/people/almesber/junk/tc-04FEB2001-0.tar.gz
(just ignore the implementation bits).
You could parent filters at classes, but this still implies some
evaluation order, only that this order now depends on subtle
qdisc internals. Also, not all qdiscs let you do this (e.g.
sch_prio doesn't).
> Anybody else have problems changing/deleting filters? I see some messages
> on the net but none have responses. I saw something about u32h but his
> examples give me RTNETLINK: invalid argument messages. This is beginning
> to irritate me highly.
Why don't you try to write a small script that produces the
problem, run it through tcsim (tcsim enables all traffic control
elements, so there are no problems with things being
unconfigured, modules missing, bad versions of iproute2/tc,
etc.), and if the problem still occurs with tcsim, post your
script to the list ?
To run your script with tcsim, simply do
$ tcsim -v
dev eth0 // or whatever device your script is for
tc qdisc add dev eth0 ...etc...
^D
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2002-10-20 4:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-17 23:14 [LARTC] Structuring my shaping Hayden Myers
2002-10-18 6:38 ` Stef Coene
2002-10-19 19:59 ` [LARTC] Structuring my shaping (fwd) Hayden Myers
2002-10-19 23:41 ` Stef Coene
2002-10-20 2:37 ` Folke Aeon
2002-10-20 4:20 ` Werner Almesberger [this message]
2002-10-21 3:45 ` Alexey Talikov
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-103508775725057@msgid-missing \
--to=wa@almesberger.net \
--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.