Re: Redirection to Other IP Addresses

Bin Ni <nibin@quantil.com> Sat, 27 July 2019 23:36 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 4671C120052 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 27 Jul 2019 16:36:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.651
X-Spam-Level:
X-Spam-Status: No, score=-0.651 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] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=quantil-com.20150623.gappssmtp.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 6Xpr9PzrsVsD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 27 Jul 2019 16:36:33 -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 2E62F120047 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 27 Jul 2019 16:36:33 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hrWCS-0004yj-7t for ietf-http-wg-dist@listhub.w3.org; Sat, 27 Jul 2019 23:34:04 +0000
Resent-Date: Sat, 27 Jul 2019 23:34:04 +0000
Resent-Message-Id: <E1hrWCS-0004yj-7t@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 <nibin@quantil.com>) id 1hrWCP-0004xx-Dg for ietf-http-wg@listhub.w3.org; Sat, 27 Jul 2019 23:34:01 +0000
Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <nibin@quantil.com>) id 1hrWCN-0008F4-A5 for ietf-http-wg@w3.org; Sat, 27 Jul 2019 23:34:01 +0000
Received: by mail-vs1-xe36.google.com with SMTP id 2so38429520vso.8 for <ietf-http-wg@w3.org>; Sat, 27 Jul 2019 16:33:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantil-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3TE+K8UtHS9vdJeFapaSr2XPp1vSQMW9cA5g0ntbsQ4=; b=kY3XaHSDuwBCZJYPaaKIcc8bql9Qfxtl2qErN5YNvSqy0ZWuHahFiQUClThpjHNM+Q KQGeMwL2CA6c6r3D75dVr5xksEbT7aReAZ39OwhVq9rHSa9+KCsh0CfJiRhrWUsc8VL/ 7kvmtANnMn9/5HaEpTeSL1OMdzSDN2e2jEZwcrwiXVkbD11rFi4zKIm2Q5913O8g6llV IzcJlVkLSVqr/VrQd2XW/gjPdULBufitS2JutEZVO3JgLDg632I6EhlisklkfO6zSM2N lma70tXcjJetWCeLhNzeP9yXwjCsU51HEYvK0OmDjtP4TSGPMjUq8Ar4E2/5daZwFv8w DnZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3TE+K8UtHS9vdJeFapaSr2XPp1vSQMW9cA5g0ntbsQ4=; b=VTYB2PhDN78D5pql3iX3k9gU24hUyZEYr/g7JaExL8rq7d25zUOqn3Tn5oNRhtZ6si Tst/btEzGTIBWXJdHwzpmbJUJbEaoAGKWvQIlNFHaProQSSlOhX/vTlKa0B7SJcLAf8a dhOYpqOhZDNhEaDsWwfMmHMf5IohNmPYrpu351CE51KpdV+7JKxMhFjLKBcB85SnP3iX 3Uob11LCeYS8912tWWRLGGq9MOcliIfb9qbMX6BN1fpT1I6jtIG77beWFQ+XsbdgXStM I3SmMjEjas8GMLEjS/5YyPmWmOtg4qFBRTGF0cnvQua7U+LOYoJtOtZVOIJPSHHaxy0C DBHg==
X-Gm-Message-State: APjAAAXGW6Lt2Mj/oo2OT7lKRh2opvw9mbmed3YN/eHYeldd+qkP9aZ4 Rfg6cQgbCzaj6yAiOLxxxbtXZHQ/Kba0jgeLuw1NNA==
X-Google-Smtp-Source: APXvYqyAFe0Fue4eGm0kje97vnrdoHtMCGcK0hnNcmYbB+iXXyuBh2O3gLitc32Ahaawc5D/3d46CzRl3DjIu4qEwi0=
X-Received: by 2002:a67:ea44:: with SMTP id r4mr62323678vso.86.1564270417627; Sat, 27 Jul 2019 16:33:37 -0700 (PDT)
MIME-Version: 1.0
References: <CAFifEMLOHp5=OqUXZbg_WKNQmNsTW3Bg5P4btJdX06CF=Wi2AA@mail.gmail.com> <d9b03ef6-9c8c-1eb2-7f74-014f9703475d@gmx.de> <CAJ_4DfQifbJJ7owfrgUUOqXimL-KQkb4-1f_Qp6+CMjhYC1bbg@mail.gmail.com>
In-Reply-To: <CAJ_4DfQifbJJ7owfrgUUOqXimL-KQkb4-1f_Qp6+CMjhYC1bbg@mail.gmail.com>
From: Bin Ni <nibin@quantil.com>
Date: Sat, 27 Jul 2019 16:33:26 -0700
Message-ID: <CAFifEMJPZd9CGghi_MJ1Hrcq7TJNnkV6yH-EKtrrfaQmStS4Ug@mail.gmail.com>
To: Ryan Hamilton <rch@google.com>
Cc: Julian Reschke <julian.reschke@gmx.de>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="000000000000936760058eb216f8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::e36; envelope-from=nibin@quantil.com; helo=mail-vs1-xe36.google.com
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-0.150, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1hrWCN-0008F4-A5 cbfdbe7048f73b9f277230019350d128
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Redirection to Other IP Addresses
Archived-At: <https://www.w3.org/mid/CAFifEMJPZd9CGghi_MJ1Hrcq7TJNnkV6yH-EKtrrfaQmStS4Ug@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36850
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>

Thanks Julian and Ryan for bringing alt-svc to my attention.
It seems to be too complicated for my purpose but might work.

One question I have is: what should be the server's behavior if it wants to
force the client to use the alternative service immediately?
For example, from the request URI the server knows that the client is
requesting a huge file or video.
It does not want serve it at all and want the client to issue the same
request again to another server.
Which status code should the server return? 300?

Thanks.

Bin

On Sat, Jul 27, 2019 at 2:32 PM Ryan Hamilton <rch@google.com> wrote:

> Agreed. Alt-Svc seems like a perfect fit for this case.
>
> On Fri, Jul 26, 2019 at 2:05 AM Julian Reschke <julian.reschke@gmx.de>
> wrote:
>
>> On 24.07.2019 01:32, Bin Ni wrote:
>> > Hi All,
>> >
>> > We trying to propose an addition to the HTTP protocol to support
>> > redirecting client to other IP addresses.
>> >
>> > The background is many website owners and CDN providers want the web or
>> > proxy servers to be able to participate in load balancing. For example,
>> > when the server is overloaded, redirect the request to some other
>> > servers; or based on the geo information of client IP address, send the
>> > client to a server that can provide better performance. Compare to the
>> > DNS-based load balancing, this method is more real time and more
>> > accurate. It can also take the URL, headers or other components in the
>> > HTTP request into consideration.
>> >
>> > What they can use today is the 30X redirection, which has at least the
>> > following limitations:
>> > 1. breaks the cookie, if you 30x redirect to another hostname or IP
>> address.
>> > 2. breaks https if you redirect to another IP address.
>> >
>> > We need another way of telling the client/browser to only change the IP
>> > address but keep everything else the same.
>> >
>> > We put the proposal in a google doc at:
>> >
>> https://docs.google.com/document/d/1gtF6Nq3iPe44515BfsU18dAxfCYOvQaekiezK8FEHu0/edit?usp=sharing
>> > You can post your questions and comment in the document or reply to this
>> > email.
>> > If this is not the correct way to submit a proposal, someone please
>> > point me to the right direction.
>> > Thanks!
>> > --
>> > Bin Ni
>> > www.quantil.com <http://www.quantil.com>
>>
>> Did you consider Alt-Svc? (See
>> <https://greenbytes.de/tech/webdav/rfc7838.html>)
>>
>> Best regards, Jullian
>>
>>
>>

-- 

Bin Ni
VP of Engineering
[image: Quantil]

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

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

[image: Tweeter] <https://twitter.com/Team_Quantil>  [image: Google Plus]
<https://plus.google.com/+Quantil_team/>  [image: 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/>