Re: Payload length 0

Martin Thomson <martin.thomson@gmail.com> Fri, 25 May 2018 04:06 UTC

Return-Path: <martin.thomson@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 F230312D885 for <quic@ietfa.amsl.com>; Thu, 24 May 2018 21:06:25 -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 q-oxRbFE2Sm1 for <quic@ietfa.amsl.com>; Thu, 24 May 2018 21:06:24 -0700 (PDT)
Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::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 F0A4F1273E2 for <quic@ietf.org>; Thu, 24 May 2018 21:06:23 -0700 (PDT)
Received: by mail-ot0-x233.google.com with SMTP id g7-v6so4564291otj.11 for <quic@ietf.org>; Thu, 24 May 2018 21:06:23 -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=Df1l/pzwfmcWftzsCtNVlBIOJ//oNqK52k7UxLrLhyw=; b=mKFs3QAhqpLYaBXPuOJdIcWKo44ct70dZRLE6n2Sx4guGOjuM4y/6/XwLN2bBDCRAc Nr0DckmZf/qK2e317DasAHNnc/8RjhbDDM4dhqdLXwIshDZ6A9HfP+U8GBvcR1z47pRZ TXg2c8mbZmF1Ka1ZOJz3j0cF7sk2EIN37eLYyxMarvnG2FZCcjnaSkMeMHQvM4fJAKhK /w5Ra/GbtKRWpo+QlXOTS32VKNItYi32JOvSk17EZnCwpTH+MsfbHLXEXA22Jbj5x7/I mYf8qOSAr+eHZjGyU+fEhwWW/DPpHUGi6UOEuLuYs5Y2mgIhzBwyH1gx2OEhS/G3cc1B TP5g==
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=Df1l/pzwfmcWftzsCtNVlBIOJ//oNqK52k7UxLrLhyw=; b=DIv7neFBThpf7eNpid3BUyKORfMOaYxelNZYRq6m3Gxl6pzKJeKsc9eMpVW7Q7sJ5z k8P8Lp+VXVrgjKzzOiFCmIngHa4ipF6BB4OoJ7um/X0qLsJwszUpsxahtGIxW6uyljPR PdaZxkTuDA6bLjR3nB2+vIuuQZUiASBgtn6hHuDTlo45dUBNQs8mNVJ6B2T12BTT/iA4 X0Lnj2EIKtbxTmJJ7VBoCOzVNVU7TDql5+Gv5oX9Bz3kGaup+iaPPsMs9O7VI8SotVZ+ smB48GY348cDl2inlupZuozbhVStcbMBMnU5rXflFnNE7en8XPD5qM2Qphtmz78l8NTd RyoA==
X-Gm-Message-State: ALKqPwfxBChUF8fAVD9KhnNiaAfBiDevXGDNnahYyKzDxOjA3qJE/aIi FbQuUaPCSlt5MsyPYlMtTG343dSfp8gZy50GsfQ=
X-Google-Smtp-Source: AB8JxZoPqp+aMjzfQbtrbwTRoEH5UmsHuQtAZ6zv1PsbjkRdpSXx+T3fhOdz4wpE2WgWopcb79C66bSqV0zbHXV0PHI=
X-Received: by 2002:a9d:524d:: with SMTP id q13-v6mr533086otg.241.1527221183287; Thu, 24 May 2018 21:06:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAOYVs2q63DpkPZTbw9T24ZcFOxbvrWAGvOtUaHvCuSg_13pSkQ@mail.gmail.com>
In-Reply-To: <CAOYVs2q63DpkPZTbw9T24ZcFOxbvrWAGvOtUaHvCuSg_13pSkQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 25 May 2018 14:06:10 +1000
Message-ID: <CABkgnnUAiztUw-kEr97bCX499eQL8wno11rRJQJD+49eBn6LXA@mail.gmail.com>
Subject: Re: Payload length 0
To: Marten Seemann <martenseemann@gmail.com>
Cc: QUIC WG <quic@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/X_ab8VHhgkAxDPWyNhSWRaJmxEs>
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 04:06:26 -0000

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.