Re: Fibonaccing CID lengths

Marten Seemann <martenseemann@gmail.com> Thu, 23 May 2019 15:14 UTC

Return-Path: <martenseemann@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 DD53A1200A2 for <quic@ietfa.amsl.com>; Thu, 23 May 2019 08:14:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 dcDrs9Nw47Il for <quic@ietfa.amsl.com>; Thu, 23 May 2019 08:14:31 -0700 (PDT)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 D39041200FC for <quic@ietf.org>; Thu, 23 May 2019 08:13:52 -0700 (PDT)
Received: by mail-lj1-x22a.google.com with SMTP id j24so5848733ljg.1 for <quic@ietf.org>; Thu, 23 May 2019 08:13:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KI4VDQBPQYnKP6s5Iv65uj/YdasCLlylqxz7zKTXUdc=; b=MLjsd2N04aURI+UYWhuOgIEpVTDrOVuAcEBD7VRXndbOVIW3Pu/XqqIxkW5UKzSr9C PG87vvz1T22YVWqka5x2/XrIAEVXQvIw/mx1T7ezOdEx4RW6mNuNORMNEUm125kjKcj5 c684lFHCGZ2f+5CNuHCPv56rY6z3x7VviMwNuCKsat6oi8KHGN5FOu35uyIPtjD+IaeP tJ2sibDBWezQMjyYnJ9j4OWtGNCKbxTT2msk09MKRcz1YL/rSRAZYznwH/OfreI9/rhQ ua4o0o7Kcev1W3yI8Gvwi3T1vZoEeYUyLdVJaY+CwPFNGzZHH+ZVZrDiwGgmIRzxSl75 efbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KI4VDQBPQYnKP6s5Iv65uj/YdasCLlylqxz7zKTXUdc=; b=lNu1to543D26H8xQ3SV/C3KlVFTdvDWI1qY6FbAl90g9RMbyeOWNU4vYAOVyn05cUr jLhiVU5GSdaamufz351hGluT7a10QkMLOqQ6/IfpkNMeFTu98dokyUtnf0D/dGiGOMax UYzlV3OhH2oIrZ9dwx2U8coWw5W0JJ0DpA8K8sfnPy+cu+keMHUnNkP3+Ei7c8805tuL tDoRQvDxW4v/iaKhX0tTHKtx7XPbyvA0ypv4WAj0OH4BB1p8g1gPK7SWnzufv5rU9QEK dvmhrSr/ZV0SBpr6lce0bUx/rW/AtARX3Oal3BPfE0XtfdT3I65hT6r0pEmjquPk8h6H zdAw==
X-Gm-Message-State: APjAAAW4bsC+pCN7V/cyWzZA49GrP+GQVBwRgLOvkgnawr0+d0tSr90f dB/XGxRb6pw1czVvIOteWjbjooPsPZqfCaroB0A=
X-Google-Smtp-Source: APXvYqy3O1bjUENvGMksXhfoPy/cwlQ0DjTVxKXb9koKi8u+BDQobDGy8ZZq9ArfBGCCW9Ik1tmDpCTjDkH5gUrkQ1k=
X-Received: by 2002:a2e:960e:: with SMTP id v14mr25994222ljh.31.1558624430958; Thu, 23 May 2019 08:13:50 -0700 (PDT)
MIME-Version: 1.0
References: <20190522141238.GA23472@ubuntu-dmitri> <CAN1APdfBMeKGzsdLR__OLUHQ7pg=YM76C2Qxn6VDCXu680JQyA@mail.gmail.com> <ab64bdc2-805b-a86d-c525-41d076deac40@huitema.net> <20190522200406.GA28789@ubuntu-dmitri> <CANatvzx4rxk6UU48omk-EfpoYzfg_zWR+N49zMWi_5rv722uQg@mail.gmail.com> <20190523082129.GA6712@ubuntu-dmitri> <CAPDSy+6SpSjSeiMOjZWbC2x4mnpmsPf3PQq08s6KBru3aSRt0w@mail.gmail.com>
In-Reply-To: <CAPDSy+6SpSjSeiMOjZWbC2x4mnpmsPf3PQq08s6KBru3aSRt0w@mail.gmail.com>
From: Marten Seemann <martenseemann@gmail.com>
Date: Thu, 23 May 2019 16:13:39 +0100
Message-ID: <CAOYVs2rrppV=iyfn=Tfpw_QFyvJo6RtY65S81J5OqL5Tuj9ydg@mail.gmail.com>
Subject: Re: Fibonaccing CID lengths
To: David Schinazi <dschinazi.ietf@gmail.com>
Cc: Kazuho Oku <kazuhooku@gmail.com>, Christian Huitema <huitema@huitema.net>, Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000008babd105898f87eb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/jaVbfOdurI44loVettyYa2ARlpA>
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: Thu, 23 May 2019 15:14:34 -0000

Using an 8-bit encoding would also prevent ossification of the first two
bits of each connection ID length field. These bits would always be 0 (in
QUIC v1), since connection ID lengths above 48 can never occur.

On Thu, May 23, 2019 at 4:08 PM David Schinazi <dschinazi.ietf@gmail.com>
wrote:

> This encoding would be harder to deploy on our servers than having two
> 8-bit lengths. The only benefit of this is saving 8 bits on long headers,
> and that's not worth the complexity.
>
> On Thu, May 23, 2019 at 9:21 AM Dmitri Tikhonov <
> dtikhonov@litespeedtech.com> wrote:
>
>> On Thu, May 23, 2019 at 04:36:54AM +0100, Kazuho Oku wrote:
>> > 2019年5月22日(水) 21:04 Dmitri Tikhonov <dtikhonov@litespeedtech.com>:
>> > > While the example is lighthearted, the proposal is serious: that is,
>> > > remap 0 - 15 values of the nybble to a different set.  Do we need to
>> > > represent every intermediate number between 0 and 48 (the maximum of
>> > > the current PR)?
>> >
>> > The question is what you gain by compressing the length to 4 bits.
>> >
>> ----- 8< --- 8< --- 8< ---
>> >
>> > So, what's the benefit?
>>
>> Smaller change to the drafts -- and existing code.
>>
>>   - Dmitri.
>>
>>