Re: delta encoding and state management

Patrick McManus <pmcmanus@mozilla.com> Thu, 24 January 2013 14:38 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 9422921F8A06 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 06:38:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.451
X-Spam-Level:
X-Spam-Status: No, score=-9.451 tagged_above=-999 required=5 tests=[AWL=-0.075, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_32=0.6, 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 zDFyzFySo1Ge for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 06:38:14 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 946C821F89BF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 24 Jan 2013 06:38:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TyNv6-0000xw-DM for ietf-http-wg-dist@listhub.w3.org; Thu, 24 Jan 2013 14:36:48 +0000
Resent-Date: Thu, 24 Jan 2013 14:36:48 +0000
Resent-Message-Id: <E1TyNv6-0000xw-DM@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TyNuv-0000v4-QS for ietf-http-wg@listhub.w3.org; Thu, 24 Jan 2013 14:36:37 +0000
Received: from mail-ob0-f180.google.com ([209.85.214.180]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TyNup-0000Ry-4y for ietf-http-wg@w3.org; Thu, 24 Jan 2013 14:36:37 +0000
Received: by mail-ob0-f180.google.com with SMTP id wd20so9418432obb.25 for <ietf-http-wg@w3.org>; Thu, 24 Jan 2013 06:36:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=/6a4HhSXKfa+q4z0oB7SP9Ngtp7M89moBv6jtO3cGdQ=; b=g+XNCo+44L96/PK09amLcfnLJ5UM3A/7Wec0nyRoPRBjXOQ7bR3jUilD6Vo7mWyWfq vsoHUUcEnvDgkinlqmM4soVtc/65SOnqP0BcXK0RjHQ+QYzmOQj3nPLQ5fvoNS9oFrKr TFIv3zKr87UQq3VfNZ+eI+QFzYjsdDRKETbNS9AlMRYV86tXzL2wSIdt0YZSQcJmolME g3/ZVepnOR/zHEopnq5KZG3qZCcAeX3mNsCJLmMD4gjsQBnFBJ7RQRAZ6AfpNhZPdAIL Iy8gtqnsmci/cV0X5NeLUXFR9en6QWnhajielolWuXwKRtPfIcFukEoYnK0bi95w4D0N MrUg==
MIME-Version: 1.0
X-Received: by 10.60.12.103 with SMTP id x7mr1673793oeb.56.1359038165228; Thu, 24 Jan 2013 06:36:05 -0800 (PST)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.132.165 with HTTP; Thu, 24 Jan 2013 06:36:04 -0800 (PST)
In-Reply-To: <CAN2g+6buyg2moxvdpXcDam3Ay5MAuWooz52a+thgk65t=PwF3g@mail.gmail.com>
References: <CABP7RbfDZcRH-0_AaN9iYjPN-v6QjU6_Xdy5o1BHYnDFWHtuAg@mail.gmail.com> <CAK3OfOh0xqZsPYcb0uRLnebKWTKO7ARkJ4joFZoqjiBSTmwBTA@mail.gmail.com> <CABP7Rbeb6MOYmYPhhsKFFtQwE0JxuPyShXY0zpkA5YX2JPSY_w@mail.gmail.com> <CAA4WUYhg2qt_z_TrOAH0ax6mUpYPNeG4x740CgQi5Voq=50K_Q@mail.gmail.com> <20130122212748.GJ30692@1wt.eu> <CAA4WUYj51jRFosut2RsdE46SqoMDqa_r5EB7g4pj5eC2i73j7Q@mail.gmail.com> <20130122224646.GO30692@1wt.eu> <CAA4WUYjuCGyJjA2nN_-oh8TunrA7owWFQRhLg-ps+fkp9T47Ew@mail.gmail.com> <20130123000018.GR30692@1wt.eu> <CAA4WUYjGiA0WP6o3ub5ZPTh-zYZ9Jth6w2GfuMT+WarT69GW-A@mail.gmail.com> <20130123073357.GB32648@1wt.eu> <CAOdDvNoOnscRCA54n07Suxe9UQieq32SkwvMxNnEdSnK94s_PA@mail.gmail.com> <97022.1358947157@critter.freebsd.dk> <CAN2g+6buyg2moxvdpXcDam3Ay5MAuWooz52a+thgk65t=PwF3g@mail.gmail.com>
Date: Thu, 24 Jan 2013 09:36:04 -0500
X-Google-Sender-Auth: 0LhGJiYN7x7nKUSXv35LsQK0m-k
Message-ID: <CAOdDvNqognwKxU9XG9o05hw4+CS+zR54BFE+TbWC3c=Z36fUVw@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
To: Benjamin Carlyle <benjamincarlyle@soundadvice.id.au>
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, Willy Tarreau <w@1wt.eu>, "William Chan (?????????)" <willchan@chromium.org>, James M Snell <jasnell@gmail.com>, Nico Williams <nico@cryptonector.com>, Roberto Peon <grmocg@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="e89a8fb20570131b5e04d409bba4"
Received-SPF: pass client-ip=209.85.214.180; envelope-from=patrick.ducksong@gmail.com; helo=mail-ob0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.711, DKIM_SIGNED=0.1, DKIM_VALID=-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 1TyNup-0000Ry-4y 9135eb2f7754e670b6001bed200817b7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: delta encoding and state management
Archived-At: <http://www.w3.org/mid/CAOdDvNqognwKxU9XG9o05hw4+CS+zR54BFE+TbWC3c=Z36fUVw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16148
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 Wed, Jan 23, 2013 at 11:46 PM, Benjamin Carlyle <
benjamincarlyle@soundadvice.id.au> wrote:

>  as bandwidth increases[..] the problem stateful compression is designed
> to solve goes away
>

I disagree.

compression in  http/2 (stateful or otherwise) is not meant to solve a
problem with insufficient bandwidth. It is meant to address the problems
created by poor rtt:bw ratios. Those ratios only get *worse* as bandwidth
improves, because latency does not improve as quickly.

Specifically, the major problem is that the TCP congestion window is driven
by RTT. This is a particular problem on the request side of things and
compression allows you to send more requests without absorbing a RTT delay
as the congestion window grows. That RTT is the bottleneck that needs to be
solved - not the bandwidth of the pipe - and that's too bad because
bandwidth is a much easier thing to improve.

I know this has been said before - but as long as people are still talking
about bandwidth we really aren't talking about the problem that's killing
HTTP performance right now.

Stateful (I presume we are defining that as meaning state between requests)
has a good record of addressing  this by effectively removing redundant
headers (i.e. cookies which may spill the CWND all by themeslves so are an
issue with even 1 request needing to be sent) from the byte stream. I
believe this justifies its inclusion as long as it is done in a thoughtful
and reasonable way.

This is not a direct criticism of the bulk-request (BR) proposal. BR is
effectively compression as well just over a limited scope.. I'm skeptical,
but if it can show the kinds of improvements spdy did without adding
artificial waits then it should be considered.

-P