Re: [hybi] Multiplexing: Pre-AddChannelResponse quota

Takeshi Yoshino <tyoshino@google.com> Thu, 21 June 2012 12:27 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 7DE2721F852E for <hybi@ietfa.amsl.com>; Thu, 21 Jun 2012 05:27:04 -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=[AWL=-0.000, 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 wSBC6Fnkw4vL for <hybi@ietfa.amsl.com>; Thu, 21 Jun 2012 05:27:03 -0700 (PDT)
Received: from mail-gh0-f172.google.com (mail-gh0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id BC68A21F8528 for <hybi@ietf.org>; Thu, 21 Jun 2012 05:27:03 -0700 (PDT)
Received: by ghbg16 with SMTP id g16so437419ghb.31 for <hybi@ietf.org>; Thu, 21 Jun 2012 05:27:03 -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=AoGglYZD2rzotcQNDlba2eb8nZtO0d9xJOxp2x4+HTY=; b=BE/kgiEwWstcnvLLCrXBU7sRS083+m7csJwENMN8LlIcnsjPKTN1bHNppJk8FdXA9a bZtktOXr7ixpYIScfODMDyaOZs8HlTW6kx8c8Ke8slxg+AcazUEln/xru9edLI0uQVZl ExAxsxNAEDRuLjFYBpGlONgZ7XIBtNuiAKVMgmJs3rquynnjE3WfX19UHstNUMtqpyB2 S494YsZJjVBBNmJQ+61DfQb3VwKzsjplyWCy33M8Bl5DuCuzO0hka5gUnOYHFP0VNX/B 58f00mLMaK7IflwqmvprncdJvhd9MJ2Y578cqtya6z4fp/96Z+jCbhDc3apxAjNMUcMt wqGw==
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=AoGglYZD2rzotcQNDlba2eb8nZtO0d9xJOxp2x4+HTY=; b=kpv0xzAr/nlT8+gow0S3gkcNyxHxl6FXH7O9vuJiCARRt/E+0DYNhxXOvOQgqIYSTo bAGOqblJYZkg8yJpxH0XtW9OwrUOEl8+SrUlpZREndLoSR6CxMOhcvGG0wfrSLE9TLeH xbW4kQsC+xrVr85v94xjIiBNzhyMKr2a5kJI0qXM3SWmNGArRXTIk4+7GbBiViFL/w6F YBDh6t7ILWiub6Qm91mgXgrh7f54JomtVRDWHd62ubUEanYKHhsCBMH9B/LqKZX1wKm1 RozROK+/DK/T3BXyFLC5ri4SrNWsuY+4wzhJrAp2Rrru4dOe7n8Hfj31ee6Io+ljmCg2 VGuA==
Received: by 10.50.173.65 with SMTP id bi1mr7198842igc.10.1340281622994; Thu, 21 Jun 2012 05:27:02 -0700 (PDT)
Received: by 10.50.173.65 with SMTP id bi1mr7198829igc.10.1340281622881; Thu, 21 Jun 2012 05:27:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.66.7 with HTTP; Thu, 21 Jun 2012 05:26:42 -0700 (PDT)
In-Reply-To: <6A3569A8-C253-4363-B00C-F336B0CA3128@noemax.com>
References: <CAH9hSJZUAHQzDm4ofq6onc620SNretLQDOcjSnr2eQ0YA9yFdQ@mail.gmail.com> <002f01cd3cc4$4791b380$d6b51a80$@noemax.com> <20120607034440.GD26406@jl-vm1.vm.bytemark.co.uk> <CAH9hSJZWMgvQMNLapZAg_CS0vri=jZbfPLpLhfninjzG+JxxmA@mail.gmail.com> <CAH9hSJbChf6NPUqraaeEeLnDO=YyYja4SkwZJsWRfM5VUwZ59Q@mail.gmail.com> <002001cd4a14$53eb66f0$fbc234d0$@noemax.com> <CAH9hSJbz9HQrN67=Jf6bEmJikTGEViNEqjDP8XbHKrPKhYD19Q@mail.gmail.com> <001301cd4acf$d8c5cda0$8a5168e0$@noemax.com> <CAH9hSJYzbfUKMjuV3J1-tdapV59N5aewO-nAMLMexzF2f6KosA@mail.gmail.com> <6A3569A8-C253-4363-B00C-F336B0CA3128@noemax.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Thu, 21 Jun 2012 21:26:42 +0900
Message-ID: <CAH9hSJayEAqJEE7=KdYuq669HOaG76kS9AVwUMUYaPKLtO=zEw@mail.gmail.com>
To: Arman Djusupov <arman@noemax.com>
Content-Type: multipart/alternative; boundary="e89a8f6430e007e5eb04c2faa262"
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQk2BBbVmrq81T6N+XWL3T56WDYDlZZep76vK3k+bxLlQIKSGa3PJIZGek4SiKChJfzKBaqPbijqAUltco1Qhjsp3cf85dNVaFAeXgrZDYGBnAM2sJsPaYP8y3UQZnvU4v9qdhMJ
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing: Pre-AddChannelResponse 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: Thu, 21 Jun 2012 12:27:04 -0000

On Tue, Jun 19, 2012 at 4:06 PM, Arman Djusupov <arman@noemax.com> wrote:

> For reasons of simplicity and API limitations, browsers may simply always
> level the quota along the channels, or they might prefer to slightly delay
> sending the AddChannelRequest to check what is the size of the first
> message being sent so that the AddChannelRequest with IQ_X = message size
> is sent along with the first message, to avoid an extra roundtrip.
>

Considering the concern Jamie showed, how about sending some FlowControl
frame variant indicating the end of pre-handshake data after pre-handshake
frames? The client consumes total pre-handshake data quota it has for the
new channel as it like. And then, sends the end-of-pre-handshake-data
frame. It can be after or before receiving AddChannelResponse for the
request. The server knows how much pre-handshake data quota has been spent
for the new channel attempt by summing the data size of frames before the
end-of-pre-handshake-data frame. Delaying AddChannelRequest is fine but not
so flexible enough to address the concern Jamie showed.