PSA: Choosing codepoints

Martin Thomson <mt@lowentropy.net> Mon, 14 December 2020 23:33 UTC

Return-Path: <mt@lowentropy.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 BAB163A114C for <quic@ietfa.amsl.com>; Mon, 14 Dec 2020 15:33:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.197
X-Spam-Level:
X-Spam-Status: No, score=-0.197 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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=lowentropy.net header.b=AWyaxKEo; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=PKE8JY2f
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 G9PryCO062or for <quic@ietfa.amsl.com>; Mon, 14 Dec 2020 15:33:40 -0800 (PST)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61EB73A1134 for <quic@ietf.org>; Mon, 14 Dec 2020 15:33:40 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 85C895C0148 for <quic@ietf.org>; Mon, 14 Dec 2020 18:33:39 -0500 (EST)
Received: from imap10 ([10.202.2.60]) by compute1.internal (MEProxy); Mon, 14 Dec 2020 18:33:39 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=8sh5pz71ACCEhAUy/8N8dL3wqdQ2qeSjO7e/15phd6o=; b=AWyaxKEo 37lb0bGh48lyYuX90VqDsw1302/hEU88qRoGczNwKjSCd8W2OKTD5BZUEUiw/Zk0 PMZpVmqIpbeVL0//AFn8buAOAXO1zVP5FxYoZUlwtKqQTmRKfSieFh6Ump8pKi3W draWOetcVDB+WBO+DBzQ8ymp0ChkSh9Y71Lpg4/WsWSlKEWOwQZFIJEIaVxiu53W u2X2PnfEA2PXDMj22wHdQZpPPPWG6m4W18zLiCbL+VV/9jOIQNOmz5DvbYNUIwW7 nxh57EGuHyzbn1rBhF2JhVFvJV1GKt5tlrbftxWZirr2LPnJCnXf8NfqM6/0mYpL biJ/1eQ4n+bfJQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=8sh5pz71ACCEhAUy/8N8dL3wqdQ2q eSjO7e/15phd6o=; b=PKE8JY2f/lakhg71KrCP2/Fk1LkWKBEB1r0DAMFE+utxz Jmrm1CRUQSbPo4bsvKEkWhY+jW6CbvJtMZKOXJwGI6jdEdHttu0U2kmwKHbbjAJF hh9xND+preAbnwQXQjnfr5Pqod9Ioj/4a/mY+l5uJ/UVeTFUm0kRwMaIGovLwnFc u8OgvFakpahGFqnyeNpExGUirnV+Rr9vHM+P6jigGJdvRa0BTqExjcn/RttV1ShJ aBmqfX+9zuC/hJo13HlT/yGAZAGKMr5KScqXSkL7pwX9+bpu9imRQGohx2ThzKRX qL/rz0MoLQZk4wbAByD6yGRtoD2jAm0g252v7UAYw==
X-ME-Sender: <xms:U_bXX7BiYlspMZ1pKxqMYVf7HbkUx6tSpLjqW3phLEQA0tjPl2iaPQ> <xme:U_bXXxhBxC8g82DrPG8RcB4F6cvXvceUYUgTBe4Ov5r4c_jrtlKEnHN4xL_R_dXlN Ue9zcZEoYCr9FV1uTs>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudekledguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfofgrrhhtihhnucfvhhhomhhsohhnfdcuoehmtheslhhofigv nhhtrhhophihrdhnvghtqeenucggtffrrghtthgvrhhnpeejteefgfejudeltddtiedugf fffeefkeffudetgeegjeeuffdtueeugffgteefheenucffohhmrghinhepqhhuihgtfihg rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhhtsehlohifvghnthhrohhphidrnhgvth
X-ME-Proxy: <xmx:U_bXX2mfi3I-YbVTbRuPTo7fUK4ei10pHL8oKSqUnhYSu6ledFj5iw> <xmx:U_bXX9yhWn59Ko8ge_bFRptKj0RCvm4RHplilulzXuGk6BH3B5P-aA> <xmx:U_bXXwRXFnUFKVfaaHL7H0RZJlkTnrOdN6pAIi2fd1A0l0sP0l_L5g> <xmx:U_bXX3dzugLIWTIODzqlMkqQMOVZDefXpITxp1TTbx3MMIsFYWUGtw>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0E7FF200C5; Mon, 14 Dec 2020 18:33:39 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396
Mime-Version: 1.0
Message-Id: <67d12208-3a98-433c-bda4-bacd5506d870@www.fastmail.com>
Date: Tue, 15 Dec 2020 10:33:20 +1100
From: Martin Thomson <mt@lowentropy.net>
To: quic@ietf.org
Subject: PSA: Choosing codepoints
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/kd6DhvaiUVXBB-RgqAn9f_ETx7Y>
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: Mon, 14 Dec 2020 23:33:42 -0000

I see that the recent multipath extensions are all proposing use of sequential codepoints, taken from the start of the range of available codepoints with two byte encodings.

Please don't do this.  Two reasons:

1. We've already had collisions.  Choose a value from the range at random.

2. We've already burned codepoints with small encodings.  When you are trialing an extension, choose a value with a longer encoding.  There are plenty of those to waste.

The former is in the QUIC draft [1].

[1] https://quicwg.org/base-drafts/draft-ietf-quic-transport.html#name-selecting-codepoints