Re: [quicwg/base-drafts] Use "Insert Count" rather than "Largest Reference" (#2111)
Martin Thomson <notifications@github.com> Mon, 31 December 2018 02:00 UTC
Return-Path: <noreply@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 35F9F12EB11 for <quic-issues@ietfa.amsl.com>; Sun, 30 Dec 2018 18:00:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.065
X-Spam-Level:
X-Spam-Status: No, score=-8.065 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.065, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, 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 oYWXGEWxBCJ2 for <quic-issues@ietfa.amsl.com>; Sun, 30 Dec 2018 18:00:04 -0800 (PST)
Received: from out-3.smtp.github.com (out-3.smtp.github.com [192.30.252.194]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25E3112008A for <quic-issues@ietf.org>; Sun, 30 Dec 2018 18:00:04 -0800 (PST)
Date: Sun, 30 Dec 2018 18:00:02 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1546221602; bh=Fk3UrL9lgF4rNF93OrSziIM8l/kLP5kNJu0/l7WdJFQ=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=U9Kadd08Si4FLGoi9O0dV2b6LJPsep+NFYCo/QaPl2IRo5MQ4Pzw52rOBf7/EnhIg m5ENAVr3k/+5JxeogFbnPo5pofGmB3wLhVoalADwLUCngGYlWRZ8e73Xv2dpg5QOsX Gehy8ky/OhdE5czue2cCy1oryTTlJPshPpOFF2fU=
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab5d7a752c8c56945e56947ec8592d7281c8431d8892cf0000000118413a2292a169ce17392ee3@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/2111/review/188456171@github.com>
In-Reply-To: <quicwg/base-drafts/pull/2111@github.com>
References: <quicwg/base-drafts/pull/2111@github.com>
Subject: Re: [quicwg/base-drafts] Use "Insert Count" rather than "Largest Reference" (#2111)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5c297822bdb78_783e3ffcd16d45bc98225d"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/_6YTTNHRG9SB_lKjtYU2_5b8zCk>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 31 Dec 2018 02:00:07 -0000
martinthomson commented on this pull request. Thanks for the comments @bencebeky. I think that this needs to change absolute indexing to 0-based to be consistent. That makes everything else better. > @@ -249,18 +250,19 @@ Because QUIC does not guarantee order between data on different streams, a header block might reference an entry in the dynamic table that has not yet been received. -Each header block contains a Largest Reference ({{header-prefix}}) which -identifies the table state necessary for decoding. If the greatest absolute -index in the dynamic table is less than the value of the Largest Reference, the -stream is considered "blocked." While blocked, header field data SHOULD remain -in the blocked stream's flow control window. When the Largest Reference is -zero, the frame contains no references to the dynamic table and can always be -processed immediately. A stream becomes unblocked when the greatest absolute -index in the dynamic table becomes greater than or equal to the Largest -Reference for all header blocks the decoder has started reading from the stream. -If the decoder encounters a header block where the actual largest reference is -not equal to the Largest Reference declared in the prefix, it MAY treat this as -a stream error of type HTTP_QPACK_DECOMPRESSION_FAILED. +Each header block contains the total number of entries added to the dynamic Thanks, that prompted me to restructure this (massive) paragraph. > -index in the dynamic table becomes greater than or equal to the Largest -Reference for all header blocks the decoder has started reading from the stream. -If the decoder encounters a header block where the actual largest reference is -not equal to the Largest Reference declared in the prefix, it MAY treat this as -a stream error of type HTTP_QPACK_DECOMPRESSION_FAILED. +Each header block contains the total number of entries added to the dynamic +table - the Required Insert Count - which identifies the table state necessary +for decoding (see {{header-prefix}}). If the Required Insert Count is greater +than the number of dynamic table entries received, the stream is considered +"blocked." While blocked, header field data SHOULD remain in the blocked +stream's flow control window. When the Required Insert Count is zero, the frame +contains no references to the dynamic table and can always be processed +immediately. A stream becomes unblocked when the number of entries inserted in +the dynamic table becomes greater than or equal to the Required Insert Count for +all header blocks the decoder has started reading from the stream. If the +decoder encounters a header block where the largest Absolute Index used not I think that I'm OK with this as is. Repeating the requirement is OK if that requirement is tricky. > n = count of entries inserted d = count of entries dropped ~~~~~ {: title="Example Dynamic Table Indexing - Control Stream"} Because frames from request streams can be delivered out of order with -instructions on the encoder stream, relative indices are relative to the Base -Index at the beginning of the header block (see {{header-prefix}}). The Base -Index is an absolute index. When interpreting the rest of the frame, the entry -identified by Base Index has a relative index of zero. The relative indices of -entries do not change while interpreting headers on a request or push stream. +instructions on the encoder stream, relative indices are relative to the Base at +the beginning of the header block (see {{header-prefix}}). The Base is encoded Thanks. That's better. > @@ -784,29 +798,29 @@ streams emit the headers for an HTTP request or response. ### Header Data Prefix {#header-prefix} -Header data is prefixed with two integers, `Largest Reference` and `Base Index`. +Header data is prefixed with two integers, `Required Insert Count` and `Base`. Yeah, that is a good idea. The prose here was a little light. > ~~~~~~~~~~ drawing 0 1 2 3 4 5 6 7 +---+---+---+---+---+---+---+---+ -| Largest Reference (8+) | +| Required Insert Count (8+) | I think that I'll stick with Required Insert Count at this level. > +---+---------------------------+ | Compressed Headers ... +-------------------------------+ ~~~~~~~~~~ {:#fig-base-index title="Frame Payload"} -#### Largest Reference +#### Insert Count Done. Thanks. -- 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/pull/2111#pullrequestreview-188456171
- [quicwg/base-drafts] Use "Insert Count" rather th… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Mike Bishop
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Bence Béky
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Mike Bishop
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Mike Bishop
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Martin Thomson
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… Mike Bishop
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind
- Re: [quicwg/base-drafts] Use "Insert Count" rathe… afrind