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

"John A. Tamplin" <jat@jaet.org> Wed, 22 May 2013 18:32 UTC

Return-Path: <jat@jaet.org>
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 ECC5011E812E for <hybi@ietfa.amsl.com>; Wed, 22 May 2013 11:32:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.425
X-Spam-Level:
X-Spam-Status: No, score=-0.425 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RDNS_NONE=0.1]
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 8IyEqniBBLqM for <hybi@ietfa.amsl.com>; Wed, 22 May 2013 11:32:43 -0700 (PDT)
Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by ietfa.amsl.com (Postfix) with ESMTP id 7483611E812F for <hybi@ietf.org>; Wed, 22 May 2013 11:32:43 -0700 (PDT)
Received: by mail-ie0-f180.google.com with SMTP id ar20so5876468iec.39 for <hybi@ietf.org>; Wed, 22 May 2013 11:32:43 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:x-gm-message-state; bh=Ko8m7Fn5a7sS+ethsduBqC7LixQCBl69UHTC/XwixPA=; b=b/t1RXODnCxGMfgrofe/tJdd1bcYA/WcFNDBjuCZY6KcBecmC3XxD0RwTcZkrqnm1S hq2cEf693Ttpz1R0OuH2dzb12eNgHeZrS4V6thaFODtW4th4qh3UEV+W8JheNsWJVGr3 QxIlsKwQx8VogCaEU9l64mmTN175UjYM0A5l77DrcoEyWceU9DQKJuWHatLMtilrYzno nJC0POof9kdJ49QMI5qgeL9QmkkY5XMfOwymTbQGAgx99TESRfEAzlqRWbGVfxT1Jy07 f3CpTFVXCrMQXtCEZLehRAFrMdl1FZzhIkdKsw2xbhyyRtIHyG+BNTJD3TZ7yE/tHJeF PeJg==
X-Received: by 10.42.84.201 with SMTP id n9mr7733587icl.47.1369247562895; Wed, 22 May 2013 11:32:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.50.37.236 with HTTP; Wed, 22 May 2013 11:32:22 -0700 (PDT)
X-Originating-IP: [207.67.64.142]
In-Reply-To: <519D02E7.6040009@tavendo.de>
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> <519D02E7.6040009@tavendo.de>
From: "John A. Tamplin" <jat@jaet.org>
Date: Wed, 22 May 2013 14:32:22 -0400
Message-ID: <CAM5k6X8Z-JxrgTy3NAc-wC7zK_AfsWAhqzNKaEY_yZzmz=pZcQ@mail.gmail.com>
To: Tobias Oberstein <tobias.oberstein@tavendo.de>
Content-Type: multipart/alternative; boundary="20cf301cc49298aa2904dd52ca2e"
X-Gm-Message-State: ALoCoQklRrmCGhMKv6TXp82haBV6t8CW7egjUT8d1ir9YKqYwQG7CYAdOgta1zz8lj9L3hb6k9D4
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 18:32:48 -0000

On Wed, May 22, 2013 at 1:39 PM, Tobias Oberstein <
tobias.oberstein@tavendo.de> wrote:

> Regarding implementing flow control above TCP (and below app), I found
> this:
>
> "Multiplexing on top of TCP in overall fails to deliver the advantages it
> is assumed to provide."
>
> Source: http://www.250bpm.com/**multiplexing<http://www.250bpm.com/multiplexing>
>
> Do you have an opinion on that?
>

One thing he doesn't address are resources used to keep lots of connections
open, both at the OS level and in intermediate network nodes (such as load
balancers -- try running tons of long-lived connections through an F5 for
example).  Also, he doesn't address the interaction of TCP slow start with
lots of new connections.  I also don't believe the equivalent of a full TCP
handshake is required to allocate buffer space.


> More important: what problem exactly does multiplexing solve? The current
> mux RFC mentions "scalability", but doesn't go into detail ..
>

Here is a use-case I envision:  Imagine GMail, G+ sandbar, etc all use
WebSockets heavily.  Many users may have multiple copies of such apps
running in tabs or windows in the browser, and some of these are going to
be separate (such as GMail and the G+ sandbar probably are separate apps
running on the same page and maintain their own connections to their
backends).  Currently, that would mean you have a ton of TCP connections
open to the server.  Servers don't handle tons of long-lived connections
very well (or intermediate load balancers), so you would greatly prefer to
have one connection per browser.  WS MUX lets you do that, by having the
browser aggregate connections to the same backend.  You could do some of it
at the app level, but it is going to be complicated and in many cases these
apps won't all be from the same vendor (for example, some widget on the
page that uses the GData API) and will have separate deploy schedules.

-- 
John A. Tamplin