Re: [quicwg/base-drafts] varint packet numbers (#989)

martinduke <notifications@github.com> Wed, 06 December 2017 23:23 UTC

Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89A81126B6D for <quic-issues@ietfa.amsl.com>; Wed, 6 Dec 2017 15:23:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.019
X-Spam-Level:
X-Spam-Status: No, score=-2.019 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 0mxzSlM1JcM6 for <quic-issues@ietfa.amsl.com>; Wed, 6 Dec 2017 15:23:04 -0800 (PST)
Received: from o4.sgmail.github.com (o4.sgmail.github.com [192.254.112.99]) (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 ABC991205F0 for <quic-issues@ietf.org>; Wed, 6 Dec 2017 15:23:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=sD0aWMwuvxnQWQf2G6Wt+PO7rng=; b=k1S645W1+AsnRvPk J9gjJ4aZE98ZGFTDKjQnlu9pblraxVpzMbkpLIK92dY1BIPAHZJFl6DnqPTUuv+A XH5Ef8CSkBD3aa4XjB3KzUJ/keYYXK29RzQQFRJmLgqZ8fyZuKwNQ2BlbD6QpHLJ 47C+Y9+4MWDq8eq/pddtUKlp5k0=
Received: by filter0206p1las1.sendgrid.net with SMTP id filter0206p1las1-27207-5A287BD7-14 2017-12-06 23:23:03.415918082 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by ismtpd0024p1iad2.sendgrid.net (SG) with ESMTP id 7EhOnRhMS22IYZhIsFPo2w for <quic-issues@ietf.org>; Wed, 06 Dec 2017 23:23:03.263 +0000 (UTC)
Date: Wed, 06 Dec 2017 23:23:03 +0000
From: martinduke <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abdb2944365d4b6e4bbaf28d997c7f6236653646c692cf0000000116403dd792a169ce10a65f2b@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/989/349808535@github.com>
In-Reply-To: <quicwg/base-drafts/issues/989@github.com>
References: <quicwg/base-drafts/issues/989@github.com>
Subject: Re: [quicwg/base-drafts] varint packet numbers (#989)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5a287bd729f98_13503fc62c944f301118c1"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinduke
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak1Wh6QuVcMrsFWKtje+eIO59ygbNvHZC7SGNL EnJtKyt+PHF7x+TxEx1WfiYjpVXkVwVKZK/PbA2QGCg7HovFDTp3BrVrDf/pBgjK9iC2bzrywv+Ga4 NJVj66RFcC4ixIOKoq7awsvCAhwZhgEXuIvNQvl3OAsZU2XtMt3akWiOkBlWYS6VA9hfokQEco7+VR A=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/fFxq80opOZW0xa-TFGQ96_mf0Xg>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Dec 2017 23:23:06 -0000

I'm not sure if this is a related issue or not, but the "Packet Numbers" section is very clear on how to size the packet number in the packet header, but there is no corresponding advice for sizing the largest_acknowledged field in the ACK frame. In general Varints refer to numbers that start at zero, so there is a natural occasion to truncate them. Packet numbers have 32 bits, so right away we're at 32.

To be specific, the packet header part requires enough bits to encode 2 * (max_pkt - lowest_pkt_unacked). This obviously doesn't work so well on the receiver side. We could just mandate a de facto min size of 4, tie it to the peer's packet number size, or something else.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/issues/989#issuecomment-349808535