Re: [hybi] Frame size

Greg Wilkins <gregw@webtide.com> Sun, 18 April 2010 17:03 UTC

Return-Path: <gregw@webtide.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 309A83A6971 for <hybi@core3.amsl.com>; Sun, 18 Apr 2010 10:03:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.043
X-Spam-Level:
X-Spam-Status: No, score=-1.043 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_05=-1.11]
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 F-2bmYYzvDvy for <hybi@core3.amsl.com>; Sun, 18 Apr 2010 10:03:21 -0700 (PDT)
Received: from mail-bw0-f225.google.com (mail-bw0-f225.google.com [209.85.218.225]) by core3.amsl.com (Postfix) with ESMTP id 2B2483A6821 for <hybi@ietf.org>; Sun, 18 Apr 2010 10:03:21 -0700 (PDT)
Received: by bwz25 with SMTP id 25so4664898bwz.28 for <hybi@ietf.org>; Sun, 18 Apr 2010 10:03:09 -0700 (PDT)
Received: by 10.204.81.145 with SMTP id x17mr3871870bkk.31.1271610189668; Sun, 18 Apr 2010 10:03:09 -0700 (PDT)
Received: from [192.168.0.100] (host116-234-static.43-88-b.business.telecomitalia.it [88.43.234.116]) by mx.google.com with ESMTPS id 15sm2740399bwz.4.2010.04.18.10.03.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Apr 2010 10:03:08 -0700 (PDT)
Message-ID: <4BCB3B48.8070700@webtide.com>
Date: Sun, 18 Apr 2010 19:03:04 +0200
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: Hybi <hybi@ietf.org>
References: <8B0A9FCBB9832F43971E38010638454F03E3F313ED@SISPE7MB1.commscope.com> <v2m5c902b9e1004160043i7b5ccc79y2346e1b2b2c55cf5@mail.gmail.com> <s2qad99d8ce1004160053w436a29b1idae0c66737b3760a@mail.gmail.com> <4BC85A31.6060605@webtide.com> <4BC9F39F.5070601@caucho.com>
In-Reply-To: <4BC9F39F.5070601@caucho.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Frame size
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, 18 Apr 2010 17:03:22 -0000

Scott Ferguson wrote:
> Greg Wilkins wrote:
>> In fact, I would argue for a 16k max frame size with 2
>> bits given over to help with partitioning and aggregation,
>> but with no requirement that an endpoint can handle
>> aggregation and partitioning (unless they indicate they
>> can in the handshake).
>>   
> 16k is fine, but why are two bits needed instead of one? 

1 bit is fine for pure fragmentation.

I suggested 2 bits because of previous discussions on
the list about a bit indicating if an intermediary
can buffer a frame or not.  This gives the ability
to have streaming frames plus other frame types
(see BWTP post for an example of using the 2 bits).

However we could get the streaming by just having
a single bit for fragmentation and the spec can say
that all intermediaries must forward all frames immediately.

So I think for simplicity's sake, a 16k frame size
with 1 bit for fragmentation and 1 bit reserved for future
use would work fine.  (or 32k and no reserved bit).


> I'd think basic chunking would be a requirement like HTTP/1.1, not a
> negotiated capability, to support messages over 16k and also to the
> reduce the round trip latency as discussed in the other thread.

I agree.

If we consider the complexities of error handling for unlimited
sized frames - then I think the simpler solution is to have
unlimited sized messages that are sent in 1 or more limited
sized frames.

Perhaps that reserved bit can then be used for control/error
frames ie if the unlimited message is too large a control/error
frame can be sent to say enough already!

cheers