Re: [hybi] Fwd: The MessageBroker WebSocket Subprotocol

John Tamplin <jat@google.com> Sun, 02 October 2011 16:48 UTC

Return-Path: <jat@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 D0A5D21F8532 for <hybi@ietfa.amsl.com>; Sun, 2 Oct 2011 09:48:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.894
X-Spam-Level:
X-Spam-Status: No, score=-105.894 tagged_above=-999 required=5 tests=[AWL=0.082, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 vzIZuZOd-uNF for <hybi@ietfa.amsl.com>; Sun, 2 Oct 2011 09:48:53 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by ietfa.amsl.com (Postfix) with ESMTP id 0F13F21F851A for <hybi@ietf.org>; Sun, 2 Oct 2011 09:48:52 -0700 (PDT)
Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p92GpnQK008678 for <hybi@ietf.org>; Sun, 2 Oct 2011 09:51:50 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1317574310; bh=lhgEnx/rctx+i1uWpvSOb21luGM=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=wrKCTU5YATdgBtt6UFxGnQ0C6W1HzDDQi3cmUHZvFx/+G1ehiAKtJCfYOJRTjOXLT YSYcuEBmf3tY/3JGwsJvw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:in-reply-to:references:from:date: message-id:subject:to:cc:content-type:x-system-of-record; b=MOpZqfT89Z5lFEzjYuKJ8jwoxTGOd68jKjBdzYY93oMEr+bAqcYvqHvNuue55LZcD 8HtShwQPAOW37dk/X2SBg==
Received: from ywa8 (ywa8.prod.google.com [10.192.1.8]) by hpaq11.eem.corp.google.com with ESMTP id p92GorO9025051 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Sun, 2 Oct 2011 09:51:47 -0700
Received: by ywa8 with SMTP id 8so4973256ywa.1 for <hybi@ietf.org>; Sun, 02 Oct 2011 09:51:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=I9yFu1/RckZd+ZrU1MdFTzxecQe/eIOvwf5esexwnP4=; b=YiwiKcFcPlBbMWTdnwV4Jfl18jg00ZOOWlmoKRp7oNQH8IRWUW98AotQKeUYZV5AE7 1UjGuBe3XLMp7l4pwEFQ==
Received: by 10.150.160.13 with SMTP id i13mr8060696ybe.2.1317574307489; Sun, 02 Oct 2011 09:51:47 -0700 (PDT)
Received: by 10.150.160.13 with SMTP id i13mr8060692ybe.2.1317574307235; Sun, 02 Oct 2011 09:51:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.96.7 with HTTP; Sun, 2 Oct 2011 09:51:27 -0700 (PDT)
In-Reply-To: <4E88236E.4040405@ericsson.com>
References: <92457F4F764A5C4785FCDBDDDD76477A123C1C1A@dfweml506-mbx> <4E88236E.4040405@ericsson.com>
From: John Tamplin <jat@google.com>
Date: Sun, 02 Oct 2011 12:51:27 -0400
Message-ID: <CABLsOLADfORBHVfPax75sQeRXTmTav8aOMfey_+KuSO=oPLsEA@mail.gmail.com>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Content-Type: multipart/alternative; boundary="000e0cdf1b3e8c495c04ae53acff"
X-System-Of-Record: true
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Fwd: The MessageBroker WebSocket Subprotocol
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: Sun, 02 Oct 2011 16:48:53 -0000

On Sun, Oct 2, 2011 at 4:40 AM, Salvatore Loreto <
salvatore.loreto@ericsson.com> wrote:

> -------- Original Message --------  Subject: The MessageBroker WebSocket
> Subprotocol  Date: Sun, 2 Oct 2011 00:33:52 +0200  From: Hapner mark
> <hapner.mark@huawei.com> <hapner.mark@huawei.com>  To: hybi@ietf.org
> <hybi@ietf.org> <hybi@ietf.org>  CC: csuconic@redhat.com
> <csuconic@redhat.com> <csuconic@redhat.com>, Salvatore Loreto
> <salvatore.loreto@ericsson.com> <salvatore.loreto@ericsson.com>
>
>  Hi,
>
> Let me introduce myself since I have not posted to the list before.I've
> been involved with message brokers for some time. I was the engineer behind
> the creation of the Java Message Service API. I current work for Huawei's US
> Software Lab in Santa Clara, CA.
>
>  Clebert is the JBoss HornetQ lead.
>
>  Clebert and I are excited about the potential to bring the functionality
> of message brokers to the internet and we see WebSocket as the best message
> transport to enable this. We believe the WebSocket subprotocol described in
> the attached document provides the minimal extension to WebSocket needed for
> this purpose. We hope this subprotocol reflects well on the expectations the
> WG has for the use of WebSocket extensibility.
>
>  We are submitting this document informally to the WG for its comment. It
> is our hope that it will mature into a subprotocol that can be submitted for
> either inclusion into the WebSocket specification; or, as a separate RFC. We
> would like to get the WG's thoughts on how best to proceed in this
> direction.
>
>  http://www.ietf.org/id/draft-hapner-hybi-messagebroker-subprotocol-00.txt
>

It isn't entirely clear to me whether this is defining a subprotocol or a
WebSocket extension.  3.3 clearly makes it seem to be a subprotocol, but
then 2.1.2 defines two opcodes, which is something that can only be done by
an extension.  Also, if it is an extension, there should probably be more
care to reduce the number of opcodes used, as they are in very limited
supply.  Finally, since new opcodes can only be allocated by IANA, it is
hard to experiment with before it is standardized - an alternative would be
to define binary frames exchanged over the subprotocol as having a 1-byte
extended opcode in the first byte, which would not require a WebSocket
extension or allocation of scarce opcodes.  After gaining some experience
with the protocol, then we will have better information about whether
allocating scarce opcodes to this use is warranted.

-- 
John A. Tamplin
Software Engineer (GWT), Google