From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Question about htb class
Date: Mon, 23 Aug 2004 22:58:51 +0000 [thread overview]
Message-ID: <412A76AB.2080709@dsl.pipex.com> (raw)
In-Reply-To: <20040822170027.2E61.EME@v003.vaio.ne.jp>
Hideaki Nemoto wrote:
> Hi everyone.
>
> I'm new to this list and I have some questions
> regarding HTB class.
> I was trying to see how tc sets the parameters for
> HTB, but really couldnt understand them.
> So, I thought that I might ask the wizards.
> It's mainly from the source code.
>
> 1. What is the cell_log ?
> (its everywhere in the code)
>
> 2. Why does htb calculate its burst(buffer) with
> tc_xmit_time() ? Is opt.rate.buffer supposed to
> have the time it takes to transmit the packet ?
> (in q_htb.c around 223 lines)
> 3. What does rtab and ctab arrays do ?
> And what kind of value should be in there ?
> (its set in tc_core.c tc_calc_rtable())
>
> I'd really appreciate your help.
> Thankyou very much in advance.
I can't say about HTB, but I've been playing with Ed Wildgooses patch
for DSL users -
http://mailman.ds9a.nl/pipermail/lartc/2004q2/012752.html
cell_log is used to look up the delay for a packet to be transmitted at
a certain rate. A rate table is made using cell_log to give granularity
- for me using htb it gets calculated with MTU 1600 which means it's 3.
Three means the table has a dispatch time entry for every 8 bytes packet
size, as a counter gets shifted left by cell_log to generate the table.
HTB / whatever looks up the transmit time for a packet by shifting its'
length right by cell_log and using the result as an index for the table.
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-08-23 22:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-22 8:11 [LARTC] Question about htb class Hideaki Nemoto
2004-08-23 22:58 ` Andy Furniss [this message]
2004-08-24 2:02 ` eme
2004-08-24 8:15 ` Andy Furniss
2004-08-25 12:25 ` Hideaki Nemoto
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=412A76AB.2080709@dsl.pipex.com \
--to=andy.furniss@dsl.pipex.com \
--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.