Re: [hybi] frame length encoding

John Tamplin <jat@google.com> Sun, 22 August 2010 15:03 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 325E73A68AD for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 08:03:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.856
X-Spam-Level:
X-Spam-Status: No, score=-105.856 tagged_above=-999 required=5 tests=[AWL=0.120, 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 qkPz0Thx7BmO for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 08:03:28 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 123B43A6892 for <hybi@ietf.org>; Sun, 22 Aug 2010 08:03:27 -0700 (PDT)
Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o7MF41bn030154 for <hybi@ietf.org>; Sun, 22 Aug 2010 08:04:01 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282489441; bh=yffbcKdh2QK1PcI23XTHIU0Nofg=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=m9xafBotR9EJXUTt8XMjBadXYxgsbRl6kB2JEvxI0eyu/auDDwXZTby89hQmHMUOx aeGKFF9SkZHuXCPluyQEQ==
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=uGtyqpLrRloMNGEAvfpJiJWKbuRFYmzKgEzwYkbquHK3W1A3ta6VnMlbamYWO4t0z DuApK54nam1qdvSJ1fh+w==
Received: from gwb1 (gwb1.prod.google.com [10.200.2.1]) by kpbe15.cbf.corp.google.com with ESMTP id o7MF3xpU015437 for <hybi@ietf.org>; Sun, 22 Aug 2010 08:03:59 -0700
Received: by gwb1 with SMTP id 1so1996264gwb.12 for <hybi@ietf.org>; Sun, 22 Aug 2010 08:03:59 -0700 (PDT)
Received: by 10.151.63.42 with SMTP id q42mr3896306ybk.258.1282489439212; Sun, 22 Aug 2010 08:03:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.60.3 with HTTP; Sun, 22 Aug 2010 08:03:38 -0700 (PDT)
In-Reply-To: <879493a062e42ff3c55ce988c28a4a88.squirrel@sm.webmail.pair.com>
References: <AANLkTimKbmcpgx8k0uXUWvCO=8w9pPrtV=3y4qh6363k@mail.gmail.com> <alpine.DEB.2.00.1008212037190.27211@tvnag.unkk.fr> <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> <df4ec71d2b12d9ea3b9d8baead548c27.squirrel@sm.webmail.pair.com> <AANLkTims5LYudzQzw5QxDpU3q1NGb3GQe_MG=SNQvg-Z@mail.gmail.com> <3aebe4b25045b881b78667c21dcced73.squirrel@sm.webmail.pair.com> <879493a062e42ff3c55ce988c28a4a88.squirrel@sm.webmail.pair.com>
From: John Tamplin <jat@google.com>
Date: Sun, 22 Aug 2010 11:03:38 -0400
Message-ID: <AANLkTikFz2eypWqRPT0PrdiXxiJ88YvE5pQUW9ZT8Lpp@mail.gmail.com>
To: shelby@coolpage.com
Content-Type: multipart/alternative; boundary="000e0cd594e473d567048e6ad73a"
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 15:03:29 -0000

On Sun, Aug 22, 2010 at 9:53 AM, Shelby Moore <shelby@coolpage.com> wrote:

> The more I think about it, I don't think very many routers are going to
> support an open-ended maximum frame size (i.e. 2^63), so the ability to
> use the simplified sendFile() is going to be luck??  But there is no
> reason to not support 63-bit, because there is no one maximum size that is
> going to fit every instance.  The maximum has to be negotiated on
> connection handshake?
>

Most routers aren't going to inspect above the IP layer - they just forward
network-layer packets.  TCP streams essentially have infinite frame length -
does that mean a router can't forward them?

Where it will come into play are the endpoints that must generate/process
the messages and proxies that browsers use to connect to the outside world,
since they will have to store and forward the frames.  That is one of the
reasons that fragmentation is required, so that such a proxy may choose to
dedicate a fixed buffer for each connection coming into it, and send a
fragment as it reaches its buffer size.

Regarding negotiating a maximum frame size, as soon as we finalize the
framing we will start trying to get consensus on the handshake.  I am
certain we can include a maximum frame size in the handshake if consensus is
that it is needed.

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