Re: New Version Notification for draft-benfield-http2-p2p-01.txt

Cory Benfield <cory@lukasa.co.uk> Mon, 24 August 2015 08:36 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 EB7DB1A90EC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 24 Aug 2015 01:36:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.29
X-Spam-Level:
X-Spam-Status: No, score=-6.29 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, 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 zRNHe5Nvz2za for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 24 Aug 2015 01:36:26 -0700 (PDT)
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 903861A90E9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 24 Aug 2015 01:36:26 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZTnCd-0004aS-Am for ietf-http-wg-dist@listhub.w3.org; Mon, 24 Aug 2015 08:34:03 +0000
Resent-Date: Mon, 24 Aug 2015 08:34:03 +0000
Resent-Message-Id: <E1ZTnCd-0004aS-Am@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 <cory@lukasa.co.uk>) id 1ZTnCV-0004YL-Tq for ietf-http-wg@listhub.w3.org; Mon, 24 Aug 2015 08:33:55 +0000
Received: from mail-pa0-f54.google.com ([209.85.220.54]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1ZTnCT-0001PR-2J for ietf-http-wg@w3.org; Mon, 24 Aug 2015 08:33:54 +0000
Received: by pabzx8 with SMTP id zx8so1543289pab.1 for <ietf-http-wg@w3.org>; Mon, 24 Aug 2015 01:33:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=tGwtOahKtLdyQuXp5FYcZ4XM5u2FgrzLpjkkbWwjwIs=; b=W2hxy08drEYeOg+iRIhJQiKIMvxTZfKdCjm/UX+gSKIg3o3Oo5zRXFBjKmO6U16s5G g5Eys/Q9Vbkl0OkCw5gPuEL3ueOZMJ+M6hX60seh4Sg6TIi3oQOQT0dqrgceiO+zLJf2 V8x0OXpotzUbOl8npFkHLQwFoRbpEFMTaHaRGS4YbeWhYa09RL4/YXw1kXap6dq//VTi 8D9yabase9dJnoQXAUMlGh3emVstVbu9nk3MTlwcZ5fhPFD8BSuG5xx3QoY2Y15luA/G QMOFq8+mLHC5khjcx7TAu4a3Hj7B1N+3CkaV0ZfzNyvHaIveIJTKx8rPjaIpOLT6iwtp HGgA==
X-Gm-Message-State: ALoCoQnjAfyqbqmd8C1VgDmncteNhZMiy0tU+g2d+QmUk19qsmBs8pVaUhlfXRxEvQLO7uvP6wLn
MIME-Version: 1.0
X-Received: by 10.66.131.81 with SMTP id ok17mr42447227pab.150.1440405206622; Mon, 24 Aug 2015 01:33:26 -0700 (PDT)
Received: by 10.66.193.231 with HTTP; Mon, 24 Aug 2015 01:33:26 -0700 (PDT)
X-Originating-IP: [2620:104:4001:73:f482:b7f1:15f3:1f22]
In-Reply-To: <E88417D2-67F5-4B0A-A484-883D528DA80B@ipfs.io>
References: <20150726170938.12513.1861.idtracker@ietfa.amsl.com> <13071803-2F6D-45F1-A87E-FAF7FD4C2308@lukasa.co.uk> <CAEv2VfLr=SDoBxxhioa9B7AsvJ58cqPts5zbs8ugdwAtkCXhEQ@mail.gmail.com> <E88417D2-67F5-4B0A-A484-883D528DA80B@ipfs.io>
Date: Mon, 24 Aug 2015 09:33:26 +0100
Message-ID: <CAH_hAJEtqwa8Y8-HAx0Q0_cYSJVhQ3cH9cV9KPt5rTe6W2FS2A@mail.gmail.com>
From: Cory Benfield <cory@lukasa.co.uk>
To: David Dias <daviddias@ipfs.io>
Cc: Fedor Indutny <fedor@indutny.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>, Glen Knowles <gknowles@ieee.org>, Juan Benet <juan@benet.ai>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.220.54; envelope-from=cory@lukasa.co.uk; helo=mail-pa0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-5.3
X-W3C-Hub-Spam-Report: AWL=-0.651, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1ZTnCT-0001PR-2J 4b6ea557cfb4d5a9cf577a1d24cfcd42
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-benfield-http2-p2p-01.txt
Archived-At: <http://www.w3.org/mid/CAH_hAJEtqwa8Y8-HAx0Q0_cYSJVhQ3cH9cV9KPt5rTe6W2FS2A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30105
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 August 2015 at 15:27, David Dias <daviddias@ipfs.io> wrote:
> Does this mean that a HTTP2-P2P client would have to announce every single
> authority it is willing to accept requests from?

Nope, you have this backward. The client announces what authorities it
believes *it is*. This is necessary because the server (turned client)
needs to know what authority it is requesting data from (at the very
least to populate the :authority pseudo-header field) when it makes
requests.

The flow is as follows:

Client initiates connection to 'h2peer.com', and offers H2 P2P.
It emits a CLIENT_AUTHORITY frame indicating that the client believes
it is authority 'h2peer2.com'
Server verifies the client's IP address against a static list to
confirm that the client actually is 'h2peer2.com'
Client can now make HTTP requests to the server (authority h2peer.com)
and the server can make requests to the client (authority
h2peer2.com).


> I believe the intended behaviour would be for a server to be able to send a
> PUSH_PROMISE frame on a client-initiated stream (a first request from the
> client) and not on a server-initiate stream.

I think this represents a problem with the ambiguity of 'client' and
'server'. This should really be saying that PUSH_PROMISE frames can
only be sent on streams that the given peer did not initiate. I'll
attempt to reword with 'dialer' and 'listener' (or something similar)
to avoid the ambiguity.

Cory