Relational Network Verification

Xieyang Xu, Yifei Yuan, Zachary Kincaid, Arvind Krishnamurthy, Ratul Mahajan, David Walker, Ennan Zhai

Updating a large-scale network is like performing open-heart surgery on a marathon runner while they are mid-race. One wrong configuration—a typo in a BGP policy or an overlooked filter—can lead to massive outages, costing businesses millions. While network verification tools have improved significantly over the last decade, they suffer from a fundamental "scaling" problem: they usually look at one network snapshot at a time.

A new paper from researchers at the University of Washington, Alibaba Cloud, and Princeton University introduces Relational Network Verification, a paradigm shift that focuses on the relationship between the old and new versions of a network rather than trying to describe the entire world from scratch.

TL;DR

Relational network verification validates network changes by comparing two snapshots (pre- and post-change) using compact "delta" specifications. Their tool, Rela, uses finite state transducers to prove that intended changes occurred and—crucially—that everything else stayed the same, validating 80% of complex global backbone changes in under 20 minutes.

What Problem Does This Paper Address?

Traditional verification tools are "single-snapshot." To verify a change (e.g., moving traffic from Link A to Link B), an engineer must write a specification that describes the entire desired state of the network. In a global backbone with thousands of routers and millions of flow classes, this is nearly impossible. You have to explicitly state that every other flow in the network didn't change, which leads to massive, unwieldy specifications.

Furthermore, engineers often have "incomplete information." A team in one region might not know the exact configuration of a neighbor's routers. If they can't describe the neighbor's state perfectly, single-snapshot tools can't prove the network is correct. This leads to "collateral damage"—where a change in one area accidentally breaks traffic in another—which often goes unnoticed during manual audits.

Methods

The authors propose Rela, a system built on three main pillars:

  1. A High-Level Relational Language: Instead of describing the whole network, engineers use regular expressions to define "change zones." They use modifiers like preserve (keep it the same), replace (move traffic), add, and remove. The "no change" intent is a first-class citizen.
  2. Regular Intermediate Representation (RIR): Rela compiles these high-level specs into a formal mathematical language based on regular relations. This allows the system to reason about sets of pairs of paths (how a path in the old network relates to a path in the new one).
  3. Automata-Based Decision Procedure: The RIR is compiled into Finite State Transducers (FSTs). Verifying the network then becomes a problem of checking the equivalence of these automata. To handle the "state explosion" caused by Equal-Cost Multi-Path (ECMP) routing—where one flow might have millions of possible physical paths—Rela uses a specialized Directed Acyclic Graph (DAG) format to represent paths compactly.

Datasets

The researchers evaluated Rela using a dataset of historical, high-risk changes from a global backbone network (belonging to a large cloud provider).

  • Scale: The network contains over $10^3$ routers and $10^6$ classes of flows.
  • Scope: The dataset includes 10s of complex changes reviewed by technical committees between June 2023 and January 2024.
  • Comparison: They compared Rela’s automated results against the actual manual inspection logs and "path diffs" used by the network engineers during the original changes.

Key Insights and Ideas

  • Proportional Complexity: The size of a relational specification is proportional to the complexity of the change, not the size of the network. If you change one link, your spec stays small, even if the network has 10,000 routers.
  • The Power of "Stay the Same": By allowing engineers to simply mandate that specific traffic "stays the same," Rela eliminates the need to discover and enumerate every existing path in the network.
  • Compositionality: Rela allows users to "stitch" together specs. You can define how a sub-path changes in the middle of a route while asserting that the beginning and end of the route (which you might not even fully understand) remain untouched.
  • Error Localization: Because Rela checks specific sub-specifications, it can tell an engineer exactly which part of their intent failed (e.g., "The traffic moved as requested, but you caused collateral damage to T2 traffic").

Key Results

  • Compactness: 93% of the high-risk changes in the dataset could be described with fewer than 10 terms in the Rela language.
  • Efficiency: Half of the changes were validated in just 93 seconds. 80% were finished within 20 minutes. This is a massive improvement over manual audits, which can take weeks and multiple iterations.
  • Expressiveness: Rela was able to fully specify the intended data plane changes for 97% of the cases in their real-world dataset.
  • Accuracy: In case studies, Rela caught "collateral damage" typos and configuration bugs that had previously slipped past human engineers during manual inspections.

Limitations and Future Work

  • Path Counting: Rela currently cannot reason about the number of paths. For example, it can't verify a requirement like "this flow must have no more than 128 ECMP paths" to avoid hardware limits.
  • Stateless Focus: The current implementation focuses on the data plane and stateless forwarding. The authors suggest that extending this to stateful middleboxes (like firewalls that track connection state) is a promising next step.
  • Synthesis: The authors hope to move from verification to synthesis—using these compact relational specs to automatically generate the correct device configurations, preventing errors before they even happen.

Summary updated

BibTeX
@inproceedings{xu2024relational,
  author = {Xieyang Xu and Yifei Yuan and Zachary Kincaid and Arvind Krishnamurthy and Ratul Mahajan and David Walker and Ennan Zhai},
  title = {{Relational Network Verification}},
  booktitle = {Sigcomm},
  year = {2024},
  doi = {10.1145/3651890.3672238},
}
Figure