Building Automated and Resilient Stateful Data-Plane Applications on Programmable Switches
C. Ji (TU Delft - Electrical Engineering, Mathematics and Computer Science)
F.A. Kuipers – Promotor (TU Delft - Electrical Engineering, Mathematics and Computer Science)
K.G. Langendoen – Copromotor (TU Delft - Electrical Engineering, Mathematics and Computer Science)
More Info
expand_more
Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.
Abstract
Communication networks have become an essential part of the critical infrastructure of modern society, supporting cloud computing, online services, financial systems, entertainment, large language model services, and many other applications. As these services and applications become increasingly latency-sensitive, distributed, and availability-critical, networks are expected to provide more than just packet forwarding services. Modern networks must support flexible packet-processing behavior, adapt quickly to changing network conditions, and maintain reliable operations.
For decades, packet forwarding was mainly performed by fixed-function routers and switches. These devices provide high performance, yet their packet processing behavior is largely constrained by the underlying hardware and vendor-specific interfaces. SDN improved network flexibility by making the control plane programmable, yet many time-sensitive decisions still require communication between the data plane and the controller. More recently, programmable data-plane devices have shifted part of this flexibility into the forwarding plane, allowing network operators to define packet-processing behaviors directly using programming languages such as P4. Such programmability enables parsing custom headers, implementing match-action logic, and, crucially, maintaining custom stateful logic at line rate.
Among the capabilities exposed by programmable data-plane devices, operator-defined stateful packet processing is one of the most important features. While fixed-function devices have supported specific forms of stateful behavior, such as counters, meters, and protocol-specific state tables, programmable data planes allow operators to define how packets interact with locally maintained state. This enables packet-processing decisions to depend not only on the current packet, but also on flow history, network context, and other factors. As a result, programmable data-plane devices can support advanced in-network applications, including load balancing, in-band telemetry, security, and in-network computation.
However, statefulness also makes programmable data planes difficult to construct, update, and protect. A stateful data-plane application is not merely defined by the program logic, but also by the state it creates and maintains. This state may change at line rate under tight hardware constraints; thus, building practical stateful data-plane applications requires mechanisms for automation and resilience.
This thesis investigates how programmable switches can support automation and resilience for stateful data-plane applications. The core idea is that data-plane state must be managed explicitly throughout the data-plane application life cycle, so that it can be constructed, preserved, and used correctly.
The systems developed in the thesis follow three connected directions. First, the thesis examines how program construction and evolution can be simplified to reduce the manual effort required by network operators. Second, the thesis studies how stateful data-plane applications can remain available in the presence of link or device failures. Third, the thesis explores how locally maintained states can support collaborative security applications, where multiple programmable devices jointly contribute to a network-wide decision.
The contributions of this thesis show that programmable stateful packet processing requires more than exposing packet logic to operators. State management, failure handling, and application logic must be considered jointly to make stateful behavior practical in programmable data planes.