Questions about QPACK

Jiuhai Zhang <jiuhai.zhang@gmail.com> Thu, 21 November 2019 14:06 UTC

Return-Path: <jiuhai.zhang@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 E645C1208BA for <quic@ietfa.amsl.com>; Thu, 21 Nov 2019 06:06:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 (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 HRMV_c1fDAt1 for <quic@ietfa.amsl.com>; Thu, 21 Nov 2019 06:06:20 -0800 (PST)
Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (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 17D701201AA for <quic@ietf.org>; Thu, 21 Nov 2019 06:06:20 -0800 (PST)
Received: by mail-lj1-x22d.google.com with SMTP id v8so3366547ljh.5 for <quic@ietf.org>; Thu, 21 Nov 2019 06:06:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=t506votQVQ4i0kD3k8EDISzz5RBrtd6UaQQR87A9QGE=; b=EF6SgnY0U1OiwuFi8ab/eTUZvJgS9YmZJFPOcZ2+EOZEYwPDD7xFTunIvM9rgi2QbY 385FqFNPxKxqvRWCPoesiIC2Fb0FjhxlS2JOOKqaTUDXRTlT3TIr67UIKnnXxadGL6T5 OaRzQoaROwCl3iyrN/c9iWh5TTGj/V3USS9U38vQAahVg5ELCFqTRpDYYpCAIKHamxPV inQ7OwnS2izLiH2v9YYcz1BIxhLoBegLtbSi9G1uNkxUlY62f5BcJ/ROPp7rpgW6WjKr WDXQB+Kl5BrSzBB/wQVCa1BMBIM5mp2v8C6DHTKwLtk8DbwTZPZMNw4V8fPrCEvFMnfg ikuw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=t506votQVQ4i0kD3k8EDISzz5RBrtd6UaQQR87A9QGE=; b=AV9zqr14wP76v4pSEMd3qVQlQgMQYkWFz55bvoGZRO71i6+sHbdQuZUDksBWohwb4n nsxXY6pQoc3h/TqK2EdO8huBimFdL269WBx3nSRnBHMm9hZxcCZC2/TVobJ0Z5e16j+g 2K5bCL15Uui2J//KS8Mgi+mhwbeAsXyHg8maPXxUqcoAO+1j3FXxQ78wAwdntEcOxQQp mr7ewHmHiwC23uBAgpnzL43eVqs2ONGWx2/neCVrka9pDd06d3hrwVy9sSP1vH0iPh6c O1kezT7Ktd5w31nUaiTJiNxI3QMJuL2NTVyoJxgK6ibaIgnANsqFXPqNYWfMmnuQl5iH UJnQ==
X-Gm-Message-State: APjAAAXe1x0Z9wUicPAiIgEc0cX0fSS1SP0gVOrbeZB20RAWyYmiuniB M09aDayDU5ic2OtMaTxaXt3CEjI51TyyjN5gKE2I7Ypa
X-Google-Smtp-Source: APXvYqyo/Npow8j+GHhZIOdGF4yvcEM4ZYURie8el0RZPdkGE2i1vSiguByrFvS1igE2Yip2WGtaqZ/guuQTrpS61OM=
X-Received: by 2002:a2e:2c1a:: with SMTP id s26mr7787863ljs.239.1574345177592; Thu, 21 Nov 2019 06:06:17 -0800 (PST)
MIME-Version: 1.0
From: Jiuhai Zhang <jiuhai.zhang@gmail.com>
Date: Thu, 21 Nov 2019 22:06:04 +0800
Message-ID: <CAG9+TpYtZniZ63xc3Wpb7NNpkVyj1G9_p-rtCjspdCr+oz8edg@mail.gmail.com>
Subject: Questions about QPACK
To: quic@ietf.org
Cc: 78690842@qq.com
Content-Type: multipart/alternative; boundary="0000000000001077660597dbcdc3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/k4YhSASgRVFeOCKMpv-NTGc6vi8>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 21 Nov 2019 14:06:22 -0000

https://tools.ietf.org/html/draft-ietf-quic-qpack-11#section-4.4.3

   0   1   2   3   4   5   6   7
      +---+---+---+---+---+---+---+---+
      | 0 | 1 | N | T |Name Index (4+)|
      +---+---+---+---+---------------+
      | H |     Value Length (7+)     |
      +---+---------------------------+
      |  Value String (Length bytes)  |
      +-------------------------------+

Q1:why we send N bit to peer? it seems we don't need to send the bit,
if sender don't want to put in dynamic table.


https://tools.ietf.org/html/draft-ietf-quic-qpack-11#section-4.5.4

        0   1   2   3   4   5   6   7
      +---+---+---+---+---+---+---+---+
      | 0 | 1 | N | T |Name Index (4+)|
      +---+---+---+---+---------------+
      | H |     Value Length (7+)     |
      +---+---------------------------+
      |  Value String (Length bytes)  |
      +-------------------------------+

Q2:when we encode new name, new value, we should insert name,value
pair into dynamic table, should we insert name only into dynamic
table?