Re: [hybi] Is it important to know frame length at the start of frame? (was: Re: Discontinuation of mux ...)

Roberto Peon <fenix@google.com> Mon, 24 February 2014 20:39 UTC

Return-Path: <fenix@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 393031A02F4 for <hybi@ietfa.amsl.com>; Mon, 24 Feb 2014 12:39:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.525
X-Spam-Level:
X-Spam-Status: No, score=-0.525 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.547, 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 je88al78Qxop for <hybi@ietfa.amsl.com>; Mon, 24 Feb 2014 12:39:13 -0800 (PST)
Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) by ietfa.amsl.com (Postfix) with ESMTP id 4EE461A0177 for <hybi@ietf.org>; Mon, 24 Feb 2014 12:39:13 -0800 (PST)
Received: by mail-qg0-f51.google.com with SMTP id q108so16324145qgd.10 for <hybi@ietf.org>; Mon, 24 Feb 2014 12:39:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KMAOWJVhV3cd/VGcChdzQbcS8M70mRG9o6DpnjGUUx4=; b=YW/WiK44QjP/VTyyIJqpH+VHVEeT19XrJy0DOnemofdqvA76DX56nU3PPRLzG4tLmN TxN48Y9Ve3MfK9IoA1qIu27Mz3r7JPzF61/YfkF6pTF8E0RghWx41uB2OdH11P95g15D Z56nJQyeVB6Ba6xeftLYs7UN9JuVDTnHFZd+BjtdgyqQKDivrRQog/jjnH3noEUgy19K bNTq1/sS2lwbX0bbHTh+9kQN1weLcG/Rdt2HYXiwp41HH4Y7wn7o/EZtqFzPcToDtPHV tJE5KfXISPq9o+lF6NOuXV3H3KjXv5u/VsE+QZhMuMLjxl2VZJk0YAGqgIESSStOiyJE 0nlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=KMAOWJVhV3cd/VGcChdzQbcS8M70mRG9o6DpnjGUUx4=; b=kqUhSbWe1pdDzEZ4roy9ds2j7dxi9pT0Vug8zFm2RUyAwr9vC4ifDWT05wTTnYvzMT wDELATIWVUErffJAkM+yVpQ0629l24G9iN/vrRwCb/P1JD5M05pxm9uSZzmNDdrk8jSj aN2pojW9TVCDkwp3E9rFChlM0gtopZtozx7N5ZVaeA6w++Px0kzK6g1NxVE2RdnlSbKQ zaRml7ftgukNSipywVLb1oAHSJI5VfiG0p/ZCPIwHk3sMX2HKjdXAxFqAPUh5eeez3o4 DPhtQv1IKzEncEqKQ+tE5KMTtmsKZAuXPBy9Mgvj2tQmoEO02e1L2OmlaWBFy/SHqlML oLMQ==
X-Gm-Message-State: ALoCoQl3qhRRTuXG/cd1Ln0T4k140rhA4wBrutVbyqmsr7MwpQM71hUEkUY5RU5BfD5MYPxZqq77ANK8AHE6dPCfpCvXHZc9pKZhX76LxKSnoDHb7ZMMbTEPcSBCJX22YSjgYCm3SEoS4U1XlKkb+RaB3dYY6k+spKkPwRXhZLp9JuJOhPDzxAaIAZ9/jpXhh2CJX6GoAnYo
MIME-Version: 1.0
X-Received: by 10.224.122.20 with SMTP id j20mr6257158qar.79.1393274352450; Mon, 24 Feb 2014 12:39:12 -0800 (PST)
Received: by 10.229.13.7 with HTTP; Mon, 24 Feb 2014 12:39:12 -0800 (PST)
In-Reply-To: <CACuKZqHTr0vufQr5mEHM2__NconW_d6jrzTpD0JKEzsiP09uwg@mail.gmail.com>
References: <CAH9hSJbf_ABT7ECL9eS=_ADrncX8qBtxZv=uLcdu9_6GUv23Uw@mail.gmail.com> <CACuKZqEcA1Pv8RpWfmThMjTzi2BbVMMKXqujs6BxVfxRPZJ9NQ@mail.gmail.com> <CAG4zZZCr4aTfVpw2coX2g0qw++4kdgNCFVze6tHKZ+fJNqb0aQ@mail.gmail.com> <CAG4zZZA4WR50Ea2e36XEgTgpJURwiMFn+DXeYuxHFfZatYzDOQ@mail.gmail.com> <CAH9hSJYv5VXGjS7AfG12-ArEvE6Uj_eE6pPxAiQcchcgV8vHcg@mail.gmail.com> <CAH9hSJbzra7uz7yfKQwfZaP_jhnxwdZyx8JnwCmBGhiMk6rbtg@mail.gmail.com> <CAG4zZZC1cmaH36znAvVLZE_MyJ+ThNk1Ky7tQ-QnKf_qwiQNDw@mail.gmail.com> <CAG4zZZB3h6TTFLUp-ucYQP7tMf-8=h5fh1UqufMh3w-0JN+hSw@mail.gmail.com> <CAH9hSJaeCrLjkhHUzaaGDw-apiSv-eaPZeYGEHBuwRoF3yPCOA@mail.gmail.com> <CAH9hSJY4NResx4DskJM8agd5ZXo9yHELYaXOpWG-xXK8P4+9zw@mail.gmail.com> <CACuKZqHTr0vufQr5mEHM2__NconW_d6jrzTpD0JKEzsiP09uwg@mail.gmail.com>
Date: Mon, 24 Feb 2014 12:39:12 -0800
Message-ID: <CAGzyod767Aj5AeNF8yp4+Whm2kVrG_Dg0D7nechpbpa6G36Bqw@mail.gmail.com>
From: Roberto Peon <fenix@google.com>
To: Zhong Yu <zhong.j.yu@gmail.com>
Content-Type: multipart/alternative; boundary="089e0149c186da6e8804f32cf6b9"
Archived-At: http://mailarchive.ietf.org/arch/msg/hybi/hHqwX-IQbxbUIHLjx5-nfRopPfw
Cc: "hybi@ietf.org" <hybi@ietf.org>, Peter Thorson <webmaster@zaphoyd.com>
Subject: Re: [hybi] Is it important to know frame length at the start of frame? (was: Re: Discontinuation of mux ...)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 24 Feb 2014 20:39:15 -0000

The browser API doesn't have a limit on the size of a message, so the
layers below that API should probably support it.
It would be incomplete not to, for sure.

As for why someone would do it? Who knows. Perhaps someone is exploiting
the fact that WS stuff never gets put into a cache for security reasons? Or
perhaps because using the API is easier and better expresses the
application semantics, even if they're not doing web browsing? Any of these
seem reasonable. There is no requirement for WS to include only small
messages...

-=R


On Mon, Feb 24, 2014 at 12:29 PM, Zhong Yu <zhong.j.yu@gmail.com> wrote:

> It there any problem if we mandate that 1 http frame corresponds to 1
> ws frame, and 1 ws frame must reside in 1 http frame? What's the point
> of supporting ws frames that need multiple http frames?
>
> On Mon, Feb 24, 2014 at 12:28 PM, Takeshi Yoshino <tyoshino@google.com>
> wrote:
> > Thanks all for your comments.
> >
> > First, please note that I wanted to discuss the question in the context
> of
> > WS/HTTP/2.0 layering. Not about redesign of RFC 6455 itself.
> >
> > I asked this question since the length header is the biggest field when
> > encoded into HTTP/2.0 HEADERS format. Whether we can eliminate it or not
> in
> > WS/HTTP/2.0 is one of the most important points to evaluate the plans
> > employing HTTP/2.0 HEADERS.
> >
> > Though the ranges the length headers represent differ (HTTP/2.0: 14 bit,
> WS
> > length format: 63 bit), it seems everyone can live without a header of
> > "original WebSocket frame size".
> >
> > Please reply to this post if you have any objection, but please don't
> write
> > objection to use of HTTP/2.0 HEADERS itself in this thread.
> >
> > Thanks
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>