Re: Making extensibility cheap

Daniel Sommermann <dcsommer@fb.com> Wed, 04 June 2014 03:35 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 15C8A1A002E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 3 Jun 2014 20:35:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.653
X-Spam-Level:
X-Spam-Status: No, score=-7.653 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, 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 uNDd2O-iIeNJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 3 Jun 2014 20:35:26 -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 BA6591A002D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 3 Jun 2014 20:35:26 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ws1wP-0003Xq-Tv for ietf-http-wg-dist@listhub.w3.org; Wed, 04 Jun 2014 03:32:41 +0000
Resent-Date: Wed, 04 Jun 2014 03:32:41 +0000
Resent-Message-Id: <E1Ws1wP-0003Xq-Tv@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <prvs=12329492d9=dcsommer@fb.com>) id 1Ws1w7-0003Wi-JG for ietf-http-wg@listhub.w3.org; Wed, 04 Jun 2014 03:32:23 +0000
Received: from mx0a-00082601.pphosted.com ([67.231.145.42]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <prvs=12329492d9=dcsommer@fb.com>) id 1Ws1w6-0001cS-Kn for ietf-http-wg@w3.org; Wed, 04 Jun 2014 03:32:23 +0000
Received: from pps.filterd (m0044010 [127.0.0.1]) by mx0a-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id s543UkoX032385; Tue, 3 Jun 2014 20:31:58 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=message-id : date : from : mime-version : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=wDBLYj0TtMxyXK2Lze6j8t9kC8SWOfE3le8MdRBQuMg=; b=YjF9Miyl6HndMJMPI+GpwTbv/+K2ASt04M1INMXxUMGMTGe/Q8GejDkODjJMzwJvhRwq PX1U7lp9oAoWMoweKX05qSMdQf8Okk+VTVCovb4LTOHa37TAADfqAhwG9rHFPmvrZFCR aNxGcpCrmMZJeQ+mes8uJfQsIcoF4LgCz2I=
Received: from mail.thefacebook.com (mailwest.thefacebook.com [173.252.71.148]) by mx0a-00082601.pphosted.com with ESMTP id 1m9rnn0c2t-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Tue, 03 Jun 2014 20:31:58 -0700
Received: from [172.20.10.6] (192.168.57.29) by mail.thefacebook.com (192.168.16.23) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 3 Jun 2014 20:31:56 -0700
Message-ID: <538E9329.8070108@fb.com>
Date: Tue, 03 Jun 2014 23:31:53 -0400
From: Daniel Sommermann <dcsommer@fb.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
References: <CABkgnnU1zUg0G-bfvzO1vTtVH22evSn1Kw-AQnwvWQqtmnesQA@mail.gmail.com>
In-Reply-To: <CABkgnnU1zUg0G-bfvzO1vTtVH22evSn1Kw-AQnwvWQqtmnesQA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [192.168.57.29]
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14, 0.0.0000 definitions=2014-06-04_01:2014-06-02,2014-06-04,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 kscore.is_bulkscore=0 kscore.compositescore=0 circleOfTrustscore=2629.82921763372 compositescore=0.530366086665026 urlsuspect_oldscore=0.530366086665026 suspectscore=0 recipient_domain_to_sender_totalscore=615 phishscore=0 bulkscore=0 kscore.is_spamscore=0 recipient_to_sender_totalscore=0 recipient_domain_to_sender_domain_totalscore=1996008 rbsscore=0.530366086665026 spamscore=0 recipient_to_sender_domain_totalscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1406040047
X-FB-Internal: deliver
Received-SPF: pass client-ip=67.231.145.42; envelope-from=prvs=12329492d9=dcsommer@fb.com; helo=mx0a-00082601.pphosted.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-3.064, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Ws1w6-0001cS-Kn 2f3c3a180d5a407462251026d213fb7b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Making extensibility cheap
Archived-At: <http://www.w3.org/mid/538E9329.8070108@fb.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/24078
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>

+1. Overall this reduction and the direction of the original proposal 
are looking great.

Martin, to just use SETTINGS to negotiate, are you implying that the 
extension takes effect for all frames sent after the SETTINGS-ack, as 
long as both the previously sent SETTINGS and the received SETTINGS 
contain the extension?

I am curious to first see some use cases for end-to-end extensions though.

I agree with the original proposal that ALTSVC and DATA gzip compression 
would be good candidates to move to extensions.

On 06/03/2014 08:00 PM, Martin Thomson wrote:
> I've been somewhat convinced by Mike Bishop's arguments for restoring
> extensibility[1].
>
> What I find hard to swallow is the associated cost.  I think that
> Mike's proposal could be trimmed further.  So I'm going to take up the
> challenge.
>
> Here's what I think we absolutely need:
>
> 1. A way to negotiate the use of hop-by-hop extensions.
> 2. A way to carry end-to-end extensions.
> 3. Extensibility for settings, frames and error codes.
>
> To that end, here's my proposed reduction, which I think is largely
> keeping with the spirit of Mike's draft:
>
> Extensibility
>
> As Mike suggests, we can open a few IANA registries for business.
> That's text we can restore from old drafts.  Easy.
>
> I agree that we need more space for settings than 8 bits, but I'm
> going to be aggressive and suggest that 16 bits is enough.  We can
> reserve some portion of that space for mucking around (a quarter is
> what I'd suggest, but I don't care).
>
> End-to-end
>
> Here I'm going to suggest something far more limited than what Mike
> does.  I think that we can get away with an end-to-end, flow
> controlled, ordered frame.  A new frame type, modelled on Mike's
> should work here.  The new frame type would include a 32-bit extension
> ID, for which we can open a registry; we could piggyback on the PEN
> registry (private enterprise number); or, we could recommend random
> selection.  Again, I care not about these details and will go with
> what people seem to like most.
>
> We could do something more with optional flow control, optional
> end-to-end and optional ordering, but I think that is altogether too
> much optionality.
>
> I'm aware that forcing flow control here might be controversial, but I
> think that if we require intermediaries to forward this - and I think
> we have to - this is the only good option.
>
> Negotiation
>
> I think that this doesn't need a new "EXTENSIONS" frame, I think that
> we can use settings.  Each peer can set a setting to indicate that
> they support feature X and if both support the feature, then the
> state-affecting components of that feature can be activated.
>
> Otherwise, all error codes map to INTERNAL_ERROR (or some new error
> code we define that has equivalent semantics, i.e., none); all unknown
> frame types are dropped; and all settings are ignored.
>
> Note that this is important.  Unless you negotiate, only the special
> "EXTENSION" frame will traverse intermediaries.
>
> Advice Column
>
> Mike's draft offers good guidance for extension designers.  I think we
> need to crib some of that text.  Suggesting that an extension deal
> with translating to and from HTTP/1.1, or dealing with peers that
> don't support the extension is motherhood and apple pie.  More
> important though is establishing the parameters for extension.  Much
> of the above will need to reside in this section.
>
> I am going to try to turn out some proposed text for this on the plane
> tomorrow, in case this is what we decide to pursue.
>
> --Martin
>
> [1] in draft-bishop-http2-extension-frames
>