Re: Payload length 0

Marten Seemann <martenseemann@gmail.com> Sat, 26 May 2018 00:20 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 B6370127058 for <quic@ietfa.amsl.com>; Fri, 25 May 2018 17:20:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 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, URIBL_BLOCKED=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 y9Pde8qoedha for <quic@ietfa.amsl.com>; Fri, 25 May 2018 17:20:33 -0700 (PDT)
Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 80A1D1267BB for <quic@ietf.org>; Fri, 25 May 2018 17:20:33 -0700 (PDT)
Received: by mail-io0-x22b.google.com with SMTP id y2-v6so2927350iob.11 for <quic@ietf.org>; Fri, 25 May 2018 17:20:33 -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=cV3ran88uC9DMoP+Xhffy97WlPaMqXM+8gwYPAzAlzs=; b=IyE4y6XUwi1uVSvKj6eStsoQ87jcpTtFfAg8vUH7zqC4fPQ/722xd5BrDUjctNUfRz +if7i/WO0Y2+2XiCanfcy+wHrQDI3H0qGYlwlgx+lssFdohGJ0ky8pcRlDABg+gAvhh8 UOqd9s6DYkLUnWIcGFW/Uu5e8LHPdzqZlbyF2+B/hpNP1CsY681OViA2ovZhNAqptluM pGtu1C9YLaNdMoJY5z37vFCxWz2+/WUO156XYgTmiBHuPBdvW3Gtrb/j8iQSugJ8uvXb uZfUulhbXcvtqpf0FN70pjT9lBMh1ySZUKFZoiWpy0nTtR5ca6+9nT/rsIGQc9wjmC2A zagQ==
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=cV3ran88uC9DMoP+Xhffy97WlPaMqXM+8gwYPAzAlzs=; b=Da63V37w8QhXQs2anO7QBkMkWwhw80SVnI2IHDwvciN8vcXe57j5iMkIT5MpnlRY81 QzE8+3IZ0I7DRvH2qf1NLf/GfylbuW2IgLeykBUaX/hKbF9EF4u3OlyoWY7DFqEX8pa7 XgjL0wMORZvOEPgSqLrL2wGwA2cGj75Lb5I8D+CPchrha3Ok4FDTXwutmNzlUFmqCde/ gkONUpfouqnCRBdWPaLujZ8JAiRvVSN/0s3KJ2NqI2QM/gQED2sNniml5ekGnJl92DOV s0n1zZVgjtoMJkyPTXCa1g97DUqupDgRteACmHL5uBz4HYNNPcVaaPnL1W3hI8B9QgZ2 Z7dw==
X-Gm-Message-State: ALKqPweqmKnAxrOvq3SS0peyNqXSZroHuiZHmd/pxzo74tNNqDYj88wb VfWLZN+t5qVS962Ubuc0JdO4ckqeL7aQMf59MEw=
X-Google-Smtp-Source: ADUXVKJHFXGBCGFFYH0g0GUuihVIWudtJX0bCrxWUzlTg5w0X32PL6/WBUvkbru7PtYWU5UwqTGaNSa8r8aV1ACY+FA=
X-Received: by 2002:a6b:b5c6:: with SMTP id e189-v6mr3880070iof.29.1527294032686; Fri, 25 May 2018 17:20:32 -0700 (PDT)
MIME-Version: 1.0
References: <CAOYVs2q63DpkPZTbw9T24ZcFOxbvrWAGvOtUaHvCuSg_13pSkQ@mail.gmail.com> <CABkgnnUAiztUw-kEr97bCX499eQL8wno11rRJQJD+49eBn6LXA@mail.gmail.com> <CACpbDcezAWLC+4W8CezXnjyivWGV6ktR_XoCDnBT24MUKCg-PA@mail.gmail.com>
In-Reply-To: <CACpbDcezAWLC+4W8CezXnjyivWGV6ktR_XoCDnBT24MUKCg-PA@mail.gmail.com>
From: Marten Seemann <martenseemann@gmail.com>
Date: Sat, 26 May 2018 08:20:21 +0800
Message-ID: <CAOYVs2pcSC__ERAWzd8dwJ_4HXL_je1heftyQz6YCCSM6gQ_yQ@mail.gmail.com>
Subject: Re: Payload length 0
To: Jana Iyengar <jri.ietf@gmail.com>
Cc: "Eggert, Lars" <lars@netapp.com>, Martin Thomson <martin.thomson@gmail.com>, QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004939f6056d10dad6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/a862BgQWNfvH09Qoka0hGvbrczo>
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: Sat, 26 May 2018 00:20:36 -0000

Works for me.

On Sat 26. May 2018 at 06:50, Jana Iyengar <jri.ietf@gmail.com> wrote:

> 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.
>>
>>
>