From: Andrew Beverley <andy@andybev.com>
To: hawk@comx.dk
Cc: Julien Vehent <julien@linuxwall.info>,
"Philip A. Prindeville" <philipp_subx@redfish-solutions.com>,
Netdev <netdev@vger.kernel.org>,
netfilter <netfilter@vger.kernel.org>
Subject: Re: QoS weirdness : HTB accuracy
Date: Wed, 11 Aug 2010 15:27:17 +0100 [thread overview]
Message-ID: <1281536837.1432.70.camel@andybev> (raw)
In-Reply-To: <Pine.LNX.4.64.1007071457020.6631@ask.diku.dk>
On Wed, 2010-07-07 at 15:07 +0200, Jesper Dangaard Brouer wrote:
> On Sun, 4 Jul 2010, Andrew Beverley wrote:
>
> >>> I was, in fact, an error in my ruleset. I had put the 'linklayer atm' at
> >>> both the branch and leaf levels, so the overhead was computed twice,
> >>> creating those holes in the bandwidth.
> >>
> >> I am seeing similar behaviour with my setup. Am I making the same
> >> mistake? A subset of my rules is as follows:
> >>
> >> tc qdisc add dev ppp0 root handle 1: htb r2q 1
> >>
> >> tc class add dev ppp0 parent 1: classid 1:1 htb \
> >> rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit \
> >> overhead $overhead linklayer atm <------- Here
> >>
> >> tc class add dev ppp0 parent 1:1 classid 1:10 htb \
> >> rate 612kbit ceil 612kbit prio 0 \
> >> overhead $overhead linklayer atm <------- And here
> >>
> >> tc qdisc add dev ppp0 parent 1:10 handle 4210: \
> >> sfq perturb 10 limit 50
> >>
> >> tc filter add dev ppp0 parent 1:0 protocol ip \
> >> prio 10 handle 10 fw flowid 1:10
> >
> > I removed the overhead option on the first leaf, and the speeds change
> > to what I expect. However, the rules above are taken straight from the
> > ADSL Optimizer project, which was the source of the original overhead
> > patch for tc. So is the ADSL Optimizer project wrong?
>
> After looking at the HTB kernel code I believe that the ADSL Optimizer
> project is NOT wrong. You should/must set the linklayer option on both
> the root class and leaf (else you would be charging the root/parent node
> too little).
>
> It is the expected behavior that small packets cause a significant
> reduction in the available bandwidth on the ATM link. Small packets will
> (almost) always cause 2 ATM packets (being send) using 106 bytes, thus
> eg. sending a 40 bytes TCP ACK packet result in approx 62% overhead.
[sorry for the late reply]
Maybe I am using the linklayer atm option wrong:
1. I am using it with a PCI ADSL modem. As the kernel "knows" that it's
dealing with an ATM device, is there any need to even specify the option
in the first place?
2. My methodology for calculating the overall speed limit for the device
is to download several large files and see what throughput I get. I then
use this figure in the rules above. However, as soon as I add a
linklayer option, the maximum throughout of the device obviously drops,
but means that I never get the throughput that I know the line is
capable of. Assuming that I should even be using the linklayer atm
option, should I be specifying the line speed higher than that which I
physically observe during line speed tests?
For example, if I observe an ADSL line speed of 4000kbit/s, I then
specify 3600kbit/s for the root of the HTB class, but with the linklayer
atm option I only get about 3200kbit/s. Should I be specifying a higher
value in order to get the most out of the connection?
Andy
next prev parent reply other threads:[~2010-08-11 14:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 18:06 QoS weirdness : HTB accuracy Julien Vehent
2010-05-19 0:07 ` Philip A. Prindeville
2010-05-22 14:29 ` Julien Vehent
2010-06-10 21:22 ` Andrew Beverley
2010-07-04 17:50 ` Andrew Beverley
2010-07-07 13:07 ` Jesper Dangaard Brouer
2010-07-07 15:07 ` Jussi Kivilinna
2010-08-11 17:59 ` Andrew Beverley
2010-08-14 17:27 ` Jussi Kivilinna
2010-08-11 14:27 ` Andrew Beverley [this message]
2010-07-07 11:40 ` 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=1281536837.1432.70.camel@andybev \
--to=andy@andybev.com \
--cc=hawk@comx.dk \
--cc=julien@linuxwall.info \
--cc=netdev@vger.kernel.org \
--cc=netfilter@vger.kernel.org \
--cc=philipp_subx@redfish-solutions.com \
/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).