Re: [hybi] Discontinuation of mux standardizaton in favor of WS/HTTP/2.0

Tobias Oberstein <tobias.oberstein@tavendo.de> Mon, 20 January 2014 15:51 UTC

Return-Path: <tobias.oberstein@tavendo.de>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 36C181A01B1 for <hybi@ietfa.amsl.com>; Mon, 20 Jan 2014 07:51:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 VcAEBQj0C_5i for <hybi@ietfa.amsl.com>; Mon, 20 Jan 2014 07:51:37 -0800 (PST)
Received: from EXHUB020-3.exch020.serverdata.net (exhub020-3.exch020.serverdata.net [206.225.164.30]) by ietfa.amsl.com (Postfix) with ESMTP id CFAC01A01A9 for <hybi@ietf.org>; Mon, 20 Jan 2014 07:51:36 -0800 (PST)
Received: from EXVMBX020-12.exch020.serverdata.net ([169.254.3.11]) by EXHUB020-3.exch020.serverdata.net ([206.225.164.30]) with mapi; Mon, 20 Jan 2014 07:51:37 -0800
From: Tobias Oberstein <tobias.oberstein@tavendo.de>
To: Peter Thorson <webmaster@zaphoyd.com>, Yutaka Hirano <yhirano@chromium.org>
Date: Mon, 20 Jan 2014 07:51:34 -0800
Thread-Topic: [hybi] Discontinuation of mux standardizaton in favor of WS/HTTP/2.0
Thread-Index: Ac8V9K5jLsznY3LUQQOf/D4G61sLMgAAY7HQ
Message-ID: <634914A010D0B943A035D226786325D4446BF99A9B@EXVMBX020-12.exch020.serverdata.net>
References: <CAH9hSJah=4Z4-NufVrUrP965epc9eMdEbC+3LmucN4DhR=bWiQ@mail.gmail.com> <634914A010D0B943A035D226786325D4446BE403DF@EXVMBX020-12.exch020.serverdata.net> <CABihn6H5EtDwhXMYhh-BMb5m6yxL9nYv6=Ud4fN5DeQkjDGyPQ@mail.gmail.com> <634914A010D0B943A035D226786325D4446BE403E1@EXVMBX020-12.exch020.serverdata.net> <CABihn6EaE+69q3AJqxEj6vGztBHu4FdOcLCvZ_9Jg-e2cFLwEg@mail.gmail.com> <CAGzyod7ymnpOTiiH7xN3W-aBxD2NNPc=S_Oawdihfhuu84unLw@mail.gmail.com> <634914A010D0B943A035D226786325D4446BED9CDE@EXVMBX020-12.exch020.serverdata.net> <CABihn6EGA3znv_WsJ1gELXyNXgY2fy8weBJ62yD+M2iP7xEnCA@mail.gmail.com> <634914A010D0B943A035D226786325D4446BF99976@EXVMBX020-12.exch020.serverdata.net> <CABihn6GFnGTB9sOZ1=2UnOv-pHPRnRY96DnOb_Q24bNUaxgR=w@mail.gmail.com> <9230B7A2-56AD-4807-A53A-928253364B52@zaphoyd.com>
In-Reply-To: <9230B7A2-56AD-4807-A53A-928253364B52@zaphoyd.com>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: de-DE, en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Discontinuation of mux standardizaton in favor of WS/HTTP/2.0
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi/>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Jan 2014 15:51:41 -0000

Hi Peter

>A simple proposal to support WebSocket API functionality might be something like:
>- HTTP 2.0 HEADERS message already provides the functionality necessary to negotiate a given HTTP 2.0 channel as a "WebSocket" channel along with sending subprotocol, cookies, etc.

Yep.

>- An HTTP 2.0 WEBSOCKET frame type could be used to deliver WebSocket messages. You'd need a FIN flag for the message boundaries, frame boundaries would be just standard HTTP 2.0 frames. No need to repackage or reframe or make a distinction between >"websocket" frames and HTTP 2.0 frames.

Why a separate SPDY frame type? Why not SPDY/DATA frames? After negotiation, the whole SPDY _stream_ will be "messaging" only anyway ..
 
>- Depending on how closely we want HTTP 2.0 WebSockets to match RFC6455 WebSockets additional support could be added.. for example, define the WEBSOCKET frame type's flag bits as follows (full compatibility flag configuration):

>From the goal of W3C WebSocket API only compatibility, the only other information (besides message boundaries) needed in SPDY/DATA frames would be the payload type: UTF8 vs binary.

So the minimum appears to be 2 bits in SPDY/DATA frame headers:

1 bit for MSG_DONE on the last SPDY/DATA frame and
1 bit for MSG_TYPE (UTF8/binary) on the first SPDY/DATA frame that starts a new msg

Am I missing something?

/Tobias