RE: Redirection to Other IP Addresses

Mike Bishop <mbishop@evequefou.be> Wed, 21 August 2019 16:35 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 E2F2E120C6D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 21 Aug 2019 09:35:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.65
X-Spam-Level:
X-Spam-Status: No, score=-0.65 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, GB_VISITOURSITE=2, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=evequefou.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5ojPTcJsPgnw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 21 Aug 2019 09:35:04 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8A652120C1C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 21 Aug 2019 09:34:55 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1i0TXA-0002NE-Cq for ietf-http-wg-dist@listhub.w3.org; Wed, 21 Aug 2019 16:32:28 +0000
Resent-Date: Wed, 21 Aug 2019 16:32:28 +0000
Resent-Message-Id: <E1i0TXA-0002NE-Cq@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mbishop@evequefou.be>) id 1i0TX4-0002MK-78 for ietf-http-wg@listhub.w3.org; Wed, 21 Aug 2019 16:32:22 +0000
Received: from mail-eopbgr810097.outbound.protection.outlook.com ([40.107.81.97] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from <mbishop@evequefou.be>) id 1i0TWz-00014f-Jj for ietf-http-wg@w3.org; Wed, 21 Aug 2019 16:32:21 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R8dXoHGs7YyhUlgaP8duhyl5Rk6paxmzPJDg3WtIxy18cTQitDtHytAmh4K6RgVNAbwaI+o9AwsnGmggxijDFuv1XR5YiO7UG98Co3Gdyosbdy4aQoeB3rcUKm5KY5TMQ/76978dxfCO2RxC0sJsJPBTRimwehznNengowlDVMmccmDZAb5p5P6GZaKIl465QWSFL5R4V3MxgbsU7Es3jTpLYWuz+1Of9wuJ1NMQHFn+E/FKD3/HGzsHaKG+85ShMal+wwW0D9EgMTQ+pIp1eYIJ47cNbUdlkkVmTNq61ajEs0tFNwhfF7tKg7gtHYwrqoHBPH4jBFonlqIlcMFVCQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E5kuLy8eNS90d9Q76ijSATpr39aORelWTdhD/Yke69k=; b=DigMk5OeKBrZ1hI5dAigIr+8ASfuuBrZTkd2bBBIYG/L51i3vA7CT1etUn6OIp0UWgURlK3wsCM//ZuzuVQWbDnN8kBLLBhP7+X1VpG7lZY+FWK3+jWK4J8IaZOlWno814jEUhKPvuSSMv7MPQoEZUDdQ3za/KMvnsJaKYpqy0lRUHtXRJDYURp4AVhBOVgTH2hxR4Bm6/ro5uj2euOYs5LW/Je5BVG4gHjskzfSTW8WXdSjk5udntPDVGID0kKZuCwXdIEI3Tyhtg6CTjTWY3+VI9fiTq+zA+BLtkdcPKZMxNE+QtECfFjHAJbbDkvGACDQ2/w9OYpDqhq73btAZw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=evequefou.be; dmarc=pass action=none header.from=evequefou.be; dkim=pass header.d=evequefou.be; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evequefou.onmicrosoft.com; s=selector2-evequefou-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E5kuLy8eNS90d9Q76ijSATpr39aORelWTdhD/Yke69k=; b=W3BWfPHs32IStHeXgsH8JkCSXYYA1zYWbKsLjyhbLnNa1+n1Kn1Ln7LPbcI0542nP5t7UGGHbcdsI+cRT4ysXl58TIV7M+zYOqzHqCQoSe0/928dDtZrbUs/MYVz6RRUI2BPGQZy+RUUzWP8qgmyvciueKz9kI9ZXH04TaSBRkQ=
Received: from BN6PR2201MB1202.namprd22.prod.outlook.com (10.174.80.146) by BN6PR2201MB1170.namprd22.prod.outlook.com (10.174.85.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Wed, 21 Aug 2019 16:31:53 +0000
Received: from BN6PR2201MB1202.namprd22.prod.outlook.com ([fe80::b191:8036:dc83:9103]) by BN6PR2201MB1202.namprd22.prod.outlook.com ([fe80::b191:8036:dc83:9103%12]) with mapi id 15.20.2178.020; Wed, 21 Aug 2019 16:31:52 +0000
From: Mike Bishop <mbishop@evequefou.be>
To: Bin Ni <nibin@quantil.com>, craigt <c@gryning.com>
CC: Erik Nygren <erik+ietf@nygren.org>, "W. Felix Handte" <w@felixhandte.com>, HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Redirection to Other IP Addresses
Thread-Index: AQHVQ49lOfA0Juj8Ikufdxo/k4bkL6bcmrGAgAJjo4CAACHtAIAAgMgAgAAGnoCAAAtJAIAACNqAgAF9zwCAAGZ9gIAAEf0AgABHJICAANH9AIABEIYAgAFtCwCAAEP9gIAAAqkAgAAiQQCAADZFy4AAAG0AgAANwgCAAA7zAIAACA2AgAAO8QCAAGuJgIAAJqAAgAttzoCACLcZQIAAVVqAgAAJMgCAACxfAIAA7VkAgAktZACAAGiYQA==
Date: Wed, 21 Aug 2019 16:31:52 +0000
Message-ID: <BN6PR2201MB12029A2794E5E9414A0B48B5DAAA0@BN6PR2201MB1202.namprd22.prod.outlook.com>
References: <CAFifEMLOHp5=OqUXZbg_WKNQmNsTW3Bg5P4btJdX06CF=Wi2AA@mail.gmail.com> <CAFifEMLnSB5SYb_q0toTE3Xy1i56=14ki=__91Phc76HHL+ZhQ@mail.gmail.com> <f05b5157-f068-1e03-8422-36d0425a32a5@treenet.co.nz> <CAFifEMLQXUSHKOjKN9JR87ht1UUvf-1AEWKNmuKeOqKyzjT28Q@mail.gmail.com> <CAJEGKNtWvXyrFLU0KW-rqN1qd-PLOqobjx1o6kRcH27_O9Ri7Q@mail.gmail.com> <CAFifEMKhjU=EmMj6yyVN5D1aSfCVi9HAWgE-Ebzu8NscKQpv_w@mail.gmail.com> <CAJEGKNvoKijzJsTOSE0w08wst=zxoTa95Jx8xVfRWmCWJTJ=4g@mail.gmail.com> <CAFifEMLrWwBoPDQZiHvp65zwS+0CEka1sSoLMYQo6ydYit3aNQ@mail.gmail.com> <CAAXAoJUdJP-WUa8sxt_3L+=09wQb_UUOGq0517ibzYrVoU8aOA@mail.gmail.com> <CAFifEMLvsHA9eOZS6MRNCvVa_c+jEOoPsmXbMrbC09aY=0-MZQ@mail.gmail.com> <CAAXAoJUvdPaFU-xjaVTC8J9=bLe6QfyEnsyHLM1EMUKN1HNtTg@mail.gmail.com> <alpine.DEB.2.20.1908010950240.24744@tvnag.unkk.fr> <CAFifEML6zwvKZJwO0P0L_bvOq8ow1U1j4UkfOTJf0CDRjL71ig@mail.gmail.com> <alpine.DEB.2.20.1908011055320.16907@tvnag.unkk.fr> <CAFifEMLECLpz=E1h7jBPY_5_KSzTRoV-ajc9aMLvEUB8RS68QQ@mail.gmail.com> <0798f7aa-0fac-b7e0-a38d-2b0c781ae50d@felixhandte.com> <CAFifEMKwhxnrjaHiaW-x7oENhhn8XUOZrMZDBL=E1G1WSvPXdg@mail.gmail.com> <CAKC-DJjDS2u5XDGmd4E7dKUvS7aNqKZ3EeCkWKk7OE4q6EpuBw@mail.gmail.com> <CY4PR22MB0983267495973365C74465FFDAAD0@CY4PR22MB0983.namprd22.prod.outlook.com> <CAFifEMKf9RQ7WiKBTTKC8G=0CbzQM6PLyFwn_7=pqQwBoCSSJA@mail.gmail.com> <CAKC-DJiaMU7J4=z6JZ_BR_MF-bbeSAAKwJpHOdvW+mmWUb4_mw@mail.gmail.com> <CAFifEMKMNwYbUMgcUmgHFucVH+GddUm2YXeWagKBf3xzjx2sjg@mail.gmail.com> <CAK-1kekd-BKsY3f3+CukdtxrJOEq5fYky2jMa0ubdr=Mfe14Tg@mail.gmail.com> <CAFifEM+AYjhfeFw1XLrTNq1OzgppPaCWeQcQyafe+hO5YSa+tQ@mail.gmail.com>
In-Reply-To: <CAFifEM+AYjhfeFw1XLrTNq1OzgppPaCWeQcQyafe+hO5YSa+tQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=mbishop@evequefou.be;
x-originating-ip: [74.215.149.36]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b3116b79-30e5-45ee-a57f-08d7265512fe
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(2017052603328)(49563074)(7193020); SRVR:BN6PR2201MB1170;
x-ms-traffictypediagnostic: BN6PR2201MB1170:
x-ms-exchange-purlcount: 20
x-microsoft-antispam-prvs: <BN6PR2201MB117036CB5482B0C5BE55832FDAAA0@BN6PR2201MB1170.namprd22.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:1728;
x-forefront-prvs: 0136C1DDA4
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(136003)(396003)(366004)(39830400003)(346002)(129404003)(199004)(189003)(733005)(561944003)(71200400001)(110136005)(99936001)(53946003)(3846002)(6116002)(316002)(25786009)(4326008)(256004)(14444005)(33656002)(2906002)(966005)(45080400002)(54906003)(71190400001)(508600001)(790700001)(14454004)(11346002)(446003)(76176011)(476003)(7696005)(8676002)(6246003)(66066001)(8936002)(6506007)(53546011)(102836004)(26005)(74316002)(66476007)(64756008)(66446008)(66556008)(66576008)(66946007)(76116006)(5660300002)(229853002)(86362001)(606006)(486006)(53936002)(52536014)(99286004)(6306002)(9686003)(7736002)(53386004)(53376002)(55016002)(186003)(81166006)(81156014)(236005)(6436002)(21615005)(30864003)(54556002)(54896002)(21314003)(781001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR2201MB1170; H:BN6PR2201MB1202.namprd22.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: evequefou.be does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: QJPqZkeJxntCoBzG7l88cNBJDGgq55IvJJ8zvoZXJ8GmOp/xF2eVhGLD4PoMyJBMQedPf1eQWXjwbAzZjzkoTH8oyi9TCDlnDQig2eh4zvQ9uWleyAqJZfuXc4YaMJyS+Y/ybUtH6oMR8BFcMBSsT8J+iuXPwvRBSWELPA80KmdEbNcd6uIYzXdJjAOybOqq+ssrlL9+pCmxZgg8dhKS/u0t0z8flJ3k001BouUbNlvuEY1rffwRCNp9k1ANm1UD19V0+2MZ7Q37UihqXlTGZbyox5aM0bzbzii2HCPUZxSvWjCIIea8RaLq082YLY9ASuH3G4M8QVWZrFcLEW41zmPRVEq+nL/tF08ALX+WCn40fAly2QNS1Jjbx1kDocPaaCZCnts2SohmpPZ5idOI+BRPXEh04s3rfDsFz4U2zuw=
x-ms-exchange-transport-forked: True
Content-Type: multipart/related; boundary="_005_BN6PR2201MB12029A2794E5E9414A0B48B5DAAA0BN6PR2201MB1202_"; type="multipart/alternative"
MIME-Version: 1.0
X-OriginatorOrg: evequefou.be
X-MS-Exchange-CrossTenant-Network-Message-Id: b3116b79-30e5-45ee-a57f-08d7265512fe
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Aug 2019 16:31:52.5220 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 41eaf50b-882d-47eb-8c4c-0b5b76a9da8f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: qi4dF5C66zvsiNkobaQ43XEkBzkhKvX9skqjDCjI5h+6aqmGx374nI9SNfJepKBgJQSXidX4DrrxYuSDxLqvNA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR2201MB1170
Received-SPF: pass client-ip=40.107.81.97; envelope-from=mbishop@evequefou.be; helo=NAM01-BY2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1i0TWz-00014f-Jj bd27d3f12ceb3d6a7f8a99b7525b4e45
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Redirection to Other IP Addresses
Archived-At: <https://www.w3.org/mid/BN6PR2201MB12029A2794E5E9414A0B48B5DAAA0@BN6PR2201MB1202.namprd22.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36992
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Which, again, makes it seem like an OOB encoding is a useful route.  The body’s location is given as a URI; the protocol used to retrieve the resource can vary, because URIs don’t specify protocols.  There are ways around the Cookie issue, and if you’re modifying the client to support this new protocol then you’re also going to modify it to support the target being on a different domain.

From: Bin Ni <nibin@quantil.com>
Sent: Wednesday, August 21, 2019 5:08 AM
To: craigt <c@gryning.com>
Cc: Erik Nygren <erik+ietf@nygren.org>; Mike Bishop <mbishop@evequefou.be>; W. Felix Handte <w@felixhandte.com>; HTTP Working Group <ietf-http-wg@w3.org>
Subject: Re: Redirection to Other IP Addresses

Yes, the key of my proposal is a "forced", non-optional redirect, just like 30X, which is fundamentally different from Alt-Svc.
Another problem with Alt-Svc is that the "protocol-id" is mandatory.
If we introduce "forced Alt-Svc" the server also needs to make sure the client supports the protocol, which is more work for the server.
We need to make the "protocol-id" to the optional.

Bin



On Thu, Aug 15, 2019 at 5:59 AM craigt <c@gryning.com<mailto:c@gryning.com>> wrote:
Just catching up on this thread:

Bin, It's great to hear of others wanting a solution in this area....

I set up a proof of concept for something very similar to this using
Alt-Svc, and it worked really well (on Firefox). The preferred path
was almost always set up before the bulk download was initiated due to
companion assets. The problem was that most user agents only
implemented protocol upgrade via Alt-Svc rather than 'connection
migration' or almost in this case 'http traffic engineering'.
Alt-Svc also has other useful properties when used in conjunction with
single address endpoints like failback to origin and multiple
alternates.

The use case described here, which was very similar to my own at the
time, has a 'lowest common capability' issue so the OPTIONAL aspects
of Alt-Svc make it unusable without support from the bulk of clients.
However, given Alt-Svc has become near essential for protocol upgrade
and partially supported by all, how can we encourage client
implementors to work towards:

"Therefore, if a client supporting this specification becomes aware of
   an alternative service, the client SHOULD use that alternative
   service for all requests to the associated origin as soon as it is
   available"

Or a method of signalling that Alt-Svc/equivalent is not optional in $case...


On Wed, 14 Aug 2019 at 23:53, Bin Ni <nibin@quantil.com<mailto:nibin@quantil.com>> wrote:
>
> Hi Erik and All,
>
> My use case is we have a bunch of reverse proxy servers all over the world (just like any other CDN providers).
> Our customers deploy proxy policies to all those servers.
> Assume company ABC is one of our customers, they may configure all our servers to serve https://download.abc.com, with the certificate for "download.abc.com<http://download.abc.com>" installed on each of the servers.
> They also configure their DNS to point www.abc.com<http://www.abc.com> to a CNAME provided by us, such that my company essentially takes over the resolution of that hostname.
> When an end-user is visiting download.abc.com<http://download.abc.com>, the hostname is resolved by our DNS server to one of the server's IP addresses.
> This IP address is chosen based on some algorithm. But this algorithm has some limitations which may not always return an IP that is optimal for the end user.
> When the end user reaches that IP to download some object, for example https://download.abc.com/movie.mp4 (potentially with some cookie targeting "download.abc.com<http://download.abc.com>"), an algorithm running on that server
> finds out that another server would provide better performance and want to redirect the end user to the new server to download the object.
> Right now what we can do is sending 30X redirection to the end user with something like:
> Location: https://{new IP}.mycompany.com/download.abc.com/movie.mp4<http://mycompany.com/download.abc.com/movie.mp4>
> As I mentioned in earlier posts, this current method breaks cookie and company ABC's client (maybe a mobile App) may refuse to be directed to a different domain.
>
> Hope this is a clear enough description of the use case. Please let me know of any questions.
> Thanks!
>
> Bin
>
> On Wed, Aug 14, 2019 at 1:11 PM Erik Nygren <erik+ietf@nygren.org<mailto:erik%2Bietf@nygren.org>> wrote:
>>
>> You get something in the middle ground.  The Origin doesn't change, but cookies don't get sent without extra work.
>> But you gain the ability to decouple the server certificate and trust and integrity from the Origin.
>> They do solve slightly different but heavily overlapping problems.
>>
>> It may make sense to take a step back and enumerate the set of problems and use-cases
>> that would be good to solve and see which ones there is interest in addressing, and then
>> finding a solution that covers this set.
>>
>> In order for any effort on this front to be worthwhile it will also require
>> getting interest and buy-in to collaborate and implement from both server
>> operators and client implementations, with the client implementations
>> being the one that is going to be especially critical to success.
>> (Even Alt-Svc has had limited client implementation to-date.)
>>
>>      Erik
>>
>>
>>
>>
>>
>>
>> On Wed, Aug 14, 2019 at 3:38 PM Bin Ni <nibin@quantil.com<mailto:nibin@quantil.com>> wrote:
>>>
>>> Hi Mike and Eric,
>>>
>>> If looks to me that if I use oob encoding for my use case, it will be the same as 30X redirection.
>>> I won't be able to achieve my goal of "only change the IP address, everything else remain the same".
>>>
>>> Bin
>>>
>>>
>>> On Wed, Aug 14, 2019 at 7:34 AM Mike Bishop <mbishop@evequefou.be<mailto:mbishop@evequefou.be>> wrote:
>>>>
>>>> I second this – given that you’re looking for a forced redirect, an out-of-band response coupled with an Alt-Svc to the other host should provide the right behavior.  The first request goes OOB and the client gets the payload from the alternate; the subsequent requests can be made directly to the alternative, since it also has a cert for the origin.
>>>>
>>>>
>>>>
>>>> From: Erik Nygren <erik+ietf@nygren.org<mailto:erik%2Bietf@nygren.org>>
>>>> Sent: Thursday, August 8, 2019 9:27 PM
>>>> To: Bin Ni <nibin@quantil.com<mailto:nibin@quantil.com>>
>>>> Cc: W. Felix Handte <w@felixhandte.com<mailto:w@felixhandte.com>>; HTTP Working Group <ietf-http-wg@w3.org<mailto:ietf-http-wg@w3.org>>
>>>> Subject: Re: Redirection to Other IP Addresses
>>>>
>>>>
>>>>
>>>> Another directional approach for this use-case would be out-of-band content encoding.
>>>>
>>>> For example:
>>>>
>>>>
>>>>
>>>>        https://tools.ietf.org/id/draft-reschke-http-oob-encoding-12.html
>>>>
>>>>
>>>>
>>>> It is possible that this could cover at least some of the use-cases.
>>>>
>>>> It has the benefit that the client signals support (via Accept-Encoding).
>>>>
>>>> The target won't get cookies, but authenticators could be passed in the URL target.
>>>>
>>>> It also has some better properties for not having to fully trust the redirect target
>>>>
>>>> and not having to have the same cert on the redirect target.
>>>>
>>>>
>>>>
>>>>     Erik
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Aug 1, 2019 at 2:58 PM Bin Ni <nibin@quantil.com<mailto:nibin@quantil.com>> wrote:
>>>>
>>>> Hi Felix,
>>>>
>>>>
>>>>
>>>> What you described is exactly what my company (you probably already figured out that I work for a CDN company)
>>>>
>>>> is providing to our customers today. The problems are:
>>>>
>>>> 1. In your example, the first host "cdn.com<http://cdn.com>" is the CDN customer's hostname. They usually can't provide us with a "*.geo.cdn.com<http://geo.cdn.com>" wildcard cert. Some of them requires EV certificate, which does not even support wildcard.
>>>>
>>>> 2. Cookies are often targeting a specific hostname. We can't ask all our customer to change the business logic of their web application to make sure all cookies are targeting the entire domain.
>>>>
>>>>
>>>>
>>>> Hope this helps. Any more questions?
>>>>
>>>>
>>>>
>>>> Bin
>>>>
>>>>
>>>>
>>>> On Thu, Aug 1, 2019 at 9:37 AM W. Felix Handte <w@felixhandte.com<mailto:w@felixhandte.com>> wrote:
>>>>
>>>> Bin,
>>>>
>>>> I've been following along on this discussion and it's still not clear to
>>>> me why 30X doesn't solve this use case. Take for example a request and
>>>> response as follows.
>>>>
>>>>    GET /large_file HTTP/1.1
>>>>    Host: cdn.com<http://cdn.com>
>>>>
>>>> To which the server responds with
>>>>
>>>>    HTTP/1.1 307
>>>>    Location: https://singapore.geo.cdn.com/large_file
>>>>
>>>> Or even
>>>>
>>>>    HTTP/1.1 307
>>>>    Location: https://123_45_67_89.ip.cdn.com/large_file
>>>>
>>>> Maybe I'm missing something, but as I understand it, HTTPS and Cookies
>>>> should work with the above (assuming you have wildcard certs for
>>>> *.geo.cdn.com<http://geo.cdn.com> and/or *.ip.cdn.com<http://ip.cdn.com>, and have set your cookies with
>>>> domain=.cdn.com<http://cdn.com>). And it otherwise seems to accomplish exactly your intent.
>>>>
>>>> Can you explain in a little more detail why you believe something along
>>>> those lines wouldn't solve your need?
>>>>
>>>> Thanks,
>>>> Felix
>>>>
>>>> On 8/1/19 6:12 AM, Bin Ni wrote:
>>>> > Hi Daniel,
>>>> >
>>>> > At high level, my proposal is in every other way the same as today's 30X
>>>> > redirection.
>>>> > With this in mind, the answer to your questions are:
>>>> > 1. In general, the alternate IP should only be used once for the next
>>>> > single request.
>>>> > But there is nothing to prevent the clients from remembering it, which
>>>> > is OK.
>>>> > Just like there is nothing to prevent a client to disregard the DNS TTL.
>>>> > They do it with their own risk.
>>>> > 2. This proposal is to fix some limitations of the 30X with Location header.
>>>> > Not very helpful to make it work together with the Location header.
>>>> > 3. We are not requiring every server and every client to support this
>>>> > proposal.
>>>> > For the ones who find it to be useful, the "extra burden" is a non-issue.
>>>> >
>>>> > Thanks!
>>>> >
>>>> > Bin
>>>> >
>>>> > On Thu, Aug 1, 2019 at 2:18 AM Daniel Stenberg <daniel@haxx.se<mailto:daniel@haxx.se>
>>>> > <mailto:daniel@haxx.se<mailto:daniel@haxx.se>>> wrote:
>>>> >
>>>> >     On Thu, 1 Aug 2019, Bin Ni wrote:
>>>> >
>>>> >      > 2. my proposed behavior:
>>>> >      > Client: Hi Server-1.1.1.1, can you send me the movie XXX?
>>>> >      > Server-1.1.1.1: Sorry, I can't give you the movie, you need to
>>>> >     ask server
>>>> >      > 2.2.2.2 for this movie.
>>>> >      > Client: Hi Server-2.2.2.2, can you send me the movie XXX?
>>>> >      > Server-2.2.2.2: Here is the movie.
>>>> >      > (It then took 0.5 hours to deliver the movie, because
>>>> >     server-2.2.2.2 is
>>>> >      > closer to the client, or less loaded)
>>>> >
>>>> >     If we for a moment play with the idea that we'd do something like
>>>> >     this, then I
>>>> >     think it should be aligned with and work together with Alt-Svc in a
>>>> >     better way
>>>> >     than what is currently proposed...
>>>> >
>>>> >     There's no max-age/TTL. For how long is the user-agent supposed to
>>>> >     consider
>>>> >     the alternative IP addresses as the only ones that the given origin
>>>> >     has?
>>>> >     Forever? Only for the next single connect (attempt)?
>>>> >
>>>> >     Are the alternative IPs supposed to be used for the entire origin or
>>>> >     for that
>>>> >     specific URI only?
>>>> >
>>>> >     A 3xx redirect without a Location: header? Wouldn't it make more
>>>> >     sense and
>>>> >     work more similar to existing 3xx redirects if it also sends a
>>>> >     Location:? Then
>>>> >     existing clients that don't understand 312 might have a higher
>>>> >     chance of at
>>>> >     least doing something sensible.
>>>> >
>>>> >     If a client gets this response and starts downloading huge content
>>>> >     from the
>>>> >     new IP and the client then opens a second connection to the origin
>>>> >     in a second
>>>> >     tab. Which IPs is that supposed to use? The original ones or the
>>>> >     redirected
>>>> >     ones?
>>>> >
>>>> >     Requring user-agent snooping for a server to figure out if the
>>>> >     feature works
>>>> >     or not is a totally broken idea and I think this detail needs to be
>>>> >     worked out
>>>> >     for this idea to be considered for real.
>>>> >
>>>> >     My personal preference is probably to add some sort of "urgency"
>>>> >     thing to
>>>> >     alt-svc instead of this 312 plus several headers, so that a client
>>>> >     can be told
>>>> >     that it should switch sooner rather than later.
>>>> >
>>>> >     --
>>>> >
>>>> >        / daniel.haxx.se<http://daniel.haxx.se> <http://daniel.haxx.se>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> >
>>>> > Bin Ni
>>>> > VP of Engineering
>>>> >
>>>> > Quantil
>>>> >
>>>> > Connecting users with content...it's that simple.
>>>> >
>>>> > Office: +1-888-847-9851 <tel:(888)%20847-9851>
>>>> >
>>>> > Tweeter <https://twitter.com/Team_Quantil> Google Plus
>>>> > <https://plus.google.com/+Quantil_team/> Linked In
>>>> > <https://www.linkedin.com/company/quantil>
>>>> >
>>>> > The information contained in this email may be confidential and/or
>>>> > legally privileged. It has been sent for the sole use of the intended
>>>> > recipient(s). If the reader of this message is not an intended
>>>> > recipient, you are hereby notified that any unauthorized review, use,
>>>> > disclosure, dissemination, distribution, or copying of this
>>>> > communication, or any of its contents, is strictly prohibited. If you
>>>> > have received this communication in error, please reply to the sender
>>>> > and destroy all copies of the message. To contact us directly, send to
>>>> > QUANTIL, INC. at 1919 S Bascom Ave #600, Campbell, CA 95008
>>>> > <https://maps.google.com/?q=1919+S+Bascom+Ave+%23600,+Campbell,+CA+95008&entry=gmail&source=g>,
>>>> > or visit our website at www.quantil.com<http://www.quantil.com>. <https://www.quantil.com/>
>>>> >
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Bin Ni
>>>> VP of Engineering
>>>>
>>>> Connecting users with content...it's that simple.
>>>>
>>>> Office: +1-888-847-9851
>>>>
>>>>
>>>>
>>>>
>>>> The information contained in this email may be confidential and/or legally privileged. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please reply to the sender and destroy all copies of the message. To contact us directly, send to QUANTIL, INC. at 1919 S Bascom Ave #600, Campbell, CA 95008, or visit our website at www.quantil.com<http://www.quantil.com>.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Bin Ni
>>> VP of Engineering
>>>
>>> Connecting users with content...it's that simple.
>>>
>>> Office: +1-888-847-9851
>>>
>>>
>>>
>>>
>>> The information contained in this email may be confidential and/or legally privileged. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please reply to the sender and destroy all copies of the message. To contact us directly, send to QUANTIL, INC. at 1919 S Bascom Ave #600, Campbell, CA 95008, or visit our website at www.quantil.com<http://www.quantil.com>.
>
>
>
> --
>
> Bin Ni
> VP of Engineering
>
> Connecting users with content...it's that simple.
>
> Office: +1-888-847-9851
>
>
>
>
> The information contained in this email may be confidential and/or legally privileged. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please reply to the sender and destroy all copies of the message. To contact us directly, send to QUANTIL, INC. at 1919 S Bascom Ave #600, Campbell, CA 95008, or visit our website at www.quantil.com<http://www.quantil.com>.


--

Bin Ni
VP of Engineering
[Image removed by sender. Quantil]

Connecting users with content...it's that simple.

Office: +1-888-847-9851<tel:(888)%20847-9851>

[Image removed by sender. Tweeter]<https://twitter.com/Team_Quantil>  [Image removed by sender. Google Plus] <https://plus.google.com/+Quantil_team/>   [Image removed by sender. Linked In] <https://www.linkedin.com/company/quantil>

The information contained in this email may be confidential and/or legally privileged. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please reply to the sender and destroy all copies of the message. To contact us directly, send to QUANTIL, INC. at 1919 S Bascom Ave #600, Campbell, CA 95008<https://maps.google.com/?q=1919+S+Bascom+Ave+%23600,+Campbell,+CA+95008&entry=gmail&source=g>, or visit our website at www.quantil.com.<https://www.quantil.com/>