Re: [tsvwg] ECN encapsulation draft - proposed resolution

"alex.burr@ealdwulf.org.uk" <alex.burr@ealdwulf.org.uk> Tue, 22 June 2021 22:36 UTC

Return-Path: <alex.burr@ealdwulf.org.uk>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 251383A1D08 for <tsvwg@ietfa.amsl.com>; Tue, 22 Jun 2021 15:36:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.12
X-Spam-Level:
X-Spam-Status: No, score=-1.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zSQ3RVpeRT-e for <tsvwg@ietfa.amsl.com>; Tue, 22 Jun 2021 15:36:13 -0700 (PDT)
Received: from sonic302-3.consmr.mail.bf2.yahoo.com (sonic302-3.consmr.mail.bf2.yahoo.com [74.6.135.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5D4093A1D0A for <tsvwg@ietf.org>; Tue, 22 Jun 2021 15:36:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1624401371; bh=PZricjvLEBKVn9zPwRf4/AfLsG9qt4gp/7ntHfgCGu4=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=imDquc5TBg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M3dQ4Wphbaakh_C6pbhfld15Wz2dlQQw6uzft XVJ3qbFmZt9gcpCZjQlgHgC2DzE_qXMoqT_m5x7uWVQJM4CXJI0KjVL6C6q4LuiYGKa.NmHCLxJq RiO7HhlAwrvo3D25sXt3idAesWi1oYGqF1uhKjI0aGHAnK5AASaCbtxTXAkofs9IhDFlWDHEvyMd djiZniPt5eF7w7lbWyDH_KmTgou2Rbtg7mizxN2JKcYa74jdGwoJPLUao2nSjCHgwxXUbUFF.Mbv 6sjHgVXHU2QaggNAsPAdRLqhPq0sHpXVVWuOVeDH1VB1lhcc32Ull9NX8uKNHvrbyk09_gt6TKX4 QnrP9C1JNMZrKuS1e82piVnsiGZBkxUZH7yV2_PGthHGUb3PQGY03LXcTGXXi67NsnzE9QVnnktc JQf61kNERAWD_fTUetM7lUQVM20Zb8BJQ4B4rkLaa0FyibMoZV2uA567NhuXGc0GHGGKPTSXJklk -
X-Sonic-MF: <alex.burr@ealdwulf.org.uk>
Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Tue, 22 Jun 2021 22:36:11 +0000
Date: Tue, 22 Jun 2021 22:35:48 +0000
From: "alex.burr@ealdwulf.org.uk" <alex.burr@ealdwulf.org.uk>
Reply-To: "alex.burr@ealdwulf.org.uk" <alex.burr@ealdwulf.org.uk>
To: Jonathan Morton <chromatix99@gmail.com>
Cc: Markku Kojo <kojo@cs.helsinki.fi>, Donald Eastlake <d3e3e3@gmail.com>, John Kaippallimalil <kjohn@futurewei.com>, Markku Kojo <kojo=40cs.helsinki.fi@dmarc.ietf.org>, "tsvwg@ietf.org" <tsvwg@ietf.org>
Message-ID: <1061144357.1600444.1624401348420@mail.yahoo.com>
In-Reply-To: <D7734F0E-3A3F-4E82-98E3-035B45AC5876@gmail.com>
References: <MN2PR19MB40454BC50161943BC33AAAD783289@MN2PR19MB4045.namprd19.prod.outlook.com> <43e89761-d168-1eca-20ce-86aa574bd17a@bobbriscoe.net> <de8d355d-08b6-34fb-a6cc-56755c9a11ee@bobbriscoe.net> <MN2PR19MB4045DB9D2C45066AEB0762DB83259@MN2PR19MB4045.namprd19.prod.outlook.com> <alpine.DEB.2.21.2106021717300.4214@hp8x-60.cs.helsinki.fi> <BE497F82-5452-41A1-943F-7ABD0048C7F9@gmail.com> <56c2887b-5e9e-c2b6-c760-81e2627400a2@bobbriscoe.net> <3a66effa-9269-a9b0-48e8-d48bd46d70d1@bobbriscoe.net> <alpine.DEB.2.21.2106221542420.4160@hp8x-60.cs.helsinki.fi> <D7734F0E-3A3F-4E82-98E3-035B45AC5876@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.18469 YMailNorrin
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/xKyqbzcctA-FcI4fcGC1Jxq_rns>
Subject: Re: [tsvwg] ECN encapsulation draft - proposed resolution
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Jun 2021 22:36:18 -0000

Jonathan,
  
  It is indeed good to see measured data.

One point: You are talking about Codel below, but the graphs say fq_codel. Regardless of the merits of fq, here I think it is a bit of a confounder to what you want to  
show. For clarity, could you say if or how fq was in use? (I'm guessing here it might be in use, but configured in such a way as not to isolate these flows...)

Alex



On Tuesday, June 22, 2021, 9:35:12 PM GMT+1, Jonathan Morton <chromatix99@gmail.com> wrote: 





> On 22 Jun, 2021, at 5:02 pm, Markku Kojo <kojo@cs.helsinki.fi> wrote:

Up front, let me say that I mainly agree with your approach to this.

> And, if the number of flows is increased, then the time between the marks decreases. So, we need to be careful in understanding what we are modelling. Otherwise, if we just play with the formulae, the outcome is just crap.

So, rather than playing with formulae, I organised an empirical test over the weekend to see what the effects really are.  That accounts for the long pause before replying.

    https://sce.dnsmgr.net/results/mss-tests/

The test involves three flows with the same CC algorithm running through a common single-queue, single-instance AQM.  The AQM is Codel as an exemplar of time-domain marking, or PIE as an exemplar of packet-mode marking, both with ECN enabled.  The test was repeated for Reno and CUBIC, as exemplars of standards-track CC, and DCTCP as an exemplar of 1/p response.  The path parameters are 50Mbps throughput, 80ms RTT, sufficient to keep CUBIC out of "Reno compatibility" mode.

The three flows differ in terms of packet and segment size.  Flow 1 is a conventional bulk flow using a full 1460-byte MSS.  Flow 2 reduces this to 730-byte MSS.  Flow 3 uses a 1460-byte MSS, but goes through a path with reduced MTU (with PMTUD disabled) causing fragmentation into two packets per segment, so has the same packet rate at the AQM as Flow 2.  Fragmentation reassembly is as per RFC-3168.

A well-conditioned congestion system should give each flow roughly equal application goodput on average.  Some allowance can be made for bandwidth lost to headers in the smaller packets, but this is a small effect.  But what do we actually get?

The theoretically ideal case is DCTCP with time-domain marking, where the expected goodput is exactly equal for all three flows.  The actual observed goodput is not quite equal, but reasonably close and very consistent over a 10-minute period:

    https://sce.dnsmgr.net/results/mss-tests/dctcp-fq_codel-plot.html

But if we apply packet-mode marking, the smaller packets are markedly disadvantaged compared to larger ones, approximately in proportion to the average packet size, and again this is consistent for 10 minutes straight:

    https://sce.dnsmgr.net/results/mss-tests/dctcp-pie-plot.html

I do not have running code with which to test a "marked bytes preserving" reassembly rule.  However, such a rule could only possibly influence Flow 3, as that is the only one that's fragmented.  In theory it would be elevated to the level of Flow 1, leaving Flow 2 as the only disadvantaged flow.

You might say that using small MSS is not reasonable for capacity-seeking traffic.  But recall what Paul Vixie pointed out in the other thread about UDP Options, that the MTU over Internet paths could reasonably increase in future.  This implies that "jumbo" TCP segments would, at least for some time, share space with traffic still using today's Ethernet-sized packets, and the latter would be in the analogous position of Flow 2 in this test.  So do not dismiss Flow 2 as irrelevant to your interests.

Moving on to Reno, we see roughly the same effect, though the large Reno sawtooth means we have to peer through a lot of noise to see the trends.  Nevertheless they are similar to DCTCP over a long average:

    https://sce.dnsmgr.net/results/mss-tests/reno-fq_codel-plot.html
    https://sce.dnsmgr.net/results/mss-tests/reno-pie-plot.html

And further likewise for CUBIC:

    https://sce.dnsmgr.net/results/mss-tests/cubic-fq_codel-plot.html
    https://sce.dnsmgr.net/results/mss-tests/cubic-pie-plot.html

These results with standards-track CC confirm those from DCTCP, and the same logic applies.

Current practice on the Internet is to use time-domain ECN marking (because Codel is the most widely deployed AQM with ECN enabled) and RFC-3168 fragment reassembly.  The above results show that this is clearly superior to packet-mode marking with either RFC-3168 or "byte-preserving" reassembly rules.  Hence we should probably try to avoid encouraging the latter behaviour in new Internet specifications.


- Jonathan Morton