Re: h2 proxy and connection flow control
Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> Fri, 22 August 2014 15:39 UTC
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F33E1A03C0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 22 Aug 2014 08:39:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.669
X-Spam-Level:
X-Spam-Status: No, score=-7.669 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, 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 tbEhrBPKYq-a for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 22 Aug 2014 08:39:55 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7972E1A0644 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 22 Aug 2014 08:39:55 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XKqto-0007ir-RA for ietf-http-wg-dist@listhub.w3.org; Fri, 22 Aug 2014 15:37:08 +0000
Resent-Date: Fri, 22 Aug 2014 15:37:08 +0000
Resent-Message-Id: <E1XKqto-0007ir-RA@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <tatsuhiro.t@gmail.com>) id 1XKqtS-0007fK-5s for ietf-http-wg@listhub.w3.org; Fri, 22 Aug 2014 15:36:46 +0000
Received: from mail-ie0-f169.google.com ([209.85.223.169]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <tatsuhiro.t@gmail.com>) id 1XKqtR-0005jA-4f for ietf-http-wg@w3.org; Fri, 22 Aug 2014 15:36:46 +0000
Received: by mail-ie0-f169.google.com with SMTP id rd18so6793250iec.28 for <ietf-http-wg@w3.org>; Fri, 22 Aug 2014 08:36:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=bzKETcucHs25obekG59yBQkdULUcQaVolHSWDM0OAPg=; b=mskK3BOSMzgLAYfylryNcbd26fNgtLlMYlrjEM7OXgONHUwBsxN5X6QvSEhu5tRRFU 5sl56bDQXd/Lu6jqnv1qCyKcpOdSoXFkxFHCKFowCPkycir/ChnsBo2a/VbOU+2HfKfu Px/OvJfeDcoF1WsCBdDKbS9SVnNtbi80foIQKyn6/pE6ZM3IluACcS3FLlBbaGqxEfHr z9G1dS5K0hEqJdSzPFQm0mibEwMoNPs1aEDbkpeoyQiK3ziepVuPHLpz+47cOg4GJoNR 6DOSa7aWBba941o1gEeDbCVSgry5qIcQhTlPY+fb2pA6e61F4SVE0nfHpgx1Z3IR0OAQ 21fQ==
X-Received: by 10.43.111.6 with SMTP id em6mr10597141icc.21.1408721778836; Fri, 22 Aug 2014 08:36:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.14.144 with HTTP; Fri, 22 Aug 2014 08:35:58 -0700 (PDT)
In-Reply-To: <CAPyZ6=JRarLFJqHnSt9uNURu62x_9Z8W4LhfZ8zYpg0Ps30wTw@mail.gmail.com>
References: <CAPyZ6=+9sEFaaEBHSvhbzck6mLthatDVamMckYfnUXVMhVbiVg@mail.gmail.com> <CAOdDvNqX0H7hhxtx3ODniuYQU5wt9Qi91BDjOcENssi_m4PbQA@mail.gmail.com> <CAPyZ6=J1b6VYaBJ==H7FsO9ofe9BTv53+DoDTCeRtW8TPmx=Bw@mail.gmail.com> <CAOdDvNr3g5Ch80ypTThNvZDPftPG5Qive6WmHrvHgsw4NEXOTA@mail.gmail.com> <CAPyZ6=+0Ot1XRNw38rBX1hH04hJ1i6pVDpL+CsLUifozB1tDQw@mail.gmail.com> <53F614C2.3020509@treenet.co.nz> <CAPyZ6=JRarLFJqHnSt9uNURu62x_9Z8W4LhfZ8zYpg0Ps30wTw@mail.gmail.com>
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Sat, 23 Aug 2014 00:35:58 +0900
Message-ID: <CAPyZ6=+mft5ACmbevMPb8jgUb0-Maut_bJ6Zww2SzbXLLr5SnA@mail.gmail.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="bcaec5171865370c670501399949"
Received-SPF: pass client-ip=209.85.223.169; envelope-from=tatsuhiro.t@gmail.com; helo=mail-ie0-f169.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.731, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1XKqtR-0005jA-4f ad869498a4b38a238807dbe4a81360ab
X-Original-To: ietf-http-wg@w3.org
Subject: Re: h2 proxy and connection flow control
Archived-At: <http://www.w3.org/mid/CAPyZ6=+mft5ACmbevMPb8jgUb0-Maut_bJ6Zww2SzbXLLr5SnA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26705
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
On Fri, Aug 22, 2014 at 1:42 PM, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> wrote: > > 2014/08/22 0:53 "Amos Jeffries" <squid3@treenet.co.nz>: > > > > > > Proxies have to operate under the assumption that a number of other > > clients and/or streams will be arriving very soon and need to use > > resources. So no resource can be allocated beyond what can be passed on > > quickly. > > This is great hint. The failure I made is always update stream and > connection window at the same time. It should be updated independently. So > when Frontend Proxy sends data to Browser, it only sends connection level > WINDOW_UPDATE to Backend. Stream level WINDOW_UPDATE is deferred until > Browser sends strean level WINDOW_UPDATE for data which is not acked. > Obviously this requires that Frontend Proxy's stream window is not larger > than Browser's. > Replying to myself, this does not work, because Browser may not send WINDOW_UPDATE if its stream window is very large (e.g. 10M) compared to Proxies (e.g., 64K). Most of the http2 implementation seems to send WINDOW_UPDATE when window is reduced its half, so sending 64K data does not make Browser send WINDOW_UPDATE... Best regards, Tatsuhiro Tsujikawa
- h2 proxy and connection flow control Tatsuhiro Tsujikawa
- Re: h2 proxy and connection flow control Patrick McManus
- Re: h2 proxy and connection flow control Tatsuhiro Tsujikawa
- Re: h2 proxy and connection flow control Patrick McManus
- Re: h2 proxy and connection flow control Tatsuhiro Tsujikawa
- Re: h2 proxy and connection flow control Amos Jeffries
- Re: h2 proxy and connection flow control Martin Thomson
- Re: h2 proxy and connection flow control Tatsuhiro Tsujikawa
- Re: h2 proxy and connection flow control Ilari Liusvaara
- Re: h2 proxy and connection flow control Tatsuhiro Tsujikawa
- Re: h2 proxy and connection flow control Martin Thomson