Re: New Version Notification for draft-bishop-http2-extension-frames-01.txt

Matthew Kerwin <matthew@kerwin.net.au> Fri, 23 May 2014 09:19 UTC

Return-Path: <ietf-http-wg-request@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 05E601A0143 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 23 May 2014 02:19:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.93
X-Spam-Level:
X-Spam-Status: No, score=-6.93 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 eskIrQQWfvPP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 23 May 2014 02:19:40 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A64181A0126 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 23 May 2014 02:19:40 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1WnlaF-00021y-S1 for ietf-http-wg-dist@listhub.w3.org; Fri, 23 May 2014 09:16:11 +0000
Resent-Date: Fri, 23 May 2014 09:16:11 +0000
Resent-Message-Id: <E1WnlaF-00021y-S1@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phluid61@gmail.com>) id 1Wnla2-00020P-G7 for ietf-http-wg@listhub.w3.org; Fri, 23 May 2014 09:15:58 +0000
Received: from mail-qg0-f52.google.com ([209.85.192.52]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <phluid61@gmail.com>) id 1WnlZw-0003Ps-T7 for ietf-http-wg@w3.org; Fri, 23 May 2014 09:15:58 +0000
Received: by mail-qg0-f52.google.com with SMTP id a108so7529399qge.39 for <ietf-http-wg@w3.org>; Fri, 23 May 2014 02:15:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wZ2Rhh854mx+DyjC+TXfT9z7bypu8m4hqdUSplcCOLI=; b=DIV+vr3+d8Hba2aRvZXXz56F/Qn2O0CL722mDf/y3rFGOqfEpTocO1x5eNfdAsQ5bJ 8qIHqMvankfLJpY7e4EVnLdSAT9Lx4zmGRFm2b+GaST0Thtn5GrcCEgYKumFgP09gECp 1q+MbbBoT8LeB5uA5JQlZTZwQq/dWuAEmQh1hlxT66dqwmcWpjdH80yStZJsxEWXkYRG yPkOn1wNTIok2n8xRoE0KtOpe+ZGKhLE8wk4thohjeSUzaY+Hfu4NH5kjoWn3+1iyQu7 UK8QqenPreYkkrcrut/sOWMdTl9J6/3EEvVnw17R3BtIU9T2zFldqfpivUFTfZ+mWdhu C2kg==
MIME-Version: 1.0
X-Received: by 10.140.23.7 with SMTP id 7mr4551048qgo.0.1400836526640; Fri, 23 May 2014 02:15:26 -0700 (PDT)
Sender: phluid61@gmail.com
Received: by 10.140.43.98 with HTTP; Fri, 23 May 2014 02:15:26 -0700 (PDT)
In-Reply-To: <d0e86ad11abf4d0d8780cf06926a8ea2@BL2PR03MB132.namprd03.prod.outlook.com>
References: <20140522172435.21175.94088.idtracker@ietfa.amsl.com> <239431af5fe34e57a704ea52f84e1991@BL2PR03MB132.namprd03.prod.outlook.com> <CACweHNAbK+gz1T2q6jGqmTp8D6ELctA2HGXJD=ECFOuy-X8uqA@mail.gmail.com> <CAP+FsNeFRcBfDcQP+Oqh6WSnTcb9W-gjUirxxgjd3pKvW=--5A@mail.gmail.com> <CACweHNAD-RnawEMCJfBTDAAsrcV9NNUDSe8LwHw-1L_27EGkag@mail.gmail.com> <CABP7RbddCc=M69BrXSNz7p9pr-07RNs8+y8tvvubjTLLnUXgBA@mail.gmail.com> <d0e86ad11abf4d0d8780cf06926a8ea2@BL2PR03MB132.namprd03.prod.outlook.com>
Date: Fri, 23 May 2014 19:15:26 +1000
X-Google-Sender-Auth: AYf8MOW97RWkG7Bd-ORdrT8Ck_w
Message-ID: <CACweHNCmY8BfH7kxKUFxT5yqJ2RGwotg-wrtc567DiE=GUjong@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
To: Mike Bishop <Michael.Bishop@microsoft.com>
Cc: James M Snell <jasnell@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>, Roberto Peon <grmocg@gmail.com>
Content-Type: multipart/alternative; boundary="001a11c13db28f15bf04fa0dab63"
Received-SPF: pass client-ip=209.85.192.52; envelope-from=phluid61@gmail.com; helo=mail-qg0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-2.8
X-W3C-Hub-Spam-Report: AWL=-3.079, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1WnlZw-0003Ps-T7 ad96f38de8177ccec4cf6bc13260d22d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-bishop-http2-extension-frames-01.txt
Archived-At: <http://www.w3.org/mid/CACweHNCmY8BfH7kxKUFxT5yqJ2RGwotg-wrtc567DiE=GUjong@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/23785
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 23 May 2014 15:26, Mike Bishop <Michael.Bishop@microsoft.com> wrote:

>  My intermediate version said all extensions were hop-by-hop and
> negotiated; end-to-end was added in response to James’ feedback.  The
> requirement that extensions define how, if at all, they get translated to
> back-end links that do/do not support the extension was the only end-to-end
> version I had prior to that change.  I’m still ambivalent about that, but
> if there’s a use-case, I’m not opposed.
>
>
​I'd be interested to know what James's extensions are.
​


>  If we do allow end-to-end, though, I think they *have* to be silently
> discardable -- because, as Matthew observes, there’s no chance to
> negotiate.  If I can’t know what you’ll recognize, I can’t avoid sending
> you something you won’t.
>
>
​Yeah, I agree, if they are allowed.​



>  The only end-to-end extension I’ve currently thought of is the one that
> was a sample in the previous version, Server Hint.  (Forget if that’s what
> we actually called it.)  Basically, rather than actively pushing, it’s a
> server-driven “You’ll want to check that these resources are in your cache
> and current.” that works for when you suspect a client may already have a
> resource, or the resource is hosted on another server.  There’s no harm if
> an intermediary observes it going by and also freshens its cache, but the
> intended recipient is the user agent.  But like Push, if the UA just drops
> it, it will discover that it wants the resource a little later.
>
>
​Sounds to me like a HTTP header. In fact, it sounds like something in the
Cache-Control family. Just because HTTP/2 does server push doesn't mean
sending unsolicited information (call it hints, whatever) is limited ​to
HTTP/2. HTTP/1.1 could definitely benefit from such an extension, if it was
supported.



>  As for hardening, Gabriel and I discussed that some.  Let’s say we’re
> just talking about hop-by-hop:
>
>    - If we say you can’t send *any* extension frames until you’ve seen
>    the other party’s EXTENSIONS, then you can’t use any in your first
>    request.  That may be acceptable, but seems sub-optimal.
>
>
​​Could you move the EXTENSIONS frame to a settings parameter? A single
settings frame could contain multiple such parameters, and settings are
already mandatorily sent as soon as the connection is established, and
they're acked.​


>    - If we say you MUST NOT send even informative extensions once you’ve
>    seen the other party’s EXTENSIONS and you know they haven’t requested it,
>    how do you know when to
>    ​
>    ​
>    enforce the MUST NOT?
>
>
​Start at time 0. I don't see why it should be a problem for an extension
frame that may have caused a protocol error earlier to suddenly become
legal.​


Now we need an ACK for this too, or every connection begins ​with
> SETTINGS-EXTENSIONS-PING to simulate one.  Plus, that means the server has
> to maintain two different states -- one in which it permits unknown frames,
> and one in which it doesn’t.
>
>
Another reason to use a setting?

-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/