Re: HTTP router point-of-view concerns

"Poul-Henning Kamp" <phk@phk.freebsd.dk> Sat, 13 July 2013 20:29 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 420EC21F85F4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 13 Jul 2013 13:29:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 L-gLl95i-ffG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 13 Jul 2013 13:28:59 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 050B821F9DA9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 13 Jul 2013 13:28: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 1Uy6Qu-00020m-BU for ietf-http-wg-dist@listhub.w3.org; Sat, 13 Jul 2013 20:28:44 +0000
Resent-Date: Sat, 13 Jul 2013 20:28:44 +0000
Resent-Message-Id: <E1Uy6Qu-00020m-BU@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1Uy6Ql-0001zf-Jd for ietf-http-wg@listhub.w3.org; Sat, 13 Jul 2013 20:28:35 +0000
Received: from phk.freebsd.dk ([130.225.244.222]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1Uy6Qk-0004hi-TG for ietf-http-wg@w3.org; Sat, 13 Jul 2013 20:28:35 +0000
Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 9632D3EB56; Sat, 13 Jul 2013 20:28:13 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.7/8.14.7) with ESMTP id r6DKSDDF007100; Sat, 13 Jul 2013 20:28:13 GMT (envelope-from phk@phk.freebsd.dk)
To: Willy Tarreau <w@1wt.eu>
cc: Sam Pullara <spullara@gmail.com>, Mark Nottingham <mnot@mnot.net>, 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>
In-reply-to: <20130713193052.GP32054@1wt.eu>
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <092D65A8-8CB7-419D-B6A4-77CAE40A0026@gmail.com> <3835.1373612286@critter.freebsd.dk> <CD9E163F-1225-4DA8-9982-8BDBD16B1051@mnot.net> <1772.1373629495@critter.freebsd.dk> <20130712125628.GC28893@1wt.eu> <881777F8-86A7-4943-9BBD-8EB2DC306834@gmail.com> <20130713173222.GM32054@1wt.eu> <6782.1373741000@critter.freebsd.dk> <20130713191202.GN32054@1wt.eu> <6933.1373743292@critter.freebsd.dk> <20130713193052.GP32054@1wt.eu>
Content-Type: text/plain; charset="ISO-8859-1"
Date: Sat, 13 Jul 2013 20:28:13 +0000
Message-ID: <7099.1373747293@critter.freebsd.dk>
Received-SPF: none client-ip=130.225.244.222; envelope-from=phk@phk.freebsd.dk; helo=phk.freebsd.dk
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-3.330, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: maggie.w3.org 1Uy6Qk-0004hi-TG de990c8fb67e34393910fab669c580c5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP router point-of-view concerns
Archived-At: <http://www.w3.org/mid/7099.1373747293@critter.freebsd.dk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18754
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>

In message <20130713193052.GP32054@1wt.eu>, Willy Tarreau writes:

>Yes. Client picks a random session ID with the highest 16 bits = 0,
>sends the request to the first server. The load balancer overthere
>puts the DC ID and the local server ID in these bits and sends this
>ID back to the client along with the response. When upon a subsequent
>request the client is directed to a different DC, the information
>about the location of the client's context is found and the context
>can be retrieved.

Thanks!  Now I understand the goal.

It's unclear to me if it is a good idea to make part of the
session identifier, or if it should be a separate field, but
I really like the basic idea.

-- 
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.