Re: [hybi] frame length encoding

Brian <theturtle32@gmail.com> Sun, 22 August 2010 23:25 UTC

Return-Path: <theturtle32@gmail.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 23C643A686B for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 16:25:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 s3-qcCEtmYN5 for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 16:25:44 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by core3.amsl.com (Postfix) with ESMTP id 0F09B3A6968 for <hybi@ietf.org>; Sun, 22 Aug 2010 16:25:44 -0700 (PDT)
Received: by iwn3 with SMTP id 3so5651432iwn.31 for <hybi@ietf.org>; Sun, 22 Aug 2010 16:26:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=QNBgDj3KV1BXqo4SeZIQ9Vkwj137iNU+OS2vSdOThT4=; b=rRtSJYPdAEk1LOLw5j6RWXa0tWk9SBF3Yok0dXEuzUzI3Nsx/fHH5Rfm5gLg4kpf1L x3+TUVoa1b1XtU1LWkTDHEQSPvpI3KwQQa4VcDdt/WuQ+/svzpKQfmMq3/G4YGfkP8xC 48LMsaTwYuxdvjAQNoSr4CDzVINqeXkUFfatc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SAXixYY0BZV7gyqF+TslS+cQpEcyxasLoq/JyLcK1FDtyHYGMsQa/lEVxYGzqwNg7F NM2UsEBdEYdPdujhq5qc5L9AZXNpfNsFdxC6zsmhV0OGfoxzU4mu56e9b+5+iHXMCUx0 JJkolrfkKuoNHO8rphVWa4r3DbaGB87euyESg=
MIME-Version: 1.0
Received: by 10.231.14.69 with SMTP id f5mr5304287iba.116.1282519577336; Sun, 22 Aug 2010 16:26:17 -0700 (PDT)
Received: by 10.231.158.82 with HTTP; Sun, 22 Aug 2010 16:26:17 -0700 (PDT)
In-Reply-To: <AANLkTiki7n2yu-6kATnntspEM1NYQ2uC0N3cDMWdKG+C@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>
Date: Sun, 22 Aug 2010 16:26:17 -0700
Message-ID: <AANLkTik+X14GKTFhf0+a8KqLWBDMm5q79E+iu63gVOx-@mail.gmail.com>
From: Brian <theturtle32@gmail.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: multipart/alternative; boundary="0003255760f6d31ea5048e71db76"
Subject: Re: [hybi] frame length encoding
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: Sun, 22 Aug 2010 23:25:45 -0000

>
> 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