Re: [quicwg/base-drafts] QPACK: add examples (#4093)

Martin Thomson <notifications@github.com> Mon, 14 September 2020 05:46 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 5C7B63A0B37 for <quic-issues@ietfa.amsl.com>; Sun, 13 Sep 2020 22:46:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.894
X-Spam-Level:
X-Spam-Status: No, score=-2.894 tagged_above=-999 required=5 tests=[DKIMWL_WL_HIGH=-1.695, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 8BIZqRk8EkHr for <quic-issues@ietfa.amsl.com>; Sun, 13 Sep 2020 22:46:49 -0700 (PDT)
Received: from out-11.smtp.github.com (out-11.smtp.github.com [192.30.254.194]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C93A73A0B35 for <quic-issues@ietf.org>; Sun, 13 Sep 2020 22:46:49 -0700 (PDT)
Received: from github-lowworker-0f78100.ash1-iad.github.net (github-lowworker-0f78100.ash1-iad.github.net [10.56.25.48]) by smtp.github.com (Postfix) with ESMTP id 09653580756 for <quic-issues@ietf.org>; Sun, 13 Sep 2020 22:46:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1600062409; bh=t9hM/7BzJ7+WxS5yUcrPgaSb5oqQ3mERgroEYa9Gq+s=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=JKYgxQil3KWPvtO1Xe4BA3ytDR85FzrP2PIdjvl7Diz3UP++7jSWOKLGyeCF65Z3C swbqyfO3fFlX9LunCyg1gpj0Hzz+DFY7fIh8Fnu3p8cK4Z43Px4Zv7Ta1nneIvhwu4 LctzlthpRmNpyS4fANYgN1yPpxwVtjBO6HM/C8q0=
Date: Sun, 13 Sep 2020 22:46:48 -0700
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJK5ZO6EJPTVTRKFHLGF5NLSMREVBNHHCTNBHWI@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/4093/review/487423724@github.com>
In-Reply-To: <quicwg/base-drafts/pull/4093@github.com>
References: <quicwg/base-drafts/pull/4093@github.com>
Subject: Re: [quicwg/base-drafts] QPACK: add examples (#4093)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5f5f03c8b7d7c_5bfd19f041369b"; 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/H1JWwH_3oC5bTp4A9pyJ-Q1zL_A>
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, 14 Sep 2020 05:46:51 -0000

@martinthomson commented on this pull request.

It looks like there is a small error (just with attribution, not the encoding), but this covers most of the important cases.  It's a shame that the indices are so small, because I don't think that this provides enough information for someone to understand how references to the dynamic table work.  All references in examples have an encoded index of 0.

> +510b 2f69 6e64 6578 | Literal Field Line with Name Reference
+2e68 746d 6c        |  (:path=/index.html)

It might help if you include the numeric values included in each of these descriptions.  In this case, it's (static table 1).

> +                                ^-- acknowledged --^
+                                Size=0
+~~~
+
+## Dynamic Table
+
+The encoder sets the dynamic table capacity, inserts a header with a dynamic
+name reference, then sends a potentially blocking, encoded field section
+referencing this new entry.  The decoder acknowledges processing the encoded
+field section.
+
+~~~
+Stream: Encoder
+3f8b                | Set Dynamic Table Capacity=170
+01c0 0c77 7777 2e69 | Insert With Name Reference (static table)
+6574 662e 6f72 67   |  (:authortiy=www.ietf.org)

```suggestion
7466 2e6f 7267      |  (:authority=www.ietf.org)
```

> +
+                                Abs Ref Name        Value
+                                ^-- acknowledged --^
+                                Size=0
+~~~
+
+## Dynamic Table
+
+The encoder sets the dynamic table capacity, inserts a header with a dynamic
+name reference, then sends a potentially blocking, encoded field section
+referencing this new entry.  The decoder acknowledges processing the encoded
+field section.
+
+~~~
+Stream: Encoder
+3f8b                | Set Dynamic Table Capacity=170

I read this as extending to the next byte.

```suggestion
3f8b01              | Set Dynamic Table Capacity=170
```

> +                                Abs Ref Name        Value
+                                ^-- acknowledged --^
+                                Size=0
+~~~
+
+## Dynamic Table
+
+The encoder sets the dynamic table capacity, inserts a header with a dynamic
+name reference, then sends a potentially blocking, encoded field section
+referencing this new entry.  The decoder acknowledges processing the encoded
+field section.
+
+~~~
+Stream: Encoder
+3f8b                | Set Dynamic Table Capacity=170
+01c0 0c77 7777 2e69 | Insert With Name Reference (static table)

```suggestion
c00c 7777 772e 6965 | Insert With Name Reference (static table 0)
```

> +Stream: 0
+0000                | Required Insert Count = 0, Base = 0
+510b 2f69 6e64 6578 | Literal Field Line with Name Reference
+2e68 746d 6c        |  (:path=/index.html)
+
+                                Abs Ref Name        Value
+                                ^-- acknowledged --^
+                                Size=0
+~~~
+
+## Dynamic Table
+
+The encoder sets the dynamic table capacity, inserts a header with a dynamic
+name reference, then sends a potentially blocking, encoded field section
+referencing this new entry.  The decoder acknowledges processing the encoded
+field section.

```suggestion
field section, which transitively acknowledges the encoder instructions up to the Required Insert Count.
```

Or something like that.

> +
+~~~
+Stream: Encoder
+3f8b                | Set Dynamic Table Capacity=170
+01c0 0c77 7777 2e69 | Insert With Name Reference (static table)
+6574 662e 6f72 67   |  (:authortiy=www.ietf.org)
+
+                                Abs Ref Name        Value
+                                ^-- acknowledged --^
+                                 1   0  :authority  www.ietf.org
+                                Size=54
+
+Stream: 4
+0280                | Required Insert Count = 1, Base = 0
+10                  | Indexed Field Line With Post-Base Index
+                    |  Absolute Index=1

This one is useful to break down (RIC + delta_base + 0 = 1).  Shame that we have such small numbers involved here.

-- 
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/4093#pullrequestreview-487423724