Return-Path: <jri.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 59C3212D7F4
 for <quic@ietfa.amsl.com>; Fri, 25 May 2018 15:51:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, 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 7PtXt74frFj8 for <quic@ietfa.amsl.com>;
 Fri, 25 May 2018 15:50:58 -0700 (PDT)
Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com
 [IPv6:2607:f8b0:4001:c0b::22f])
 (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 1646F127286
 for <quic@ietf.org>; Fri, 25 May 2018 15:50:58 -0700 (PDT)
Received: by mail-it0-x22f.google.com with SMTP id c3-v6so8686645itj.4
 for <quic@ietf.org>; Fri, 25 May 2018 15:50:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=gFEUPdl3aTh61XNkzcedbBx2wd+io9Idt4d1CHN8LK4=;
 b=DOZ5NbuDFVLjIt7xhy9hyOqzc07X0TYuF9Bx7G10TJxuJpS+ucg76z1JrXePzdz3r1
 Q0LJKtCbUnNSVSk26S9+n+fVyWqbq11Sd4piGvHmSZtcQmdEFBSqytkv1GF2KY+2cofb
 2iTrNlKEATcbY/XcFLCJRE9FAtT68Hig1sV/IIyYLZ8lcTUx6IKPnuo8yYKw8/cI7DnD
 WxwJIR9EvuYy6cEwi9yDn6juyfTXX8KFRJVrsgVrxhegWmJe1xiiHVKNMzE62tSI/SVj
 U1lXKAC1ldKBr/rRYYzfenLTum0V5Tg12I9uo98QEM6HzvMXrDteZU6B9V8tDjp4W4yE
 lJjQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=gFEUPdl3aTh61XNkzcedbBx2wd+io9Idt4d1CHN8LK4=;
 b=FYZ9kotsnP5uDVbW1ymx9Wrf050jetODRsDgbfLFvzK5vNPqJjNKVOWkDuUYr0vvqs
 1vqHXjiZtN2zQ6Eb6y+SFzBTM+1upkdjob95mH82T9hqsd8V+M28ViquAvk0gev0uEtx
 om6RuO0blZCy47f3UhM0DSlhfKSPJOTUsCxV7q3Tenb9fVdKX5aTAB8Ti6JKZG0A19D1
 0Rna7bSuYKxRR4pWMrvr3mBY7/wB7y9KWe36dGG6fYUu2MDbD4titvEbmIGyrBeVlb5W
 d5iQ1opn5hw4PGzPBvx3+DtVh0XIiL3/87rkXVceblulPHm5GepUcxqjuPTVKonhFvCT
 jn2w==
X-Gm-Message-State: ALKqPwdVex9gY9uf9FqcalFsMvOxn8weAg/3d9XJCHzBOcAW6gVg1K/a
 avy4zM4BbooV7WhUAp9mw958WM17BCYwbN2LNSU=
X-Google-Smtp-Source: ADUXVKJSnFU14pVBf7061NW9JP2/QgqWylT5q4YV86vtRoANBQis/SztyONRxNMIZIQ1KMpFGYef1L64aD+jdsG5jM0=
X-Received: by 2002:a24:9c1:: with SMTP id 184-v6mr4143717itm.9.1527288657451; 
 Fri, 25 May 2018 15:50:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a4f:2a46:0:0:0:0:0 with HTTP; Fri, 25 May 2018 15:50:56
 -0700 (PDT)
In-Reply-To: <CABkgnnUAiztUw-kEr97bCX499eQL8wno11rRJQJD+49eBn6LXA@mail.gmail.com>
References: <CAOYVs2q63DpkPZTbw9T24ZcFOxbvrWAGvOtUaHvCuSg_13pSkQ@mail.gmail.com>
 <CABkgnnUAiztUw-kEr97bCX499eQL8wno11rRJQJD+49eBn6LXA@mail.gmail.com>
From: Jana Iyengar <jri.ietf@gmail.com>
Date: Fri, 25 May 2018 15:50:56 -0700
Message-ID: <CACpbDcezAWLC+4W8CezXnjyivWGV6ktR_XoCDnBT24MUKCg-PA@mail.gmail.com>
Subject: Re: Payload length 0
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Marten Seemann <martenseemann@gmail.com>, QUIC WG <quic@ietf.org>, 
 "Eggert, Lars" <lars@netapp.com>
Content-Type: multipart/alternative; boundary="000000000000e59e68056d0f99c1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/-9xUdh_77VSqcQaeAKK6a_AVYf8>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 25 May 2018 22:51:01 -0000

--000000000000e59e68056d0f99c1
Content-Type: text/plain; charset="UTF-8"

I'm fine with having 0 not be special. Marten and Lars had stronger
opinions, so they should speak up.

On Thu, May 24, 2018 at 9:06 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> It seems like the discussion has settled down.
>
> For those advocating for 0 being special, are you happy to keep things as
> they are?
> On Fri, May 18, 2018 at 3:08 PM Marten Seemann <martenseemann@gmail.com>
> wrote:
>
> > Jana asked me to raise this issue on the list, after we already had a bit
> of discussion in https://github.com/quicwg/base-drafts/pull/1301.
>
> > The proposal is to make a payload length of 0 a special value, indicating
> that the packet is not a coalesced packet, i.e. that the whole payload of
> the UDP packet is the QUIC packet. This would eliminate an invalid value of
> the payload length (there are no empty packets), save one byte for packet
> lengths where varint encoding would result in a two byte number, and
> apparently also simplify (some) implementations.
>
> > Kazuho argued creating two versions of each Long Header type (one with
> and one without a payload length) is the better solution, since all values
> below the AEAD tag length + 1 are invalid values anyway, and it would save
> one more byte.
>
> > We should make a decision if and what we want to do about this.
>
>

--000000000000e59e68056d0f99c1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m fine with having 0 not be special. Marten and Lars=
 had stronger opinions, so they should speak up.</div><div class=3D"gmail_e=
xtra"><br><div class=3D"gmail_quote">On Thu, May 24, 2018 at 9:06 PM, Marti=
n Thomson <span dir=3D"ltr">&lt;<a href=3D"mailto:martin.thomson@gmail.com"=
 target=3D"_blank">martin.thomson@gmail.com</a>&gt;</span> wrote:<br><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex">It seems like the discussion has settled down.<br>
<br>
For those advocating for 0 being special, are you happy to keep things as<b=
r>
they are?<br>
<span class=3D"im HOEnZb">On Fri, May 18, 2018 at 3:08 PM Marten Seemann &l=
t;<a href=3D"mailto:martenseemann@gmail.com">martenseemann@gmail.com</a>&gt=
;<br>
wrote:<br>
<br>
</span><div class=3D"HOEnZb"><div class=3D"h5">&gt; Jana asked me to raise =
this issue on the list, after we already had a bit<br>
of discussion in <a href=3D"https://github.com/quicwg/base-drafts/pull/1301=
" rel=3D"noreferrer" target=3D"_blank">https://github.com/quicwg/<wbr>base-=
drafts/pull/1301</a>.<br>
<br>
&gt; The proposal is to make a payload length of 0 a special value, indicat=
ing<br>
that the packet is not a coalesced packet, i.e. that the whole payload of<b=
r>
the UDP packet is the QUIC packet. This would eliminate an invalid value of=
<br>
the payload length (there are no empty packets), save one byte for packet<b=
r>
lengths where varint encoding would result in a two byte number, and<br>
apparently also simplify (some) implementations.<br>
<br>
&gt; Kazuho argued creating two versions of each Long Header type (one with=
<br>
and one without a payload length) is the better solution, since all values<=
br>
below the AEAD tag length + 1 are invalid values anyway, and it would save<=
br>
one more byte.<br>
<br>
&gt; We should make a decision if and what we want to do about this.<br>
<br>
</div></div></blockquote></div><br></div>

--000000000000e59e68056d0f99c1--

