Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Pete Heist <pete@heistp.net>
To: Sebastian Moeller <moeller0@gmx.de>
Cc: Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] Cake vs fq_codel and c/burst on an ER-X bridge
Date: Tue, 11 Sep 2018 20:09:22 +0200	[thread overview]
Message-ID: <8E0ECFFC-37A0-4DC3-91C9-27793B1C18E5@heistp.net> (raw)
In-Reply-To: <79F47FB1-6B00-4753-930B-950FB8CD3850@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 3222 bytes --]


> On Sep 11, 2018, at 9:54 AM, Sebastian Moeller <moeller0@gmx.de> wrote:
>> 
>> So this has turned info an interesting exercise that produced a result counter to what the common wisdom has been (that fq_codel is “faster” than cake
> 
> 	I believe the argument is more about htb+fq_codel versus cake instead of fq_codel versus cake, as it seems to be the shaper functionality that incurs the highest cost.

I sometimes loosely use fq_codel to mean htb+fq_codel.

>> It occurs to me that what I really want to know is the maximum set bitrate for the shaper where it still appears to be behaving properly and consistently, meaning, the actual measured TCP throughput is held steady, and at the expected percentage less than the set bitrate. I first find this out by setting a “comfortable” rate of 100Mbit and checking TCP throughput with iperf3, which is typically around 5% less than the set bitrate.
> 
> 	So the expected values somewhat depend on the exact configuration, but over all the expected TCP/IPv4 goodput is calculated as follows (I assume you are well aware of that, but I believe this worth repeating to calibrate the expectancy):

Yes, it’s pretty much right on the money.

>> Then I increase the shaper’s bitrate 5Mbit at a time and re-run the test until I find the last bitrate at which iperf3 reports a stable (within a few percent) and correct rate over 10 seconds for several runs in a row. See the attached iperf3 results for sample runs around the threshold rates.
> 
> 	Except for the 10 seconds this sounds reasonable, I would aim for at least 30, even tough this will be more important once you also monitor the latency under load concurrently to the bandwidth-probing flows…

I agree, so far I was just trying not to spend an all-nighter on it last night. :) I was actually running 3-5 trials of ten seconds, also because sometimes with fq_codel once it’s slightly above its limit, results would vary from run to run.

>> cake nat dual-srchost / cake nat dual-dsthost ingress: 135 / 145
> 
> 	On your box is there actual NAT masquerading happening?

Yeah, good point, I left nat there because I had one port configured for routing and the other for the bridge and was sometimes swapping between the two. I realize now I actually sent the numbers for routing, not bridging. Bridging without ‘nat’ looks a bit higher (155 Mbit for cake instead of 135 Mbit). I would re-do all these tests for completeness but I’m out of time now.

> 	The last time we discussed the bust issue, I could not manage to see any difference with or without a specified burst, but I strongly believe I simply did not properly test. Btw, this is unidirectional shaping or with bidirectional saturation?

Unidirectional. I definitely see a difference, but I wonder what criteria we (and I) used for “out of CPU’ in the past.

> <fq_codel_125.txt><fq_codel_130.txt><cake_135.txt><cake_140.txt>
> 	I am quite curious about these files, but I seem incapable of downloading/opening them...


Ok, no more sending attachments to the list I see. If this link doesn’t work I might be replacing a disk at the time… :)
https://www.heistp.net/downloads/erx-sqm.tgz


[-- Attachment #2: Type: text/html, Size: 13657 bytes --]

  parent reply	other threads:[~2018-09-11 18:09 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 10:19 [Cake] Cake on elements of a bridge Georgios Amanakis
2018-09-04 10:31 ` Toke Høiland-Jørgensen
2018-09-04 12:01   ` Georgios Amanakis
2018-09-06 17:37     ` Pete Heist
2018-09-06 18:04       ` Toke Høiland-Jørgensen
2018-09-06 18:51         ` Pete Heist
2018-09-10 19:29           ` Pete Heist
2018-09-10 19:55             ` Dave Taht
2018-09-10 22:40               ` [Cake] Cake vs fq_codel and c/burst on an ER-X bridge Pete Heist
2018-09-11  7:54                 ` Sebastian Moeller
2018-09-11  8:20                   ` Dave Taht
2018-09-11  8:20                     ` Sebastian Moeller
2018-09-11  8:30                       ` Dave Taht
2018-09-11  8:43                         ` Sebastian Moeller
2018-09-11 18:27                     ` Pete Heist
2018-09-11 18:29                       ` Dave Taht
2018-09-11 18:42                         ` Dave Taht
2018-09-19 13:27                     ` Sebastian Moeller
2018-09-19 17:02                       ` Dave Taht
2018-09-20 10:34                         ` Sebastian Moeller
2018-09-20 17:05                           ` Dave Taht
2018-09-20 18:19                             ` Sebastian Moeller
2018-09-20 18:31                               ` Dave Taht
2018-09-11 18:09                   ` Pete Heist [this message]
2018-09-11 18:28                     ` Sebastian Moeller
2018-09-11 18:45                       ` Pete Heist
2018-09-11 18:47                         ` Dave Taht

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=8E0ECFFC-37A0-4DC3-91C9-27793B1C18E5@heistp.net \
    --to=pete@heistp.net \
    --cc=cake@lists.bufferbloat.net \
    --cc=moeller0@gmx.de \
    /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