Model Checking Data Flows in Concurrent Network Updates

Bernd Finkbeiner, Manuel Gieseking, Jesko Hecking-Harbusch, Ernst-Rüdiger Olderog

TL;DR

This paper introduces a novel model-checking approach to verify the correctness of data flows in software-defined networks (SDNs) during concurrent configuration updates. By extending Petri nets and developing a new temporal logic (Flow-LTL), they enable the automatic verification of critical network properties, reducing the risk of packet loss and security breaches.

What Problem Does This Paper Address?

Software-defined networking (SDN) promises more efficient network management by separating the control plane (routing decisions) from the data plane (packet forwarding). However, updating network configurations, especially concurrently, is a complex challenge. Errors during these updates can lead to severe issues like forwarding loops, dropped packets (black holes), and security vulnerabilities. Existing approaches often restrict updates to ensure consistency, which can be slow and inefficient. This paper addresses the need for a robust method to verify the correctness of data flows during these concurrent updates without such strict limitations.

Methods

The authors propose a model-checking approach that combines several key techniques:

  • Petri Nets with Transits: They extend standard Petri nets by introducing a "transit relation." This relation explicitly models how data flows move, split, and merge through transitions, which is crucial for representing packet forwarding. A single token in this extended Petri net can represent multiple data flows.
  • Flow-LTL (Linear Temporal Logic): A new temporal logic is introduced to specify properties of data flows. Flow-LTL allows for expressing requirements on both the global system behavior (like fairness) and the individual timelines of specific data flows (e.g., ensuring a flow doesn't enter a loop).
  • Reduction to Circuit Model Checking: The core of their approach involves reducing the complex verification problem of Flow-LTL on Petri nets with transits to a standard circuit model-checking problem. This reduction allows them to leverage highly efficient, state-of-the-art hardware model checkers like ABC.

Datasets

Not discussed in the paper. The paper uses synthetic examples and real-world network topologies for evaluation.

Key Insights and Ideas

  • Modeling Data Flow is Key: The paper highlights that accurately modeling the movement of data flows, not just control states, is essential for verifying network updates. Their "Petri nets with transits" provide a powerful way to do this.
  • Separate Timelines for Verification: The introduction of Flow-LTL, which allows specifying properties on individual data flow timelines, is a significant step. This enables more granular and accurate verification of complex network behaviors.
  • Leveraging Hardware Model Checkers: The reduction to circuit model checking is a crucial insight. It bridges the gap between abstract network models and practical, efficient verification tools, making the approach scalable.
  • Concurrent Updates are Verifiable: The work demonstrates that it's possible to verify network correctness during concurrent updates, moving beyond simpler, sequential update models.

Key Results

The authors implemented a prototype tool and conducted experiments on benchmark families (Switch Failure, Redundant Pipeline) and a real-world case study (Routing Update).

  • Scalability: Their approach successfully verified updates for networks with up to 10 switches and falsified updates for networks with up to 38 switches within a 30-minute time bound.
  • Effectiveness: Hardware model checking proved effective for circuits derived from their transformation, with up to 400 latches and 27,619 gates.
  • Comparison of Properties: They found that specifications like connectivity, packet coherence, and loop freedom had comparable runtimes, while drop freedom was more expensive due to its transition-based definition.

Limitations and Future Work

  • Limitations: The paper acknowledges that the model checking problem for safe Petri nets with transits has a PSPACE-hard lower bound. While their approach is efficient, it's still computationally intensive for very large networks.
  • Future Work: The authors plan to extend their work to the synthesis of concurrent updates, rather than just verification. They aim to explore Petri games for controller synthesis in asynchronous distributed processes, potentially enabling the creation of concurrent network updates without a central controller.

Summary updated

BibTeX
@inproceedings{finkbeiner2019model,
  author = {Bernd Finkbeiner and Manuel Gieseking and Jesko Hecking-Harbusch and Ernst-Rüdiger Olderog},
  title = {{Model Checking Data Flows in Concurrent Network Updates}},
  booktitle = {ATVA},
  year = {2019},
  doi = {10.1007/978-3-030-31784-3\_30},
}
Figure