RE: Payload length 0

"Deval, Manasi" <manasi.deval@intel.com> Fri, 18 May 2018 14:05 UTC

Return-Path: <manasi.deval@intel.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 610F312D96B for <quic@ietfa.amsl.com>; Fri, 18 May 2018 07:05:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 ERPfr_icsvYf for <quic@ietfa.amsl.com>; Fri, 18 May 2018 07:05:50 -0700 (PDT)
Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 735D812D947 for <quic@ietf.org>; Fri, 18 May 2018 07:05:50 -0700 (PDT)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 May 2018 07:05:50 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.49,415,1520924400"; d="scan'208";a="51963770"
Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by orsmga003.jf.intel.com with ESMTP; 18 May 2018 07:05:49 -0700
Received: from orsmsx161.amr.corp.intel.com (10.22.240.84) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 18 May 2018 07:05:49 -0700
Received: from orsmsx111.amr.corp.intel.com ([169.254.12.62]) by ORSMSX161.amr.corp.intel.com ([169.254.4.211]) with mapi id 14.03.0319.002; Fri, 18 May 2018 07:05:49 -0700
From: "Deval, Manasi" <manasi.deval@intel.com>
To: Dmitri Tikhonov <dtikhonov@litespeedtech.com>, Ian Swett <ianswett@google.com>
CC: Marten Seemann <martenseemann@gmail.com>, IETF QUIC WG <quic@ietf.org>, Martin Thomson <martin.thomson@gmail.com>
Subject: RE: Payload length 0
Thread-Topic: Payload length 0
Thread-Index: AQHT7mZJNe1DSmftdUmmN/yzX8LXe6Q1bEAAgABteYCAABthgP//kH4A
Date: Fri, 18 May 2018 14:05:49 +0000
Message-ID: <1F436ED13A22A246A59CA374CBC543998B7C712F@ORSMSX111.amr.corp.intel.com>
References: <CAOYVs2q63DpkPZTbw9T24ZcFOxbvrWAGvOtUaHvCuSg_13pSkQ@mail.gmail.com> <CABkgnnWpgyN_OPac-uSKALEaVc8mO_LpT9gAOs-n1eKqso5QAQ@mail.gmail.com> <CAKcm_gMFumNgPq4FxwcgzgDUCvn_jUxb0qk7tAgYZ=LvKfxjfg@mail.gmail.com> <20180518134400.GA12617@ubuntu-dmitri>
In-Reply-To: <20180518134400.GA12617@ubuntu-dmitri>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
dlp-product: dlpe-windows
dlp-version: 11.0.200.100
dlp-reaction: no-action
x-originating-ip: [10.22.254.140]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/ZGCwb2QQEiZVM-l7f0dItIuNgIU>
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, 18 May 2018 14:05:53 -0000

Agree with keeping payload length in the header.


-----Original Message-----
From: QUIC [mailto:quic-bounces@ietf.org] On Behalf Of Dmitri Tikhonov
Sent: Friday, May 18, 2018 6:44 AM
To: Ian Swett <ianswett@google.com>
Cc: Marten Seemann <martenseemann@gmail.com>; IETF QUIC WG <quic@ietf.org>; Martin Thomson <martin.thomson@gmail.com>
Subject: Re: Payload length 0

I agree with Martin and Ian.  We should keep the payload length field and its value should be the actual length of the payload.

In addition to being simple, this allows some flexibility when packet generattion is far away (in time or code) from actually sending a packet.  That is to say, it is easier not to have to make the decision which version of the payload length value to use when the packet is created.

  - Dmitri.

On Fri, May 18, 2018 at 08:06:01AM -0400, Ian Swett wrote:
> I would also prefer to not do either of these, because I think it adds 
> complexity and the byte savings are tiny.
> 
> On Fri, May 18, 2018 at 1:34 AM Martin Thomson 
> <martin.thomson@gmail.com>
> wrote:
> 
> > Having just implemented this (and gotten it wrong once), I don't 
> > want more special cases.  Both of these options need extra code.  As 
> > Kazuho points out, filling in a two octet length is trivial.
> >
> > It's true that a length of 0 is invalid, but so is 1 through 16.
> >
> > Yes, this saves an octet, on about 4 packets per connection in the 
> > common case, more like 2 if you actually take advantage of compound packets.
> > 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.
> >
> >