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

"Thomson, Martin" <Martin.Thomson@andrew.com> Tue, 17 August 2010 22:53 UTC

Return-Path: <Martin.Thomson@andrew.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 0D9483A6823 for <hybi@core3.amsl.com>; Tue, 17 Aug 2010 15:53:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.047
X-Spam-Level:
X-Spam-Status: No, score=-3.047 tagged_above=-999 required=5 tests=[AWL=-0.448, 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 G1ki5sAJ+CFh for <hybi@core3.amsl.com>; Tue, 17 Aug 2010 15:53:05 -0700 (PDT)
Received: from csmailgw1.commscope.com (csmailgw1.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 2EB6C3A679F for <hybi@ietf.org>; Tue, 17 Aug 2010 15:53:05 -0700 (PDT)
Received: from [10.86.20.102] ([10.86.20.102]:22644 "EHLO ACDCE7HC1.commscope.com") by csmailgw1.commscope.com with ESMTP id S30628512Ab0HQWxk (ORCPT <rfc822; hybi@ietf.org>); Tue, 17 Aug 2010 17:53:40 -0500
Received: from SISPE7HC2.commscope.com (10.97.4.13) by ACDCE7HC1.commscope.com (10.86.20.102) with Microsoft SMTP Server (TLS) id 8.1.436.0; Tue, 17 Aug 2010 17:53:40 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC2.commscope.com ([fe80::58c3:2447:f977:57c3%10]) with mapi; Wed, 18 Aug 2010 06:53:39 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Anne van Kesteren <annevk@opera.com>, "ifette@google.com" <ifette@google.com>, Ian Hickson <ian@hixie.ch>
Date: Wed, 18 Aug 2010 06:53:39 +0800
Thread-Topic: [hybi] Framing Take VI (a compromise proposal)
Thread-Index: Acs7kIHzCFW89uMVT4mMT6HjxSm1ZQCLYyDQ
Message-ID: <8B0A9FCBB9832F43971E38010638454F03ED35AB3F@SISPE7MB1.commscope.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>
In-Reply-To: <op.vhe7qtmu64w2qv@anne-van-kesterens-macbook-pro.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw1.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Cc: "hybi@ietf.org" <hybi@ietf.org>
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: Tue, 17 Aug 2010 22:53:06 -0000

Anne writes:
> On Fri, 13 Aug 2010 23:16:14 +0200, Ian Hickson <ian@hixie.ch> wrote:
> > 2010/8/12 Ian Fette (イアンフェッティ) <ifette@google.com>:
> >>
> >> That said, here's the proposal:
> >
> > This seems overly complex. [...]
> 
> Agreed. I would really like to avoid having so much features in the
> initial deployment.

Just to add another +1.

As I understand it, at the framing layer, all you need is a length count.  Pick a length and run with it, it doesn't really matter how big in the end.  That's all a framing layer really needs.

At the next layer, we can use opcodes to identify frame types:

 0 = this frame contains a message, and that message is binary
 1 = this frame contains a message, and that message is UTF-8 text

It would be possible, technically, to reserve the rest and ship a working protocol.