Re: Robustness to packet reordering

Christian Huitema <huitema@huitema.net> Thu, 06 February 2025 22:14 UTC

Return-Path: <huitema@huitema.net>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9FBE4C1D6FB8; Thu, 6 Feb 2025 14:14:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.706
X-Spam-Level:
X-Spam-Status: No, score=-1.706 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=mfg.outbound
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z43v8IIPqA7x; Thu, 6 Feb 2025 14:14:45 -0800 (PST)
Received: from semf10.mfg.siteprotect.com (semf10.mfg.siteprotect.com [64.26.60.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B707C1D6210; Thu, 6 Feb 2025 14:14:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mfg.outbound; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: reply-to:sender:bcc; bh=VJmV6J4J7IqjqVK1rFyD8lG52B5dzkBAOZ/et9+7HsM=; b=IKpCY gKyVAbGUVH/QylxlDOTEpdizQPXmtpG6GxmQGGg8PuJMQEdudISBI9228JRDjGqA9c2/ibd40seNg OJo9kBSoBQJkSkOQE8L+V25lh8UBWORHTyXSfg5+7vjygI0f4Zb6eooKxyU7QIeHWz6wzwuaF48hx Cre7l7q2ASrrr2ANVYan3ULXOnynV1iI2Tkiz7+YIJnb0JiwEVQ5BtpeyPIPk1QtVLa84vh5Crauq Lar/avlAT6ZkAV9a23IoTqvuNicsbPq9GnLb9j+/6aG7TacmTugj3NCNNRBfyZJq1zBywI4aTMO+o mo0uCaEtrpdIsw5vS9mviC9+HGYFg==;
Received: from smtpauth01.mfg.siteprotect.com ([64.26.60.150]) by se03.mfg.siteprotect.com with esmtp (Exim 4.92) (envelope-from <huitema@huitema.net>) id 1tgA8p-0017gY-K0; Thu, 06 Feb 2025 17:14:38 -0500
Received: from [10.32.61.226] (unknown [192.0.32.236]) (Authenticated sender: huitema@huitema.net) by smtpauth01.mfg.siteprotect.com (Postfix) with ESMTPSA id 4YprxJ5sCGz162TN1; Thu, 6 Feb 2025 17:14:28 -0500 (EST)
Message-ID: <23eae943-7744-45e9-9fbc-f1581eaecac2@huitema.net>
Date: Thu, 06 Feb 2025 14:14:25 -0800
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Robustness to packet reordering
To: Martin Thomson <mt@lowentropy.net>, Greg White <g.white=40CableLabs.com@dmarc.ietf.org>, Ingemar Johansson S <ingemar.s.johansson=40ericsson.com@dmarc.ietf.org>, "quic@ietf.org" <quic@ietf.org>, "tsvwg@ietf.org" <tsvwg@ietf.org>
References: <AM8PR07MB81375E2D3CA840AEDA0F7E63C2F72@AM8PR07MB8137.eurprd07.prod.outlook.com> <38891fa7-b188-4767-8364-ae0a10c318b2@huitema.net> <AM8PR07MB81370760A8293580DDDB386BC2F62@AM8PR07MB8137.eurprd07.prod.outlook.com> <537f0095-68a3-43d5-a2f0-f91b4499017d@huitema.net> <AM8PR07MB81377C0A967260302A687113C2F62@AM8PR07MB8137.eurprd07.prod.outlook.com> <5C5E0FCB-1725-4775-9421-F4F5F687D051@CableLabs.com> <df289f06-2e00-463c-b9f5-bb67a34d9b43@betaapp.fastmail.com>
Content-Language: en-US
From: Christian Huitema <huitema@huitema.net>
In-Reply-To: <df289f06-2e00-463c-b9f5-bb67a34d9b43@betaapp.fastmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Authentication-Results: mfg.siteprotect.com; auth=pass smtp.auth=huitema@huitema.net
X-Originating-IP: 64.26.60.150
X-SpamExperts-Domain: mfg.outbound
X-SpamExperts-Username: 64.26.60.150/31
Authentication-Results: mfg.siteprotect.com; auth=pass smtp.auth=64.26.60.150/31@mfg.outbound
X-SpamExperts-Outgoing-Class: ham
X-SpamExperts-Outgoing-Evidence: Combined (0.15)
X-Recommended-Action: accept
X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/qJV9VlnnoLRs/Lab1MlHrPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xSBE3M+ff8hAMcvZa+cxIsoLf54tw5jnywtf560joPUswe zNAtHeV2uihR9qZ4QTjw3B6BBT6+xAR8AcnbfMqIJtywgmL3TSvWs6iftlpyGip3cwQrbFTrcmiD ymUFLpHSDbUZDmAuwysxa0sc+29mOPeFicXpb+Ozzq92lv4GYIo9Yn91smEK8Xr9teDmSd3AXou6 GzbVbhs0xEArJGITAQsOtag4L3IytioCVHIqJGRiMYIgVS3i8WejtPy0UFtBpc/AiUjjK788fU1Y N0ZF7qD1QofPMMAVguCz2hm1KDNNWe0GDhneTE7QpXyF++Jo5nLWGECHgVifsCvEVB7ZUKMO2+v7 Gw8Phykn8c4tdEeEXpojR/zCw0YtEVdRS/tqJ2W7SJ5irIboyjG8kwRyHiVmw2OUOUmoUEC9KoQC yHwrgSC2Cw3YiPqrhSLQcL6OGHGrHFBsCbg05zi/9etCzERy44nVhqSbC665m01Ca+00snjQP8kv MYBxHGhmUvp9120vcP42rmtz8dNA2BUKZ3mwIS+G97xA2LszMZ5cw4i5ZdCUEGRWvgEycGMfymtv 21n4LnI5zZgAaRoQ/U07zpD635ARx7mnTmBmfVUKRN5EckCf2Rml7NBDzyp3QhvXs2KsRjKrCowE avDwQuKo0+hB5JjfvwdvKtJVCUFM30xrL66CuqZBAOHYddx2FfHiQwUHAL+rG1YY6u9b0QCb2OUM eHyTpNN0eXybX/w7/6KFccwJNTvq+iKXCh0g3vY6ZLJrXRGFN//ml0zneLj4pBkRCQxHUuAPDkLZ JqBnHAwiGsO1aZljvbXd15GOxLY2bZJwfR+QmmxoLfc+GLZhge9fmpz9pOkro7nsziSL6gZs9rsF jLInNZ9HhLdsh4Plm3uvgh+r1tEhZOhX8zun/vsbmlw2j4s6xr9ArebimJ5XWi6y2EbKXFV1T5HR mNvKcCAkR8qM6704mOEOCLdOvohc/ZDy0YN2N2QE9607h+0yHo8hgxG4i2YT6BF/tGMhu1/rdU1t /SWu+yxj6TsAdRTeAjQ8lPcpNiqkWcUbBBPUaZyO2NbJhrfRU4/YgA3t2MhxQDWriNtRGDIOfiuv MxogvjxId3AG6vsL0WtIBaTu5GUtJWwW2V4r2lV7OT386qoJraOw+oExYYWAd6K3GOC+7ukCf411 wDyLaL5NOH3TShUX0Mw/mz9yL1LE5Mz91ElDLa5Rl2/0dXYJJ8xYwiA1yiiDRF4LwOffuYoJxw==
X-Report-Abuse-To: spam@se02.mfg.siteprotect.com
X-Complaints-To: abuse@se01.mfg.siteprotect.com
Message-ID-Hash: GW2HGI4JMMHXU7NYP6QSPWFJGEUEVHQP
X-Message-ID-Hash: GW2HGI4JMMHXU7NYP6QSPWFJGEUEVHQP
X-MailFrom: huitema@huitema.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-quic.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Ingemar Johansson S <ingemar.s.johansson@ericsson.com>
X-Mailman-Version: 3.3.9rc6
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/jJNGi7NeJ9VjPBURQDKPOkY5mtY>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Owner: <mailto:quic-owner@ietf.org>
List-Post: <mailto:quic@ietf.org>
List-Subscribe: <mailto:quic-join@ietf.org>
List-Unsubscribe: <mailto:quic-leave@ietf.org>

On 2/6/2025 12:55 PM, Martin Thomson wrote:
>
> On Fri, Feb 7, 2025, at 04:59, Greg White wrote:
>> This is an important topic relating to the expectations and
>> requirements that transport protocols place on layer 2 protocols.  In
>> layer 2 standards bodies that I've been involved in, it has been
>> understood that "the upper layers" expect in-order delivery,
> As far as QUIC goes, it is sensitive to reordering in the network.  Some reordering will be interpreted as damage (Christian cited the relevant parts) and performance suffers in a few minor way when things arrive out of order (ACKs are less efficient, data needs to be held, memory accesses are less likely to be contiguous, etc...).
>
> However, the idea that the network might seek to "fix" these problems, when doing so necessarily involves extra work and delays, is not a good trade.  Stuff that is delayed to "fix" a reordering that happened might delay signals that the QUIC stack could use, even if some data needs to be held at the endpoint.  QUIC packets contain many things, some of which don't need to be strictly ordered to be useful.

Applications that are sensitive to delays will break their traffic into 
multiple QUIC streams. In case of packet loss, only one of those streams 
will be blocked, the others will be delivered without "head of queue 
blocking". Implementing L2 correction will make the response worse, not 
better, because all the streams will be delayed for the duration of the 
L2 correction instead of just one.

-- Christian Huitema