Re: Should Web Services be served by a different HTTP n+1?

William Chan (陈智昌) <willchan@chromium.org> Fri, 25 January 2013 01:01 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 E59E711E80D7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 17:01:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.099
X-Spam-Level:
X-Spam-Status: No, score=-9.099 tagged_above=-999 required=5 tests=[AWL=0.578, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, 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 nxwvk5YNhLOs for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 17:01:51 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1DF3C11E8099 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 24 Jan 2013 17:01:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TyXfW-0001aZ-Hx for ietf-http-wg-dist@listhub.w3.org; Fri, 25 Jan 2013 01:01:22 +0000
Resent-Date: Fri, 25 Jan 2013 01:01:22 +0000
Resent-Message-Id: <E1TyXfW-0001aZ-Hx@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1TyXfO-0001Zp-TQ for ietf-http-wg@listhub.w3.org; Fri, 25 Jan 2013 01:01:14 +0000
Received: from mail-qa0-f50.google.com ([209.85.216.50]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1TyXf4-0007HC-CM for ietf-http-wg@w3.org; Fri, 25 Jan 2013 01:01:05 +0000
Received: by mail-qa0-f50.google.com with SMTP id cr7so834528qab.9 for <ietf-http-wg@w3.org>; Thu, 24 Jan 2013 17:00:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.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=PGRprhjj442nHP5XEpe8CydaJT+Og1e3CKTjUCfMVAE=; b=GZ31MV74iwYYupzXPye8lvB7YSS+c9HmAT+pPloTkA2mTW8WM8xQ/eQZv8KyDhugkT Tr01j01qD7AqkBoKjcbOyA7Ljvw4BGkgZpF4MncpPsvs6uKv8FHYykexZ1n2auK/TDYw p9tcuf4bdrn2BzXi3j46OOousUAVDWhsz9Gp5r2ckPbx0FkdBx9eQNxZ3NCw5+BV/4/J QVlZDaJ2NtNA/EmLW73h76bvMpP4ehmzQ9No3iY8hj8PO6yD1txKRpEoXhsnr+PZjE+X k/W2IH7yk/UceFomBzCK2k7OsxYV53wUl1eeLzJID2VT/53yn4ncrLr8HwztH+J+YAV+ L/vQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=PGRprhjj442nHP5XEpe8CydaJT+Og1e3CKTjUCfMVAE=; b=OKjjoiXcZ1UutrxdZH6hz2WEprJ+oyIpFvukLqAjZ8N8axTFralUI0TYUzaSuu5mMu HRz1madGfVmeu/QoytGCv4buq+e9r6jUl0EOL14mxmF+7MY83GgnFklqfJFFZxV/WYXT GgedrH+bGib/xt86aicfo+PT5EYy++I9s6m2Q=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.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 :x-gm-message-state; bh=PGRprhjj442nHP5XEpe8CydaJT+Og1e3CKTjUCfMVAE=; b=gxeVT+Zv+xFQ11isPkQ/qItl65SIIBpX+ok27GmzbWozs1HXElSwP2nsKxSir5fVNO IBINXRAy3GibK6jK8M+kgRRb+oKX95V0Wc8WJszI6jPmhCGnPrRQ60dam94qqQIe4WZ6 1KCAGh9H9KLgao1y9a6RidH9C0C8mWiBS1BUWWxNm8UmZa9iRGqOB3YLdgCYy0msyGap qlgnHkqKIMfZRUZM7CIAzTBLdPMDI74f35NwHZrj8hz2Iu/2vqIA6GcgeJonxKs3Ai6d H2BkCxFh+1wzKPCgyMSFL4l6BQmcbVIet5qFDFo2jmQ8dMJ+a9HDC78o9jwfG1VpDsbC JjhQ==
MIME-Version: 1.0
X-Received: by 10.49.127.199 with SMTP id ni7mr4763499qeb.17.1359075628195; Thu, 24 Jan 2013 17:00:28 -0800 (PST)
Sender: willchan@google.com
Received: by 10.229.57.163 with HTTP; Thu, 24 Jan 2013 17:00:27 -0800 (PST)
In-Reply-To: <CAMm+LwgGwJ7AR7OE17CiWHYM0T-REFX8b8J_m-PVgPoS7sEj-A@mail.gmail.com>
References: <CAMm+LwgTSw05QLUspAbAyRSWfd8j27fhwPiDSF_TaD8LevftBA@mail.gmail.com> <CAH_y2NEPLt=GkO575MfCi2aW4X+w40CzOVB05Z1+_rmLMXXSpw@mail.gmail.com> <CAMm+LwhJvSXgPzdqv2GscD-mfR4O7R_bba5JnAbdmP+uR+6SYA@mail.gmail.com> <510155E3.5020208@gmx.de> <CAMm+LwhCtd-m5uJnv+vcTTq9WcR3bEDQndV2cZqQE1ApNasCXA@mail.gmail.com> <CAA4WUYh3uP228QKjMwtTT2QQb9ypijdHPY-CkZF36j6DuTH4+A@mail.gmail.com> <CAMm+LwgqYmwomf_3XFmqkS9bLTCEAaTt=f9bFuqhTfFzjFk3AQ@mail.gmail.com> <CAA4WUYj3rDUQQ4crdyJrun=2-MwOGQ32qRfv5oJKrx=JciqOCA@mail.gmail.com> <CAK3OfOhbOnCHCp7fKeG6QLKcdoYhAXcL1nkW6220+9xb-W5Gyw@mail.gmail.com> <4613980CFC78314ABFD7F85CC302772111990734@IL-EX10.ad.checkpoint.com> <CAP+FsNfB2WPkMTtjzVeJbuQPrz_srRm8ReGnx4WQi4LGmJ2Xzw@mail.gmail.com> <4613980CFC78314ABFD7F85CC3027721119908B4@IL-EX10.ad.checkpoint.com> <CAP+FsNe5hOQ=j7VGfUhfYUAj6p8dYiDE6hATtkUwahSi-89mJA@mail.gmail.com> <CAMm+Lwja9+LMwH8jdKYJqTheGKAHmWX+bCGkVUz3ocMKnjn1HQ@mail.gmail.com> <CAP+FsNfAfdP3_0oZpozYr-+xaCpVUgS28uKXM1uG9VKOL9br8Q@mail.gmail.com> <CAP+FsNdaEAwJ1Dk=pA2-59X_eN9rg3ApdsAucVq91Keb_QXvtQ@mail.gmail.com> <F1962646D3B64642B7C9A06068EE1E64177CED56@ex10.hostedexchange.local> <CAMm+LwgGwJ7AR7OE17CiWHYM0T-REFX8b8J_m-PVgPoS7sEj-A@mail.gmail.com>
Date: Thu, 24 Jan 2013 17:00:27 -0800
X-Google-Sender-Auth: C89KGn0MnUK_jiI2GkB2d8oTSx0
Message-ID: <CAA4WUYjALy0OCkbtxvs=OWU8SivqexOnMQZD6=CPHoz5hOx_8g@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Phillip Hallam-Baker <hallam@gmail.com>
Cc: Robert Brewer <fumanchu@aminus.org>, Roberto Peon <grmocg@gmail.com>, Yoav Nir <ynir@checkpoint.com>, Nico Williams <nico@cryptonector.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
X-Gm-Message-State: ALoCoQk+YkxnsZOS76vZBSD8xsQB2jVd8GPzLJCTsg4GAJ82C8aWnzEGCGg6gzfcR+qRuY6u6nKHympAsx+6EqJID8KDu17DacM7jgCDzE9T6BVUMpJBSxAeB5THZHO+7u6SQyKJ24Z84FZ2+7lAl2rILydnniAyVEg4LaEZ8YuXn3u0d2zBTg/Z5V4NX6kl1wfohsC3c7I3
Received-SPF: pass client-ip=209.85.216.50; envelope-from=willchan@google.com; helo=mail-qa0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-2.544, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TyXf4-0007HC-CM 03f3b6ea205c66259e57ae9480b9c604
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Should Web Services be served by a different HTTP n+1?
Archived-At: <http://www.w3.org/mid/CAA4WUYjALy0OCkbtxvs=OWU8SivqexOnMQZD6=CPHoz5hOx_8g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16205
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 Thu, Jan 24, 2013 at 4:54 PM, Phillip Hallam-Baker <hallam@gmail.com> wrote:
> On Thu, Jan 24, 2013 at 7:44 PM, Robert Brewer <fumanchu@aminus.org> wrote:
>>
>> Roberto Peon wrote:
>> > The worst part is the high latency, especially given TCP's
>> > current cogestion avoidance implementations-- the total number
>> > of round-trips ends up dominating latency, regardless of how
>> > much bandwidth one has.
>>
>> Why is this being addressed by trying to make the messages smaller?
>> Wouldn't following the original architecture of HTTP, which was optimized
>> for fewer, larger messages, also reduce latency?
>
>
> Well this all goes back to Tim's original point that maybe we should have
> had more than 6 hours discussion before a grad student just threw in the
> <IMG> tag because he thought it would be cool and Eric had already written
> the code for images in the widget.
>
>
> When we moved from one request per TCP session to multiple requests per TCP
> session it was not exactly done well. Each request is still formatted as if
> it was running in a separate session and so it has to reconstruct the whole
> browser context.
>
> I don't see why we could not do a delta encoding on the headers as follows

Why do you keep saying this as if it has not already been proposed for
HTTP/2 as I pointed out earlier? Please see
http://www.mnot.net/blog/2013/01/04/http2_header_compression.

>
> Old:
>
> Get /foo
> Header1:
> Header2:
> Header3:
>
> Get /bar
> Header1:
> Header2:
> Header3:
>
>
> New:
>
> Get /foo
> Fred:[
> Header1:
> Header2:
> Header3:
> ]
>
> Get /bar
> #include Fred
>
>
> The client knows when headers are likely to be repeated across requests in
> the same session - they are mostly repeats anyway.
>
>
>
> --
> Website: http://hallambaker.com/