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

Mike Bishop <Michael.Bishop@microsoft.com> Tue, 12 November 2013 02:25 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0B4B921E8105 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Nov 2013 18:25:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.714
X-Spam-Level:
X-Spam-Status: No, score=-9.714 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_FONT_FACE_BAD=0.884, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ym7IYIq+m12R for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Nov 2013 18:25:35 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id EAA8421E8149 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 11 Nov 2013 18:25:32 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Vg3df-0002LI-Kv for ietf-http-wg-dist@listhub.w3.org; Tue, 12 Nov 2013 02:23:35 +0000
Resent-Date: Tue, 12 Nov 2013 02:23:35 +0000
Resent-Message-Id: <E1Vg3df-0002LI-Kv@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Michael.Bishop@microsoft.com>) id 1Vg3dV-0002IG-GZ for ietf-http-wg@listhub.w3.org; Tue, 12 Nov 2013 02:23:25 +0000
Received: from mail-by2lp0242.outbound.protection.outlook.com ([207.46.163.242] helo=na01-by2-obe.outbound.protection.outlook.com) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <Michael.Bishop@microsoft.com>) id 1Vg3dQ-0005Y7-Jf for ietf-http-wg@w3.org; Tue, 12 Nov 2013 02:23:23 +0000
Received: from BY2PR03MB091.namprd03.prod.outlook.com (10.255.241.159) by BY2PR03MB091.namprd03.prod.outlook.com (10.255.241.159) with Microsoft SMTP Server (TLS) id 15.0.815.6; Tue, 12 Nov 2013 02:22:52 +0000
Received: from BY2PR03MB091.namprd03.prod.outlook.com ([169.254.8.249]) by BY2PR03MB091.namprd03.prod.outlook.com ([169.254.8.249]) with mapi id 15.00.0815.000; Tue, 12 Nov 2013 02:22:52 +0000
From: Mike Bishop <Michael.Bishop@microsoft.com>
To: James M Snell <jasnell@gmail.com>
CC: HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: New Version Notification for draft-bishop-http2-extension-frames-00.txt
Thread-Index: AQHO3kng1A/3wcvbCEmQcMZoWxcD2pog35lX
Date: Tue, 12 Nov 2013 02:22:51 +0000
Message-ID: <406908c529d046b88651aa3570f1a266@BY2PR03MB091.namprd03.prod.outlook.com>
References: <20131108191248.7092.81493.idtracker@ietfa.amsl.com> <22b40d443dcc474fb6a1ecd947e9fe9a@BY2PR03MB091.namprd03.prod.outlook.com>, <CABP7RbccXRp3ux4-b1U8k_JFSS=6++C2kZ0ZgKMoLNg9xr8-Jw@mail.gmail.com>
In-Reply-To: <CABP7RbccXRp3ux4-b1U8k_JFSS=6++C2kZ0ZgKMoLNg9xr8-Jw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [24.16.13.163]
x-forefront-prvs: 00286C0CA6
x-forefront-antispam-report: SFV:NSPM; SFS:(377424004)(51704005)(24454002)(199002)(189002)(377454003)(47976001)(74316001)(33646001)(15975445006)(85306002)(50986001)(4396001)(80976001)(31966008)(74662001)(74502001)(47446002)(83072001)(81342001)(83322001)(46102001)(81686001)(19580405001)(47736001)(74366001)(76576001)(16236675002)(49866001)(69226001)(19580395003)(81542001)(66066001)(54316002)(77096001)(56816003)(65816001)(53806001)(51856001)(81816001)(76796001)(76786001)(76482001)(56776001)(15202345003)(77982001)(63696002)(74706001)(80022001)(59766001)(74876001)(54356001)(1411001)(2656002)(87266001)(79102001)(87936001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB091; H:BY2PR03MB091.namprd03.prod.outlook.com; CLIP:24.16.13.163; FPR:; RD:InfoNoRecords; A:1; MX:1; LANG:en;
Content-Type: multipart/alternative; boundary="_000_406908c529d046b88651aa3570f1a266BY2PR03MB091namprd03pro_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Received-SPF: pass client-ip=207.46.163.242; envelope-from=Michael.Bishop@microsoft.com; helo=na01-by2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-2.267, BAYES_00=-1.9, HTML_FONT_FACE_BAD=0.981, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Vg3dQ-0005Y7-Jf 3c3d3b2f06d3cec671ce0ffeee0c7eec
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-bishop-http2-extension-frames-00.txt
Archived-At: <http://www.w3.org/mid/406908c529d046b88651aa3570f1a266@BY2PR03MB091.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/20405
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>

If the intermediary is forwarding a stream onto a connection with BASE_SPECIFICATION_ONLY set, it has to drop any extension frames.  This is why streams are allowed to have different treatment -- because the intermediary may have to accommodate different preferences on the back-end.  You’re correct that a client can’t know for sure whether an end-to-end extension is supported on each new stream; I hesitate to solve that by terminating the stream and eating an RTT, though.

Your concern over fragmentation is one that I’ve struggled with, too.  RFC 6709 is definitely something we should all read in depth several times as we have this discussion.  A couple elements I find relevant there:

  *
Avoiding “local/private use” ranges, because of the possibility of collisions and incompatibility between different local/private implementations
  *
Delineating in the base spec how extensions interact with unextended peers to ensure the failure modes are graceful
  *
“Protocol variations -- specifications that look very similar to the original but don’t interoperate with each other or with the original -- are even more harmful to interoperability than extensions.  In general, such variations should be avoided.”  My concern is that if we limit extensibility too sharply, this would be the outcome instead.
  *
In particular, section 4.4 suggests that a small parameter space (8 bits or less) combined with FCFS allocation is a recipe for trouble.  Vendor extensions (my draft) or stricter allocation requirements (your draft) are two solutions they note, with the respective problems of fragmentation and unregistered usage.  (Reference Dave Thaler & Mark’s recent discussions around URI schemes for an unregistered usage example.)

I think this is an area for working group discussion -- is our goal to have a more universal extension space with constrained capabilities (HTTP headers), a tightly-constrained one (WebSockets extensions), or somewhere in the middle?  That goal will inform how these drafts evolve, and it’s something neither James nor I can decide on our own.

Sent from Windows Mail

From: James M Snell<mailto:jasnell@gmail.com>
Sent: ‎Sunday‎, ‎November‎ ‎10‎, ‎2013 ‎11‎:‎20‎ ‎AM
To: Mike Bishop<mailto:Michael.Bishop@microsoft.com>
Cc: HTTP Working Group<mailto:ietf-http-wg@w3.org>

A few additional specific comments:

1. re: BASE_SPECIFICATION_ONLY ... this is currently underspecified in
the draft. Let's suppose my client establishes a stream that "travels"
through two intermediate hops on it's way to the server. The path
determined dynamically by the intermediaries. The first intermediary
allows end-to-end extension frames to pass through, but the second
intermediary does not and sends BASE_SPECIFICATION_ONLY. What should
the first intermediary do if it receives extension frames from the
client? Obviously, it cannot send those but there is nothing in the
draft that describes exactly how the intermediary ought to handle it.

 a. Should it just silently drop any extension frames it receives from
the client without notification. The problem being, of course, that
the client would have no idea that it's complete message is not
getting through
 b. Should it update it's settings with the client and say
BASE_SPECIFICATION_ONLY, while silently dropping any extension frames
it may have already received? The problem with this, of course, is
that it terminates that clients ability to send extension frames
through that first intermediary to any other endpoint that might not
have the BASE_SPECIFICATION_ONLY requirement.
 c. Should it RST_STREAM the stream with the client letting it know
that the extension frames could be passed on?

 (IMHO, (c) is obviously the best choice)

2. re: Flow control ... are end-to-end extension frames subject to
flow control, and if not, why not?

3. Strongly feel that the use of Private enterprise numbers as a
namespacing mechanism for extensions is going to encourage abuse and
non-standardization of protocol extensions. Specifically, it allows
specific vendors the ability to define, deploy and maintain their own
proprietary protocol extensions without any pressure whatsoever to
take things through standardization. IMHO, that's fairly dangerous.
Having a limited extension space with very clear processing
requirements is a significantly better option.

4. A compromise approach here would be to utilize both of the
approaches suggested by myself and Mike's draft. Specifically:

  a. Segment the existing frame type space into end-to-end and
hop-by-hop as I have suggested,
  b. Define that hop-by-hop frames MUST either be passed through
untouched or RST_STREAM returned,
  c. Define that *all* hop-by-hop frames are subject to flow-control,
  d. Define that extension end-to-end frames MUST NOT change session
state and can be silently dropped.
  e. Define a new INFO frame type that can always be silently dropped.
The structure of the INFO frame would essentially be the same as Mike
suggests in his draft. The INFO frame would be hop-by-hop, with the
intermediary having the ability to decide whether or not to forward
those on (like we currently do with PUSH_PROMISE).

This would be a much more robust and reliable approach.

- James

On Fri, Nov 8, 2013 at 11:21 AM, Mike Bishop
<Michael.Bishop@microsoft.com> wrote:
> Since I was volunteered at the working group meeting to share this, here’s
> the current version of my draft.  I will re-emphasize that this is strictly
> a strawman, and any suggestions on how to improve this are more than
> welcome.
>
> Sent from Windows Mail
>
> From: internet-drafts@ietf.org
> Sent: ‎Friday‎, ‎November‎ ‎8‎, ‎2013 ‎11‎:‎16‎ ‎AM
> To: Mike Bishop
>
>
> A new version of I-D, draft-bishop-http2-extension-frames-00.txt
> has been successfully submitted by Mike Bishop and posted to the
> IETF repository.
>
> Filename:  draft-bishop-http2-extension-frames
> Revision:  00
> Title:   Extension Frames in HTTP/2.0
> Creation date:  2013-11-08
> Group:   Individual Submission
> Number of pages: 10
> URL:
> http://www.ietf.org/internet-drafts/draft-bishop-http2-extension-frames-00.txt
> Status:
> http://datatracker.ietf.org/doc/draft-bishop-http2-extension-frames
> Htmlized:
> http://tools.ietf.org/html/draft-bishop-http2-extension-frames-00
>
>
> Abstract:
>    This document describes a proposed modification to the HTTP/2.0
>    specification to better support the creation of extensions without
>    the need to version the core protocol or invoke additional protocol
>    identifiers.
>
>
>
>
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> The IETF Secretariat
>