Formal Foundations for Trustworthy Programmable Data Planes
Time: Wed 2027-01-13 14.00
Location: F3 (Flodis), Lindstedtsvägen 26, Campus
Video link: https://kth-se.zoom.us/j/63326747088
Language: English
Subject area: Computer Science
Doctoral student: Anoud Alshnakat , Teoretisk datalogi
Opponent: Professor Sukyoung Ryu, School of Computing, Korea Advanced Institute of Science and Technology (KAIST), South Korea
Supervisor: Professor Mads Dam, Teoretisk datalogi; Associate Professor Roberto Guanciale, Teoretisk datalogi, Digital futures
QC 20261125
Abstract
Programmable data planes allow users to define how switches parse, process, and forward packets by writing programs in languages such as P4. This flexibility enables custom packet processing at line rate, but it also introduces risks such as a flawed program can silently drop packets, leak confidential data, or misforward traffic. Because such programs process millions of packets per second, a single error affects every packet that triggers the faulty code path. Ensuring the correctness and security of data-plane programs demands formal guarantees that testing alone cannot provide.
This thesis contributes to the formal foundations of programmable data planes through three papers. The first contribution is HOL4P4, the first mechanized small-step semantics for P4, capturing key features including its heapless memory model, copy-in/copy-out calling convention, extern functions, and concurrency. It is accompanied by a type system with formally proved progress and preservation, with all definitions and proofs mechanized in HOL4. The second contribution is a security type system that enforces information flow control on P4 programs. It combines security labels with interval analysis to handle data-dependent security policies, and its soundness is established through a termination-sensitive noninterference theorem. The approach is implemented in the prototype tool TAP4S. The third contribution is PolyGram, a language-agnostic framework for certifying the compilation of high-level network policies into low-level data-plane artifacts. PolyGram uses Multi-Terminal Binary Decision Diagrams as a certified intermediate representation, reducing compilation correctness to an isomorphism check. All definitions and proofs are mechanized in HOL4, and the verified procedures are exported to CakeML. Together, these contributions span from language-level formal semantics to security enforcement and certified policy compilation, providing formal foundations for trustworthy programmable data planes.