Efficiency and statefulness in conflict (Re: HTTP router point-of-view concerns)

Nico Williams <nico@cryptonector.com> Fri, 19 July 2013 17:05 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 1DA1B21E8100 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 19 Jul 2013 10:05:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.727
X-Spam-Level:
X-Spam-Status: No, score=-6.727 tagged_above=-999 required=5 tests=[AWL=3.250, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8]
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 gbTWlooXUPmZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 19 Jul 2013 10:05:45 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 57E2E21E80C7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 19 Jul 2013 10:05:45 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1V0E7N-0004L2-1p for ietf-http-wg-dist@listhub.w3.org; Fri, 19 Jul 2013 17:05:21 +0000
Resent-Date: Fri, 19 Jul 2013 17:05:21 +0000
Resent-Message-Id: <E1V0E7N-0004L2-1p@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 1V0E7E-0004Jo-12 for ietf-http-wg@listhub.w3.org; Fri, 19 Jul 2013 17:05:12 +0000
Received: from mailbigip.dreamhost.com ([208.97.132.5] helo=homiemail-a71.g.dreamhost.com) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1V0E7D-0005a1-33 for ietf-http-wg@w3.org; Fri, 19 Jul 2013 17:05:11 +0000
Received: from homiemail-a71.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTP id 5F19342807A for <ietf-http-wg@w3.org>; Fri, 19 Jul 2013 10:04:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:date:message-id:subject:from:to:cc:content-type; s= cryptonector.com; bh=A8zdZ6TCdX4UUMEOHPgs/5Zy21w=; b=MaqucUNHTGZ Gt8Fc1a0TDzwAc5WMxiE6AFW5XVsZRCyH8bLuJ2OktC2pmDISwEVHs7oz392fHIu Amq/kgwwaIQ4bCRCO9Tp2zc6+I8ZF27z0KvGfrdoA0pUd0FX0VQ/ki2DTvwuM9bX UsjxTu7emcdJAX9GElGs6HO0OU+Vx204=
Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTPSA id 11CCA428072 for <ietf-http-wg@w3.org>; Fri, 19 Jul 2013 10:04:48 -0700 (PDT)
Received: by mail-wi0-f174.google.com with SMTP id k10so40484wiv.1 for <ietf-http-wg@w3.org>; Fri, 19 Jul 2013 10:04:47 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=MvU5uaH4ZzZRkWB7Uk11OuA5phNRdTAbn+c9gQK4nN4=; b=CMT3NJHAdO0JIYBm9rTUuHvwyJLBUFk6oSIEyKN7SDqyOECnnhZbnKKa1AIzGx1uyQ PrMK76wG29hnHkdjpdcAjwRyl7uUKhGlu6mC1ZWD2f3dKDJZcj/awVOCRIeG27bsjC0m QcTUUAQd4/vS3WZiig7s6fY7aL1i+z1yWGgDdisH+b23N4kKzBbHvFF35Obbt3XOiUSp gZvSJbWT2MY9dMZGX6kubxrMONVP2iW071hhzDsTFH+kQLG9yUn6ELsIdyomtD8a2O7L ttjUMzxNDoFvZidBQC7yvmV3eupxXZssXzLKPCRYSw5Iw57wJhvqw71SEmPyJLNV4/W5 SdEQ==
MIME-Version: 1.0
X-Received: by 10.194.240.169 with SMTP id wb9mr12437031wjc.90.1374253487536; Fri, 19 Jul 2013 10:04:47 -0700 (PDT)
Received: by 10.217.38.138 with HTTP; Fri, 19 Jul 2013 10:04:47 -0700 (PDT)
Date: Fri, 19 Jul 2013 12:04:47 -0500
Message-ID: <CAK3OfOhSs13zLaCFpqWvyOPZSBof0yMpb3bM3M4rK+c8n=omkQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: James M Snell <jasnell@gmail.com>
Cc: Roberto Peon <grmocg@gmail.com>, Jeff Pinner <jpinner@twitter.com>, Mike Belshe <mike@belshe.com>, Amos Jeffries <squid3@treenet.co.nz>, httpbis mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: none client-ip=208.97.132.5; envelope-from=nico@cryptonector.com; helo=homiemail-a71.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 1V0E7D-0005a1-33 fd3a9a6263017c89380ce6da9ea4fc96
X-Original-To: ietf-http-wg@w3.org
Subject: Efficiency and statefulness in conflict (Re: HTTP router point-of-view concerns)
Archived-At: <http://www.w3.org/mid/CAK3OfOhSs13zLaCFpqWvyOPZSBof0yMpb3bM3M4rK+c8n=omkQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18848
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, Jul 12, 2013 at 11:53 AM, James M Snell <jasnell@gmail.com> wrote:
> Most of the feedback that I've seen around header compression can be
> summarized as:
>
>   Sending less data on the wire... Good.
>   Less latency... Good.
>   More efficiency... Good.

Efficiency is actually a trade-off.  CPU vs. wire bandwidth use efficiency.

This might be a good time to point out how CPU and RAM bandwidth have
not been growing as quickly as wire bandwidth: if that keeps up then
compression is a waste of resources.  OTOH, if we can rely on massive
horizontal scaling in CPUs to cheaply take up the slack then that
might not be a problem, but that's still in the future.

IMO compression needs to be a) OPTIONAL, b) default to OFF.  If for a
particular client/server (client/proxy, proxy/proxy, proxy/server)
pair it pays to compress, then let them.

>   Less visibility in the protocol... Bad.

Meh.  That's what tools are for.

>   Complicated implementation... Bad.

Sure.

>   Introducing statefulness in the protocol... Bad.

Statefulness is bad if the efficiency trade-off isn't worth it.  To me
"more efficiency... good" and "statefulness... bad" are in conflict.
That conflict needs resolution.

> Where I come down on this is simple:
>
> Yes, we need a way of encoding headers more efficiently in HTTP/2

You can do this without stateful compression: just use a more
efficient encoding (one-time static compression, if you wish).  We had
this discussion a while back.

Nico
--