Re: [hybi] Frame size

Mike Belshe <mike@belshe.com> Mon, 19 April 2010 00:52 UTC

Return-Path: <mike@belshe.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 1D8C63A6A5E for <hybi@core3.amsl.com>; Sun, 18 Apr 2010 17:52:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.898
X-Spam-Level:
X-Spam-Status: No, score=0.898 tagged_above=-999 required=5 tests=[AWL=0.274, BAYES_50=0.001, FM_FORGED_GMAIL=0.622, 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 ivThj9LjFZBC for <hybi@core3.amsl.com>; Sun, 18 Apr 2010 17:52:03 -0700 (PDT)
Received: from mail-pz0-f187.google.com (mail-pz0-f187.google.com [209.85.222.187]) by core3.amsl.com (Postfix) with ESMTP id 312C93A6A55 for <hybi@ietf.org>; Sun, 18 Apr 2010 17:52:01 -0700 (PDT)
Received: by pzk17 with SMTP id 17so2762919pzk.5 for <hybi@ietf.org>; Sun, 18 Apr 2010 17:51:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.143.45.15 with HTTP; Sun, 18 Apr 2010 17:51:50 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.64.1004190021040.751@ps20323.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F03E3F313ED@SISPE7MB1.commscope.com> <s2qad99d8ce1004160053w436a29b1idae0c66737b3760a@mail.gmail.com> <4BC85A31.6060605@webtide.com> <t2iad99d8ce1004160949yb1ba9582l3b626c19dacf8d9@mail.gmail.com> <4BC96DA1.3000706@webtide.com> <u2m2a10ed241004181635qd0554193v36da94ecd7284d31@mail.gmail.com> <l2o2a10ed241004181637hdfab97d5r68f6845be49e8ad8@mail.gmail.com> <Pine.LNX.4.64.1004190007370.751@ps20323.dreamhostps.com> <w2j2a10ed241004181718ydd740e64ja983187fd3116c70@mail.gmail.com> <Pine.LNX.4.64.1004190021040.751@ps20323.dreamhostps.com>
Date: Sun, 18 Apr 2010 17:51:50 -0700
Received: by 10.143.25.27 with SMTP id c27mr1604544wfj.65.1271638310555; Sun, 18 Apr 2010 17:51:50 -0700 (PDT)
Message-ID: <r2o2a10ed241004181751g479b75ffs3cbaab1bc9aa9b6a@mail.gmail.com>
From: Mike Belshe <mike@belshe.com>
To: Ian Hickson <ian@hixie.ch>
Content-Type: multipart/alternative; boundary="001636e1f7acc88fa304848c5d09"
Cc: Hybi <hybi@ietf.org>
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: Mon, 19 Apr 2010 00:52:04 -0000

On Sun, Apr 18, 2010 at 5:23 PM, Ian Hickson <ian@hixie.ch> wrote:

> On Sun, 18 Apr 2010, Mike Belshe wrote:
> > >
> > > N years from now (for some value of N) people will be saying the same
> > > about 32 bits. That's why I used a packed integer instead of a
> > > fixed-width integer to specify lengths.
> >
> > Of course, agree.  And despite where 32bits has failed us in history
> > previously, I still think this is far enough out that we'll be able to
> > upgrade by then.
>
> Sounds like Y2K reasoning. :-)
>

It's not at all the same.  As you stipulated below, we're talking about the
edge case of super large messages (greater than 4GB!).  Even in the future,
it will be an edge case, and it has an easy workaround (multiple frames).
 Y2K was the common case; once N years elapsed, everyone had the problem in
the common case.  Lastly, it should be noted that everyone *did* upgrade for
Y2K and it wasn't the end of the world.  A better example might be the IPv4
to IPv6 migration...  It should have been the end of the world, except, it
wasn't. :-)

Fixed lengths has a lot of benefits - including for the 'ease of
programming'.



>
> > If you think N is sufficiently small for 32bits, we should use 64bits,
> > would that make N sufficiently far away? :-)
>
> Reserving more than four bytes every time just seems like a lot of wasted
> bytes. Not that they're expensive or anything, but most of these frames
> are going to be only a few bytes, so it just seems silly to be padding
> everything full of zeros.
>

I wasn't proposing it seriously.

Mike


Mike


> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>