From: moeller0 <moeller0@gmx.de>
To: "Dave Täht" <dave.taht@gmail.com>
Cc: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>,
Jonathan Morton <chromatix99@gmail.com>,
cake@lists.bufferbloat.net
Subject: Re: [Cake] second system syndrome
Date: Mon, 21 Dec 2015 14:05:02 +0100 [thread overview]
Message-ID: <85A5A21C-E468-4F81-8A36-0F1AD6C84435@gmx.de> (raw)
In-Reply-To: <CAA93jw5_jif4AZ4w9DKmfxb03iCGAR2p7RvaL65Zg6uCOESy1w@mail.gmail.com>
Hi Dave,
> On Dec 21, 2015, at 13:00 , Dave Taht <dave.taht@gmail.com> wrote:
>
> in terms of the pppoE stuff needing elevated priority, this is code
> that doesn't exist already and is already handled by the fast/slow
> queue stuff in fq_codel?
So I am still working on and off on my pet idea of shaping on a physical interface (say ge00 in cerowrt parlance) instead of pope-ge00. In that case we actually see all PPPoE-pakets (like PADI, PADO and friends see https://en.wikipedia.org/wiki/Point-to-point_protocol_over_Ethernet#PPPoE_Discovery_.28PPPoED.29) and since all other traffic relies on the status of the “PPP tunnel” these deserve the highest priority. Since they are relatively rare, current fq_codel+htb sort of works okay (well, I try steering everybody to set up sqm on the pppoe interface to actually avoid stepping into this mess), but the shaper will have no information about the maintenance packets at all and hence will slightly undershape the link (undershape as in not shaping sufficiently). As far as I can tell the PPPoE deamon uses LCP echoes to test the link state, now these are only sent once per second (on cerowrt) but miss/drop 5 of these in a row and the PPP connection is teared down and reestablished which takes a while, potentially long enough for all active flows to time out, not nice… Especially since it is possible to drive sqm into drop-tail behavior by simply flooding it, do this for a few seconds and watch PPPoE disconnect...
The challenge of shaping on PPPoE instead, is that the kernel accounts different amounts of overhead for ingress and egress there. In case you wonder fq_codel’s maxpacket statistics helped me figuring that out by simply looking at the maxpacket sizes for pppoe-ge00 (maxpacket 1516) and ifb4pppoe-ge00 (maxpacket 1538), which for all I know is just a heuristic and not real proof. The numbers themselves are easily explained given that I have an overhead of 24 bytes specified: 1516-24 = 1492 this is the PPPoE payload (the 8 byte PPP + PPPoE header live inside the classical ethernet MTU) and 1538-24 = 1514 (were the kernel helpfully added part of the ethernet overhead: 6 (dest MAC) + 6 (src MAC) + 2 (ether type) but forgot all about the other ethernet details worth 24 more Byte on the wire).
All of which makes me wish the kernel would leave the overhead handling completely to user space, because it clearly is doing something complicated (at least given the scarcity of information besides RTF source code). I guess I can fix^Wwork-around this by teaching sqm to handle ingress and egress overhead independently.
Best Regards
Sebastian
next prev parent reply other threads:[~2015-12-21 13:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 14:53 Dave Taht
2015-12-06 16:08 ` Sebastian Moeller
2015-12-07 12:24 ` Kevin Darbyshire-Bryant
2015-12-20 12:47 ` Dave Taht
2015-12-20 12:52 ` Dave Taht
2015-12-21 9:02 ` moeller0
2015-12-21 10:40 ` Dave Taht
2015-12-21 11:10 ` moeller0
2015-12-21 12:00 ` Dave Taht
2015-12-21 13:05 ` moeller0 [this message]
2015-12-21 15:36 ` Jonathan Morton
2015-12-21 18:19 ` moeller0
2015-12-21 20:36 ` Jonathan Morton
2015-12-21 21:19 ` moeller0
[not found] ` <8737uukf7z.fsf@toke.dk>
2015-12-22 15:34 ` Jonathan Morton
2015-12-22 22:30 ` Kevin Darbyshire-Bryant
2015-12-23 11:43 ` Dave Taht
2015-12-23 12:14 ` Kevin Darbyshire-Bryant
2015-12-23 12:27 ` Jonathan Morton
2015-12-23 12:41 ` Dave Taht
2015-12-23 13:06 ` Jonathan Morton
2015-12-23 14:58 ` Dave Taht
2015-12-20 13:51 ` moeller0
2015-12-06 18:21 ` Kevin Darbyshire-Bryant
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
List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85A5A21C-E468-4F81-8A36-0F1AD6C84435@gmx.de \
--to=moeller0@gmx.de \
--cc=cake@lists.bufferbloat.net \
--cc=chromatix99@gmail.com \
--cc=dave.taht@gmail.com \
--cc=kevin@darbyshire-bryant.me.uk \
/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