SPPsolver: a SAT-based algorithm for solving any stable paths problem correctly

Wenwu Yan, Bo Hu, Weiqing Huang, Chao Ma, Xiaobin Tian, Min YuCybersecur 2025 · DOI

Abstract

Researchers have developed SPPsolver, the first algorithm capable of correctly solving any instance of the Stable Paths Problem (SPP)—a mathematical model used to predict whether Internet routing (BGP) will converge or oscillate. By transforming routing logic into a Boolean Satisfiability (SAT) problem and using optimized Binary Decision Diagrams (BDD), SPPsolver achieves 100% accuracy where previous state-of-the-art heuristics frequently failed.

Introduction

The Border Gateway Protocol (BGP) serves as the "glue" of the Internet, enabling decentralized routing across millions of networks. However, this decentralization allows individual Autonomous Systems (ASes) to set independent routing policies that may conflict. Such conflicts can lead to permanent routing oscillations, potentially causing massive network outages. To mitigate these risks, engineers employ the Stable Paths Problem (SPP) to model network interactions and determine if a stable routing state exists.

The Challenge of Heuristic Solvers

Existing tools for solving SPP, such as GREEDYMIS, are primarily heuristics. They attempt to find solutions quickly but lack a guarantee of success. These solvers frequently suffer from "false negatives," erroneously reporting a network as unsolvable due to the specific order in which nodes are processed. This lack of mathematical rigor necessitates a complete solver that can definitively determine the stability of any given network configuration.

An SPP instance (a) and its corresponding stable assignment (b).

Methodology: From Graphs to Logic

SPPsolver shifts the paradigm from iterative graph searching to formal logical methods. The core innovation lies in encoding the routing problem as a SAT instance governed by three fundamental constraints:

  1. Father-Child Constraint: A path is valid only if the preceding "parent" path in the sequence is also selected by the neighbor.
  2. Path Priority Constraint: The selection of a lower-priority path implies that all higher-priority alternatives are logically unavailable.
  3. Path Existence Constraint: Every node must select exactly one path, which may include a "null" path if no connectivity is possible.

Optimization via BDDs

Rather than employing standard SAT solvers like Z3, SPPsolver utilizes Binary Decision Diagrams (BDDs). BDDs allow for an efficient representation of the entire solution space, enabling the algorithm to identify all valid routing states in a single pass. To manage the NP-complete complexity of the problem, the authors implemented two critical optimizations:

  • Formula Simplification: Utilizing the "single clause rule" from the DPLL algorithm to prune impossible paths before the solving phase.
  • Variable Ordering: Arranging BDD variables based on network topology (distance from the origin) to minimize the size of the data structures.
Visualization of the logical pruning process used to simplify the SAT formula.

Experimental Evaluation

The authors evaluated SPPsolver using the CAIDA AS Relationships Dataset (2024), covering 1,244 instances across 57 countries, and a massive-scale CenturyLink Case Study involving over 1.2 million instances.

Key Results

  • 100% Correctness: SPPsolver successfully solved every instance tested, whereas GREEDYMIS failed on 11% and GREEDY+ failed on 70% of the same cases.
  • Exceptional Efficiency: Over 90% of instances were solved in under 0.1 seconds. In the CenturyLink study, the average verification latency was just 37ms per instance.
  • Scalability: The BDD-based approach consistently outperformed the industry-standard Z3 solver, particularly as the complexity of permitted paths increased.

Conclusion and Future Work

SPPsolver demonstrates that routing stability is best addressed as a logic-satisfaction problem. By providing a complete and efficient solver, it offers a robust tool for network operators to verify BGP configurations. Future research will explore extending this logic-based framework to analyze solution uniqueness and network robustness against specific link failures.

Summary updated

BibTeX
@article{yan2025sppsolver,
  author = {Wenwu Yan and Bo Hu and Weiqing Huang and Chao Ma and Xiaobin Tian and Min Yu},
  title = {{SPPsolver: a SAT-based algorithm for solving any stable paths problem correctly}},
  journal = {Cybersecur.},
  year = {2025},
  doi = {10.1186/s42400-025-00421-1},
}
Figure