From: "Michael T. Babcock" <mbabcock@fibrespeed.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] more on cbq parameters ,further CBQ/tc doc,
Date: Mon, 10 Dec 2001 05:22:41 +0000 [thread overview]
Message-ID: <marc-lartc-100796181809479@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100796090708355@msgid-missing>
On Sun, Dec 09, 2001 at 09:06:47PM -0800, Don Cohen wrote:
> > To agree with you, AFAICS, the correct way to deal with this is to specify
> > the root bandwidth as the maximum physical bandwidth on the interface, then
> > split it down using classes that have rates set to the expected rates.
>
> It sounds like you're agreeing with Bert but I think you're really
> agreeing with ME!
No -- I agreed with both of you at some level. In fact, what I should have
pointed out is that I believe the root qdisc should have its bandwidth set
to the physical bandwidth of the device.
According to Radhakrishnan*, for a qdisc:
* bandwidth represents the maximum bandwidth that is available to the
queuing discipline owned by this class.
* rate represents the bandwidth that is allocated to this class. The
kernel does not use this directly. It uses pre-calculated rate
translation tables.
*See http://qos.ittc.ukans.edu/howto/ for an old HOWTO.
> > On a 100Mbit card connected to a 256kbit line, I used something like:
> >
> > tc qdisc add dev eth0 root handle 1: cbq \
> > bandwidth 100Mbit avpkt 1000
^^^Device bandwidth
> > tc class add dev eth0 parent 1:0 classid 1:1 cbq \
> > bandwidth 100Mbit rate 256kbit [...]
> > tc qdisc add dev eth0 parent 1:1 handle 10: cbq \
> > bandwidth 256kbit allot 1514 avpkt 1000
^^^Link bandwidth
> This bandwidth (256 above) is NOT the physical device bandwidth.
It sure is when the ISDN modem can't do more than 256Kbit ... ;-)
> Great. So maybe you should tell us what the value is supposed to mean!
No, I'm not that smart -- use Google.
> > Reordering happens on a mass scale (packets often go out in a different order
> > than they were received / generated) but not on a per-qdisc scale (packets
> > go out 'in order' within an SFQ queue or within a CBQ queue). Its quite
> No, that's not true either. Within SFQ the packets in one "flow" will
> not be reordered, within a CBQ class, CBQ itself won't reorder them
> but of course the child qdisc might.
Where exactly did you disagree with me there? 'Not on a per-qdisc scale' seems
to expand to both your statements. An SFQ 'flow' is a queue of packets, but
it is not a queuing discipline -- I specified that the queue would not be reordered
but that different queues would have their packets pulled off the qdisc in a
potentially different order from the order they were originally queued up in.
--
Michael T. Babcock
CTO, FibreSpeed Ltd. (Hosting, Security, Consultation, Database, etc)
http://www.fibrespeed.net/~mbabcock/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next prev parent reply other threads:[~2001-12-10 5:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-10 5:06 [LARTC] more on cbq parameters ,further CBQ/tc doc, Don Cohen
2001-12-10 5:22 ` Michael T. Babcock [this message]
2001-12-10 6:47 ` Stef Coene
2001-12-10 12:11 ` bert hubert
2001-12-10 13:48 ` Michael T. Babcock
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-100796181809479@msgid-missing \
--to=mbabcock@fibrespeed.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox