Re: [Spud] SPUD and anycast... ?!

Toerless Eckert <eckert@cisco.com> Fri, 14 August 2015 13:24 UTC

Return-Path: <eckert@cisco.com>
X-Original-To: spud@ietfa.amsl.com
Delivered-To: spud@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D8B941A8F34 for <spud@ietfa.amsl.com>; Fri, 14 Aug 2015 06:24:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -13.517
X-Spam-Level:
X-Spam-Status: No, score=-13.517 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, PLING_QUERY=0.994, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 xB7ZHOMZBYaj for <spud@ietfa.amsl.com>; Fri, 14 Aug 2015 06:24:02 -0700 (PDT)
Received: from rcdn-iport-9.cisco.com (rcdn-iport-9.cisco.com [173.37.86.80]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6C0871A1B49 for <spud@ietf.org>; Fri, 14 Aug 2015 06:23:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3458; q=dns/txt; s=iport; t=1439558634; x=1440768234; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=L0PNDhge+NF2N+wnM09jeqhXIT5THNYNSd3mR6v+dhY=; b=luIZQHPCTk0YteUeoLfwGXvd0+D9BwGFjxDvLoY5Be2AZvDSHo11gSGu 23nXZ/3CEwG+QJuztxvrDuTwjwkYJAhHrlhJ+0Mn90ZtmnzfSzpNZcXUS DXt8EeY8A7lC5OMGVILST8off0CRzl3J70G57WwBoUMPkoDgFtb1ihI1x o=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AQBgBP681V/5pdJa1dgxtULTy+CAEJgWsMhXcCgTgMOBQBAQEBAQEBgQqEIwEBAQMBAQEBNzQLBQsLGAklDwUTNhMbiAsIDdAiAQEBAQEBAQEBAQEBAQEBAQEBAQEBF4tThD5LB4QsBY1Ph0yMaQOaJCaEHR4zgkwBAQE
X-IronPort-AV: E=Sophos;i="5.15,678,1432598400"; d="scan'208";a="18564961"
Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by rcdn-iport-9.cisco.com with ESMTP; 14 Aug 2015 13:23:53 +0000
Received: from mcast-linux1.cisco.com (mcast-linux1.cisco.com [172.27.244.121]) by rcdn-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id t7EDNrip027777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Aug 2015 13:23:53 GMT
Received: from mcast-linux1.cisco.com (localhost.cisco.com [127.0.0.1]) by mcast-linux1.cisco.com (8.13.8/8.13.8) with ESMTP id t7EDNqG3003791; Fri, 14 Aug 2015 06:23:52 -0700
Received: (from eckert@localhost) by mcast-linux1.cisco.com (8.13.8/8.13.8/Submit) id t7EDNqv6003790; Fri, 14 Aug 2015 06:23:52 -0700
Date: Fri, 14 Aug 2015 06:23:52 -0700
From: Toerless Eckert <eckert@cisco.com>
To: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Message-ID: <20150814132352.GT1667@cisco.com>
References: <20150814070411.GQ1667@cisco.com> <07E2D217-F71A-47DD-850D-F6F21855FBC1@lurchi.franken.de> <20150814115939.GS1667@cisco.com> <A8C02E01-673A-4F3A-BE91-6F8646CC791F@lurchi.franken.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <A8C02E01-673A-4F3A-BE91-6F8646CC791F@lurchi.franken.de>
User-Agent: Mutt/1.4.2.2i
Archived-At: <http://mailarchive.ietf.org/arch/msg/spud/Q1kDh2nP8I7taC6_vXBPy4Bts08>
Cc: spud@ietf.org
Subject: Re: [Spud] SPUD and anycast... ?!
X-BeenThere: spud@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Session Protocol Underneath Datagrams <spud.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spud>, <mailto:spud-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spud/>
List-Post: <mailto:spud@ietf.org>
List-Help: <mailto:spud-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spud>, <mailto:spud-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Aug 2015 13:24:05 -0000

On Fri, Aug 14, 2015 at 03:19:00PM +0200, Michael Tuexen wrote:
> > On 14 Aug 2015, at 13:59, Toerless Eckert <eckert@cisco.com> wrote:
> > 
> > http://www.cachefly.com/2014/07/11/measuring-throughput-performance-dns-vs-tcp-anycast-routing/
> > 
> > Even beyond this easily googled example, i think that anycast TCP is
> > used quite a bit and on web application you can often just have short
> > lived TCP connection running completely on the anycast address and just

> If you want to use anycast with TCP, how do you make sure that all TCP
> packets with the same anycast destination address end up at the same host?

My paragraph meant to imply that the whole TCP connection does use anycast
in this case, and the different instances of the anycast group are deployed
so that ECMP can't happen, so the TCP connections will only fail in case
of re-routing that changes metrics to have the anycast address flip over
and that doesn't seem to a big enough problem in the deployment cases -
because the servers are far enough apart from each other for example.

> For SCTP you would only use an anycast address as the destination address of
> the first packet and then the server uses a unicast address. Since SCTP
> supports multiple IP addresses and dynamic address reconfiguration, that
> is possible. Similar things can be done with MPTCP, but not with TCP.

I thought to remembre from long time ago that the only architecturally
sane anycast assumption is that a single packet will only reach a single
anycast group member. As soon as you send two packets they may end uup
in different ones. Of course, likelyhood for this is quite small. SO all
i was saying is that it wold be lovely for SPUD to be able to support
architecturally sane use of anycast. Seems simple enough to permit it.

Cheers
    Toerless

> Best regards
> Michael
> > redirect to a unicast URL when you know it's going to be long-lived (streaming).
> > So i think the reason why this  may not have come up is because for a good amount
> > of applications, just ignoring the anycast problem leads to good enough
> > solutions, and the solutions where this would not work may not had
> > enough of a business case / working strategy to get this type of extension
> > forced into TCP.
> > 
> > Cheers
> >   toerless
> > 
> > On Fri, Aug 14, 2015 at 09:39:57AM +0200, Michael Tuexen wrote:
> >>> On 14 Aug 2015, at 09:04, Toerless Eckert <eckert@cisco.com> wrote:
> >>> 
> >>> Was there ever an extension for TCP or SCTP to "explicitly" deal with
> >>> anycast, eg: SYN to reponder anycast, SYN-ACK back from responder
> >>> unicast, but with data field indicating anycast address and nonce from
> >>> SYN, then ACK back to responder unicast ?
> >> You can do that with SCTP and dynamic address re-conifguration. Randy
> >> Stewart and myself discussed this ages ago but never wrote an ID, since
> >> we didn't see a consumer of the idea.
> >> 
> >> Best regards
> >> Michael
> >>> 
> >>> I can't remember / find anything like this right now. WOuld be
> >>> lovely for SPUD to consier including something like this. Heck,
> >>> could even do this with multicast and let initiator send ACK
> >>> back to fastest responder ;-)
> >>> 
> >>> Cheers
> >>>   Toerless
> >>> 
> >>> _______________________________________________
> >>> Spud mailing list
> >>> Spud@ietf.org
> >>> https://www.ietf.org/mailman/listinfo/spud