Re: [hybi] Call for interest: multiplexing dedicated for WebSocket

Simone Bordet <sbordet@intalio.com> Wed, 22 May 2013 16:50 UTC

Return-Path: <simone.bordet@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B883211E80FF for <hybi@ietfa.amsl.com>; Wed, 22 May 2013 09:50:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y72N2ZWamfcA for <hybi@ietfa.amsl.com>; Wed, 22 May 2013 09:50:17 -0700 (PDT)
Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by ietfa.amsl.com (Postfix) with ESMTP id 4B19721F96F9 for <hybi@ietf.org>; Wed, 22 May 2013 09:48:44 -0700 (PDT)
Received: by mail-pd0-f180.google.com with SMTP id 10so1897505pdc.39 for <hybi@ietf.org>; Wed, 22 May 2013 09:48:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=I77T8lcEMHDJjlnXn1BIXcWqAWchRv7xfZ2a6Sl4mns=; b=lpQtT50ES9T7P7EuQnGYTGqSvIZhLK1BQEtU6aK/KosTka3/AlR2snsYrqGbtyL5nw uzTQ9RZkUVV0/wahw6JAuZoBolIH4EGi/3X7/cVg+MG4q1Tphq5HTGCK++uu+5ogNgZX 5ixVX8NRm7DBfUXByBywrQkhHXIxMIOdbBbbqlhEyNtk+bvy+RW9yZEV2DyO/JIYJMh1 UQEvWRMt+uVCU6Gz2Vx/e48Ui19i//gjBrBxrNL/ANh7lYSa/2oOcn3eyR+orNJj7u37 Hg8GYfXuhKq6tfACePPi5vl+ipA2RO+uA3YxEd2hbpGeh9ygmNlPgLCN+hKojHcw3gmk Zsew==
MIME-Version: 1.0
X-Received: by 10.66.235.69 with SMTP id uk5mr9136729pac.110.1369241323615; Wed, 22 May 2013 09:48:43 -0700 (PDT)
Sender: simone.bordet@gmail.com
Received: by 10.68.103.129 with HTTP; Wed, 22 May 2013 09:48:43 -0700 (PDT)
In-Reply-To: <CAM5k6X9WmO80hiQZ6_GqK66PAd3of=2ZRi9=VrWj52apA1+=5g@mail.gmail.com>
References: <CAH9hSJZxr+aG7GZa4f-dUOTGj4bnJ+3XxivUX4jei5CMyqN4LQ@mail.gmail.com> <CAH9hSJZUG1f+3Uk=t2=A5i4O9=wPvAisspM=pgmGEH9emTL9-Q@mail.gmail.com> <CAH9hSJZai_UuxW4O6mZcEJT2DJoURtLo16XNci1qkYVWv4HVdg@mail.gmail.com> <007501ce56f0$67f74080$37e5c180$@noemax.com> <519CD6A1.7080708@ericsson.com> <519CE075.4000106@tavendo.de> <CAM5k6X9WmO80hiQZ6_GqK66PAd3of=2ZRi9=VrWj52apA1+=5g@mail.gmail.com>
Date: Wed, 22 May 2013 18:48:43 +0200
X-Google-Sender-Auth: ki20rsALVOkWXLS-bw324CYNQOI
Message-ID: <CAFWmRJ2Hbe0x5FeV2T7Gkp3WEsxQHe2=YPBTgvHYLcus3A4rBQ@mail.gmail.com>
From: Simone Bordet <sbordet@intalio.com>
To: "John A. Tamplin" <jat@jaet.org>
Content-Type: multipart/alternative; boundary="047d7b111e83b4c10904dd5156c5"
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Call for interest: multiplexing dedicated for WebSocket
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
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: Wed, 22 May 2013 16:50:22 -0000

Hi,

On Wed, May 22, 2013 at 6:26 PM, John A. Tamplin <jat@jaet.org> wrote:
> I agree -- without flow control, there is very little benefit, and almost
> nothing that an app couldn't easily do themselves by just adding a simple
> framing layer inside WS messages (perhaps just the first byte is a logical
> channel number).

In SPDY, the flow control had an initial window of 64k. This proved way too
small for uploads/downloads, which resulted in a 3x or more slowdown.
So there needs to be in ws a mechanism to configure this window (which SPDY
has).
Turns out that now every client sends a huge initial window, so downloads
are now fast.
This of course impacts memory, since flow control is about memory, but
pretty much solved the flow control problem.

The next problem that arose was that now a stream/channel can take the
whole bandwidth and squat others channels.
So there is the need for a further flow control mechanism to prioritize
channels, that must be dynamic (i.e. changed during the transmissions of
frames).
SPDY is still discussing this, I am guessing it's also being discussed in
HTTP 2.0.

So "simple mux" looks like an oxymoron to me, and makes me wonder what
useful could be a ws mux solution that does not do dynamic channel
prioritization.
A typical use case Joakim presented to me was to tune video download rate
in a websocket server: a big priority initially to download faster than the
client video player plays, to make some buffer, and then reducing the
priority to a steady state with the video player's speed, or reducing
priority to almost zero if the user pauses the play.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.