Re: Fwd: New Version Notification for draft-piraux-quic-additional-addresses-00.txt

David Schinazi <dschinazi.ietf@gmail.com> Tue, 18 October 2022 21:01 UTC

Return-Path: <dschinazi.ietf@gmail.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 1C73AC15257C for <quic@ietfa.amsl.com>; Tue, 18 Oct 2022 14:01:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8p4HkLyNsfL4 for <quic@ietfa.amsl.com>; Tue, 18 Oct 2022 14:01:25 -0700 (PDT)
Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4F819C152571 for <quic@ietf.org>; Tue, 18 Oct 2022 14:01:25 -0700 (PDT)
Received: by mail-ot1-x332.google.com with SMTP id cb2-20020a056830618200b00661b6e5dcd8so8361511otb.8 for <quic@ietf.org>; Tue, 18 Oct 2022 14:01:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wR20oPrGcNuL7aeClMwV4myey7oeI+8T7Z4pbmBsuiw=; b=nMKajuWGEFZeHvXUV80WrHabHCR4s6A3GO9a3Wu9U276utZ/kqfKdzOyW7ep5j3tG7 p+uKNJGf7RCJ5+2lnBRkBW2us0jiwAN9e0oK7NZ55Zr0BwxE4QewroZXYjiFivveWvex 06AHhyJl3fl3IjSWtizVRCTX8hqD6DCPw1V643FX7ZBv4qDR6nlBRBVRRY4UHjA3tR5f nnkLzdU83nfuKqvOmFT+8fpMed9IfoAH5GN5hwd5Lw6wRJFiGgCqTcuIhqyXJD6uBm5d 3sv8ZI+ZaymkBKg28DBv349mhYkzVwc1zraP7+om4Qr832iGC+xYL73syzoIXKtKtOkA Xezw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wR20oPrGcNuL7aeClMwV4myey7oeI+8T7Z4pbmBsuiw=; b=ddVdpfwg8dVqokqLdwzFmlwa9CML9uglk7sb63h+Lw+WnNXG5O6zMc4ORsC2gHWwKX ffXK1I58yVv/Xlk9Xvd+GL1Qusp92UxKCisAOFYNpx4+URJ06Zqn70TLdRkByBn7/CHx QbGHP8DnlsQgZA4gv0fH30rv/V52mAG/plhwgmlCC6YLDhLARTEVEPmo/yyShMM6mx+H WzOSD6KBHryK9dKQeZelXhxS0nLc2P04TsAdoKkoamJ8gR78h7lOj7OTcGAfTxOcKUtl a9m1PSa3+2gcFgTzP+MUlZQX/TyrZz2u00MS9A724WVW8J+gHjtrI+O9JNMVPB1HGv+y c11w==
X-Gm-Message-State: ACrzQf1rM0C/fI4Bc8NA+1TshRHHjKjzCdQPQlC4y246w6j20ztX5Xps LwUmQoj6qcRPhZFFHDv1wxJIoJNoXqyitjkRJkiSujs6E7M=
X-Google-Smtp-Source: AMsMyM5CSeTZ/KzoEohv0FFcdx9fkz4IUxeRDwA5Z6AMTFXJd4BBCOp12nZSER1c0/X46PtC5oyX3sdJpqKuvUHrRy8=
X-Received: by 2002:a05:6830:2788:b0:65c:48ac:8f38 with SMTP id x8-20020a056830278800b0065c48ac8f38mr2227857otu.359.1666126884329; Tue, 18 Oct 2022 14:01:24 -0700 (PDT)
MIME-Version: 1.0
References: <9612bc63-26c8-fc46-edd3-6aaf712a26c3@uclouvain.be> <56e825e7-bffb-4555-ace3-ecf1fd5085c9@betaapp.fastmail.com> <db081cce-8307-3705-1aa8-3f0246ae2f0a@ericsson.com> <CAPDSy+79CkcfBhk=kZMr-85JJaQiktJE7bnQdU0AjTt2bY_-XQ@mail.gmail.com> <fecf4cb2-4618-ec7b-3852-2a7b6e6d743a@huitema.net>
In-Reply-To: <fecf4cb2-4618-ec7b-3852-2a7b6e6d743a@huitema.net>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Tue, 18 Oct 2022 14:01:10 -0700
Message-ID: <CAPDSy+6B9jGzzBA0=0+ChWYsg0jHxbaXZxF7YbVrV=be_ejQ7A@mail.gmail.com>
Subject: Re: Fwd: New Version Notification for draft-piraux-quic-additional-addresses-00.txt
To: Christian Huitema <huitema@huitema.net>
Cc: Michael Eriksson <michael.eriksson=40ericsson.com@dmarc.ietf.org>, Martin Thomson <mt@lowentropy.net>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000175cd905eb5565c7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/5gYMRGySiNFBZvj7U3-CGmGnL-M>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 18 Oct 2022 21:01:29 -0000

Yes, this comes to mind:
https://xkcd.com/221/
Otherwise, I suggest being lazy like me:
https://www.google.com/search?q=random+number+between+268435456+and+1073741823

David

On Tue, Oct 18, 2022 at 1:46 PM Christian Huitema <huitema@huitema.net>
wrote:

>
> On 10/18/2022 8:28 AM, David Schinazi wrote:
>
> Hi Michael,
>
> While MT's comment might sound nitpicky, he's right in suggesting people
> use real PNRGs because we've already had collisions due to human-picked
> numbers in the past. The fact that quic-multipath made the same mistake
> doesn't make it best practice. (And FWIW I'm also guilty of having made
> that mistake in the past).
>
> I am very much guilty of that too. Mnemonic are nice.  In the past,
> collision between mnemonics was dealt with by simply looking in the
> provisional registry in the WG wiki. That's something we lost when we moved
> to an IANA registry, because there is a longer delay between use in an
> experiment and publication in an IANA registry than just updating a wiki.
> The risk of collision increases. That has to be compensated somehow. But
> there is something else. Experiments are for learning. Drafts changes. The
> good practice is to use some form of versioning -- definitely change the
> Transport Parameter value if you are negotiating something different than
> the original draft. Change the frame id if the syntax changes. Etc. So you
> don't want to just use 0x1337 or 0xdada, you will want 0x1337xx, or
> 0xdadaxx. That kind of diminishes the user friendliness of mnemonics.
>
> On the other hand, I am not sure that mnemonics are more collision prone
> than values picked by bad number generators. "Use a random generator" is
> likely to end up with python scripts like:
>
> import sys
> import random
>
> random.seed(sys.argv[1])
> print(hex(random.randrange(64,0x100000)))
>
> That's not exactly collision proof either...
>
> -- Christian Huitema
>
>
>
>
> David
>
> On Tue, Oct 18, 2022 at 2:28 AM Michael Eriksson <michael.eriksson=
> 40ericsson.com@dmarc.ietf.org> wrote:
>
>> On Tue, Oct 18, 2022 at 11:13:24 +1100, Martin Thomson wrote:
>>  > I see this in the draft:
>>  >
>>  > "TBD - experiments use 0xadda"
>>  >
>>  > I find it hard to believe that this value was chosen at random.
>>  > Please consult a random number generator for these values. And -
>>  > while you are developing proposals - larger values might be more
>>  > appropriate.
>>
>> That was a pretty nitpicky comment... Have you read
>> draft-ietf-quic-multipath? The 0xbabaXX constants don't look very
>> random if you consider the affiliation of the first authors.
>>
>> Also, what is a "large" value? 0xadda is big enough to require a
>> 32-bit VarInt.
>>
>> /me
>>
>