All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Hasenack <ahasenack@terra.com.br>
To: lartc@vger.kernel.org
Subject: [LARTC] calculating burst for TBF
Date: Mon, 20 Feb 2006 13:35:08 +0000	[thread overview]
Message-ID: <20060220133506.GA3374@mandriva.com> (raw)

I'm using tc from iproute-2.6.15 with a 2.6.12 kernel.

I was testing the effects of the burst parameter in a tbf qdisc.
Basically, I was testing this statement from the tc-tbf(8) manpage:

"If your buffer is too small, packets may be dropped because more tokens arrive
per timer tick than fit in your bucket.  The minimum buffer size can be
calculated by dividing the rate by HZ."

So, for a 200kbit rate on intel, this would yeld me a minimum burst of 2000bits, or
250 bytes.

I then do this:
tc qdisc add dev eth0 handle 1: root tbf latency 50ms burst 250b rate 200kbit

but all packets are dropped. I then rise burst to 300b, 400b, even 900b and it
is still not working. It only starts working when I raise it to 2000b. Which,
besides being the wrong unit (bits versus bytes), is the result of the rate/HZ
calculation.

The tc(8) manpage says that "b or a bare number = bytes", but it seems this parameter
ends up being bits? If not, what is wrong then?

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2006-02-20 13:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060220133506.GA3374@mandriva.com \
    --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.