Re: [hybi] Flow control quota

Takeshi Yoshino <tyoshino@google.com> Mon, 25 June 2012 08:46 UTC

Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CE43F21F84CE for <hybi@ietfa.amsl.com>; Mon, 25 Jun 2012 01:46:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.976
X-Spam-Level:
X-Spam-Status: No, score=-102.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 62-Wmzjt4TCg for <hybi@ietfa.amsl.com>; Mon, 25 Jun 2012 01:46:30 -0700 (PDT)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id 3034321F848A for <hybi@ietf.org>; Mon, 25 Jun 2012 01:46:30 -0700 (PDT)
Received: by mail-yx0-f172.google.com with SMTP id q13so2875207yen.31 for <hybi@ietf.org>; Mon, 25 Jun 2012 01:46:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-system-of-record; bh=bDDctrhfRLDo6F/OL4RrtAJg49BJgHMhPT6ZGQG6p3M=; b=HEyv5yR6pwCCVugH+3j6FQ9AkmICoOuGX8oFVUQ+lCpljepKcbK7lhLRxuK6S19x9g znwmk9Y0Hdgb3WAHBzE2dxIEGidKmCmOlw3uhivv+HaEWxWFRVt+t02cZLWHpLeXM9P1 QC2JeAS2JKMPcDXgJrHsHY+9DuRUGgqo/WvGnwNhryfgxkTBCB3vELNxNrcCAiFPt3+d 9CDONOMEGhgYqBBe4bTRFoOWIZIq635S4QFp6GFOk9oTqHmhSS1bg1P0juxjlL9pgRZJ mx8Pf6sHz4YHblbWbyfgLn+WEiH+Ubh/J4KiIzAi7KCF9mU1WkuyZ4PUpOa3CrbQ1P/d ykbg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=bDDctrhfRLDo6F/OL4RrtAJg49BJgHMhPT6ZGQG6p3M=; b=GGpSbx2FlL5ip0jen47grvr1QcCZD7OyjciJlmD+8uHwo38EvKMRd5Fjb0oZknAc3n 5900/AJqp2diRg/177HsheAdGzhp+tVtaZrloRnROAclWQDtVmIMR/klfNv3NDbGgVHO tOOmDVW8xr/ZSbPByFDAeIfvkoWEFNZ5H/bRyXGQ7ShhBagqa116VxwaDbgDleiykcSF sxOFlwhQDw5UJhX/wva6oVQ5ZoLP9ihyh3gmpIoxoigJdj8+ZiWHtkYxRVfRnZg3XDps yC8fFW+IVq2eLI2OvGKDOZr+LjkB1Vt6YlxGypxjaVCMSIVX8zmJLuo/q3KFWzB1Fb7O f+7Q==
Received: by 10.50.160.202 with SMTP id xm10mr7555912igb.10.1340613989808; Mon, 25 Jun 2012 01:46:29 -0700 (PDT)
Received: by 10.50.160.202 with SMTP id xm10mr7555899igb.10.1340613989653; Mon, 25 Jun 2012 01:46:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.66.7 with HTTP; Mon, 25 Jun 2012 01:46:09 -0700 (PDT)
In-Reply-To: <000401cd4566$d5f6bb70$81e43250$@noemax.com>
References: <001a01cd3e69$4a221c10$de665430$@noemax.com> <4FC732DC.3000308@250bpm.com> <000e01cd3f1c$af15ad40$0d4107c0$@noemax.com> <4FC880A7.9070007@250bpm.com> <CAH9hSJaWrUX6gFNLT4xkXLYKHSUH5+Y7AvqN9cD_CwekvsNu3A@mail.gmail.com> <001001cd4000$fe2c82c0$fa858840$@noemax.com> <4FCCAE6B.1010306@250bpm.com> <002d01cd4262$747957b0$5d6c0710$@noemax.com> <20120607022312.GA26406@jl-vm1.vm.bytemark.co.uk> <000e01cd449d$1c0ed220$542c7660$@noemax.com> <CAH_y2NE6+3r_9pkYXhMOiRWfGJXGauEYCqg-8GvtOoCT9Ch0mA@mail.gmail.com> <000401cd4566$d5f6bb70$81e43250$@noemax.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Mon, 25 Jun 2012 17:46:09 +0900
Message-ID: <CAH9hSJZfXdh2yj+g37DCCtfUK6QBAiPCDh4oh-umOnKG1+g_RQ@mail.gmail.com>
To: Arman Djusupov <arman@noemax.com>
Content-Type: multipart/alternative; boundary="14dae9340eb7a25e3f04c3480495"
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQl7xuk3FqqhlJSEghtg3+7UgX0x9umKCV6wjoA2ha1JRsXz8x86wUXzU2xte0njVJhtzOKCjSLvQ4SXsZr1CVxEZXhrdFeBYCMJiheuytKVYuuZA9JSZpw311MI/u7lLzuuypRi2RciBHGGfAFS5MRWrs7p02/AeT/38DqmCajpuN0H5vI=
Cc: hybi@ietf.org
Subject: Re: [hybi] Flow control quota
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
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, 25 Jun 2012 08:46:30 -0000

I think use of "message" boundary is safe. So, I'd

1. remove MASK bit, (extended) payload length, masking-key (if any) from
the original frame
2. put the remaining bytes into one WebSocket message (opcode=2 as you
said) together with channel ID

On Fri, Jun 8, 2012 at 8:06 PM, Arman Djusupov <arman@noemax.com> wrote:

> A solution for the 2nd option:
> We need to encapsulate frame fragments into a mux message. In this case all
> mux frames would have their FIN bit set to 1 and opCode set to 2 (binary),
> so the payload of a mux frame will be transparent to all intermediaries
> that
> do not support mux.


still true


> Mux frames would retain the current format and would
> have channelID in their extension data.


Moved to the top of the encapsulating message.


>  In addition to that each mux message

that corresponds to the first fragment of the original frame would include
> the frame length,


Replaced with the encapsulating message's message length information.


> opCode, FIN flag and RSV bits of the original frame;
>

still true.


> subsequent mux frames would include only the payload of the fragment.
>
> This format would introduce an additional overhead of 16 to 72 bits per
> original frame.
>

Additional overhead will be 1 octet per original frame.