Re: Questions on Frame Size

James M Snell <jasnell@gmail.com> Thu, 20 June 2013 16:30 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 278FE21F9970 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 20 Jun 2013 09:30:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.537
X-Spam-Level:
X-Spam-Status: No, score=-10.537 tagged_above=-999 required=5 tests=[AWL=0.062, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QmppNby3h6DJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 20 Jun 2013 09:30:53 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B2B3A21F95EF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 20 Jun 2013 09:30:53 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Uphkm-0002Hh-QX for ietf-http-wg-dist@listhub.w3.org; Thu, 20 Jun 2013 16:30:32 +0000
Resent-Date: Thu, 20 Jun 2013 16:30:32 +0000
Resent-Message-Id: <E1Uphkm-0002Hh-QX@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1Uphka-0002GT-2o for ietf-http-wg@listhub.w3.org; Thu, 20 Jun 2013 16:30:20 +0000
Received: from mail-ob0-f177.google.com ([209.85.214.177]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UphkZ-00011y-3F for ietf-http-wg@w3.org; Thu, 20 Jun 2013 16:30:20 +0000
Received: by mail-ob0-f177.google.com with SMTP id ta17so7322924obb.22 for <ietf-http-wg@w3.org>; Thu, 20 Jun 2013 09:29:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5pPrTL7hagzGiYahq+QNSIF+oQx7OkqvHhFcivVsvGU=; b=nD/mQ1Fc9IrF4KrbCn8Bc248KKvRrYyt9rcGhwJLbF+LqmoVlHFHsYIOJ+rF0QHDdE 1H91p9/Qcxhtm0LEzIVWnQqPAF/Bkwfqm7mP1S5rsxhRRhtVeDSW8ykjZuqE2RdVBLnz V2Xn7vrOs5quZgeoNFSX7DDYBlvBhg5d17xJp9qkyzJnkU9oKsjvzLTfr6nJDL89b0UD CSURhjfj050kEies94Af1KoevU/MxcmL45rVFIJTCAVV0qgZP6DzgIJDXJgo5UJsaazR TdWZCYz5T0cQJnqBFDIf5PYOqXyikalCTr1subrQ95VbUuPQ5Xh/I1/5G3QWt35M8Hif XvNg==
X-Received: by 10.60.44.209 with SMTP id g17mr4750329oem.23.1371745793258; Thu, 20 Jun 2013 09:29:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.55.8 with HTTP; Thu, 20 Jun 2013 09:29:33 -0700 (PDT)
In-Reply-To: <51C293FD.1040806@iij.ad.jp>
References: <51C293FD.1040806@iij.ad.jp>
From: James M Snell <jasnell@gmail.com>
Date: Thu, 20 Jun 2013 09:29:33 -0700
Message-ID: <CABP7RbeS7zeVnOM7R0mcUe+t-M+Ta3GVZr+1A3gSjY8QqCOgzQ@mail.gmail.com>
To: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.214.177; envelope-from=jasnell@gmail.com; helo=mail-ob0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.704, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UphkZ-00011y-3F 550b980624b0575122a050e2e2bed752
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Questions on Frame Size
Archived-At: <http://www.w3.org/mid/CABP7RbeS7zeVnOM7R0mcUe+t-M+Ta3GVZr+1A3gSjY8QqCOgzQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18320
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>

My understanding is...

When PUSH_PROMISE is used for HTTP, then yes, it would be limited to 16k.
When PUSH_PROMISE is used for any protocol other than HTTP, it could
be up to 64k.

We are defining the Framing Layer separately from the HTTP Layer in
order to allow other protocols to be built on top of the framing layer
at some point.



On Wed, Jun 19, 2013 at 10:32 PM, Shigeki Ohtsu <ohtsu@iij.ad.jp> wrote:
> Hi,
>
> The issues about frame size were discussed and might had some
> agreements at SF interium but please let me ask some questions on the
> current spec of "3.3.2 Frame Size" which is updated by
> https://github.com/http2/http2-spec/commit/fd703b572cfc527582c0716e59f2c4044ae195a8
>
> 1. "For instance, individual DATA and HEADERS frames used to express
> HTTP request and response messages (see Section 4) are not permitted
> to exceed 16,383 octets of payload."
>
> PUSH_PROMISE is not listed.
> Is the data size of PUSH_PROMISE also limited to 16K or is it exceptional
> for some reason?
>
> 2. "The absolute maximum amount of payload data any individual frame
>  can contain is 65,535 octets. All implementations SHOULD be capable
>  of receiving and minimally processing frames up to this size."
>
> If PUSH_PROMISE has a 16K limit, the max frame size is still 64K,
> however, any other frames besides DATA, HEADERS and PUSH_PROMISE
> are only several octets at most.
>
> Is it for the future extension not to change the frame length to 14bit?
> If so, why the spec requires all implementations to support the 64K frame
>  size only for the future extension?
>
> Regards,
>