Re: [hybi] frame length encoding

John Tamplin <jat@google.com> Sun, 22 August 2010 19:55 UTC

Return-Path: <jat@google.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 31CCA3A6958 for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 12:55:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.864
X-Spam-Level:
X-Spam-Status: No, score=-105.864 tagged_above=-999 required=5 tests=[AWL=0.112, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 TQy0h06eT914 for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 12:55:02 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 285A83A689B for <hybi@ietf.org>; Sun, 22 Aug 2010 12:55:01 -0700 (PDT)
Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id o7MJtZSA019366 for <hybi@ietf.org>; Sun, 22 Aug 2010 12:55:35 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282506935; bh=mnKAYtbr5/n8zp9iwfxRqoEy8eI=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=etT7+z02Dfjtvgy5HsEA1We0e99IxpVY4nRcWF3cKnSzTYi6gtTi+C5S9KxYQj4zn pmDuNx5thZJKJWzLGu6JQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type:x-system-of-record; b=rrdrAVCNtNxz4ASUxkc6J9Z9ej6a5VZcYEtQVdxIvflqzYJQBLQ7jyTvC9ZswbQyt GJRu6Y7m8gbVx5kAdKVkw==
Received: from ywg4 (ywg4.prod.google.com [10.192.7.4]) by wpaz17.hot.corp.google.com with ESMTP id o7MJtYpd010937 for <hybi@ietf.org>; Sun, 22 Aug 2010 12:55:34 -0700
Received: by ywg4 with SMTP id 4so2054844ywg.21 for <hybi@ietf.org>; Sun, 22 Aug 2010 12:55:34 -0700 (PDT)
Received: by 10.150.47.33 with SMTP id u33mr4481149ybu.184.1282506934155; Sun, 22 Aug 2010 12:55:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.60.3 with HTTP; Sun, 22 Aug 2010 12:55:14 -0700 (PDT)
In-Reply-To: <73243b9f687a0c8adac90852ba567256.squirrel@sm.webmail.pair.com>
References: <AANLkTimKbmcpgx8k0uXUWvCO=8w9pPrtV=3y4qh6363k@mail.gmail.com> <AANLkTinrsT+wV48nHvVW_1ChGYffkq7jisU2-PZnMyKg@mail.gmail.com> <alpine.DEB.2.00.1008212123460.27211@tvnag.unkk.fr> <20ef7ed5e135c57c1ee5a741658b9d98.squirrel@sm.webmail.pair.com> <1282423311.2014.6.camel@tng> <224b9ed365bd78fd5e316b8cb5f3f837.squirrel@sm.webmail.pair.com> <1282435214.2014.14.camel@tng> <AANLkTimo0MwZEMn1t1vrASfwC1bx82Q9Z_Ls3wVb-zUS@mail.gmail.com> <b95f074b65875865802f532bb5668ff2.squirrel@sm.webmail.pair.com> <AANLkTi=AXLFPSASV2zkBiUU=1StO=YSrKq_9AZ2ZnVHy@mail.gmail.com> <8cd6ecfebb4a073ecf94c8e1aa56e642.squirrel@sm.webmail.pair.com> <77aecf89c6c8673f1b999f80fa04e005.squirrel@sm.webmail.pair.com> <AANLkTik9tpCQr9LjK0qdLuA1KfJv1MN9yK2UZ1ytxfCW@mail.gmail.com> <fb8bfae1b88ade55cad4234af724004b.squirrel@sm.webmail.pair.com> <AANLkTimAu5de0PnujHRwR0nnXFBpqdJoRWZ=UvGrLVJ7@mail.gmail.com> <65fc5176b7cc6c775ec167f4404b43ed.squirrel@sm.webmail.pair.com> <73243b9f687a0c8adac90852ba567256.squirrel@sm.webmail.pair.com>
From: John Tamplin <jat@google.com>
Date: Sun, 22 Aug 2010 15:55:14 -0400
Message-ID: <AANLkTi=19bnH9rKAF5DxWuKTLQJr2ZNSegoMHZFEL8=L@mail.gmail.com>
To: shelby@coolpage.com
Content-Type: multipart/alternative; boundary="000e0cd70a9c3b7a17048e6eea5f"
X-System-Of-Record: true
Cc: Hybi <hybi@ietf.org>
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 19:55:03 -0000

On Sun, Aug 22, 2010 at 3:01 PM, Shelby Moore <shelby@coolpage.com> wrote:

> The point above is that some agents may choose to always set their maximum
> frame size to the size of the _SMALLEST_ size field, so that they don't
> have to do comparison tests.
>

I don't believe that is what was being suggested, and if you account for the
processing going on on the client I am sure it will be much more to process
n fragments rather than one condition in looking at the length field.


> It was reported that on this list (and further discussed in private):
>
> http://www.ietf.org/mail-archive/web/hybi/current/msg03453.html
>
> that multi-core coordination overhead may not scale proportionally with
> network bandwidth, and thus making the protocol as stateless as possible
> is very important in that case. I am not arguing that is the case. I am
> trusting the expertise of concensus. I am also saying why should we risk
> it for 2% savings in network bandwidth overhead?
>

I don't understand "stateless" in this context -- we are not talking about
maintaining state across different frames, but rather you look at one byte
and if it is a given value (or two given values in option 2) then you read
following bits for the length instead.

-- 
John A. Tamplin
Software Engineer (GWT), Google