Re: [tsvwg] ECN encapsulation draft - proposed resolution

Jonathan Morton <chromatix99@gmail.com> Sun, 06 June 2021 05:21 UTC

Return-Path: <chromatix99@gmail.com>
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 709003A3D54 for <tsvwg@ietfa.amsl.com>; Sat, 5 Jun 2021 22:21:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.848
X-Spam-Level:
X-Spam-Status: No, score=-1.848 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 6R4sqrzxkg4B for <tsvwg@ietfa.amsl.com>; Sat, 5 Jun 2021 22:21:30 -0700 (PDT)
Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (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 E3A7A3A3D50 for <tsvwg@ietf.org>; Sat, 5 Jun 2021 22:21:29 -0700 (PDT)
Received: by mail-lf1-x136.google.com with SMTP id i10so20592041lfj.2 for <tsvwg@ietf.org>; Sat, 05 Jun 2021 22:21:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8/MgaPTiDcF5/9sfAuXlo2ge8ibRKrzZSy6IgIabzhY=; b=i+IMu8EcpjkjImUSYMtprGNn8HdZXmnolBYpeN3D2GgfzrsybPh48KauraD4qfCQYB ZNKCBGHBUZckePUvX7Fln3y/1VsQdS7VBcjzfJok635oKT9vSygOrjUN7dy4h9B61nxA I9+YNwzRTnvAAF1eiEI4ie/IvgmTFmD3kE1Iyb53L53j/VLAJKSl9Yct02mJWQR8UY7/ 7fs9++T77OltgYZXdKCItiAADEI8WqtweKQNWyPWl/XnsdJZMg1eKBI6wo6fD8ASNGov seArdnYRRvCWqnEVGIGqEE2AHbjn+zU7LO1zarwFKUIHk0SsS8kMZ77L9/MT0k4VQeC1 KsiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8/MgaPTiDcF5/9sfAuXlo2ge8ibRKrzZSy6IgIabzhY=; b=B4hfXEfPzptmE1t3drbwR1sYwy8wpRHgzLXZt2iJEQdVj0XXd5ivcBtDqkYUxvLBV2 MIMMRwBq0BuJnvKg6f2b1hPRV5IP3CnCYCkW9ZAFjHSw5ve7XmYVbeITLla9Kf+NyNIB dsvlPWFlUApjnJYe+tEwAjtxKw4ovXeNNr+Bd8m+NyLoGyfLGeFk4TK7Qua8BslrZemr 3hyB48YqfadFQjJbOBPiJ/qtmyK2HuCUM7kk459cLzakO7Is5zjdUVShVfY7faWV7IGW BV6uPyoQqZxg3wdL23YFRdKOEquq7u3Q96sJLt5iGonsRi26NVD3wRmdgoaXyqBDqePl egRQ==
X-Gm-Message-State: AOAM532FoeCgCjqyyNHKCK+O6F2pbSXTY358c24I9dQ/48Y0BELsfN6e eFXUnZpuoO/Q9nnZSYuIQC4=
X-Google-Smtp-Source: ABdhPJyqq/iCxP+qmnmMkNwy87OWLMveRMILdkR39pHDQnJ1qdafDqRP1NjNqJTbOyar4VUks09m+A==
X-Received: by 2002:a05:6512:3255:: with SMTP id c21mr8173818lfr.634.1622956886527; Sat, 05 Jun 2021 22:21:26 -0700 (PDT)
Received: from jonathartonsmbp.lan (87-93-133-133.bb.dnainternet.fi. [87.93.133.133]) by smtp.gmail.com with ESMTPSA id q8sm1312609ljc.84.2021.06.05.22.21.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jun 2021 22:21:25 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\))
From: Jonathan Morton <chromatix99@gmail.com>
In-Reply-To: <290e1624-fa1e-21d7-95fb-90e284c27dd8@bobbriscoe.net>
Date: Sun, 06 Jun 2021 08:21:24 +0300
Cc: Markku Kojo <kojo@cs.helsinki.fi>, David Black <David.Black@dell.com>, "tsvwg@ietf.org" <tsvwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <25F0D473-9C41-40D6-A622-A7E16923F4C7@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> <290e1624-fa1e-21d7-95fb-90e284c27dd8@bobbriscoe.net>
To: Bob Briscoe <ietf@bobbriscoe.net>
X-Mailer: Apple Mail (2.3445.9.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/l7JPx_0HFfx9VHnaPFfO1RvZXlg>
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: Sun, 06 Jun 2021 05:21:36 -0000

> On 6 Jun, 2021, at 2:06 am, Bob Briscoe <ietf@bobbriscoe.net> wrote:
> 
> RFC3168 reassembly does not even have any suggestion on what to do if framing boundaries overlap packet boundaries or where packets are smaller than frames - so it is not 'known-to-work' in any case, let alone in every case.

Actually, it does offer such a suggestion, if you read between the lines a little bit.

The basic premise that both the marking and reassembly rules are based on is: "if you would have dropped a Not-ECT packet, try marking an ECT packet with CE instead".  If any fragment of a packet is dropped, then the whole packet is effectively lost; this is mirrored in the rules that propagate a CE mark to the whole reassembled packet if any fragment of it was so marked.

Applying the same logic to the case where a single Layer 2 frame may span (parts of) more than one IP packet, dropping that frame would cause all the packets it (partially) spans to be lost.  Therefore, the behaviour implied by RFC-3168 would be to propagate a congestion mark found on the Layer 2 frame to all of the packets that would have been lost if that frame were dropped.

We can debate whether this is better or worse than converting a single Layer 2 mark into a single CE mark, but the logic is at least consistent this way.

 - Jonathan Morton