From: Sebastian Moeller <moeller0@gmx.de>
To: Thibaut <hacks@slashdirt.org>
Cc: openwrt-devel <openwrt-devel@lists.openwrt.org>,
Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] Help untangling CAKE settings for FTTH
Date: Thu, 17 Nov 2022 15:42:09 +0100 [thread overview]
Message-ID: <DB9D7633-A166-4A13-8302-8129C00A7CEB@gmx.de> (raw)
In-Reply-To: <4D5AA477-1547-441F-900C-6DC70C824960@slashdirt.org>
Hi Thibaut,
> On Nov 17, 2022, at 15:22, Thibaut <hacks@slashdirt.org> wrote:
>
> Hi Sebastian,
>
>> Le 17 nov. 2022 à 10:50, Sebastian Moeller <moeller0@gmx.de> a écrit :
>>
>> Hi T.
>>
>>
>> so taking your proposa under consideration I canged the section that threw you off course to read:
>>
>>
>> • Ethernet with Overhead: SQM can also account for the overhead imposed by VDSL2 links - add 22 bytes of overhead (mpu 68). Cable Modems (DOCSIS) set both up- and downstream overhead to 18 bytes (6 bytes source MAC, 6 bytes destination MAC, 2 bytes ether-type, 4 bytes FCS), to allow for a possible 4 byte VLAN tag it is recommended to set the overhead to 18 + 4 = 22 (mpu 64). For FTTH the answer is less clear cut, since different underlaying technologies have different relevant per-packet-overheads; however underestimating the per-packet-overhead is considerably worse for responsiveness than (gently) overestimating it, so for FTTH set the overhead to 44 (mpu 84) unless there is more detailed information about the true overhead on a link available.
>> • None: All shaping below the physical gross-rate of a link requires correct per-packet overhead accounting to be precise, so None is only useful if approximate shaping is sufficient, say if you want to clamp a guest network to at best ~50% of the available capacity or similar tasks, but even then configuring an approximate correct per-packet-overhead is recommended (overhead 44 (mpu 84) is a decent default to pick).
>>
>>
>> I hope this is explicit enough.
>
> Yes this looks a lot better, thank you.
>
> Although I must confess that it certainly feels counter-intuitive that for ethernet (and FTTH) we suggest a higher overhead than e.g. VDSL2/cable (which themselves run off an ethernet interface).
That is simply because for (ADSL) DOCSIS VDSL2 we have a much clear picture about what we need to account for. And AON can be essentially using true ethernet encapsulation so we can expect an unspecified "FTTH" class to encompass a broad set of different encapsulations, if we want to recommend a single number that should also cover AON (the PONs are much less clear*). Why do you assume that FTTH necessarily would have a smaller per-packet-overhead than other link technologies?
Now, if you have reliable information for say GPON-overhead, by all means add it (but to be useful this also should contain an easy identifier for other users to figure out whether they use GPON in the first place).
The bigger point however is IMHO, from the perspective of minimizing bufferbloat/latency-under-load-increase using a slightly too large per-packet-overhead is fully benign, while specifying to small an overhead can easily result in measurable bufferbloat increase. So IMHO it is fine to err on the side of too large when estimating the per-packet-overhead.
*) The core problem is that we have no straight forward way to empirically deduce the effective per-packet-overhead over an arbitrary network path, so if a link technology defines/documents the overhead well and conclusively (like docsis) we are in luck, but if the details a vague or leave many options to the ISP we have to make an educated guess.
> I would also like to see some info about ppp vs ethernet interface in there (matching your previous email): unless you beat me to it I will add it.
I will not beat you to it, because for users of cake it does not matter and we do recommend to use cake in the first place... heck even for folks wanting to use HTB+fq_codel I would recommend to start with cake and then look at the output of `tc -s qdisc` to figure out the overhead that is already accounted for on an interface.
> I also think the « details » page needs to be reformatted a bit, it’s very dense and relevant info is all over the place and not very well organized.
Might well be true (the page evolved over time and might need a full editorial pass), but it covers quite some territory and hence always will be a bit unwieldy.
> I’ll try to get around improving that.
Please try to keep all correct information around in the document.
Good luck
>
> Thanks
next prev parent reply other threads:[~2022-11-17 14:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <386F2ED9-3D39-4A42-8982-742B5D4B417F@slashdirt.org>
2022-11-16 10:49 ` Sebastian Moeller
2022-11-16 11:46 ` Thibaut
2022-11-16 12:10 ` Sebastian Moeller
2022-11-17 9:50 ` Sebastian Moeller
2022-11-17 14:22 ` Thibaut
2022-11-17 14:42 ` Sebastian Moeller [this message]
2022-11-17 15:00 ` Thibaut
2022-11-17 15:19 ` Sebastian Moeller
2022-11-17 15:53 ` Thibaut
2022-11-17 17:33 ` Sebastian Moeller
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=DB9D7633-A166-4A13-8302-8129C00A7CEB@gmx.de \
--to=moeller0@gmx.de \
--cc=cake@lists.bufferbloat.net \
--cc=hacks@slashdirt.org \
--cc=openwrt-devel@lists.openwrt.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