Re: preconnect link relation and ALTSVC frame

Amos Jeffries <squid3@treenet.co.nz> Wed, 08 November 2017 17:04 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9F4801292CE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 Nov 2017 09:04:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level:
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 gML8JXSxKFb5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 Nov 2017 09:04:21 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A648128DE7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 8 Nov 2017 09:04:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1eCTdT-0006iV-3v for ietf-http-wg-dist@listhub.w3.org; Wed, 08 Nov 2017 16:55:31 +0000
Resent-Date: Wed, 08 Nov 2017 16:55:31 +0000
Resent-Message-Id: <E1eCTdT-0006iV-3v@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <squid3@treenet.co.nz>) id 1eCTdM-0006hO-Th for ietf-http-wg@listhub.w3.org; Wed, 08 Nov 2017 16:55:24 +0000
Received: from [121.99.228.82] (helo=treenet.co.nz) by mimas.w3.org with esmtp (Exim 4.89) (envelope-from <squid3@treenet.co.nz>) id 1eCTdL-000203-8v for ietf-http-wg@w3.org; Wed, 08 Nov 2017 16:55:24 +0000
Received: from [192.168.137.92] (unknown [121.98.43.66]) by treenet.co.nz (Postfix) with ESMTPA id 09F5B6600E0 for <ietf-http-wg@w3.org>; Thu, 9 Nov 2017 05:54:54 +1300 (NZDT)
To: ietf-http-wg@w3.org
References: <7CF7F94CB496BF4FAB1676F375F9666A3BA86FFB@bgb01xud1012>
From: Amos Jeffries <squid3@treenet.co.nz>
Message-ID: <409997ef-00ca-a07e-c59c-5e57b6a86984@treenet.co.nz>
Date: Thu, 09 Nov 2017 05:54:54 +1300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <7CF7F94CB496BF4FAB1676F375F9666A3BA86FFB@bgb01xud1012>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=121.99.228.82; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.029, BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1eCTdL-000203-8v 3115894b2a27f1052dbed276b3563e66
X-Original-To: ietf-http-wg@w3.org
Subject: Re: preconnect link relation and ALTSVC frame
Archived-At: <http://www.w3.org/mid/409997ef-00ca-a07e-c59c-5e57b6a86984@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/34729
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 09/11/17 04:32, Lucas Pardue wrote:
> Hello,
> 
> Reading around the Web Linking [1] topic a bit, I came up with the 
> following scenario involving preconnect [2]. My general question is, 
> could a client act on Alt-Svc information during its preconnect action 
> (and if so, do any implementations do this). I wondered if anyone had 
> been on this thought journey and had an opinion.
> 
>  1. Client makes a request for https://example.org/foo
>  2. Server responds with foo resource and Link header:
>      1. Link: <https://bar.example.org>; rel=preconnect
>  3. Client attempts to initiate a preconnect and performs full
>     connection handshake.
>      1. During TLS handshake, ALPN selects H2
>  4. Connection is established and server sends an ALTSVC frame
>     containing an Alt-Svc-Field-Value of:
>      1. hq=":50781”, h2=”baz.example.org”
>  5. Client attempts to establish connection to one of the alternatives?
> 

Firstly, why would a client do (5) immediately after (3) ? The whole 
point of preconnect is to avoid the latency / RTTs doing (5) would 
incur. Normally I would expect a client needing multiple connections to 
preconnect all of them ASAP - ie at (3) to avoid the latency, not 
waiting until after (4).

Secondly, if another connection were necessary sometime after (4) there 
is effectively no difference for the client between connecting to 
bar.example.com:443, bar.example.com:50781 and baz.example.org when 
fetching URLs for "http://bar.example.org". That is required or they 
would not be valid as alternatives for each other.

AYJ