Re: Payload length 0

Martin Thomson <> Fri, 25 May 2018 04:06 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id F230312D885 for <>; Thu, 24 May 2018 21:06:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2
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: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id q-oxRbFE2Sm1 for <>; Thu, 24 May 2018 21:06:24 -0700 (PDT)
Received: from ( [IPv6:2607:f8b0:4003:c0f::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id F0A4F1273E2 for <>; Thu, 24 May 2018 21:06:23 -0700 (PDT)
Received: by with SMTP id g7-v6so4564291otj.11 for <>; Thu, 24 May 2018 21:06:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; 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;; 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: <>
In-Reply-To: <>
From: Martin Thomson <>
Date: Fri, 25 May 2018 14:06:10 +1000
Message-ID: <>
Subject: Re: Payload length 0
To: Marten Seemann <>
Cc: QUIC WG <>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <>
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-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 <>

> Jana asked me to raise this issue on the list, after we already had a bit
of discussion in

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