Re: [hybi] hum #3: Message

Jamie Lokier <jamie@shareable.org> Fri, 06 August 2010 00:55 UTC

Return-Path: <jamie@shareable.org>
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 B98453A68BC for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 17:55:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.525
X-Spam-Level:
X-Spam-Status: No, score=-2.525 tagged_above=-999 required=5 tests=[AWL=0.074, 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 8CkVfU0oc016 for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 17:55:05 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id DC6C93A6887 for <hybi@ietf.org>; Thu, 5 Aug 2010 17:55:04 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1OhBDi-0000Bv-Ar; Fri, 06 Aug 2010 01:55:34 +0100
Date: Fri, 06 Aug 2010 01:55:34 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Dave Cridland <dave@cridland.net>
Message-ID: <20100806005534.GG27827@shareable.org>
References: <Pine.LNX.4.64.1008051930160.5947@ps20323.dreamhostps.com> <4C5B1695.6070704@gmx.de> <F8E2F702-9F74-4316-B3B2-D5A731409ABF@apple.com> <4C5B2029.90403@gmx.de> <AANLkTim1WeCRfcPxXUNQcVhb4+t_TtDQDv2bXaxOQ=bk@mail.gmail.com> <01098AD0-FBF4-4A61-B565-947C95722BAA@apple.com> <C1A941B9-058C-4E1D-811A-92C94E18CBDE@apple.com> <2286.1281043500.752860@puncture> <AANLkTi=q_XEjKyK5vzFQhsZJOaxDh4QgXY1YnBJbG68P@mail.gmail.com> <2286.1281046016.883224@puncture>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <2286.1281046016.883224@puncture>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: Server-Initiated HTTP <hybi@ietf.org>
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: Fri, 06 Aug 2010 00:55:05 -0000

Dave Cridland wrote:
> On Thu Aug  5 22:50:31 2010, Greg Wilkins wrote:
> >The main down side I can think of is that it makes it harder to word
> >align header and data, but then I don't see a large demand for that.
> 
> Fixed width fields obviously allow that. Additionally, they're  
> simpler to encode and decode by a very large margin.
> 
> Finally, it means that you can build very dumb intemediaries which  
> read in the frame header in a single network read(), check the stream  
> identifier (for instance), and then hardware copy the payload between  
> interfaces. Fast reliable demultiplexing and other front-ending seems  
> like quite compelling to me.

+1.  All sensible multiplexing puts the addressing and length at the
beginning to enable cut-through forwarding without having to examine
the data itself, and allows errors to be signalled by the forwarder
during sending, in case it receives an error in the middle.

(Cut-through means forwarding data as it arrives, without waiting for
all of it first.)

If large chunks are permitted, you *must* support cut-through
forwarding otherwise the memory required for buffering is large too,
as is the forwarding latency.

-- Jamie