Re: [hybi] CML

"Shelby Moore" <shelby@coolpage.com> Mon, 23 August 2010 17:29 UTC

Return-Path: <shelby@coolpage.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 011D63A691A for <hybi@core3.amsl.com>; Mon, 23 Aug 2010 10:29:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.276
X-Spam-Level:
X-Spam-Status: No, score=-2.276 tagged_above=-999 required=5 tests=[AWL=0.323, 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 jqDX6l5RPwRh for <hybi@core3.amsl.com>; Mon, 23 Aug 2010 10:29:32 -0700 (PDT)
Received: from www5.webmail.pair.com (www5.webmail.pair.com [66.39.3.83]) by core3.amsl.com (Postfix) with SMTP id 088C03A68F8 for <hybi@ietf.org>; Mon, 23 Aug 2010 10:29:31 -0700 (PDT)
Received: (qmail 4617 invoked by uid 65534); 23 Aug 2010 17:30:05 -0000
Received: from 121.97.54.174 ([121.97.54.174]) (SquirrelMail authenticated user shelby@coolpage.com) by sm.webmail.pair.com with HTTP; Mon, 23 Aug 2010 13:30:05 -0400
Message-ID: <f029fece6e19090d57f658bc6ee75bfb.squirrel@sm.webmail.pair.com>
In-Reply-To: <64aa8b232269103d78140fef95db248e.squirrel@sm.webmail.pair.com>
References: <8B0A9FCBB9832F43971E38010638454F03EF2669F2@SISPE7MB1.commscope.com> <AANLkTi=G-gZ1+7uoYE=fhiKFUXoziWacx5_k-HfxC-0z@mail.gmail.com> <8B0A9FCBB9832F43971E38010638454F03EF266A07@SISPE7MB1.commscope.com> <AANLkTimTBLvHXTGciDM4ef1hNXPHn7cjR-kxbd8pBq3+@mail.gmail.com> <8B0A9FCBB9832F43971E38010638454F03EF266A23@SISPE7MB1.commscope.com> <efa3d0a4449d1f830c095466238c5f81.squirrel@sm.webmail.pair.com> <AANLkTimk+roUEXiVKm18AfPBM4Sq4Hj6wxf007ZY=pxN@mail.gmail.com> <dda7ae8b47caed4b15305932cd8db7a7.squirrel@sm.webmail.pair.com> <AANLkTikYs6zdY2YNHb88f7n24BOp2k42VHGQuOQrRPQq@mail.gmail.com> <64aa8b232269103d78140fef95db248e.squirrel@sm.webmail.pair.com>
Date: Mon, 23 Aug 2010 13:30:05 -0400
From: Shelby Moore <shelby@coolpage.com>
To: shelby@coolpage.com
User-Agent: SquirrelMail/1.4.20
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] CML
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: shelby@coolpage.com
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: Mon, 23 Aug 2010 17:29:33 -0000

> You are conflating layers.
>
> The sending layer will serialize the Javascript data structure, perhaps
> into JSON (even if it was already a JSON string being transported), and
> then the receiving layer will de-serialize it.  The de-serializer code
> needs to know how to hop from frame fragment to next one.
>
> The JS coder never sees that.  That de-serializer is a low level operation
> inside the browser code.

And thus your current statistics on mean frames sizes could end up being
too low.

Maybe the serializer will be more efficient than JSON.

But I think it is really wrong to try to squeeze 2 - 4% of blood with the
"Option #2 - 7/16/63-bit" at the possible disaster having most frame sizes
end up greater than 126 once we get all the conflation out of the design.

Must better to add the extra byte and choose either "Option 15/63-bit" or
"Option 8/16/32/64-bit" so as to get some margin of error and safety.

Also safety against my alleged game theory disaster below, regardless
whether you consider it likely or not, it just isn't good engineering to
not allow a margin of error for safety:

http://www.ietf.org/mail-archive/web/hybi/current/msg03578.html