The Stable Paths Problem and Interdomain Routing (BGP) #
The Stable Paths Problem (SPP) models policy-based interdomain routing in the Border Gateway
Protocol (BGP) ([GSW02]; [FSS07], Chapter 14).
A finite collection of autonomous systems (ASes) forms an undirected graph G with a distinguished
destination d. Each AS u specifies a set of permitted simple paths from u to d and a ranking
function rank u : Option (List V) → ℕ that places no path (none) strictly below every permitted
path and strictly orders permitted paths that use distinct next hops.
A path assignment π : V → Option (List V) is stable (SPP.IsStable) when d selects [d]
and every other AS u selects the highest-ranked permitted path u :: q extending a neighbor's
assigned path π w = some q (or none if no neighbor offers a permitted path). Equivalently,
stability is a fixed point of per-node best-response path selection
(SPP.isStable_iff_bestResponse).
A dispute wheel (DisputeWheel) is a cyclic preference conflict among ASes u₀, …, u_{k-1}
with permitted pivot paths Rᵢ and nonempty rim prefixes Qᵢ such that each uᵢ permits
Qᵢ ++ R_{i+1} and strictly prefers Qᵢ ++ R_{i+1} to Rᵢ.
Main definitions #
Cslib.GameTheory.InterdomainRouting.IsSimplePath: a loopless path of adjacent vertices between two endpoints in aSimpleGraph.Cslib.GameTheory.InterdomainRouting.SPP: an instance of the Stable Paths Problem.Cslib.GameTheory.InterdomainRouting.SPP.IsChoice: paths available to an AS under an assignment.Cslib.GameTheory.InterdomainRouting.SPP.IsStable: a stable path assignment (pure Nash equilibrium of BGP path selection).Cslib.GameTheory.InterdomainRouting.DisputeWheel: a cyclic preference conflict in anSPP.Cslib.GameTheory.InterdomainRouting.SPP.bestResponse,SPP.run,IsFair: asynchronous per-node atomic best-response BGP dynamics ([FSS07], Chapter 14) under a fair activation schedule.Cslib.GameTheory.InterdomainRouting.badGadget: the classic 4-node (BAD GADGET) instance with a dispute wheel and no stable path assignment.Cslib.GameTheory.InterdomainRouting.disagree: the classic 3-node (DISAGREE) instance with a dispute wheel and two distinct stable path assignments.
Main results #
Cslib.GameTheory.InterdomainRouting.SPP.exists_isStable_of_isEmpty_disputeWheel: Griffin–Shepherd–Wilfong existence ([GSW02]): if anSPPhas no dispute wheel, then a stable path assignment exists.Cslib.GameTheory.InterdomainRouting.SPP.nonempty_disputeWheel_of_isStable_neandCslib.GameTheory.InterdomainRouting.SPP.existsUnique_isStable_of_isEmpty_disputeWheel: Griffin–Shepherd–Wilfong uniqueness ([GSW02]): two distinct stable path assignments yield an explicit dispute wheel, so absence of a dispute wheel implies a unique stable path assignment.Cslib.GameTheory.InterdomainRouting.SPP.exists_converges_of_isEmpty_disputeWheel: Griffin–Shepherd–Wilfong safety ([GSW02]; atomic best-response model of [FSS07], Chapter 14): without a dispute wheel, asynchronous per-node atomic best-response dynamics from the initial destination-only state converge under every fair activation schedule to the unique stable path assignment.Cslib.GameTheory.InterdomainRouting.not_exists_isStable_badGadget:badGadgethas no stable path assignment.Cslib.GameTheory.InterdomainRouting.exists_two_isStable_disagree:disagreehas two distinct stable path assignments.
References #
Simple paths in a SimpleGraph #
A simple path from u to v in G, represented as its nonempty duplicate-free vertex list
starting at u, ending at v, with consecutive vertices adjacent in G.
An instance of the Stable Paths Problem ([GSW02]): a finite undirected
graph of autonomous systems, a distinguished destination dest, per-AS permitted simple paths to
dest, and per-AS preference rankings (0 for no path none; higher is preferred) satisfying
GSW strictness (distinct next hops at a node receive distinct ranks).
- graph : SimpleGraph V
The undirected peering graph of autonomous systems.
- dest : V
The distinguished destination autonomous system.
Permitted simple paths from each AS to
dest.- permitted_isSimplePath (u : V) (p : List V) : self.permitted u p → IsSimplePath self.graph u self.dest p
The trivial one-vertex path
[dest]is permitted at the destination.Preference ranking (
0fornone; higher rank means strictly more preferred).The empty route
nonehas rank0.Every permitted path is strictly preferred to
none.- strict (u : V) (p₁ p₂ : List V) : self.permitted u p₁ → self.permitted u p₂ → self.rank u (some p₁) = self.rank u (some p₂) → p₁.tail.head? = p₂.tail.head?
Strictness: equal-ranked permitted paths at
umust have the same next hop.
Every permitted path at u ≠ dest has at least two vertices, with the second adjacent to
u.
An option o is an available choice for u under path assignment π: either none (no
route), or some (u :: q) permitted at u extending some neighbor w's assigned route π w.
A path assignment π is stable if dest selects [dest] and every other AS selects a
highest-ranked path among its available choices under π.
In a stable assignment, every assigned route some p is permitted at its node.
Dispute wheels #
A dispute wheel in an SPP instance ([GSW02];
[FSS07], Chapter 14): a cyclic list of size > 0 autonomous systems
node i, permitted pivot paths pivot i, and nonempty rim prefixes rim i such that each
node i permits rim i ++ pivot (next i) and strictly prefers it to pivot i.
- size : ℕ
Number of spokes in the dispute wheel.
A dispute wheel has at least one spoke (in fact at least two; see
two_le_size).The pivot autonomous system at each spoke.
The pivot path at each spoke, permitted at
node i.Every rim prefix is nonempty.
Each pivot path is permitted at its spoke node.
- prefers (i : Fin self.size) : S.rank (self.node i) (some (self.pivot i)) < S.rank (self.node i) (some (self.rim i ++ self.pivot ⟨(↑i + 1) % self.size, ⋯⟩))
Each spoke node strictly prefers its rim-plus-next-pivot path over its own pivot path.
Cyclic successor index around a dispute wheel.
Every spoke node of a dispute wheel differs from the destination.
Adjacent spoke nodes around a dispute wheel are distinct.
Every dispute wheel has at least two spokes.
Cycle extraction helper (reusing Cslib.FunctionalGraph) #
Griffin–Shepherd–Wilfong uniqueness #
Griffin–Shepherd–Wilfong uniqueness (contrapositive) ([GSW02]): any two distinct stable path assignments yield a dispute wheel.
Without a dispute wheel, an SPP has at most one stable path assignment.
Griffin–Shepherd–Wilfong existence and fair best-response convergence (safety) #
Griffin–Shepherd–Wilfong existence ([GSW02]): if an SPP instance has
no dispute wheel, then it admits a stable path assignment.
Griffin–Shepherd–Wilfong theorem ([GSW02]): if an SPP instance has no
dispute wheel, then it admits a unique stable path assignment.
Asynchronous best-response dynamics and safety #
The best-response path choice of node u given current assignment π. For u = dest this is
always some [dest]; for u ≠ dest it is a rank-maximizing available choice (unique whenever
neighbors hold routes starting at themselves).
A path assignment is stable if and only if it is a fixed point of bestResponse.
The standard initial assignment: dest advertises [dest] and all other ASes have none.
Asynchronous best-response execution along activation schedule sched, starting from π₀.
This models asynchronous per-node atomic best-response activation ([FSS07],
Chapter 14), rather than the asynchronous link-queue message-passing protocol (SPVP) of
[GSW02].
An activation schedule is fair if every AS is activated infinitely often.
Griffin–Shepherd–Wilfong safety ([GSW02], proved here for the
asynchronous per-node atomic best-response activation model SPP.run of
[FSS07], Chapter 14, rather than FIFO link-queue SPVP): if an SPP
instance has no dispute wheel, then asynchronous best-response dynamics from initAssignment
converge under every fair activation schedule to the unique stable path assignment.
Classic counterexamples: BAD GADGET and DISAGREE #
Explicit 3-spoke dispute wheel in badGadget.
The classic 3-node DISAGREE instance ([GSW02]): destination 0, with
nodes 1 and 2 each preferring to route through the other (1 → 2 → 0 over 1 → 0, and
2 → 1 → 0 over 2 → 0).
Explicit 2-spoke dispute wheel in disagree.