Re: [hybi] Framing Take VI (a compromise proposal)

Scott Ferguson <ferg@caucho.com> Wed, 18 August 2010 01:27 UTC

Return-Path: <ferg@caucho.com>
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 C11D93A67B1 for <hybi@core3.amsl.com>; Tue, 17 Aug 2010 18:27:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.165
X-Spam-Level:
X-Spam-Status: No, score=-2.165 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
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 Jk4-LP9ZQlwF for <hybi@core3.amsl.com>; Tue, 17 Aug 2010 18:27:38 -0700 (PDT)
Received: from smtp113.biz.mail.sp1.yahoo.com (smtp113.biz.mail.sp1.yahoo.com [69.147.92.226]) by core3.amsl.com (Postfix) with SMTP id F38343A635F for <hybi@ietf.org>; Tue, 17 Aug 2010 18:27:37 -0700 (PDT)
Received: (qmail 90379 invoked from network); 18 Aug 2010 01:28:13 -0000
Received: from [192.168.1.11] (ferg@66.92.8.203 with plain) by smtp113.biz.mail.sp1.yahoo.com with SMTP; 17 Aug 2010 18:28:13 -0700 PDT
X-Yahoo-SMTP: L1_TBRiswBB5.MuzAo8Yf89wczFo0A2C
X-YMail-OSG: wMH_y_AVM1kzQhl9Q85XrKSgG7rTxeTm1.P8Spq20LtM53i f3vu7T_RWD3jDFQ.R1au_vGGWQUqo1vc6ommc.LZeHc1Oy.g_SQgsxdYqEKF 7gSnOQNp_4xdrdxmFRzmIwmKN39l57Jd0kuXLC_03Qt1lXLi6G988VWM_CpE 8D4qYl9hdzeM_ZNVXo9JAzKkwAhRKDo1cW4vcNFcyhAlQ8c49h2NNFtvnKFE QklT2mzPdkqxqoiyJFeFHDlxa1ugKxzlD1E3G4Oxn1leSpHeLE9LMWvCB7Vb 9Ipjmml8JMebxoSt4URUm5q94laORqjOOPL.KwFo9q7Hs_ZKnJu46JA--
X-Yahoo-Newman-Property: ymail-3
Message-ID: <4C6B3719.8080709@caucho.com>
Date: Tue, 17 Aug 2010 18:27:53 -0700
From: Scott Ferguson <ferg@caucho.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: John Tamplin <jat@google.com>
References: <AANLkTi=TBXO_Cbb+P+e2BVfx69shkf8E1-9ywDh_Y+Kz@mail.gmail.com> <AANLkTimJOGWgV6rx5JJYSJMC26OzQzskzVtkYz0L_EAg@mail.gmail.com> <op.vhe7qtmu64w2qv@anne-van-kesterens-macbook-pro.local> <8B0A9FCBB9832F43971E38010638454F03ED35AB3F@SISPE7MB1.commscope.com> <AANLkTimQoy1Z_oTWc4Z3cYnQz0MOb6q_u1mtz0PxMXz0@mail.gmail.com> <AANLkTimAo9bD3dwVhmDn9FuypdS5j4zG4yrHs3x2NxpP@mail.gmail.com> <8B0A9FCBB9832F43971E38010638454F03ED35AB54@SISPE7MB1.commscope.com> <AANLkTin3oti7f4F8kP0t4iWciCmTTkT2OrC31_MV_244@mail.gmail.com>
In-Reply-To: <AANLkTin3oti7f4F8kP0t4iWciCmTTkT2OrC31_MV_244@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: "hybi@ietf.org" <hybi@ietf.org>, "Thomson, Martin" <Martin.Thomson@andrew.com>
Subject: Re: [hybi] Framing Take VI (a compromise proposal)
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: Wed, 18 Aug 2010 01:27:38 -0000

John Tamplin wrote:
> On Tue, Aug 17, 2010 at 7:50 PM, Thomson, Martin 
> <Martin.Thomson@andrew.com <mailto:Martin.Thomson@andrew.com>> wrote:
>
>     That wasn’t the suggestion at all.  Binary/text was included.  The
>     proposal was length + opcode.  Two opcodes only…for now.
>
>      
>
>     The other stuff (fragmentation, channels, etc) are well enough
>     understood now to say that they can be built in later. Hence, we
>     reserve the bits and plan to build them later (or not at all). 
>
>
> I think we do know that we have a use-case for fragmentation, as it 
> has been accepted as a requirement for this protocol.  As previously 
> mentioned, the inclusion of a total message length was required to 
> remove objections to fragmentation.  So, other than having two options 
> for the frame length to preserve efficient encoding of small messages, 
> I think the current proposal is about as minimal as it can get.

A variable-length frame-header is not as minimal as it can get.

In your design, initial fragments have a 18 byte header (!), 
non-fragmented messages > 127 have 10 byte header, non-initial fragments 
are 10 bytes, and 127 byte messages (shorter than a tweet) have a 
special 2 byte header.

That is not a minimal proposal.

-- Scott

>
> I think if we leave out fragmentation and planned extensibility from 
> the base protocol, we haven't really accomplished anything and we will 
> either wind up having to make incompatible changes later or having 
> suboptimal framing once we do define some extensions.
>
> Let's say we did strip out fragmentation, and even defined the INI/FIN 
> bits as proposed, but required that they be 1 in the initial version. 
>  Then, any intermediaries and receivers that are written now will 
> break when fragmentation is added later, and experience shows that 
> those intermediaries will be very slowly upgraded.  I think that would 
> add years to when fragmentation could usefully be used, so I think it 
> is entirely appropriate that fragmentation support be in the base 
> protocol.
>
> -- 
> John A. Tamplin
> Software Engineer (GWT), Google
> ------------------------------------------------------------------------
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>