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

Martin Thomson <martin.thomson@gmail.com> Fri, 08 January 2016 20:02 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 5E7EB1B2B5A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Jan 2016 12:02:52 -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 JHyWEBEFBl2l for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Jan 2016 12:02:48 -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 654021B2B4D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 8 Jan 2016 12:02:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aHdAV-00042V-Jm for ietf-http-wg-dist@listhub.w3.org; Fri, 08 Jan 2016 19:57:51 +0000
Resent-Date: Fri, 08 Jan 2016 19:57:51 +0000
Resent-Message-Id: <E1aHdAV-00042V-Jm@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1aHdAR-00041k-V9 for ietf-http-wg@listhub.w3.org; Fri, 08 Jan 2016 19:57:47 +0000
Received: from mail-io0-f170.google.com ([209.85.223.170]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1aHdAP-0001qo-V5 for ietf-http-wg@w3.org; Fri, 08 Jan 2016 19:57:47 +0000
Received: by mail-io0-f170.google.com with SMTP id 77so265859033ioc.2 for <ietf-http-wg@w3.org>; Fri, 08 Jan 2016 11:57:25 -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=xJ9bb32xtAAFw+6JwJef16RWFy1CrZZt/23UoN5p2+M=; b=lROWC4gVB8sdw/R9dyqlDMjg+kkFh83yg4p68GOBVrHgOhyeG6+HpANw4iFgIDiaE7 zHP8n5E12fWGUG8a7P3C0r31iPgXnRVAknVFjuF9NkYiUztlNIOHey7Bekz9k0MNfC68 ooAjlioT1b9OTbNpryefCb/T+yFpVb47E5nJ9SEuJCKXIcb5N3tHbfeXSHZr4cx3U9Ri FAAWxEKUMmBQ1zfUlV/ZyqvZzCT8tyfq7YFxM2TNG/hkHtDxgigvdIGR0k+8lx6O20gV bzP9KCzyzLEVO4+Pk57WGWt0IiiWuhk+o5+SP0sjEwEO3kFmBDmB0a3H147NsM/jBxoh ojEQ==
MIME-Version: 1.0
X-Received: by 10.107.131.40 with SMTP id f40mr95880050iod.190.1452283039309; Fri, 08 Jan 2016 11:57:19 -0800 (PST)
Received: by 10.36.149.130 with HTTP; Fri, 8 Jan 2016 11:57:19 -0800 (PST)
In-Reply-To: <CANatvzyLsrbY4d1Vnq3tSSvt_Tf44sYx0gM-dAWw4d97pz3Mgw@mail.gmail.com>
References: <CANatvzyLsrbY4d1Vnq3tSSvt_Tf44sYx0gM-dAWw4d97pz3Mgw@mail.gmail.com>
Date: Sat, 09 Jan 2016 06:57:19 +1100
Message-ID: <CABkgnnXns4ZUHG032x=d-UPYpbT=Y4DSsL0OzqT3TUD2h_d5Bg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.223.170; envelope-from=martin.thomson@gmail.com; helo=mail-io0-f170.google.com
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.837, 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_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1aHdAP-0001qo-V5 64b2efe5caa5c59b6d6134755b0fb13c
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/CABkgnnXns4ZUHG032x=d-UPYpbT=Y4DSsL0OzqT3TUD2h_d5Bg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30866
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>

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.

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.

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.

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.

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