Re: Redirection to Other IP Addresses

Bin Ni <nibin@quantil.com> Mon, 29 July 2019 19:05 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 2E52012001A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 29 Jul 2019 12:05:57 -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 eSqPppMdoi9A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 29 Jul 2019 12:05:55 -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 2BBFC120019 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 29 Jul 2019 12:05: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 1hsAvM-0004ZC-1T for ietf-http-wg-dist@listhub.w3.org; Mon, 29 Jul 2019 19:03:08 +0000
Resent-Date: Mon, 29 Jul 2019 19:03:08 +0000
Resent-Message-Id: <E1hsAvM-0004ZC-1T@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <nibin@quantil.com>) id 1hsAvI-0004Y1-Mw for ietf-http-wg@listhub.w3.org; Mon, 29 Jul 2019 19:03:04 +0000
Received: from mail-vk1-xa32.google.com ([2607:f8b0:4864:20::a32]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <nibin@quantil.com>) id 1hsAvG-0000I2-7u for ietf-http-wg@w3.org; Mon, 29 Jul 2019 19:03:04 +0000
Received: by mail-vk1-xa32.google.com with SMTP id b64so12248880vke.13 for <ietf-http-wg@w3.org>; Mon, 29 Jul 2019 12:02:41 -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=bVZAcYP3j+d4sL1+02ONnvF7QmQMO6+SRp72GkjZsNo=; b=rWikU31amIEuEMJaClWSc0B5+razFzf32/fRB6RVcIsApy+Os2WsYAX7TZwJNLGmdI JMgzBXmcc1dLvpqqbBiZ6vKaPCIp6z76aFURiFMclV411e/lCWVS5TVCw5UIAvI+4sfW Cj9DmCmO3fj2Mj/c6DpT/er4BayJqo9EWSRB4kD3p1FziMfWQFmfWfv57GS1Yo6hcjAv mTt8Q2JIxKElb0BSKybUXAy5kB9tiSm5LF2Kaz3o/QYBLE4CoHVChmAeSZluaqkXTzpS 2II/umedTAywGbLsQZ8MllHKXwVa1tEU4RNst1IyVxwKPdXrMMNacfcAEDRP9GFiIBiW FwEQ==
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=bVZAcYP3j+d4sL1+02ONnvF7QmQMO6+SRp72GkjZsNo=; b=Q36ew1T1EDSLuYbo//byBedqkaMBsCN5s8sbx36Qw3b6Hwk2z4oktY4TjbU8AnnN5F +QR7sZjrEtB7OY2aCcxy1j8VUx3KwwbAs9cqE3R6uXQ2i9boPtzh9KzZZe/WF/5mi53L wpxZvmbr4udyJKIHWQDNkmKXxtrfIXg3ZzLHlpOJCX9wqgKIgWKhzB8Ok2T9PDXwtRaZ WZ3g3jChhg4y72ukYAHtviCnuBmmYxEGwpqWnQRIWwBusR0IZit6YxUja4KuVT+zI09B /1MjH0RhYRqJgzsxV6Q9UObGbbdUoZMYvOAl2bsmXw3CACKoobzeQ8HjKJCw+ifmG+Ym 4yBw==
X-Gm-Message-State: APjAAAWpDwNLsZSql72nfCk5PzBbcFFUkoq5lP13M8mLWeVNd3EsO72m swTTkD0Oo7YiNYuyiH0Ca/UxKvFfz/pfLU4STzMt77UHgQDfcg==
X-Google-Smtp-Source: APXvYqxyqbXAET/2jr1YLtvSsnsWXCNj9d02z0PDDAFFb4IwopM39bLO7tcl7xkMNFGBY4Lpuaz7nXGi9I4qA9RTyJc=
X-Received: by 2002:a1f:2542:: with SMTP id l63mr43080890vkl.38.1564426960462; Mon, 29 Jul 2019 12:02:40 -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> <CAFifEMJPZd9CGghi_MJ1Hrcq7TJNnkV6yH-EKtrrfaQmStS4Ug@mail.gmail.com> <b09ab672-f512-52bc-6c28-7df55919a846@gmx.de> <CAFifEM+TXtsxTt-NcH+hQomEAYZmMTW_kPxXvQB69eM4KgGf7g@mail.gmail.com> <d4d25ceb-09b5-72ff-6c36-7fdfc2796b15@gmx.de> <CAFifEMKff11nmJZgE1RGWT8qH6SKsO2tqWCF9vQsvF5=BMeQgg@mail.gmail.com> <45C10C32-DA87-4AE3-9082-DAAFD5D9C412@vcontractor.co.za> <CAHbrMsAE1ZezM5U_b2s3juc4OC0LJDOpyHfek7Pu2AaQcXpf8A@mail.gmail.com> <CAJU8_nWP63pT08X4QkUmk6KT_U98LjiFvNaTNg5ZtVMG3AFiFg@mail.gmail.com>
In-Reply-To: <CAJU8_nWP63pT08X4QkUmk6KT_U98LjiFvNaTNg5ZtVMG3AFiFg@mail.gmail.com>
From: Bin Ni <nibin@quantil.com>
Date: Mon, 29 Jul 2019 12:02:29 -0700
Message-ID: <CAFifEMLnSB5SYb_q0toTE3Xy1i56=14ki=__91Phc76HHL+ZhQ@mail.gmail.com>
To: Kyle Rose <krose@krose.org>
Cc: Ben Schwartz <bemasc@google.com>, "Oliver, Wesley, Vodacom South Africa (External)" <Wesley.Oliver@vcontractor.co.za>, Julian Reschke <julian.reschke@gmx.de>, Ryan Hamilton <rch@google.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="00000000000041c29f058ed689d2"
Received-SPF: pass client-ip=2607:f8b0:4864:20::a32; envelope-from=nibin@quantil.com; helo=mail-vk1-xa32.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=0.620, 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: titan.w3.org 1hsAvG-0000I2-7u 41d7f999b30093cd961afe320959d91b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Redirection to Other IP Addresses
Archived-At: <https://www.w3.org/mid/CAFifEMLnSB5SYb_q0toTE3Xy1i56=14ki=__91Phc76HHL+ZhQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36860
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>

Yes, what we want is a way to force a "deterministic behavior from the
client", just like all the 30X redirections today.

Let me give a few more cases in which this can be helpful:
1. A client in North America is returned a server IP in Europe by the DNS.
The server then wants to direct the client to another server in North
America for better performance.
2. The content of a website is hashed to multiple servers based on URL.
These multiple servers may not even be in the same datacenter. The DNS does
not have this information and may return any IP to any query of the
website's hostname.  Each server will calculate the hash for each request
and redirect client to the correct server that has the content. This is
quite common for CDN.

Usually this kind of redirection is applied to large objects, where the
overhead of one more round trip is negligible.

Bin

On Mon, Jul 29, 2019 at 7:48 AM Kyle Rose <krose@krose.org> wrote:

> On Mon, Jul 29, 2019 at 9:46 AM Ben Schwartz <bemasc@google.com> wrote:
>
>> On Mon, Jul 29, 2019 at 3:40 AM Oliver, Wesley, Vodacom South Africa
>> (External) <Wesley.Oliver@vcontractor.co.za> wrote:
>>
>>> Hi,
>>>
>>> I would like to suggest, that this not be a specific response code, like
>>> a
>>> 312 or 302. That it just be a response header, that gets checked by
>>> Inteligent clients, would then always check for the new address and port
>>> on which to contact the server,
>>>
>>
>> You're in luck: this is precisely the Alt-Svc header (RFC 7838).  You can
>> use this today!
>>
>> Not all clients currently implement full support for this header, but
>> hopefully that will improve over time.
>>
>
> I think the issue OP is raising is that they want some deterministic
> behavior from the client, dictated by the server. Alt-Svc doesn't do this:
> it's advisory. As a result, it can be used as an optimization, but some
> kind of load balancer for the original service is still required for
> clients that do not react to Alt-Svc (should that population be large
> enough), or when the target Alt-Svc is down. As long as that's within OP's
> constraints, I agree Alt-Svc is precisely the right solution.
>


-- 

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