Re: [hybi] frame length encoding

"Shelby Moore" <shelby@coolpage.com> Mon, 23 August 2010 00:17 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 2DAD43A67FB for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 17:17:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.229
X-Spam-Level:
X-Spam-Status: No, score=-2.229 tagged_above=-999 required=5 tests=[AWL=0.370, 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 WdwjlQ9IIcRt for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 17:17:19 -0700 (PDT)
Received: from www5.webmail.pair.com (www5.webmail.pair.com [66.39.3.83]) by core3.amsl.com (Postfix) with SMTP id E0D723A67FA for <hybi@ietf.org>; Sun, 22 Aug 2010 17:17:18 -0700 (PDT)
Received: (qmail 79182 invoked by uid 65534); 23 Aug 2010 00:17:52 -0000
Received: from 121.97.54.174 ([121.97.54.174]) (SquirrelMail authenticated user shelby@coolpage.com) by sm.webmail.pair.com with HTTP; Sun, 22 Aug 2010 20:17:52 -0400
Message-ID: <f5979ac91ec8bfffd195bc2228d07426.squirrel@sm.webmail.pair.com>
In-Reply-To: <AANLkTikp34XkEMNLrKW3e=gKjeaSp2Eok+ra_-ZPdSeE@mail.gmail.com>
References: <AANLkTimKbmcpgx8k0uXUWvCO=8w9pPrtV=3y4qh6363k@mail.gmail.com> <20100820192927.GA32620@1wt.eu> <4C6EEA55.2050205@hs-weingarten.de> <AANLkTinHqxUOZaVANFpC52t8FfgNw2L5_A-s9Az3Fm7p@mail.gmail.com> <AANLkTinvkxMP8FYz9xjDu_Kt9FfzYotgsqXUDB4MZMEo@mail.gmail.com> <AANLkTim3KRq1arso7wN_b+1TH3sWabYW6uFu7AbYw6-P@mail.gmail.com> <AANLkTikhhajho895WyEoJMwMk9GJ98kA0Mjy5qr4apC8@mail.gmail.com> <AANLkTi=kdk6BRvza_7bpoLNTFzUkjcRRijGLMe_NGXZV@mail.gmail.com> <AANLkTi=VE298Tg+qyfufhzMswE5pBxtPZhA0t2k=sf2A@mail.gmail.com> <4C717048.5020309@ericsson.com> <4C717B28.4070009@caucho.com> <4C717E1A.5000404@ericsson.com> <AANLkTimtNN1oW2TB30cS1Ew9pSxWNNsY9FH7Eu4EpQMb@mail.gmail.com> <4C719640.6070808@caucho.com> <AANLkTiki7n2yu-6kATnntspEM1NYQ2uC0N3cDMWdKG+C@mail.gmail.com> <AANLkTik+X14GKTFhf0+a8KqLWBDMm5q79E+iu63gVOx-@mail.gmail.com> <AANLkTikp34XkEMNLrKW3e=gKjeaSp2Eok+ra_-ZPdSeE@mail.gmail.com>
Date: Sun, 22 Aug 2010 20:17:52 -0400
From: Shelby Moore <shelby@coolpage.com>
To: Pieter Hintjens <ph@imatix.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] frame length encoding
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 00:17:20 -0000

+1

This fulfills what I was trying to achieve with Option 1/15-bit, but uses
the extra byte more efficiently.  I predict this will be the winner.  It
hits all the needs.

> Ack.
>
> -Pieter
>
> On Aug 23, 2010 1:26 AM, "Brian" <theturtle32@gmail.com> wrote:
>>>
>>> I still think option #2 is the best compromise, and a number of people
>>> agreed (and a number disagreed). If that option isn't deemed acceptable
> and
>>> having 4 length steps is preferred, I would rather just eat the extra
> byte
>>> for small frames and go with the suggestion above, having headers of 3,
> 4,
>>> 6, and 10 bytes with 8 reserved bits between the defined flags and the
>>> opcode, as in:
>>>
>>> - More - 1 bit
>>> - CMLP - 1 bit
>>> - LenLen - 2 bits
>>> - Reserved - 8 bits
>>> - Opcode - 4 bits
>>> - Length - 2^LenLen bytes
>>> - CML - 8 bytes - present only if CMLP=1
>>> - Payload - Length bytes
>>>
>>> Otherwise, as before.
>>>
>>>
>> +1
>>
>>
>> Brian McKelvey
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>