Re: [Idr] Bug in RFC 7911 (add-paths) and tie-breaking
Jeffrey Haas <jhaas@pfrc.org> Sat, 26 June 2021 14:23 UTC
Return-Path: <jhaas@slice.pfrc.org>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 863903A15FF for <idr@ietfa.amsl.com>; Sat, 26 Jun 2021 07:23:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 MKRYOigMb7qs for <idr@ietfa.amsl.com>; Sat, 26 Jun 2021 07:23:53 -0700 (PDT)
Received: from slice.pfrc.org (slice.pfrc.org [67.207.130.108]) by ietfa.amsl.com (Postfix) with ESMTP id E9A0A3A15FB for <idr@ietf.org>; Sat, 26 Jun 2021 07:23:52 -0700 (PDT)
Received: by slice.pfrc.org (Postfix, from userid 1001) id 275A31E45C; Sat, 26 Jun 2021 10:49:49 -0400 (EDT)
Date: Sat, 26 Jun 2021 10:49:48 -0400
From: Jeffrey Haas <jhaas@pfrc.org>
To: John Scudder <jgs=40juniper.net@dmarc.ietf.org>
Cc: "idr@ietf. org" <idr@ietf.org>, "dwalton76@gmail.com" <dwalton76@gmail.com>
Message-ID: <20210626144948.GD14665@pfrc.org>
References: <F689CF63-236D-401D-9C8E-AC1C39CDE772@juniper.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <F689CF63-236D-401D-9C8E-AC1C39CDE772@juniper.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/y7UinAuAToaDH831fIv9Op7Mu5E>
Subject: Re: [Idr] Bug in RFC 7911 (add-paths) and tie-breaking
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jun 2021 14:23:58 -0000
On Thu, Jun 24, 2021 at 06:14:55PM +0000, John Scudder wrote: > Claudio recently pointed out a bug in RFC 7911 to the authors, and we thought we should let the WG know. The gist of the bug is that the tie-breaking process is underspecified, because it’s technically possible to receive two routes for the same destination, from the same peer, with different path-id, and with all tie-break metrics the same (all the way down to peer address). My guess — but it’s only a guess, I haven’t checked — is that implementations may mostly have chosen to prefer the first path received.[*] But the only thing we can say with confidence is “it’s underspecified and therefore implementation-dependent.” > > When I worked through this, my conclusion was that whatever option an implementation chooses should be safe, since by definition the paths are equivalent all the way down. I don’t see a way to form a loop even if every router in the network makes arbitrary — and conflicting — choices in this situation, since by definition of IGP distance, if a given router A makes an arbitrary choice, none of its neighbors when presented with the same set of routes will make a conflicting arbitrary choice, since the options are: > > - The peer is closer to both destinations, in which case it can make any choice it wants, the traffic will not loop back to A, > - The peer is further from both destinations, in which case it can make any choice it wants, the traffic will not loop back from A, > - The peer is closer to one and further from the other destination, in which case it isn’t faced with a dilemma, it will choose the closer (and the traffic won’t go back towards A). > > I guess if you’re in a network that doesn’t have IGP distances at all (maybe everything is static routed?) or if IGP distances don’t follow the usual rules of IGP “physics”, then you could create a problem. But those are pathological cases where we’d expect BGP not to work very well anyway. > > Claudio suggested that path-id would be a good final tie-break; that makes sense to me. We could do a quick update to 7911 to standardize this new tie-break, we could do a bis of 7911 to include the new tie-break, or we could just leave things as they are, relying on my argument above that says there is no strong need to standardize a tie-break since any choice is OK. IMO, path-id is a lousy thing to tie-break on. ** blows the dust off prior discussion ** https://datatracker.ietf.org/doc/html/draft-pmohapat-idr-fast-conn-restore-03 In general, when a given peer is passing along multiple paths, the case that gives us grief is when we get them from ebgp. The draft above discusses the problem nicely. If there are common scenarios where a given BGP speaker will locally originate multiple paths without having gotten them from somewhere else, I'm not currently aware of it. -- Jeff
- [Idr] Bug in RFC 7911 (add-paths) and tie-breaking John Scudder
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Gyan Mishra
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Robert Raszuk
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Jakob Heitz (jheitz)
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Jakob Heitz (jheitz)
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Gyan Mishra
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… bruno.decraene
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Claudio Jeker
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Claudio Jeker
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… bruno.decraene
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Robert Raszuk
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… bruno.decraene
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Gyan Mishra
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Robert Raszuk
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… bruno.decraene
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Robert Raszuk
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… bruno.decraene
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Claudio Jeker
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Robert Raszuk
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Jeffrey Haas
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Robert Raszuk
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… John Scudder
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Jeffrey Haas
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Jeffrey Haas
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Nick Hilliard
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Gyan Mishra
- Re: [Idr] Bug in RFC 7911 (add-paths) and tie-bre… Gyan Mishra