Re: HTTP router point-of-view concerns

Patrick McManus <pmcmanus@mozilla.com> Fri, 12 July 2013 13:00 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 C568821F9F6E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 12 Jul 2013 06:00:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level:
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 Wsny+MtGJ3IG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 12 Jul 2013 06:00:24 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 02B5C11E8107 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 12 Jul 2013 06:00:23 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UxcxC-0002nd-FD for ietf-http-wg-dist@listhub.w3.org; Fri, 12 Jul 2013 13:00:06 +0000
Resent-Date: Fri, 12 Jul 2013 13:00:06 +0000
Resent-Message-Id: <E1UxcxC-0002nd-FD@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1Uxcx3-0001Hk-T9 for ietf-http-wg@listhub.w3.org; Fri, 12 Jul 2013 12:59:57 +0000
Received: from mail-oa0-f54.google.com ([209.85.219.54]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1Uxcx2-0000go-M6 for ietf-http-wg@w3.org; Fri, 12 Jul 2013 12:59:57 +0000
Received: by mail-oa0-f54.google.com with SMTP id o6so12887591oag.13 for <ietf-http-wg@w3.org>; Fri, 12 Jul 2013 05:59:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=34ktwjdkcz0YRJPMFQ8jPOvB39NJLGRinp+Uez1+rIU=; b=ktTRYKScJn4T5X8Ciyom8et9mF+rgfPfRsD9CH/Pbr3g2PRozoz4ZEpkXMZ5zP0zn9 Ghefr/a9C4Ok/u+1o2uvVX/tBQJGV+LH7Ks5qefT8z30TjSoEZuoO9upH6+IetmMEWZk +NfMz516hwMFxeHXg8mywoqF7rOwgI2/4Va0CwGkGEd6dDr9iTJ+vE+XEOwe499+3DqT YfhpwVgxUFFhFXHIMt/7mY71y2fuad1JUPEuJ8w7obLdrQnNBY7giliqOzIpcOfD7Qmo UWPuIyozeHwd9mRI5YCgyBEZ2CxF7EkS0LDvrtNkaPh5A5oT47C8HGkiW4WnFBUjXyIb q4rA==
MIME-Version: 1.0
X-Received: by 10.182.47.137 with SMTP id d9mr36250912obn.26.1373633970647; Fri, 12 Jul 2013 05:59:30 -0700 (PDT)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.152.133 with HTTP; Fri, 12 Jul 2013 05:59:30 -0700 (PDT)
In-Reply-To: <CA+qvzFPya3nVZBV2Wes2gWQqgTa34gXb9DK8zhoK1GNx52XCXQ@mail.gmail.com>
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> <CD9E163F-1225-4DA8-9982-8BDBD16B1051@mnot.net> <1772.1373629495@critter.freebsd.dk> <C0C65ACC-673E-4E07-B2D0-B84723755E6F@apple.com> <CA+qvzFPya3nVZBV2Wes2gWQqgTa34gXb9DK8zhoK1GNx52XCXQ@mail.gmail.com>
Date: Fri, 12 Jul 2013 08:59:30 -0400
X-Google-Sender-Auth: JR_DPshpU2QjNmbXCh-5ba15Lv0
Message-ID: <CAOdDvNot=0ir9095ffQW14j5AbaCL5WQwUWGmH9v3a05mFf_nA@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
To: Christian Parpart <trapni@gmail.com>
Cc: Michael Sweet <msweet@apple.com>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Mark Nottingham <mnot@mnot.net>, 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: multipart/alternative; boundary="089e0158a9fedf377604e1501481"
Received-SPF: pass client-ip=209.85.219.54; envelope-from=patrick.ducksong@gmail.com; helo=mail-oa0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.652, 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: lisa.w3.org 1Uxcx2-0000go-M6 48ad8bc541f13099baa0ae0f375eae1e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP router point-of-view concerns
Archived-At: <http://www.w3.org/mid/CAOdDvNot=0ir9095ffQW14j5AbaCL5WQwUWGmH9v3a05mFf_nA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18725
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>

cookies and user agents, while very redundant, are not 100% consistent
between transactions. Especially in proxying scenarios, but other places
too.

And even if we removed those, a request header would still be ~300 bytes -
which is just too big to support the many dozens of subresources that
commonly make up a page today in one rtt.

I understand some of the frustration, but this is something we've seen work
and imo is necessary to enable the fundamental muxxing changes http/2
presents.





On Fri, Jul 12, 2013 at 8:47 AM, Christian Parpart <trapni@gmail.com> wrote:

> On Fri, Jul 12, 2013 at 2:40 PM, Michael Sweet <msweet@apple.com> wrote:
>
>> Then just add the User-Agent and Server values to the settings frames the
>> client and server exchange?
>>
>
> if it would be *that* simple, then dont' forget the cookie and the
> user-agent.
>
>
>> Sent from my iPad
>>
>> On 2013-07-12, at 7:44 AM, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>>
>> > In message <CD9E163F-1225-4DA8-9982-8BDBD16B1051@mnot.net>, Mark
>> Nottingham wri
>> > tes:
>> >
>> >> This has been brought up a number of times. I think what we need is a =
>> >> concrete proposal *with* a detailed plan for a workable transition to =
>> >> the new mechanism -- which seems to be the (or at least one) sticking =
>> >> point whenever this comes up.
>> >
>> > I have given a concrete example multiple times, it's very simple:
>> >
>> >    The client always sends along a session-identifier of N (128?)
>> >    bits.
>> >
>> >    If the first bit is zero, this is an anonymous, transient
>> >    session, not (to be) associated with any other session.
>> >
>> >    If the first bit is one, this is a persistent session
>> >    identifier, which the server can use to look up any relevant
>> >    state or information from previous instances of this
>> >    session, in its local database.
>> >
>> >    This replaces the Cookie: and Set-Cookie: headers, which
>> >    SHALL NOT be sent in the HTTP/2.0 protocol.
>> >
>> > Advantages:
>> >
>> >    We get a fixed size session-identifier for HTTP routers to
>> >    use for flow-routing.
>> >
>> >    We get an actual (client controlled) session-concept, rather
>> >    than all sorts of ad-hoc simulations with cookies.
>> >
>> >    Data with privacy-concerns are stored on the server not on
>> >    random clients the user happens to borrow or use.
>> >
>> >    The overhead of encrypting and signing the data in cookies
>> >    is avoided, since they are stored on the server side where
>> >    nobody can fudge them.
>> >
>> > Backwards compatibility:
>> >
>> >    It should be obvious that simulating the Cookie concept for
>> >    framework compatibility on the server side is a trivial
>> >    matter of programming:  Rather than send set-cookies, write
>> >    them to a database, indexed by the session-id.  Rather than
>> >    receive Cookie: headers, look them up in the database.
>> >
>> > There, solved.
>> >
>> > Again.
>> >
>> > --
>> > Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
>> > phk@FreeBSD.ORG         | TCP/IP since RFC 956
>> > FreeBSD committer       | BSD since 4.3-tahoe
>> > Never attribute to malice what can adequately be explained by
>> incompetence.
>> >
>>
>>
>