Re: Persistent loops when mixing rtgwg-enterprise-pa-multihoming and rtgwg-dst-src-routing

Fred Baker <fredbaker.ietf@gmail.com> Fri, 28 July 2017 02:23 UTC

Return-Path: <fredbaker.ietf@gmail.com>
X-Original-To: rtgwg@ietfa.amsl.com
Delivered-To: rtgwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B5977131F03 for <rtgwg@ietfa.amsl.com>; Thu, 27 Jul 2017 19:23:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 bP6VYcJMcwmT for <rtgwg@ietfa.amsl.com>; Thu, 27 Jul 2017 19:23:46 -0700 (PDT)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34225131F0A for <rtgwg@ietf.org>; Thu, 27 Jul 2017 19:23:46 -0700 (PDT)
Received: by mail-oi0-x231.google.com with SMTP id e124so162531016oig.2 for <rtgwg@ietf.org>; Thu, 27 Jul 2017 19:23:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YUBCixvxrM3p1SLrAFTquOmT5SDtKy4/CW68aklCXKA=; b=l8OYJiILIn1Wp4C5kN2iVqpXmkLcA5mbJ784P6jWkLhyGhENPvST3SC3fSlmWNmJ2L URCw3W40sXfqHwoWZpKq3ynO0JCpRG/KWc9iUfW6rnoppK3QjyNZXD2ZjM2FoTZIqRaX 8jNGJrz5HvI3sTrzEKCdF3o5gE1PIv5wE1Xzx1bCOhCvUECpvPtYPe2PFM6jiaSa+4b9 pVaKu4f+rsuQNjU43p/cDbsKrXLkHm6Je7qnAgHb5QOK0MdmQ3fbmWk6bPRbayLoO3KX miL7VZbzGO53F4gilUszHDvaXCeqVmD+6UUEB/25gSkp5i+9ONdmKIG+kQP3EKumk9gK 4z9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YUBCixvxrM3p1SLrAFTquOmT5SDtKy4/CW68aklCXKA=; b=InYm2/2es+sijLAQG+ig1tsnFy+95kHRDS+U99A4lgdU9FWo/Xl/ELT5Dva57n0M8A WxKEjj0VPqetRqmEAdJYb4o3EYFmo8YebQD4EdSnJsQFtyi+j1H4z2jvX/maQnAwu78D sWAzwCBBp0qwtijf3NdK2wyhI1bUPFZltxFw146C9VrVetdXrpiGowqHziIiC+w2L+j6 jdZEtzo/PSZkLcF2HZQYLmjb21JAXBovpzkb8GFI/j3bVAwuaM1pt8ZnOEsM8hyVKCkr YTZXtWfdiSbnBP6QWNLzOIb1BbPFgbpH7mbkB/t3NlFaJ3PbWbq2WwAauNXveusLZEEm T+uw==
X-Gm-Message-State: AIVw111PqhMbDngEOT+321X0r2T28kx3FTADeUcUOKmfB77n4G+tMult d/wPa2NbByDHMw==
X-Received: by 10.202.94.137 with SMTP id s131mr4929183oib.74.1501208625673; Thu, 27 Jul 2017 19:23:45 -0700 (PDT)
Received: from ?IPv6:2600:8802:5600:1e::1004? ([2600:8802:5600:1e::1004]) by smtp.gmail.com with ESMTPSA id 82sm22560291oib.57.2017.07.27.19.23.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 19:23:44 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3441.0.1\))
Subject: Re: Persistent loops when mixing rtgwg-enterprise-pa-multihoming and rtgwg-dst-src-routing
From: Fred Baker <fredbaker.ietf@gmail.com>
In-Reply-To: <E2F46315-BB0F-4463-B7D1-11E0965E92B8@irif.fr>
Date: Thu, 27 Jul 2017 19:23:46 -0700
Cc: "Acee Lindem (acee)" <acee@cisco.com>, Anton Smirnov <as@cisco.com>, "rtgwg@ietf.org" <rtgwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <670146D0-A26A-4AA5-AC6C-253B81271C12@gmail.com>
References: <20170719172913.GU773745@eidolon> <D59D5469.BA187%acee@cisco.com> <BFA9B79E-65F1-4679-BBED-A1FF80CC2050@irif.fr> <D59E78D6.BA292%acee@cisco.com> <E2F46315-BB0F-4463-B7D1-11E0965E92B8@irif.fr>
To: Matthieu Boutier <boutier@irif.fr>
X-Mailer: Apple Mail (2.3441.0.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/Nlj-FEi9ZCfFg8iYAivUTjfDx8Q>
X-BeenThere: rtgwg@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Routing Area Working Group <rtgwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtgwg/>
List-Post: <mailto:rtgwg@ietf.org>
List-Help: <mailto:rtgwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jul 2017 02:23:48 -0000


> On Jul 27, 2017, at 2:06 AM, Matthieu Boutier <boutier@irif.fr> wrote:
> 
> Did you agree that:
> 
>  1. destination first give the correct behaviour as-is.
> 
>  2. source first needs extra mechanism and route duplication.

Actually, I don't. I can produce cases in which source first gives the wrong route, and in which destination first gives the wrong route. The only way I see to make doing either one first *always* gives the right result is if a small set of routes is duplicated.

The issue is when prefixes overlap. If you have sources S1 and S2, destinations D1 and D2, D1 is a more specific of D2, and D1 is advertised by S1 but not S2, and D2 is advertised by S2. If you are looking from S1, you should find S1->D1, and if you are looking from S2, you should find S2->D2. If you look destination first, and happen to be looking from S2, I think you wind up trying to find S2->D1, which doesn't exist.

Every time I get my head into this space, I have to rethink it, and the emails I wrote a few years back are unavailable to me now as I am no longer at Cisco. I need to think the source version through again. But you get the idea. I have pretty much convinced myself that you need to duplicate S2->D2 as S2->D1 but with the next hop associated with S2->D2 in order to make destination first work. There is a similar case regarding source-first lookup.

This is the reason I have suggested a PATRICIA algorithm or something like it that looks up both addresses at the same time.