Re: Submitted new I-D: Cache Digests for HTTP/2

Kazuho Oku <kazuhooku@gmail.com> Sat, 09 January 2016 06:49 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 816EE1A1AA8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Jan 2016 22:49:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.012
X-Spam-Level:
X-Spam-Status: No, score=-7.012 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 2gmfg93tpkfc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Jan 2016 22:49:18 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 672CE1A1AA3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 8 Jan 2016 22:49:18 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aHnHY-0008Of-IG for ietf-http-wg-dist@listhub.w3.org; Sat, 09 Jan 2016 06:45:48 +0000
Resent-Date: Sat, 09 Jan 2016 06:45:48 +0000
Resent-Message-Id: <E1aHnHY-0008Of-IG@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1aHnHU-0008Nr-Gp for ietf-http-wg@listhub.w3.org; Sat, 09 Jan 2016 06:45:44 +0000
Received: from mail-wm0-f46.google.com ([74.125.82.46]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1aHnHS-0004OO-Tp for ietf-http-wg@w3.org; Sat, 09 Jan 2016 06:45:43 +0000
Received: by mail-wm0-f46.google.com with SMTP id u188so160009410wmu.1 for <ietf-http-wg@w3.org>; Fri, 08 Jan 2016 22:45:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KtoP7+m2Q1/ck6frFkVR/nmYe3/0TuYnH8VmNLsMovw=; b=hpDCcoVGh4WaBu9oF6pkRTx/YB0jovMeDYCp6nroDE+gH2b9PxE6i9Z35JBsI/S2wo /xeeFBu0NHmVM9dUx1c/mpSPwSRMEPripDWGae0fPWNGawetdOBFJPOQgXOm/dCi/pz+ bfaIBqJh6OFDz07qcqsScPWcua1x9T0pqqCqBP00YT39sDWub3XIOwoDlXtWzmPbRMWT yichykrD+CgN7Hi/2T+K8+Mv+Oj0WDWyMMMNRRpuh2j3MYVlTJ1ssj77aHp2JrwXc/jX WP2YBKQfXFlTCRGUz9LrKXcjBuru10V04CbuHbs+CuKU612kD6TZheX5an44DbahWnuY wI5w==
MIME-Version: 1.0
X-Received: by 10.28.1.23 with SMTP id 23mr2539333wmb.37.1452321916738; Fri, 08 Jan 2016 22:45:16 -0800 (PST)
Received: by 10.194.164.133 with HTTP; Fri, 8 Jan 2016 22:45:16 -0800 (PST)
In-Reply-To: <CABkgnnXns4ZUHG032x=d-UPYpbT=Y4DSsL0OzqT3TUD2h_d5Bg@mail.gmail.com>
References: <CANatvzyLsrbY4d1Vnq3tSSvt_Tf44sYx0gM-dAWw4d97pz3Mgw@mail.gmail.com> <CABkgnnXns4ZUHG032x=d-UPYpbT=Y4DSsL0OzqT3TUD2h_d5Bg@mail.gmail.com>
Date: Sat, 09 Jan 2016 15:45:16 +0900
Message-ID: <CANatvzxPMBPyUy6gw8izBxev5H_ShVKM-WEyaPEnkLWB9Y6F0Q@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.46; envelope-from=kazuhooku@gmail.com; helo=mail-wm0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-4.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1aHnHS-0004OO-Tp f33440b9b57401bb9bba7b7af5cb1e7a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Submitted new I-D: Cache Digests for HTTP/2
Archived-At: <http://www.w3.org/mid/CANatvzxPMBPyUy6gw8izBxev5H_ShVKM-WEyaPEnkLWB9Y6F0Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30871
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

2016-01-09 4:57 GMT+09:00 Martin Thomson <martin.thomson@gmail.com>:
> On 8 January 2016 at 18:17, Kazuho Oku <kazuhooku@gmail.com> wrote:
>> Please let us know how you think about the proposal.  Thank you in advance.
>
>
> This is good stuff, I'd like to see it validated, but it could be the
> thing that makes server push viable for a lot of servers.

Thank you for the positive response.

> Like Alex, I'm interested in other applications than the primary one
> you describe.  I don't think that you need to remove text about server
> push, but you should avoid making statements that restrict its use.  I
> recommend that you define the basic mechanism and then describe its
> application to your primary use case.

That approach sounds very reasonable.

Considering the fact that there are specific requirements to cache
digests for optimizing HTTP/2 push (i.e. the digest should be small /
the digest may be sent before the first HTTP/2 frame arrives from the
server), I think it would be appropriate to keep the description of
the primary use case.

> I think that the draft is lacking a description of how to consume the
> value.  That's particularly relevant as you get to the tail of the
> value.

Agreed.

> I wonder if we might be able to pack N and P a little more tightly by
> constraining their range just a little.  And not only because it saves
> a byte: you also want to limit the damage someone can do with the
> header field and small P would bound the size of the data.  Similarly,
> it will simplify implementations considerably if they can store
> integers in uint64_t, which is possible if log2(N) + log2(P) doesn't
> exceed 64.  I don't see any case for probabilities of 1/2^255 or 1/1;
> likewise sets of 1 resource aren't interesting, and sets of 2^255
> resources is a shade on the massive size.  2^32 is probably fine for
> both.

Thank you for the thoughtful suggestion.  Limiting the value of N and
P to be below 2^32 sounds like a very good idea.

> "key" modulo ( "N" * "P" ) should instead be constructed by truncating
> the hash to log2(N) + log2(P) bits and converting to an integer.

Agreed.  Defining the operation as truncation and conversion to an
integer will be more precise.

Thank you for the advices.

-- 
Kazuho Oku