Re: [hybi] Multiplexing: Pre-AddChannelResponse quota

Takeshi Yoshino <tyoshino@google.com> Tue, 19 June 2012 05:49 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 46FCD21F872D for <hybi@ietfa.amsl.com>; Mon, 18 Jun 2012 22:49:38 -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 0PdQI4Amhm85 for <hybi@ietfa.amsl.com>; Mon, 18 Jun 2012 22:49:37 -0700 (PDT)
Received: from mail-gg0-f172.google.com (mail-gg0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 8723D21F872A for <hybi@ietf.org>; Mon, 18 Jun 2012 22:49:37 -0700 (PDT)
Received: by ggnc4 with SMTP id c4so4776282ggn.31 for <hybi@ietf.org>; Mon, 18 Jun 2012 22:49:37 -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=jSCKQ7kvX/loMCXycnzNb5TQGdYAG8kEmABQ1Wdgul0=; b=UfSVnepWLOj0+DR3794vmf5WQxyv2bQW7E8Fox+6ZBcwAneovj6F1OyibwuXyARAxQ yx/YrVDwzkTJgzUO+ZO8TSvzhi7PR7lQuC+UWjoeMukcAIVwXNY9RfL+W8D2If6dEMr6 l1uIHROfQ2N3Xrz2v6gth2o1KE1WlocaZDO2/Ncv11SPqUSRlxDmNGURA4i/P3qnP4Xs l1bZFYS98Dqjh6kRUebTuFsQB86t8Dw5N9eVtYFRyhGmuenrBfty8tLiXX4NUTktEzgP lZD8wuQhnJV0sVSB+BJjQW9hXCgjjdbbmJKGs8qH4Zsu8Rs3G0Oj8qjMXsAPWjYnUlG5 1wWg==
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=jSCKQ7kvX/loMCXycnzNb5TQGdYAG8kEmABQ1Wdgul0=; b=oaQeuiof0O1q3HlcY9JSmuFD7GMICSDtehxYXO85ONHpYADcibm7vOiGHVbD7FrZF2 r9b5v7gf7B+I08kn12WFEgEhz20Jw+8FjvhKAareAqgz997X5nwHTX/L/181LZgkMZuP qmz1evCoyKbE1bpBKD0UinmqcCrw+QghP3VA39zoqBHXuiT5e0jlmYURsNVCe9Uf1DCm AITLTeiN1nbuJJreGREwadTIZr/OO3Z8CZC7+QaoR4AwheNxGsA4V7s+ooc031r5SnPc p1KhVN9Wi8Qvfz7SGBPLdoMfcT1/SLFghlwlZuJfM/dfqza1vBMRoNwom91KL3M19K1b BDvA==
Received: by 10.50.187.228 with SMTP id fv4mr79348igc.10.1340084976914; Mon, 18 Jun 2012 22:49:36 -0700 (PDT)
Received: by 10.50.187.228 with SMTP id fv4mr79342igc.10.1340084976827; Mon, 18 Jun 2012 22:49:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.66.7 with HTTP; Mon, 18 Jun 2012 22:49:16 -0700 (PDT)
In-Reply-To: <001301cd4acf$d8c5cda0$8a5168e0$@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>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Tue, 19 Jun 2012 14:49:16 +0900
Message-ID: <CAH9hSJYzbfUKMjuV3J1-tdapV59N5aewO-nAMLMexzF2f6KosA@mail.gmail.com>
To: Arman Djusupov <arman@noemax.com>
Content-Type: multipart/alternative; boundary="14dae9340a6b033ced04c2ccd993"
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQl628c1OfoS8JHVtpqP5YxeVXvnuMHytOpFEHtuzqsLbN9CC+ydAoeszMhgoXobJyRgmiD19CNWB0HQ6kRVcbFOs/XMOjQ+foop5TAVu11LomUGnFqMXC6/LsnHjwqvA0XTVNPW
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: Tue, 19 Jun 2012 05:49:38 -0000

On Fri, Jun 15, 2012 at 5:21 PM, Arman Djusupov <arman@noemax.com> wrote:

> Since we go that far in flexibility why not just give the client a quota
> and let it distribute it in the channels any way the client likes. This way
> the client will be able to give a higher or lower priority to newly
> established channels. The client will need to state the amount of quota it
> assigned to a channel slot when sending an AddChannelRequest. So when
> receiving a PreHandshakeQuota the client does not level it between
> available slots, but uses a share of this quota later when creating a new
> channel. This would be a simplified common quota.
>

I still wonder if grabbing per-channel basis quota control away from
server-side (which post-handshake quota allows for) makes sense or not.
Pre-handshake data processing may be designed similarly as post-handshake.

Algorithm based on your proposal would be like this:

- NC_WIN = 0
-- # of future/in-flight AddChannelRequest <= NC_WIN
-- When received, say, NewChannelQuota block, add the value to NC_WIN
- PQ = 0
-- When received, say, PreHandshakeQuota block, add the value to PQ
- To issue an AddChannelRequest with channel ID X
-- On AddChannelRequest, the client declares the amount of PQ to assign for
X (IQ_X)
-- PQ = PQ - IQ_X
-- The quota for channel X is initialized to be IQ_X (can be used for both
pre- and post-handshake data)
- When received the corresponding AddChannelResponse, NC_WIN = NC_WIN - 1

Very simple. Assignment to channels is done by client-side (different from
post-handshake). Am I understanding correctly?