From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Patch to allow for the ATM "cell tax"
Date: Thu, 02 Mar 2006 15:49:41 +0000 [thread overview]
Message-ID: <44071415.2090506@dsl.pipex.com> (raw)
In-Reply-To: <1141284603.10264.168.camel@ras.pc.brisbane.lube>
Russell Stuart wrote:
> The following patch to tc allows it to perform an exact
> ATM / ADSL rate calculation.
I probably haven't read the patch properly - but I don't think you can
do it exactly without patching net/sched/sched_htb.c aswell.
Specifically you need to add overhead - 1 before htb shifts the length
to get the slot num (-1 because you need to get 48 and 49 payload length
to map to different slots 47 and 48 do). The table should be filled
according to this.
It adds one extra keyword
> to the "tc class add htb ..." command line: "atm". There
> isn't a lot of spare bits hanging around to record this,
> so the patch adds the feature at the expense of always
> forcing the "overhead" parameter to be even.
>
> With the patch, these commands will generate a correct
> rate table for:
>
> PPPoA + VC/Mux: tc class add htb ... overhead 10 atm
> PPPoA + VC/LLC: tc class add htb ... overhead 18 atm
> PPPoE + VC/Mux: tc class add htb ... overhead 34 atm
> PPPoE + VC/LLC: tc class add htb ... overhead 42 atm
Also remember that if you shape on ethX 14 bytes are already added to ip
length when htb looks up rate, so pppoa/vcmux would need to be negative.
>
> When using this command lines, you always specify the ADSL
> link capacity as quoted by the modem. Eg, if you are
> controlling incoming traffic on a 512k/128k link, you
> specify the link speed as 512000bps.
You need to look at the atm user rate shown by your modem, for me in the
past it was 288/576 this was sold as 250/500 by teleco and 256/512 by isp.
You also need to back off a couple of kbit (egress - ingress more for
different reasons) - one of my modems does cell qos bases on rate of
whole cells/sec - don't kmow how common that is. Also if you run exactly
on the rate and queue formed when starting/restarting scripts it would
not drain till the traffic stopped.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2006-03-02 15:49 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-02 7:30 [LARTC] Patch to allow for the ATM "cell tax" Russell Stuart
2006-03-02 13:37 ` Markus Schulz
2006-03-02 13:51 ` Markus Schulz
2006-03-02 15:49 ` Andy Furniss [this message]
2006-03-02 19:54 ` Adam James
2006-03-02 21:35 ` Andy Furniss
2006-03-02 22:18 ` Russell Stuart
2006-03-02 22:23 ` Stephen Hemminger
2006-03-02 22:45 ` Jason Boxman
2006-03-02 23:44 ` Russell Stuart
2006-03-03 0:27 ` Jason Boxman
2006-03-03 0:43 ` Russell Stuart
2006-03-03 1:23 ` Markus Schulz
2006-03-03 1:49 ` Markus Schulz
2006-03-03 1:54 ` Russell Stuart
2006-03-03 2:23 ` Markus Schulz
2006-03-03 2:27 ` gentoo
2006-03-03 13:43 ` Andreas Hasenack
2006-03-03 16:18 ` Jason Boxman
2006-03-03 16:45 ` Andreas Hasenack
2006-03-03 18:45 ` Jason Boxman
2006-03-03 19:34 ` Andreas Hasenack
2006-03-05 19:27 ` Andy Furniss
2006-03-06 17:26 ` Jesper Dangaard Brouer
2006-03-13 18:09 ` Jason Boxman
2006-03-14 0:34 ` Russell Stuart
2006-03-14 0:49 ` Jason Boxman
2006-03-14 1:26 ` Russell Stuart
2006-03-14 2:10 ` Adam James
2006-03-14 13:14 ` Andy Furniss
2006-03-14 13:25 ` Andy Furniss
2006-03-14 23:28 ` Russell Stuart
2006-03-15 0:29 ` Andy Furniss
2006-12-06 18:59 ` Taylor, Grant
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=44071415.2090506@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.