Re: 6455 Websockets and the relationship to HTTP

Jacob Champion <champion.p@gmail.com> Mon, 05 December 2016 18:37 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 BF83E129581 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 5 Dec 2016 10:37:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.897
X-Spam-Level:
X-Spam-Status: No, score=-9.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-2.896, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 H922WtVqQEXq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 5 Dec 2016 10:37:46 -0800 (PST)
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 53033129466 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 5 Dec 2016 10:37:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cDy6k-0007NZ-OX for ietf-http-wg-dist@listhub.w3.org; Mon, 05 Dec 2016 18:35:22 +0000
Resent-Date: Mon, 05 Dec 2016 18:35:22 +0000
Resent-Message-Id: <E1cDy6k-0007NZ-OX@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <champion.p@gmail.com>) id 1cDy6d-0007Lx-9l for ietf-http-wg@listhub.w3.org; Mon, 05 Dec 2016 18:35:15 +0000
Received: from mail-pf0-f172.google.com ([209.85.192.172]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <champion.p@gmail.com>) id 1cDy6M-0000P8-42 for ietf-http-wg@w3.org; Mon, 05 Dec 2016 18:35:03 +0000
Received: by mail-pf0-f172.google.com with SMTP id i88so64689529pfk.2 for <ietf-http-wg@w3.org>; Mon, 05 Dec 2016 10:34:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=I3srrDIZWOWtKIiU6bDHG8QhLURcC/3zcQMzBTPDvLA=; b=yYqThpGu6UXYz0f6LY1ix7462i31rruDqi7uZkJ25GvWovVX2Wjc/a97GElY5x9EQW y6YtWyWVx9AX2B5sxc8onhjEzjgbRgJzFCr1Sj2zPT7CEdqwCDFhMqoHYRkqD4IkSu/V 6tDvxUITip04F+IvLJz5SDXCLwzlviX4KOiBblUTYMySkEGf6AzN5XZQweo0rM5Eh+HK K1ew1SJsxqOHX8hZfk7ZkUN+3ihbkEFLZ5HhqptmmduHbdlKrAcmOwAhVXFUoYAJv4Co TjKcatBYpiIClOgz5h1k64kyCh4MMzBJZRstbmGCbX5kl9mbCb7zFtqgkxB5GrQeYlGl 4UDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=I3srrDIZWOWtKIiU6bDHG8QhLURcC/3zcQMzBTPDvLA=; b=DB8oFp+rsY2JXqMMiDlwtIOcuOKPQtCaG7EjV4fr1RP0XrQn1X9Yd2aEicM4t/T+Y+ hsHkbAFaYiyvjxC0UKLti0OCh4UIw+WLuGWcZNLjz1Mnn1Hb6fCnsjvgVx38FerzrZUW 6VSLKxK9X8WV0etk8im6FxLrXrevSQsn2MhECnZm1Nr7cG+yQ5tJxu+AFqCYX6SWT+xv p/jXQt4vw0O0mYMUgDIrdQ/z56OOwNRAJaGC9qBdVRYNYe+/ncBjcfXDJMuUqcGIs+oK vHomj7e4XSdKH30LK0zLlaEXYwuUeJMLsm36ARH0pQhV5APIkZ3JEv/+t0CmR3R0wOqw 0bcQ==
X-Gm-Message-State: AKaTC00yNm4IIKFDBNpNvd2TkjAtxp8TPpo+RRwF0WWsPyuEBUY/Q9zWpaFnnCOrezfPgw==
X-Received: by 10.99.226.83 with SMTP id y19mr104690672pgj.147.1480962869078; Mon, 05 Dec 2016 10:34:29 -0800 (PST)
Received: from [192.168.1.7] (50-39-112-180.bvtn.or.frontiernet.net. [50.39.112.180]) by smtp.gmail.com with ESMTPSA id c22sm29274865pgn.12.2016.12.05.10.34.28 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2016 10:34:28 -0800 (PST)
To: ietf-http-wg@w3.org
References: <CAOdDvNqk7W_oNWUismMb-ZuhvdboZNDQ0YV2BLsbka-FGC-7oA@mail.gmail.com>
From: Jacob Champion <champion.p@gmail.com>
Message-ID: <65d48372-590c-bc6f-1dc0-cd1309c2a29f@gmail.com>
Date: Mon, 05 Dec 2016 10:34:28 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <CAOdDvNqk7W_oNWUismMb-ZuhvdboZNDQ0YV2BLsbka-FGC-7oA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=209.85.192.172; envelope-from=champion.p@gmail.com; helo=mail-pf0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-0.001, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cDy6M-0000P8-42 21d86ef49a365f430b82a8cf572199ea
X-Original-To: ietf-http-wg@w3.org
Subject: Re: 6455 Websockets and the relationship to HTTP
Archived-At: <http://www.w3.org/mid/65d48372-590c-bc6f-1dc0-cd1309c2a29f@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33116
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 12/01/2016 07:48 AM, Patrick McManus wrote:
> Here's what I think I'm hearing, but there are so many messages that are
> done in the weeds of the solution space I don't want to lose track of
> the problems being solved - I think this list might help in any
> chartering discussion:
>
> * in a practical sense there is no mux and when you have mux you need
> priority and flow control. h2 solves this.
> * operational overhead of maintaining/admin h1 just to boostrap to
> websockets.
> * latency of a new h1 connection just to bootstrap to websockets
> * operational overhead of separate conns for http and ws
>
> is there more? some data on this stuff would be good. Is this really
> mostly about mux?

I've contributed to a major derailing of the thread elsewhere. My 
apologies... To try to bring this back to your original point:

Andy mentioned that an HTTP/2 transport for WebSocket might mean that we 
could get rid of client-to-server masking. I don't have any data to 
support my spitballing, but that *could* be a pretty decent optimization 
for implementations, since they no longer have to mask or de-mask the 
data in place. For example, it might open up the possibility of 
scatter/gather I/O for frame handling?

--Jacob