Re: NEW_CONNECTION_ID sequence numbers

Mirja Kuehlewind <mirja.kuehlewind@ericsson.com> Wed, 05 January 2022 13:36 UTC

Return-Path: <mirja.kuehlewind@ericsson.com>
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 1A67E3A08A9 for <quic@ietfa.amsl.com>; Wed, 5 Jan 2022 05:36:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.575
X-Spam-Level:
X-Spam-Status: No, score=-2.575 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.576, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 Fstd_7F9eJ3d for <quic@ietfa.amsl.com>; Wed, 5 Jan 2022 05:36:49 -0800 (PST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on060c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::60c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F35953A08A7 for <quic@ietf.org>; Wed, 5 Jan 2022 05:36:48 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EKjc7SdzJxCKyYOmZjUPpwVgkOtSUmQJw+xMqZlruM9ikzTbNEUEBWz9UdVQ8GoD9Marybro3kBNaIObD9aODA4jGk1wI7RKllrSeuoJtTpbJ7UM2lEGqBB9A6vbboi6vuFyNJo94mHM/1wu6G6mTEUPB1g4EahhCdZrUawzaPo7/5LffqPRMNQm5hgW/mlyVFvrArQG/g5wi+EoHtH79+bIXN52y2VuUNLS0A234E4tdWcfGGuMMZ3ISirRw42/Ao8uq9oNj5sMwTLCzerNcbFa9Y9PCKsQvU8Y6CYxL0cB8S7Ix9dUnwCstJgKzeljPWcCR56GI6nLFhAPv4GHYA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aDYVmhYXEy4ketVpnsQfULMqStNMdph5KJy0tgvxeR0=; b=j22zCkrMnw2qNwiG1iQ7LhVqag7y2HUt6W7Di2KAvk8TcULWamqCHSdKZS/tVss8/QQSD6AgP+KYdIWszlm/Z4atdhASKMxARVoj9iMKbVJpQJm7qA9wTm4EZUjoB5UVTFSMwUe2y0SKSMtWK8cxnYNOO01/AI+aeMjxo2+v+3t3GJ33giF60VaseQ+B4PFgz1buuci1SAAtrSkGX1f5DDVeU8q/sOLMs1QXn986E0DsJ4OzzgLxWVNrOyS3vEcUeetfauq2s809D8QjqxtUuO76rRjzeN1D0ouV5YLJRJDSyq1R5/ETgrcRuseMJl2DYvUTiv5jFrNlyUcSd2EirA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aDYVmhYXEy4ketVpnsQfULMqStNMdph5KJy0tgvxeR0=; b=eRvhUATxuceCtOiAojniXw62fOnKoXB9f9BQUKFszu7jZvT3+lfAOdYHXQ8pglGRIflM7AKELHkx4PEC2am4sS7TaOAOgY38+NO3VsBwLCfjzGglpIlIt9lLsTakybZgJzWrhfLIHVFD0ISgb3E9QtsR4aOdhZNMg0YD8x9u4ns=
Received: from PAXPR07MB7806.eurprd07.prod.outlook.com (2603:10a6:102:13a::19) by AM7PR07MB6948.eurprd07.prod.outlook.com (2603:10a6:20b:1bd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.4; Wed, 5 Jan 2022 13:36:44 +0000
Received: from PAXPR07MB7806.eurprd07.prod.outlook.com ([fe80::6df2:1bf8:5d67:26fc]) by PAXPR07MB7806.eurprd07.prod.outlook.com ([fe80::6df2:1bf8:5d67:26fc%4]) with mapi id 15.20.4867.007; Wed, 5 Jan 2022 13:36:44 +0000
From: Mirja Kuehlewind <mirja.kuehlewind@ericsson.com>
To: Kazuho Oku <kazuhooku@gmail.com>, Martin Thomson <mt@lowentropy.net>
CC: IETF QUIC WG <quic@ietf.org>
Subject: Re: NEW_CONNECTION_ID sequence numbers
Thread-Topic: NEW_CONNECTION_ID sequence numbers
Thread-Index: AQHYAfkv8/POQJqN+E+/ggGAe2zoHaxT9KIAgACKvIA=
Date: Wed, 05 Jan 2022 13:36:44 +0000
Message-ID: <A5417EA8-BF3F-4CAE-B2B8-01E5715154E7@ericsson.com>
References: <27e024ed-a78f-416e-869d-82930c7388a3@beta.fastmail.com> <CANatvzyq_sftiTeEEWi3JpYm1+bQS3TsC+wiUxksTpAP0h9gmQ@mail.gmail.com>
In-Reply-To: <CANatvzyq_sftiTeEEWi3JpYm1+bQS3TsC+wiUxksTpAP0h9gmQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.48.21041102
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: d328fa8c-46f0-411c-8077-08d9d0506a42
x-ms-traffictypediagnostic: AM7PR07MB6948:EE_
x-microsoft-antispam-prvs: <AM7PR07MB69485EFA18E789B0019F0BA1F44B9@AM7PR07MB6948.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: rJQLYWhK+TwS8p6+sV2lzX7WFSEl4ja8NI3X/JpfCqNr5+5WNE4DcdaR1PwCCgE94ZQiXmoSoqyccb8Ozt46ujTT2h9zgDIZAmAZNyDSVeOU9XAmm9A1oQg11wu9FxDtoXOxyLISdEtJq83TCVYNCuI+DA0a1t5G0kHySmEKojvSDvBOb/rmjCoFpzY6FyDNZM+diuJS9oE6UBEWS4DMMjMY/UI6asCeNkWoMop03iS2pF1uwG2T/nkkQALrZPtvRYwI8yXAuokp/kFe9Uv4QR/l+Vbmf3j2Hiw/QLfpdBEEtfOXHr7xfE22tkH6sqfawmR1pBMHwaM8W+hpJYPGCJN41Da/CAmtus7tCpEDcz1Gf11Wl1duYHD1vU7yA7k2l0gc64Xkn0XXShDETvpTJMYbMpeUeTrhIvp87vNEAo38Bbbt+5qFCUM7G/JUtnJeB6JMXbaMV08Cnw+D47MQBEeQL3z6CZr18KqqkoxAKY/Q/pQNulRHnMTPn5jtmSA91ChDt/KUZa/burbKke9Dq39O8F17qcldPVa4RUp7PAQbfrZVmDcUYr2OGywqOUX449dxmt27+7fOABwtbhpSVVVUED+ZVD9R1EyfAyskbGFdcdU0pjjKHeqEf8Ot9FnOBkE+ZObggLq5NnjqDqHLp7j6m3XCjdterWI+QAuZDOXzvEonhjD4/vzW7P/FXVNo0+TqagV4gtZCfGokzhOY0pdG8LzTZ22mkQlKwLwxJisg6XU64SA9A7O8sqSwq85N46I0JaEVhNactLPESoxRweCbICldiMrRcACM56VdY0whXlf9e8pt+4EQl4K9TtLhY/u2i6GrF1Ax8tZUhr28FA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR07MB7806.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(83380400001)(122000001)(82960400001)(38070700005)(110136005)(38100700002)(166002)(7116003)(316002)(8936002)(6506007)(53546011)(66946007)(86362001)(66446008)(64756008)(66476007)(4326008)(66556008)(44832011)(2906002)(6512007)(6486002)(2616005)(186003)(76116006)(91956017)(8676002)(33656002)(966005)(71200400001)(5660300002)(508600001)(36756003)(45980500001)(20210929001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 7Cph8KRo52HwDWnqpI+B7x0QNXZADH+fvG5J71Rw4yf8HP6gZsv0hmhEzuc3LVbIRfGnfTTdtA16+0LyZKxxLvrnIVb4a57ms8SaCPGpAeALovtik4AvhJgwqar6yGH1V7vnGYwFoXtQxuGiR2I+l99Vt1la1MzRhjw2+Z7dogLzcZSsyfrRLGud8kmAZ/EfckUZbCayY5Kxm8DD5979DJ1Po6gFPc9+VHB8GNvcRVmOMDqs3zDMk3P64/YEi94OHJBaDxFIqRfjoK4RABXXNFIqIKqMzB9pQRJvgnDEqx4ujPrSVmn/Dn+65ECLuxAx39D6drVJOt448RAIa0q11wSa08whKVHlpEcusEKzUsRsUS5y+7QqqbD940nUWak8KgmKMtlsnRDTD1srxIc+O6Xuvpx+QNfY88/DuAtic+Z6OxxojufFRHmCdUMT8p35PWEL5xuH4yUldHd6UrxDpUQ0XceB3Uid0K/ICusgcVEWZTIaIcKS1rKSKc4AvcLXuHE2oEhipF/XjS9WaVnRrqFRFQI+ItZJJBNoMUcuESgEWVY8prKWs3QL/LppQte6NtzikRF8dJ7YH7euB4Mhc0j0MzeGJDrUUcuxlKcXQfWPuWtKn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8VO4hmUhnxsIYFj9244zjucuOFYpKDyrTNEP2G5xD5Q5HvOJc5sARXI=
Content-Type: multipart/alternative; boundary="_000_A5417EA8BF3F4CAEB2B801E5715154E7ericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PAXPR07MB7806.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: d328fa8c-46f0-411c-8077-08d9d0506a42
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2022 13:36:44.7215 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 3vTLPXXUy1YWT4R+Rh69f30/Iia2Mo6Zkd/23WQIBkN2kcAjH5uo0yPhp7TNZWESRtrKHhNNsvou9SLtTwH4h+MrsWnuFaj5IG/oba9xYOk=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6948
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/L4DOmUovmKMZMOWwoC996s5xW38>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jan 2022 13:36:54 -0000

If we want to keep a record we could also create an errata and ask the AD to set it into “held for document update” state…


From: QUIC <quic-bounces@ietf.org> on behalf of Kazuho Oku <kazuhooku@gmail.com>
Date: Wednesday, 5. January 2022 at 07:21
To: Martin Thomson <mt@lowentropy.net>
Cc: IETF QUIC WG <quic@ietf.org>
Subject: Re: NEW_CONNECTION_ID sequence numbers

Martin, thank you for bringing the issue to the list.

2022年1月5日(水) 14:57 Martin Thomson <mt@lowentropy.net<mailto:mt@lowentropy.net>>:
Hey,

I discovered a problem in my implementation of NEW_CONNECTION_ID that quicly didn't like.  I was always skipping sequence number 1, even when there was no preferred address, which caused quicly to think that I was exceeding the limits it set.

Kazuho, Jana, and I all agree that my code was wrong, but I found it pretty hard to clearly identify how this was specified in the spec.  Here's what it says:

>  The sequence number of the initial connection ID is 0. If the preferred_address transport parameter is sent, the sequence number of the supplied connection ID is 1.
>
> Additional connection IDs are communicated to the peer using NEW_CONNECTION_ID frames (Section 19.15). The sequence number on each newly issued connection ID MUST increase by 1.

-- https://quicwg.org/base-drafts/rfc9000.html#name-issuing-connection-ids<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-2a7ac3727495dfff&q=1&e=2924cc42-2683-482a-9fc8-11e09e03a8df&u=https%3A%2F%2Fquicwg.org%2Fbase-drafts%2Frfc9000.html%23name-issuing-connection-ids>

Is it abundantly clear that I'm wrong based on this?  Did I miss a clearer piece of text elsewhere?  Or, should we be looking to open an erratum?

I think that the cited text is the only place that discusses this, and regarding the text we have now, it seems to me that it clearly *implies* that if preferred_address TP is omitted, then the CID(seqnum=1) should be carried by a NEW_CONNECTION_ID frame.

If we were to skip CID(seqnum=1) when preferred_address TP is omitted, then we would have not used a clause like "if the preferred_address transport parameter is sent." Instead, we would have omitted the if clause or said like "regardless of preferred_address transport parameter being sent."

Therefore, my personal view is that an erratum is *not* required. However, I agree generally that implications are a source of confusion. If we are to revise the spec, this is one place that we can do better.

Anyways. Even if we are to conclude that an erratum is unnecessary, it is always good to keep a record of how potentially confusing text should be read (or be improved in the next revision). To that respect, I appreciate your bringing this issue to the list regardless of how we would conclude.


Cheers,
Martin


--
Kazuho Oku