From: Andreas <ahasenack@terra.com.br>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] why isn't 1:1 getting the traffic? [filter question]
Date: Fri, 24 Feb 2006 21:19:53 +0000 [thread overview]
Message-ID: <43FF7879.6070802@terra.com.br> (raw)
In-Reply-To: <20060224175729.GF3794@mandriva.com>
Jody Shumaker wrote:
>>tc qdisc del dev eth0 root > /dev/null 2>&1
>>tc qdisc add dev eth0 handle 1: root htb default 2
>>tc class add dev eth0 classid 1:1 parent 1: htb rate 100kbps ceil 100kbps quantum 1500
>>tc class add dev eth0 classid 1:2 parent 1: htb rate 90mbit ceil 90mbit quantum 1500
>
>
> You're defining 2 root classes to the HTB qdisc, while it should
> possibly have given an error, it seems to instead just put the first
> one, 1:1, into a state of limbo where its never used.
>
> This was fairly obvious looking at your tc statistics output, where it
> lists both 1:1 and 1:2 as roots with no parent. There can only be one
> valid root class.
Why? I need two virtual circuits. I don't want the 90mbit class
interfere with the 200kbit class: no lending, no borrowing.
> Should really set it up something like this with one main root:
> tc qdisc add dev eth0 handle 1: root htb default 2
> tc class add dev eth0 classid 1:0 parent 1: htb rate 90100kbps ceil
> 90100kbps quantum 1500
> tc class add dev eth0 classid 1:1 parent 1:0 htb rate 100kbps ceil
> 100kbps quantum 1500
> tc class add dev eth0 classid 1:2 parent 1:0 htb rate 90mbit ceil
> 90mbit quantum 1500
>
> Then I imagine your tc filter would actually work.
It actually works if I use a *leaf* class as the target of the filter
(see my subsequent email). But this contradicts the documentation, which
even mentions one could gain speed by adding further filters to other
classes besides a root one.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2006-02-24 21:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 17:57 [LARTC] why isn't 1:1 getting the traffic? [filter question] Andreas Hasenack
2006-02-24 21:19 ` Andreas [this message]
2006-02-24 23:01 ` Andreas Klauer
2006-02-25 3:36 ` gypsy
2006-02-25 11:45 ` Andy Furniss
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=43FF7879.6070802@terra.com.br \
--to=ahasenack@terra.com.br \
--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.