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

Takeshi Yoshino <tyoshino@google.com> Mon, 27 May 2013 08:52 UTC

Return-Path: <tyoshino@google.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 4384021F8FE5 for <hybi@ietfa.amsl.com>; Mon, 27 May 2013 01:52:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.477
X-Spam-Level:
X-Spam-Status: No, score=-2.477 tagged_above=-999 required=5 tests=[AWL=0.500, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-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 fzXAcz3m1ggF for <hybi@ietfa.amsl.com>; Mon, 27 May 2013 01:52:15 -0700 (PDT)
Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by ietfa.amsl.com (Postfix) with ESMTP id B82E621F8F2C for <hybi@ietf.org>; Mon, 27 May 2013 01:52:14 -0700 (PDT)
Received: by mail-ee0-f46.google.com with SMTP id e49so3705432eek.5 for <hybi@ietf.org>; Mon, 27 May 2013 01:52:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yQkBuN7/7UafyQhB2OyDeKNsC7eMm21c0Gna/R/q36s=; b=QBPEYE8JYs4L/MFdc8WRcYvvvee8MuvNKMgYxk7YZrWUFgzc5z1O9/j+Lso9/rFVFE he1g5HxRlQcuk7x+cIrBoy/9WHMsrOSNArNWhKezqBnLQOH6Ai/yi0G74XemjWgYSu72 k3YmZJUZY1kpwIsomAHghafpb7RytA19P75cnwUl0kkWYqbmfmSeEhOS9FrXuKi08AGN TD+EXMRGe956wvmEKUFtQo4/ACLaLokfULkrNEdXiy+5Hp9uXJiZdjtP5Ngr4zZgUSdm dLARcG7UgmM3kVxA1YjbvnJYgF/APecSpVmGCUnUY/arlG6Krcjp7u7a/BAIAdkV4aT1 IZhQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=yQkBuN7/7UafyQhB2OyDeKNsC7eMm21c0Gna/R/q36s=; b=WAi5uuUuqNR8EInjN/kIxsOMAHslEmuUspWWBm/Xk0XhaJCHhQvnPhUtEi6KWSKzV6 AxuzUkWf0XkTpsUVq8zmjUOTp74My6OaX7386FgvsRoEkwy1ouRlRSKmBWGAVBW92yc3 rfKoEWPfpe7/l9yJz+sZ8IH7zj6KdNbmwZRRBcpkDHtMW5AT2sBpfNlowMmKixGn0m/O X6dXK3/sKp4j9XiIicDUw6opwJOp43H16VF9WJ8RudtYaAICBRxHfdAq8mclPsUCOKqr EVnDDtC8meGHYbfL5UQaLt7C2NIrrTex/Q/kdYDe75C5Z5DyOPvrdCPGfTvOc8MZgMt/ rsyw==
X-Received: by 10.14.194.73 with SMTP id l49mr9051133een.99.1369644733850; Mon, 27 May 2013 01:52:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.86.67 with HTTP; Mon, 27 May 2013 01:51:53 -0700 (PDT)
In-Reply-To: <519D2E2D.4080809@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> <CAM5k6X8Z-JxrgTy3NAc-wC7zK_AfsWAhqzNKaEY_yZzmz=pZcQ@mail.gmail.com> <519D2E2D.4080809@tavendo.de>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Mon, 27 May 2013 17:51:53 +0900
Message-ID: <CAH9hSJZw7sLhQH6i2O9-rRKc88Bmh0EaJEcpxSB5kUKprP6YyQ@mail.gmail.com>
To: Tobias Oberstein <tobias.oberstein@tavendo.de>
Content-Type: multipart/alternative; boundary=047d7b343e3ad4c10404ddaf437c
X-Gm-Message-State: ALoCoQkSp5O61gc+Y6v4jYitG1S9Kepyj9d1QDZP4c+FQdKas3STl2usXBj9/dOK7g3E9nx9FaPP0RK9fsJMiZI1gFgmbM8ZFebxIltEWx4eKjRGiLFVe4LqS3aWk87Iol+S8pmpdV+bD6VKAExktVGmlZbw1WXt1ma7Tm6PygQ8rUgNFO2OR9QfHhvKEYU2wenoyEi3vyGT
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: Mon, 27 May 2013 08:52:20 -0000

On Thu, May 23, 2013 at 5:44 AM, Tobias Oberstein <
tobias.oberstein@tavendo.de> wrote:

> Having those buffers in user space (in app) allows one to tune the buffer
> size _per stream_. Thus, we can have large buffers for streams that carry
> mass data, and small buffers for chatty streams. Thats a real advantage.
>

Exactly.


> How about having a shared Web worker in the background that handles all
> messaging for the app over a single WS?
>

One restriction of Web Worker is that we cannot share a worker between
webapps with different origins while WebSocket can connect to a host
different from its origin.

For load balancer vendors, it's better that multiplexing is standardized
than each service provider develops its own.

Basically multiplexing should be done as close to network as possible. If
it's done in application layer, for example when compression is used, such
a load balancer need to decode the compression to see the multiplexing
information. That doesn't make them happy.

--

As Google, our motivation of mux is to make sure that total meaningful
traffic per server cost (memory, port, machine, etc.) small enough compared
to HTTP/Comet approach.