Re: http/2 prioritization/fairness bug with proxies

Nico Williams <nico@cryptonector.com> Wed, 13 February 2013 20:59 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AFF6921E808A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 13 Feb 2013 12:59:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.705
X-Spam-Level:
X-Spam-Status: No, score=-7.705 tagged_above=-999 required=5 tests=[AWL=2.272, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id On2pCZ3+grMY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 13 Feb 2013 12:59:59 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B8FD321E8089 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 13 Feb 2013 12:59:58 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1U5jOm-0006rR-BA for ietf-http-wg-dist@listhub.w3.org; Wed, 13 Feb 2013 20:57:48 +0000
Resent-Date: Wed, 13 Feb 2013 20:57:48 +0000
Resent-Message-Id: <E1U5jOm-0006rR-BA@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1U5jOb-0006qi-SA for ietf-http-wg@listhub.w3.org; Wed, 13 Feb 2013 20:57:37 +0000
Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66] helo=homiemail-a67.g.dreamhost.com) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1U5jOa-0002PO-V6 for ietf-http-wg@w3.org; Wed, 13 Feb 2013 20:57:37 +0000
Received: from homiemail-a67.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a67.g.dreamhost.com (Postfix) with ESMTP id 7186A27BC061 for <ietf-http-wg@w3.org>; Wed, 13 Feb 2013 12:57:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=U4Zv0S8p8Zg2ehG0Njzh UBmms6Y=; b=Nu2MQpBkufhhF0D9blLc1ardGDu+RxV/f67Ow7HoukJ3JESaO2TH SYb1kdHUWxdwSQRmRWHOiF31Iqw/337zwr50QLwV/qcmrWGx9XMB12kVwcEoSYbV TTJnqzWcsq17qLepxeTpvX25CzgD8JOlEoUUKggnwtx8o+DbZB5IPzw=
Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a67.g.dreamhost.com (Postfix) with ESMTPSA id 1A92E27BC05E for <ietf-http-wg@w3.org>; Wed, 13 Feb 2013 12:57:14 -0800 (PST)
Received: by mail-wi0-f170.google.com with SMTP id hm11so6493732wib.5 for <ietf-http-wg@w3.org>; Wed, 13 Feb 2013 12:57:13 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.8.130 with SMTP id r2mr12720989wia.28.1360789033664; Wed, 13 Feb 2013 12:57:13 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Wed, 13 Feb 2013 12:57:13 -0800 (PST)
In-Reply-To: <CAP+FsNchpZRLEfHVptV=tsLFHRP_N62QCbAcacvxoCoVhUxqkQ@mail.gmail.com>
References: <CAA4WUYjiBZpShKKFfHQnixc94aOLrck0oR4ykARB=hF5h8nkfA@mail.gmail.com> <3430.1359961022@critter.freebsd.dk> <510F72CE.8030003@treenet.co.nz> <CAA4WUYiBJrLjM0-vurFOuJfUaabXtK=W8N5z28yshSfrvD9crg@mail.gmail.com> <1516.1360002578@critter.freebsd.dk> <42A54D15-0AA3-4172-94F7-E94C86E84D7F@niven-jenkins.co.uk> <2346.1360010079@critter.freebsd.dk> <CAA4WUYiyu+JvFuKooqa4xVdCJP=Mngu9dgHjhH99_SEac1kCZQ@mail.gmail.com> <CABaLYCtX04se2BJ0c1yCYkwH2xvkcETdu7Pe+B8fy=DJrouo6Q@mail.gmail.com> <CAA4WUYitNR0js+5m5RHfLp-7=k-mfTUKDcayW-uzJwTgOgMyYQ@mail.gmail.com> <CABkgnnUYKDe4rZ0ZpqASkwDF2Foa_ni1rEFJH1P03k1Bv_NCog@mail.gmail.com> <CAA4WUYg+evqEMdiYSv+EZ7668eCq_dwqKiYmA4Lq-xZkoD_9Fw@mail.gmail.com> <CAK3OfOi7So1KWXdfv+UEqKAr-o1TaXiZmSmJx61WFR3J0zW_JA@mail.gmail.com> <4613980CFC78314ABFD7F85CC3027721119A440A@IL-EX10.ad.checkpoint.com> <CAK3OfOiLVfq7y4SJmoP-JyvgQc5uB8sDTrkDySMZfWqAdYf0yg@mail.gmail.com> <CAP+FsNchpZRLEfHVptV=tsLFHRP_N62QCbAcacvxoCoVhUxqkQ@mail.gmail.com>
Date: Wed, 13 Feb 2013 14:57:13 -0600
Message-ID: <CAK3OfOi_L+97AyoTWaNwqznnkyFR4SAHug2twKaMUPH1jbbtBQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Roberto Peon <grmocg@gmail.com>
Cc: Yoav Nir <ynir@checkpoint.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: none client-ip=208.97.132.66; envelope-from=nico@cryptonector.com; helo=homiemail-a67.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: lisa.w3.org 1U5jOa-0002PO-V6 703dcaa36fe13d362ac582486a901b75
X-Original-To: ietf-http-wg@w3.org
Subject: Re: http/2 prioritization/fairness bug with proxies
Archived-At: <http://www.w3.org/mid/CAK3OfOi_L+97AyoTWaNwqznnkyFR4SAHug2twKaMUPH1jbbtBQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16596
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 Tue, Feb 12, 2013 at 12:18 PM, Roberto Peon <grmocg@gmail.com> wrote:
> The problem that we have here is that the TCP API isn't sufficiently rich to
> allow us to do the right thing (e.g. read bytes without allowing the sender
> to send more). As a result, we have to have another level of flow control

That's not necessary here.

There are two issues here:

a) flow [and congestion] control;
b) prioritization of "interactive" or "control" traffic over bulk traffic.

These are exactly the same issues that have been faced in SSHv1 and SSHv2.

TCP can handle (a), but if you multiplex traffic of different QoS over
one TCP connection you run into the issues that SSHv1 and v2 have run
into.

There's two ways to address these issues: either don't it (it ==
multiplex diff QoS traffic over the same TCP conn.) or try hard never
to write more than one BDP's worth of bulk without considering higher
priority traffic.  Determining BDP is non-trivial and it can vary, but
it's reasonable to estimate it by looking at round-trip times (it'd be
nice if TCP could expose that to apps so they don't have to measure it
redundantly!) and growing send bandwidth until receive bandwidth stops
growing -- not exactly trivial, but reasonable.

Now, in practice browsers already use multiple TCP connections to the
same server anyways, so... what's wrong with per-priority TCP
connections?  (see below)

> which we'd otherwise be able to do without. Unfortunately, per priority TCP
> connections don't work well for large loadbalancers where each of these
> connections will likely be terminating at a different place. This would
> create a difficult synchronization problem server side, full of races and
> complexity, and likely quite a bit worse in complexity than getting flow
> control working well.

I think you're saying that because of proxies it's difficult to ensure
per-priority TCP connections, but this is HTTP/2.0 we're talking
about.  We have the power to dictate that HTTP/2.0 proxies replicate
the client's per-priority TCP connection scheme.

> Note that the recommendation will be that flow control be effectively
> disabled unless you know what you're doing, and have a good reason (memory
> pressure) to use it.

Huh?  Are you saying "we need and will specify flow control.  It won't
work.  Therefore we'll have it off by default."  How can that help?!
I don't see how it can.

Nico
--