From: Stef Coene <mailing_staf@belgacom.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] more on cbq parameters ,further CBQ/tc doc,
Date: Mon, 10 Dec 2001 06:47:01 +0000 [thread overview]
Message-ID: <marc-lartc-100796691015908@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100796090708355@msgid-missing>
> > 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
> > 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
>
> This bandwidth (256 above) is NOT the physical device bandwidth.
>
> Whereas the only thing about bandwidth in
> http://www.ds9a.nl/2.4Routing/HOWTO//cvs/2.4routing/output/2.4routing-9.htm
>l#ss9.4 is:
> bandwidth
> The physical bandwidth of your device, also needed for idle time
> calculations.
>
> I see below that
>
> > tc-cbq.8
>
> now says, under CLASSES ...
>
> > bandwidth rate
> > This is different from the bandwidth specified when creating a CBQ disc.
> > Only used to determine maxidle and offtime, which are only calculated
> > when specifying maxburst or minburst. Mandatory if specifying maxburst
> > or minburst.
>
> Great. So maybe you should tell us what the value is supposed to mean!
I don't know exactly what the parameter does, but I know that you need to
specify it like Michael T. Babcock does to get CBQ working.
For the root qdisc this is indeed the physical link bandwidth. But if you
attach a qdisc to a class, this is the rate of the class. I suggest to
create a bounded class with rate = link bandwidth and attach a qdisc to it.
Attach all other class to this qdisc and it will work like you want. Trust
me, I tried it a lot ;-)
Stef
--
stef.coene@docum.org
More QOS info : http://docum.org/
Title : "Using Linux as bandwidth manager"
_______________________________________________
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 6:47 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
2001-12-10 6:47 ` Stef Coene [this message]
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-100796691015908@msgid-missing \
--to=mailing_staf@belgacom.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.