From: Patrick McHardy <kaber@trash.net>
To: Russell Stuart <russell-tcatm@stuart.id.au>
Cc: lists@andyfurniss.entadsl.com, hadi@cyberus.ca,
Jesper Dangaard Brouer <hawk@diku.dk>,
netdev@vger.kernel.org, Stephen Hemminger <shemminger@osdl.org>
Subject: Re: [PATCH 0/2] NET: Accurate packet scheduling for ATM/ADSL
Date: Wed, 19 Jul 2006 16:50:14 +0200 [thread overview]
Message-ID: <44BE46A6.8000207@trash.net> (raw)
In-Reply-To: <1153270932.4242.60.camel@ras.pc.brisbane.lube>
Russell Stuart wrote:
> On Tue, 2006-07-18 at 22:46 +0100, Andy Furniss wrote:
>
>>FWIW I think it may be possible to do it Patricks' way, as if I read it
>>properly he will end up with the ATM cell train length which gets
>>shifted by cell_log and looked up as before. The ATM length will be in
>>steps of 53 so with cell_log 3 or 4 I think there will be no collisions
>>- so special rate tables for ATM can still be made perfect.
Please excuse my silence, I was travelling and am still catching up
with my mails.
> Patrick is proposing that the packet lengths be sent to
> the kernel in a similar way to how transmission times (ie
> RTAB) is sent now. I agree that is how things should be
> done - but it doesn't have much to do with the ATM patch,
> other than he has allowed for ATM in the way he does the
> calculation in the kernel [1].
>
> In particular:
>
> - As it stands, it doesn't help the qdiscs that use
> RTAB. So unless he proposes to remove RTAB entirely
> the ATM patch as it will still have to go in.
Why? The length calculated by my STABs (or something similar)
is used by _all_ qdiscs. Not only for transmission time calculation,
but also for statistics and estimators. If the length calculation
doesn't fit for ATM, that can be fixed.
> - A bit of effort was put into making this current
> ATM patch both backwards and forwards compatible.
> Patricks patch would work with newer kernels,
> obviously. Older kernels, and in particular the
> kernel that Debian is Etch is likely to distribute
> would miss out.
True, but it provides more consistency, and making current
kernels behave better is more important than old kernels.
> If Patrick did intend remove RTAB entirely then he
> needs to add a fair bit more into his patch. Since
> RTAB is just STAB scaled, its certainly possible.
> The kernel will have to do a shift and a division
> for each packet, which I assume is permissible.
You seem to have misunderstood my patch. It doesn't need to
touch RTABs, it just calculates the packet length as seen
on the wire (whereever it is) and uses that thoughout the
entire qdisc layer.
>>As you say, I think mpu should be added aswell - so eth/other can benefit.
>
>
> Not really. The MPU is reflected in the STAB table,
> just as it is for RTAB.
>
> One other point - the optimisation Patrick proposes
> for STAB (over RTAB) was to make the number of entries
> variable. This seems like a good idea. However there
> is no such thing as a free lunch, and if you did
> indeed reduce the number of entries to 16 for Ethernet
> (as I think Patrick suggested), then each entry would
> cover 1500/16 = 93 different packet lengths. Ie,
> entry 0 would cover packet lengths 0..93, entry 1
> 94..186, and so on. A single entry can't be right
> for all those packet lengths, so again we are back
> to a average 30% error for typical VOIP length
> packets.
My patch doesn't uses fixed sized cells, so it can deal
with anything, worst case is you use one cell per packet
size. Optimizing size and lookup speed for ethernet makes
a lot more sense than optimizing for ADSL.
next prev parent reply other threads:[~2006-07-19 14:50 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 9:40 [PATCH 0/2] NET: Accurate packet scheduling for ATM/ADSL Jesper Dangaard Brouer
2006-06-14 12:06 ` jamal
2006-06-14 12:55 ` Jesper Dangaard Brouer
2006-06-15 12:57 ` jamal
2006-06-15 13:16 ` jamal
2006-06-20 1:04 ` Patrick McHardy
2006-06-20 14:59 ` jamal
2006-06-20 15:16 ` Patrick McHardy
2006-06-21 12:21 ` Krzysztof Matusik
2006-06-21 12:54 ` Patrick McHardy
2006-06-21 14:33 ` Krzysztof Matusik
2006-06-14 15:32 ` Andy Furniss
2006-06-20 0:54 ` Patrick McHardy
2006-06-20 14:56 ` jamal
2006-06-20 15:09 ` Patrick McHardy
2006-06-22 18:41 ` jamal
2006-06-23 14:32 ` Patrick McHardy
2006-06-24 14:39 ` jamal
2006-06-26 11:21 ` Patrick McHardy
2006-06-27 13:01 ` jamal
2006-07-02 4:23 ` Patrick McHardy
2006-07-02 13:59 ` jamal
[not found] ` <1150287983.3246.27.camel@ras.pc.brisbane.lube>
[not found] ` <1150292693.5197.1.camel@jzny2>
[not found] ` <1150843471.17455.2.camel@ras.pc.brisbane.lube>
[not found] ` <15653CE98281AD4FBD7F70BCEE3666E53CD54A@comxexch01.comx.local>
[not found] ` <1151000966.5392.34.camel@jzny2>
2006-06-23 12:37 ` Russell Stuart
2006-06-23 15:21 ` Patrick McHardy
2006-06-26 0:45 ` Russell Stuart
2006-06-26 11:10 ` Patrick McHardy
2006-06-27 6:19 ` Russell Stuart
2006-06-27 17:18 ` Patrick McHardy
2006-07-04 13:29 ` Patrick McHardy
2006-07-04 19:29 ` jamal
2006-07-04 23:53 ` Patrick McHardy
2006-07-06 0:39 ` Russell Stuart
2006-07-07 8:00 ` Patrick McHardy
2006-07-10 8:44 ` Russell Stuart
2006-06-24 14:13 ` jamal
2006-06-26 4:23 ` Russell Stuart
2006-07-18 2:06 ` Russell Stuart
2006-07-18 13:35 ` jamal
2006-07-18 21:46 ` Andy Furniss
2006-07-19 1:02 ` Russell Stuart
2006-07-19 14:42 ` Andy Furniss
2006-07-19 14:54 ` Patrick McHardy
2006-07-19 20:26 ` [PATCH 0/2] NET: Accurate packet scheduling for ATM/ADSL (RTAB BUG) Jesper Dangaard Brouer
2006-07-19 21:00 ` Alexey Kuznetsov
2006-07-20 5:47 ` Russell Stuart
2006-07-20 23:49 ` Alexey Kuznetsov
2006-07-19 14:50 ` Patrick McHardy [this message]
2006-07-20 4:56 ` [PATCH 0/2] NET: Accurate packet scheduling for ATM/ADSL Russell Stuart
2006-07-30 23:06 ` Russell Stuart
2006-08-08 22:01 ` Russell Stuart
2006-08-09 11:33 ` jamal
2006-09-04 10:37 ` Russell Stuart
2006-06-14 14:27 ` Phillip Susi
2006-06-14 15:08 ` Jesper Dangaard Brouer
2006-06-20 5:35 ` Chris Wedgwood
2006-06-20 7:33 ` Jesper Dangaard Brouer
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=44BE46A6.8000207@trash.net \
--to=kaber@trash.net \
--cc=hadi@cyberus.ca \
--cc=hawk@diku.dk \
--cc=lists@andyfurniss.entadsl.com \
--cc=netdev@vger.kernel.org \
--cc=russell-tcatm@stuart.id.au \
--cc=shemminger@osdl.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;
as well as URLs for NNTP newsgroup(s).