Re: [hybi] Send quota value before receiving AddChannelResponse (was: Re: MUC: channel ID semantics)

Takeshi Yoshino <tyoshino@google.com> Wed, 18 April 2012 16:50 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 8439E21F85AF for <hybi@ietfa.amsl.com>; Wed, 18 Apr 2012 09:50:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.676
X-Spam-Level:
X-Spam-Status: No, score=-102.676 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_52=0.6, 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 Zxlrxxzfmdgs for <hybi@ietfa.amsl.com>; Wed, 18 Apr 2012 09:50:15 -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 A82A221F8593 for <hybi@ietf.org>; Wed, 18 Apr 2012 09:50:14 -0700 (PDT)
Received: by yenm5 with SMTP id m5so4358965yen.31 for <hybi@ietf.org>; Wed, 18 Apr 2012 09:50:14 -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=GI46+E78OYJRpL21DFe2dtcdsLb+EmHlAzfRbn8/0oY=; b=e83UezfS4QdOHOEYQnmecHHj2aG6VljJBkASxroL4Oc45QQoaZgAFVEpyVmiMCpj3m EMIY0os8FnuQAhIIFht0BzBpvKFngFCNZvKCsPmUOm/gfDlIozUIgDoNvWK8/c3iHwOr 0TWKZoZY/v7EnWKdJwcsMcR23lnytIqSetZAnzlPvcdsKDz8vjHSlAOOmmQwbXuSrpnL Z6RVlbDyHU4UhSESD4qz587E6k45dhXTVf3btNYNmUfre3agVgdCi70TAbyA416OuvBB /o49v/qcoSNeou7iRK7cIWbQ+oBuJqsWkYAUDmnf1GkXoZjZx7PAoRbNXeadMhU3WvwY Si3A==
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=GI46+E78OYJRpL21DFe2dtcdsLb+EmHlAzfRbn8/0oY=; b=YkdQZI82dXbb26q5yC/6xcPs0o9ujJ91s8x8U09S+NRwgm0FL5nOgKn/FpC5NoarhG Qev94fUTkmblfiy3KaYe0zTTAW7qg8XyweJX8c4seRtl82uu83+/R9Qdg7MCEgyCAUPg B/V8Zi0jvnQwOJxWnp/aj18xJOrns8BaREKMPA8hei0NrF+baiEewcMZ9T+80yITzB6m F1EcGeNEviO7UdnqP2ACHKFldhAQW4kJTWc9bm7En4HS9pkLVfAyCUxWFhS4flESkUl1 n+keGvP8d3IbepHi7GxfYKvxieJDGrY+IGBTUoo/+cI6IDVInaGLNBXpqwV2EKBAjIec pU8g==
Received: by 10.50.194.232 with SMTP id hz8mr2800449igc.38.1334767813915; Wed, 18 Apr 2012 09:50:13 -0700 (PDT)
Received: by 10.50.194.232 with SMTP id hz8mr2800438igc.38.1334767813794; Wed, 18 Apr 2012 09:50:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.176.164 with HTTP; Wed, 18 Apr 2012 09:49:53 -0700 (PDT)
In-Reply-To: <CABLsOLBsHXsj_A2sWa+b8KaFJBEFMHk0W268RyKzh7J0Y+ZxVQ@mail.gmail.com>
References: <CAH9hSJZP8FhAGANSwPfvdMCQPyfRhG7tqPT68e6VY5ZCAEROTw@mail.gmail.com> <CABLsOLBsHXsj_A2sWa+b8KaFJBEFMHk0W268RyKzh7J0Y+ZxVQ@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Thu, 19 Apr 2012 01:49:53 +0900
Message-ID: <CAH9hSJZMrqDLJLr6RNLk84o1B2i3AVezUeGF9mWZ2Yu2Uv-feA@mail.gmail.com>
To: John Tamplin <jat@google.com>, Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
Content-Type: multipart/alternative; boundary="14dae93405a1661d4604bdf6d9ed"
X-System-Of-Record: true
X-Gm-Message-State: ALoCoQl0X29roy8cJpJRZb4JwAAhT/DuqBeqdnvd3LzNJLUhhQJYKwj/x4o6i84sDxssbS48TfDP1DxqgWx/6SQ3sBdN6v1Ln99kX5Jdh2W5zLX85TKocJSyFfchnOyfl47sQjVKF5EL
Cc: hybi@ietf.org
Subject: Re: [hybi] Send quota value before receiving AddChannelResponse (was: Re: MUC: channel ID semantics)
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: Wed, 18 Apr 2012 16:50:15 -0000

On Wed, Apr 18, 2012 at 21:01, John Tamplin <jat@google.com> wrote:

> On Wed, Apr 18, 2012 at 4:15 AM, Takeshi Yoshino <tyoshino@google.com>wrote:
>
>> You're right. In the latest spec, it's not explicitly specified what the
>> value of send quota is until AddChannelResponse is received.
>>
>> There're several options we can take.
>>
>> a) specify the fixed value of send quota before AddChannelResponse in the
>> spec
>> b) add a new parameter "pre_handshake_quota" to multiplexing extension to
>> negotiate the value of send quota before AddChannelResponse
>> c) drop the feature to configure initial quota for each logical channel,
>> and redefine the quota parameter as pre-handshake send quota for all
>> logical channels
>>
>
> Until we know the AddChannel was accepted, how can we send data anyway?
>  This seems just like the initial handshake on a new connection -- you
> wouldn't consider sending that data until you knew the connection was
> accepted.  Since we are avoiding TCP setup requirements, this will be much
> less latency than if the connection were created without multiplexing.
>
> I suppose it would be possible to send the data while keeping it buffered
> as an optimization, but since adding a channel should be infrequent
> compared to sending data on it, I don't see it as that important to
> optimize for.
>

Yes. It's infrequent.

If the information the impatient client want to send is small, it can also
be just embeded into URL or subprotocol to avoid the additional RTT.

If no one really needs this feature and has justification, I'm fine with
keeping the same restriction (no transmission until AddChannelResponse) as
no-mux connection.

IIRC, Gabriel was interested in this optimization. Gabriel, do you have any
comment about this?