Compiling Packet Programs to Reconfigurable Switches
Authors:
Open Access
- 1 December 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 28-35
Abstract
A critical step in P4 compilation is finding a feasible and efficient mapping of the high-level P4 source code constructs to the physical resources exposed by the underlying hardware, while meeting data and control flow dependencies in the program. In this paper, we take a new look at the algorithmic aspects of this problem, with the motivation to understand the fundamental theoretical limits and obtain better P4 pipeline embeddings, and to speed up practical P4 compilation times. We report mixed results: we find that P4 compilation is computationally intractable even in a severely relaxed formulation, and there is no hope for a tractable approximation of arbitrary precision, while the good news is that, despite its inherent complexity, P4 compilation is approximable in quasi-linear time with a small constant bound even after removing most of the relaxations from the model.Keywords
This publication has 8 references indexed in Scilit:
- Composing Dataplane Programs with μP42020
- Switch Code Generation Using Program Synthesis2020
- Lyra2020
- SilkRoad2017
- Approximation and online algorithms for multidimensional bin packing: A surveyComputer Science Review, 2017
- Paxos Made Switch-yACM SIGCOMM Computer Communication Review, 2016
- HULA2016
- P4ACM SIGCOMM Computer Communication Review, 2014