Re: Spin bit as a negotiated option

Kazuho Oku <kazuhooku@gmail.com> Thu, 04 October 2018 22:16 UTC

Return-Path: <kazuhooku@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 3B894130DE3 for <quic@ietfa.amsl.com>; Thu, 4 Oct 2018 15:16:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, 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 U_7KoxkWwp9D for <quic@ietfa.amsl.com>; Thu, 4 Oct 2018 15:16:06 -0700 (PDT)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 695DF130934 for <quic@ietf.org>; Thu, 4 Oct 2018 15:16:06 -0700 (PDT)
Received: by mail-lj1-x233.google.com with SMTP id p1-v6so5954034ljg.6 for <quic@ietf.org>; Thu, 04 Oct 2018 15:16:06 -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:content-transfer-encoding; bh=SQv0Xe+aP96jOqem/sHAjjgn3D5nHt0bIYZTgGBuUKQ=; b=Qk9Hv+58DfTAqEJndE7j1/Otk4LSToeL51JvYdu/57ak9x3iCXuaEriXbDEpo0Z7lf M8DGYol9QD4PGB8HslcV6oEXZOFiVAAkSi3k6sU9UunJEJcfgyTR+b4gdEL8RrXSngeu 7p08jIo4WdHJMDcy8G2cLVJbNMKbjOkKSL9De10sYtlt89V9cCret91JFgsH4FU0jSHW iC++6iqhG8p/LLPLispK614lMcaj1yYelpdeYzrhLPCmdBqwaMJQP2x0x8ju00d9mScN QPVyuKoMa9lm3yRoI1o1uI+1xvDDLgGvmy5l6EhZ0CWJZLVjSGeNB863VrTGWOTW7cA1 F18A==
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:content-transfer-encoding; bh=SQv0Xe+aP96jOqem/sHAjjgn3D5nHt0bIYZTgGBuUKQ=; b=JO9GmMNXMZkR/kWG0B/tG0xNC+jRbJNUS9iYCmOIB8uFq2fnW3ym0rUyOdw2i7h7ZD eQc7As1bgbDgFEDU5RIWpgQ6TVsVF5xdQ/EpQ2bXzg2dOMMauUthzze8vz6qyQjNMIWp +E0JngXoGV4wW9Y0tUDA0X6awyyyropGGPGgVa5f+Zh9imILJ8OzntIyx9xvpqoNrHmf o/1fYUaM2iag9A+eD5bT3CzGfbOvMs4bcf+YwP4DWGP+nqPp6fDE6/tlzadvF6TcL4cz rlQ3AvI+ejavtDXLcddsoTdLmB5yOTjcI4UUxSUC5P/8foBWrWhg7brBgkUjTqiTu1vF O1KQ==
X-Gm-Message-State: ABuFfohAWV2lSAb0+dpfw+c1kVULqYUADIG2DYDDvY/vV2LdS/ZlCM8T 4Bpg4B0zFhn/LSCB23iHOlXGXXrZ7w2StZf1oqA=
X-Google-Smtp-Source: ACcGV61imvEnK8AfiSW0PgziheeyTrmJ9JhRtRXToPW7lHqnXmzJf5nlKuXmIKuDWiNummcDX+j6kw1GP6ZiFr5bNYw=
X-Received: by 2002:a2e:350e:: with SMTP id z14-v6mr5221420ljz.49.1538691364554; Thu, 04 Oct 2018 15:16:04 -0700 (PDT)
MIME-Version: 1.0
References: <14531_1538460420_5BB30B04_14531_237_4_c0f3a391-9897-80b0-575b-aa73edad0d52@orange.com> <9737_1538485723_5BB36DDB_9737_147_1_82e0e028-b0e8-5e09-7bd5-e66db97c556a@orange.com> <E7479831-9594-444E-9545-A162E8D9B154@eggert.org> <32072_1538492813_5BB3898D_32072_266_1_8380ff40-29fe-269b-8ed7-4331c9e53f4d@orange.com> <MWHPR22MB0991D93D706031603B077BFCDAE80@MWHPR22MB0991.namprd22.prod.outlook.com> <CAKcm_gM+zAEwfimHsorsWprJgS7O++85EOjpQoNY0LviaQ+KNQ@mail.gmail.com> <45751C2A-9F6C-4447-8D70-11ABE8C07F8D@trammell.ch> <CANatvzzCvmbu=bN1C-UCzNaT6EUPVCMPwY53wyFNkKa4HQT00g@mail.gmail.com> <E32A1E8D-0FD7-47F3-B026-10D46E201D54@trammell.ch> <21082_1538561186_5BB494A2_21082_335_1_26ed0978-a314-37d1-3c97-5924d62ef539@orange.com> <CANatvzy87Lc-kyzQUcZZS7unvaBQF+DUoEHsd1G0UoPncr4AEQ@mail.gmail.com> <4582_1538649993_5BB5EF89_4582_187_1_98109893-8492-6a58-0534-3fc4eaa09dd9@orange.com> <CANatvzwzw7snBV4bXfhvWJk4znOmv0Er6kwidRR+dPQsfFczkw@mail.gmail.com> <5571_1538690129_5BB68C51_5571_214_1_77c6c0d0-d40c-d44c-e763-bb955eef69ae@orange.com>
In-Reply-To: <5571_1538690129_5BB68C51_5571_214_1_77c6c0d0-d40c-d44c-e763-bb955eef69ae@orange.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Fri, 05 Oct 2018 07:15:54 +0900
Message-ID: <CANatvzyHUXSPsW84GE=-A4JNJTQ1rFtRgr1kvoxfOF9qGtws_A@mail.gmail.com>
Subject: Re: Spin bit as a negotiated option
To: Lili Peaudchien <alexandre.ferrieux@orange.com>
Cc: IETF QUIC WG <quic@ietf.org>, Brian Trammell <ietf@trammell.ch>, Christian Huitema <huitema@huitema.net>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/5CGdr4Hgrq9GNPMdTZlnA80mrTw>
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, 04 Oct 2018 22:16:09 -0000

2018年10月5日(金) 6:55 <alexandre.ferrieux@orange.com>:
>
> On 10/04/18 23:40, Kazuho Oku wrote:
> > 2018年10月4日(木) 19:46 <alexandre.ferrieux@orange.com>:
> >>
> >> Thanks Kazuho. Using version numbers directly was an obvious choice, but so far
> >> I was discouraged by strong language in the spec, saying 0x00000001 was the
> >> unavoidable point of convergence after all 0xFF0000XX experiments. So in essence
> >> you're proposing to weaken that a bit, right ?
> >
> > I am not sure if we have reached consensus that QUICv1 should use
> > 0x00000001 as the one and only number for the version number field.
> >
> > My understanding is that it is simply written as such because I-D is a
> > draft of a RFC. A RFC needs to clarify the value of version number
> > field it uses, and I-D needs to have a paragraph that amends on how
> > the draft-versions uses the field.
>
> OK, thanks for the clarification.
>
> > I do not think we can segment the version number space, because IMO it
> > essentially means making spin bits an invariant. My understanding is
> > that spin bits is something specific to v1.
> >
> > QUICv1 might use different values on the version number field to
> > represent if spin bits is (or other signals are) available, but that
> > does not mean that v2 will expose the same signals or they would use
> > the version number field for indicating that.
> >
> > If it is the case that the use of 0x1xx for V1 might give people the
> > impression that the lower bits are used to indicate the availability
> > of unencrypted signals across multiple versions, I think starting from
> > 0x00000001 (i.e. the one you describe as "direct enumeration") would
> > be preferable.
>
> Crystal clear, and agreed:)
>
> >> Also, are we sure that this explosion won't weigh on the new VN scheme, inducing
> >> slower convergence due to longer lists on either side ?
> >
> > I do not think that is an issue for v1, because what currently at
> > stake is if we should assign one or two extra version numbers (i.e.
> > one for spin bit, and possibly another for spin+vec as a separate
> > draft).
> >
> > If folks agree to expose other signals that requires a "configuration"
> > to be exposed as well, then they can define a new version number that
> > introduces a new field to the long header format for exposing the
> > "configuration."
>
> OK. So, wrapping up, and abstracting away for now the bit layout of the version
> number by using symbolic names, we'd start (right after Bangkok) with something
> like:
>
>         - "v1"     = v1 without extensions
>         - "v1s"    = v1 with spin bit only
>         - "v1svv"  = v1 with spin bit and VEC
>         - "v1sqr"  = v1 with spin bit and loss bits Q and R
>         - etc (?)

Yes.

We will have "v1" and "v1s", assuming that we would agree to ship the
one-bit "spin bit" approach as part of QUICv1. People will also have
the freedom for using more bits for the flavors (e.g. "v1svvv",
"v1sqr").

>
> One question though: what part of the version negotiation exchange is in clear ?
> IOW, would the selected version always be exposed to the path, or should
> spin-consumers rely on heuristics to guess the variant in use ?

My understanding is (assuming #1755 gets merged):
* the version number field of a long header would always be "v1" for
the first Initial sent from the client
* the value would be the negotiated version for exchanges that follows that
* there is no version number field in the short header

Therefore, for each path identified the 5-tuple, an observer would
remember the version number of the last long header packet that it has
seen (or it could remember the version number of any Handshake
packet), and use that to determine what is being exposed on the wire.
No heuristics is required.

OTOH, because version number field does not exist in the short header,
an observer cannot determine if any signal is exposed for a connection
after it migrates to a 5-tuple, or for a connection that has been
alive before starting the observation. Use of heuristics would be the
only way for such cases.

>
>
>
>
> _________________________________________________________________________________________________________________________
>
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> Thank you.
>


-- 
Kazuho Oku