Re: HTTP router point-of-view concerns

Nico Williams <nico@cryptonector.com> Thu, 18 July 2013 00:08 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 B739821F889C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Jul 2013 17:08:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.57
X-Spam-Level:
X-Spam-Status: No, score=-6.57 tagged_above=-999 required=5 tests=[AWL=3.407, 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 z3YyF8DBs-Vk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Jul 2013 17:07:59 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8D3DF21F888F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 17 Jul 2013 17:07:59 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UzbjM-0003fi-I1 for ietf-http-wg-dist@listhub.w3.org; Thu, 18 Jul 2013 00:06:00 +0000
Resent-Date: Thu, 18 Jul 2013 00:06:00 +0000
Resent-Message-Id: <E1UzbjM-0003fi-I1@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 1Uzbj4-0003ev-K7 for ietf-http-wg@listhub.w3.org; Thu, 18 Jul 2013 00:05:42 +0000
Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66] helo=homiemail-a31.g.dreamhost.com) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1Uzbj3-0006Hm-K7 for ietf-http-wg@w3.org; Thu, 18 Jul 2013 00:05:42 +0000
Received: from homiemail-a31.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTP id 616BC2916C3 for <ietf-http-wg@w3.org>; Wed, 17 Jul 2013 17:05:20 -0700 (PDT)
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=3pO3mQ2Kr0gLhADYktS1 Ozj54aE=; b=Hh4bU/H8xmB6VBBHKSqnzF+5bIs5weMwLfEcZMBRoJGeLiYtEA54 ALuH86PNA4Cb6PFUPSKty9gR+uo2roMnZ58gKnIjyWOScSDvPNU4R/UWK7Hd5TBp Sc1GjNfbTOi3hTihKo6e9iz0y/1ly+MjLqi2B03Tx6SPJB+2Ce+tSBc=
Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTPSA id 081812916C1 for <ietf-http-wg@w3.org>; Wed, 17 Jul 2013 17:05:19 -0700 (PDT)
Received: by mail-wi0-f178.google.com with SMTP id k10so2598299wiv.17 for <ietf-http-wg@w3.org>; Wed, 17 Jul 2013 17:05:18 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KTkD68QIEGd7BGGP/0a8cqsUAVS3P+iybH07ATzfL5c=; b=axWPc/CBB8rKqF6s5aWNLPFtc6mgZqdHFbs07Yy0CZLm9f/l/GSiuvLk3OombRqhRu yv6b6JZ7r7GOmhgUPV8B8Te+ni9Q/RjVeulOTXX0U+fdNMSFItEOy+XXDu8WwlSPSxjY Gxb1xIjkAzYq4lD80W3FGn8vJoawrfY2BfUfNr6ClKheP654RgOfHN/CoW4DABsYMkJ/ NJyOEbMwhc+hREvyGHHsSE/YroGJ+HKQP+vVttAJZQC0u9UgYzTlyDGP9EDTzDsQuC29 AnRghDgQyh1vX5JQi9EX9D2n1XhwDCxx/a9YLaIICzZWByQcZNRTpTjQiEvDTDoiR+1L 0hqA==
MIME-Version: 1.0
X-Received: by 10.180.84.70 with SMTP id w6mr6248628wiy.36.1374105918299; Wed, 17 Jul 2013 17:05:18 -0700 (PDT)
Received: by 10.217.38.138 with HTTP; Wed, 17 Jul 2013 17:05:18 -0700 (PDT)
In-Reply-To: <3835.1373612286@critter.freebsd.dk>
References: <CA+qvzFPUpcm6kUtJx+rTw8Dpp4Gtx4Bmr3XPDhjNsjchUfN9_w@mail.gmail.com> <51DE1E32.9010801@treenet.co.nz> <CAP+FsNdcYhA=V5Z+zbt70b5e7WmcmXgjG5M9L3vfXeXfTwmRnw@mail.gmail.com> <51DE327C.7010901@treenet.co.nz> <CABkgnnXeqD6wh0dcJ1Dz=4PLAJNkDeGcCuzMr9ATd_7xS7nbGQ@mail.gmail.com> <CABP7RbcUkLf3CTAB4jwicnsiKWLGVY6=hX0k=0256SR_gcVt9A@mail.gmail.com> <092D65A8-8CB7-419D-B6A4-77CAE40A0026@gmail.com> <3835.1373612286@critter.freebsd.dk>
Date: Wed, 17 Jul 2013 19:05:18 -0500
Message-ID: <CAK3OfOjw7qVL=4zv+h=wym9UC5TF9_nNZaDtq6ji+uMRYGizWA@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Sam Pullara <spullara@gmail.com>, James M Snell <jasnell@gmail.com>, Martin Thomson <martin.thomson@gmail.com>, Amos Jeffries <squid3@treenet.co.nz>, 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-a31.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 1Uzbj3-0006Hm-K7 d9bacc6d75162a0083cd502aea54208a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP router point-of-view concerns
Archived-At: <http://www.w3.org/mid/CAK3OfOjw7qVL=4zv+h=wym9UC5TF9_nNZaDtq6ji+uMRYGizWA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18835
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 1:58 AM, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
> In message <092D65A8-8CB7-419D-B6A4-77CAE40A0026@gmail.com>, Sam Pullara writes
>>How sure are we that the entire idea of header compression isn't a bad
>>idea?

Me three.

> I'm entirely convinced it is a bad idea.
>
> The main gain that can be had from it, is compressing cookies and
> that issue should be solved by moving the cookies onto the server,
> indexed by a client provided session-id.

As for [encrypted] session state cookies, there is a trade-off: state
on the server vs. not.

Some state kept by the application on the server side can be cached,
using the client to hold the [encrypted] sub-state cookies and re-send
as necessary (e.g., if the server pushes the client's state out of its
cache).  Obviously this doesn't apply to long-term state (e.g., files
stored on a cloud), just session metadata, nor does it apply to
frequently-changing session state: that just consumes bandwidth --
much more than it would consume memory to just keep around.  But much
session state needs to be able to be pushed out of the server's cache
(e.g., not shopping carts in some apps, but yes in others).

The right balance, IMO, is for the server to assign as small a session
ID as it can (it can be smaller if a "connection" can be used as part
of a lookup index, else it has to be bigger).  Traditionally HTTP/1.x
services haven't really been able to associate state with
"connections", and I find it odd that we'd try to do it in HTTP/2.0.

Nico
--