A Distributed SDN Control Plane for Consistent Policy Updates

Marco Canini, Petr Kuznetsov, Dan Levin, Stefan Schmid

Introduction

Software-Defined Networking (SDN) has revolutionized network management by decoupling the control plane, which determines routing logic, from the data plane, which handles packet forwarding. While logically centralized, a production-grade control plane must be physically distributed across multiple servers to ensure high availability and scalability. However, this distribution introduces significant challenges in maintaining network consistency during concurrent updates. If multiple controllers attempt to modify network policies simultaneously, or if a controller fails mid-update, the network may enter an inconsistent state, leading to routing loops or dropped packets.

Consistent Policy Composition (CPC)

To address these challenges, this research introduces Consistent Policy Composition (CPC). CPC is a transactional abstraction inspired by Software Transactional Memory (STM) that ensures per-packet consistency. This means that every packet traversing the network is processed entirely by a single, consistent version of the network policy—either the old policy or the new one—but never a mixture of both.

System model and the Consistent Policy Composition (CPC) abstraction showing equivalence between concurrent and sequential updates.

The authors model the SDN data plane as a shared-memory data structure where controllers act as read/write processes and packets function as read-only transactions. As shown in the figure above, the goal is to ensure that concurrent updates from multiple controllers ($p_1, p_2, p_3$) are equivalent to a sequential execution, maintaining the integrity of the network's forwarding logic even under failure conditions.

Algorithmic Approaches

The paper proposes two primary algorithms to implement the CPC abstraction:

  1. FixTag: A wait-free algorithm designed for maximum resilience. Controllers directly apply updates and resolve conflicts dynamically. While it tolerates any number of failures, it suffers from high tag complexity. It assigns unique tags to every possible forwarding path, requiring a number of packet header bits that scales linearly with the number of policies ($O(P)$), which is often impractical for real-world hardware.
  2. ReuseTag: An $f$-resilient algorithm that tolerates up to $f$ controller failures. It utilizes a replicated state machine to establish a total order for updates and relies on a network "oracle" to detect when old policies are no longer in use. This allows the system to safely recycle tags, significantly reducing overhead.

Key Insights and Results

A central contribution of this work is the formalization of the relationship between fault tolerance and tag complexity. The authors mathematically prove a strict lower bound: to tolerate $f$ crashing controllers, a network must have at least $f+2$ available tags.

The ReuseTag algorithm is shown to be strictly optimal, as it achieves $f$-resilience using exactly $f+2$ tags. The paper also demonstrates that consistent updates are fundamentally impossible without hardware support for atomic read-modify-write operations on switch ports.

Conclusion and Future Work

By framing SDN control as a distributed computing problem, this research provides a rigorous foundation for building fault-tolerant networks. While ReuseTag offers optimal tag efficiency, its reliance on serialization limits update concurrency. Future research will focus on increasing concurrency within the CPC framework and extending the model to handle more complex, non-commutative policy changes.

Summary updated

BibTeX
@misc{canini2013distributed,
  author = {Marco Canini and Petr Kuznetsov and Dan Levin and Stefan Schmid},
  title = {{A Distributed SDN Control Plane for Consistent Policy Updates}},
  year = {2013},
  eprint = {1305.7429},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1305.7429},
}
Figure