Re: [hybi] hum #3: Message

Ian Hickson <ian@hixie.ch> Thu, 05 August 2010 18:21 UTC

Return-Path: <ian@hixie.ch>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 435403A6B36 for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 11:21:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.521
X-Spam-Level:
X-Spam-Status: No, score=-2.521 tagged_above=-999 required=5 tests=[AWL=0.078, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oWzpefx78dc9 for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 11:21:54 -0700 (PDT)
Received: from homiemail-a51.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 170273A6A8C for <hybi@ietf.org>; Thu, 5 Aug 2010 11:21:54 -0700 (PDT)
Received: from homiemail-a51.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTP id 850B42E806D for <hybi@ietf.org>; Thu, 5 Aug 2010 11:22:24 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=hixie.ch; h=date:from:to:subject :in-reply-to:message-id:references:mime-version:content-type; q= dns; s=hixie.ch; b=jYf6yl9vyWjdN2J5Zbl4XMYXvZUfZ1SR1Yiy+RZBZalwt XlzhHIzn25K4XI/PkvDjE18oVLpoGjUvztMra5pPpFFp6UnMs44Ftyzxy3GAH5PV wxlhyzJToxp+Figya/ScjwC+yf9qJGgJ+NV5/jH3o99kpcipoBpFlF6tNuCAhE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=hixie.ch; h=date:from:to :subject:in-reply-to:message-id:references:mime-version: content-type; s=hixie.ch; bh=q76za5Q8f5ObN07Wp2/vhr6mwyM=; b=q7X VDrnNtBtDsMEhDrSqilEHDJvCP29Z+OhyEGnTsAcFHP69grm8zULPwNHoDx2lKcB C8mplWQPkyMmTyxOomXKTnC4v/5zC/0oaLFDp5XeL4c3wBQPM9PbwkuGfZXcSiUB VvWRaIqxH/ahk7P1iVjKcxD9ui5KoZUSFJfzFXZ0=
Received: from ps20323.dreamhostps.com (ps20323.dreamhost.com [69.163.222.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: internal@index.hixie.ch) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTPSA id 820742E806A for <hybi@ietf.org>; Thu, 5 Aug 2010 11:22:24 -0700 (PDT)
Date: Thu, 05 Aug 2010 18:22:24 +0000
From: Ian Hickson <ian@hixie.ch>
To: "hybi@ietf.org" <hybi@ietf.org>
In-Reply-To: <4C5AE93D.4040803@ericsson.com>
Message-ID: <Pine.LNX.4.64.1008051758290.5947@ps20323.dreamhostps.com>
References: <4C5AE93D.4040803@ericsson.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Subject: Re: [hybi] hum #3: Message
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Thu, 05 Aug 2010 18:21:55 -0000

On Thu, 5 Aug 2010, Salvatore Loreto wrote:
> 
>    * A message may be composed of one or more "frame"s
>    * Each frame has a length indication, encoded in a fixed number of
>      bits (where that lengths is fixed in the specification to be written)

When transfering large blocks of data, chunking is quite inefficient. This 
means that we'd need to make sure that the fixed width field is at least 
long enough to handle large chunks of data.

At terabit Ethernet speeds, 32 bits is not enough since you could transfer 
that much in mere seconds, so presumably we'll use 64 bits.

Do we really want a length that long? 

The alternative is variable width lengths, which are no more complicated 
to implement than fragmentation, and which do not preclude using 
fragmentation either, and which remain compact at any length.


>    * A message may be composed of one or more "frame"s

I think we should obtain real-world experience with how people use 
WebSockets before we add fragmentation support to the technology. Since it 
can easily be worked around at the application layer (by having 
fragmentation in the subprotocol), we can easily collect information on 
how people are using this after we have initial deployments.


Other relevant e-mails on the subject from other people:

http://www.ietf.org/mail-archive/web/hybi/current/msg02841.html
http://www.ietf.org/mail-archive/web/hybi/current/msg02830.html
http://www.ietf.org/mail-archive/web/hybi/current/msg02892.html

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'