Re: h2 frame layout

Matthew Kerwin <matthew@kerwin.net.au> Fri, 29 August 2014 23:49 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A2031A7001 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 29 Aug 2014 16:49:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.947
X-Spam-Level:
X-Spam-Status: No, score=-6.947 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JwXz1qsrud3f for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 29 Aug 2014 16:48:59 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D3DAF1A0664 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 29 Aug 2014 16:48:58 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XNVrp-00057l-UM for ietf-http-wg-dist@listhub.w3.org; Fri, 29 Aug 2014 23:46:05 +0000
Resent-Date: Fri, 29 Aug 2014 23:46:05 +0000
Resent-Message-Id: <E1XNVrp-00057l-UM@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phluid61@gmail.com>) id 1XNVrK-000534-Gg for ietf-http-wg@listhub.w3.org; Fri, 29 Aug 2014 23:45:34 +0000
Received: from mail-qc0-f178.google.com ([209.85.216.178]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <phluid61@gmail.com>) id 1XNVrI-0007AH-MA for ietf-http-wg@w3.org; Fri, 29 Aug 2014 23:45:34 +0000
Received: by mail-qc0-f178.google.com with SMTP id x13so3111883qcv.23 for <ietf-http-wg@w3.org>; Fri, 29 Aug 2014 16:45:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=8RlZe8Jo9jxt+Z/14cu+3G3TxzeKNph9Jxe7iAppZsI=; b=qLVSoJNQ/T45zLeSsn3jUPLNicjMe+WxV9yXEZh0ZGgjkSLC/kuiwz6gtUGi9fN72l k5lTGXy//y7ccKWKNO0AZn+n/CiXB7bmIiHYak8P6rTVP5ET8Hxgq300Z/mhLzMkgR7l cTZmT9J+8/9VNFpGgqS5TcO3F79rzEXmvYNSflP8BYX6uPKTmXY7fUXbycl0+ntp4Qri LLbtUPnwpNDAt3oDwWXZNJD0axsVWfF/tzTWTOrIyDHqLrQeyhgDX/KewTY3NDcPvvtK E5OShUPNP65a595ymgWo85FXFl4am3Ozmv5EjYgaOZJqmasj0MVkbZmoCvSOqwf1jIhC pI5w==
MIME-Version: 1.0
X-Received: by 10.229.62.129 with SMTP id x1mr23049522qch.16.1409355906769; Fri, 29 Aug 2014 16:45:06 -0700 (PDT)
Sender: phluid61@gmail.com
Received: by 10.140.25.139 with HTTP; Fri, 29 Aug 2014 16:45:06 -0700 (PDT)
In-Reply-To: <47867.1409353458@critter.freebsd.dk>
References: <25E37A5F-6120-4D84-A1EC-2830C0B41537@gbiv.com> <47867.1409353458@critter.freebsd.dk>
Date: Sat, 30 Aug 2014 09:45:06 +1000
X-Google-Sender-Auth: qfTFLDB8E0dw3H5G3vAemXrLeUE
Message-ID: <CACweHNBe5o7_tmTXGqhRBGBAZPoDVJHKToGm7ARee4oqURupfw@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: "Roy T. Fielding" <fielding@gbiv.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c251de2f85430501cd3ec5"
Received-SPF: pass client-ip=209.85.216.178; envelope-from=phluid61@gmail.com; helo=mail-qc0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.781, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1XNVrI-0007AH-MA c79fc49c2eeaf761bcbd0e3864ce1190
X-Original-To: ietf-http-wg@w3.org
Subject: Re: h2 frame layout
Archived-At: <http://www.w3.org/mid/CACweHNBe5o7_tmTXGqhRBGBAZPoDVJHKToGm7ARee4oqURupfw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26784
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 30 August 2014 09:04, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:

> --------
> In message <25E37A5F-6120-4D84-A1EC-2830C0B41537@gbiv.com>, "Roy T.
> Fielding" w
> rites:
>
> >  0                   1                   2                   3
> >  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
> > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > |                   Stream Identifier (32)                      |
> > +---------------+-----------------------------------------------+
> > | Frame Type(8) |   Payload Length (24)                         |
> > +=+=============================================================+
> > |                   Frame Payload (0...)                      ...
> > +---------------------------------------------------------------+
>
> >
> >Rationale for B:
> >
> >  The current usage of frame flags in spec-14 is frightening.
> >  In all cases, they can and should be separate frame types.
>
> I'm 100% behind with Roy here.
>
>
​This lines up pretty closely with my suggestion in the
END_STREAM/CONTINUATION thread [1]. I'm +1 for removing flags from the
general frame format header.

I'm much less keen on reducing the size of frame_type field, because that
would limit my ability to play with my toys^H^H^H^Hextensions[2][3].


[1]: http://lists.w3.org/Archives/Public/ietf-http-wg/2014JulSep/1313.html​
​[2]: http://tools.ietf.org/html/draft-kerwin-http2-encoded-data-03
[3]: ​http://tools.ietf.org/html/draft-kerwin-http2-segments-01


-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/