A fast compiler for NetKAT
Authors:
Open Access
- 29 August 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 328-341
Abstract
High-level programming languages play a key role in a growing number of networking platforms, streamlining application development and enabling precise formal reasoning about network behavior. Unfortunately, current compilers only handle "local" programs that specify behavior in terms of hop-by-hop forwarding behavior, or modest extensions such as simple paths. To encode richer "global" behaviors, programmers must add extra state -- something that is tricky to get right and makes programs harder to write and maintain. Making matters worse, existing compilers can take tens of minutes to generate the forwarding state for the network, even on relatively small inputs. This forces programmers to waste time working around performance issues or even revert to using hardware-level APIs. This paper presents a new compiler for the NetKAT language that handles rich features including regular paths and virtual networks, and yet is several orders of magnitude faster than previous compilers. The compiler uses symbolic automata to calculate the extra state needed to implement "global" programs, and an intermediate representation based on binary decision diagrams to dramatically improve performance. We describe the design and implementation of three essential compiler stages: from virtual programs (which specify behavior in terms of virtual topologies) to global programs (which specify network-wide behavior in terms of physical topologies), from global programs to local programs (which specify behavior in terms of single-switch behavior), and from local programs to hardware-level forwarding tables. We present results from experiments on real-world benchmarks that quantify performance in terms of compilation time and forwarding table size.Keywords
All Related Versions
Funding Information
- National Science Foundation (CNS-1111698, CNS-1413972, CNS-1413985, CCF-1408745, CCF-1422046, and CCF-1253165)
- Office of Naval Research (N00014-12-1-0757 and N00014-15- 1-2177)
This publication has 27 references indexed in Scilit:
- Maple2013
- Machine-verified network controllers2013
- Hierarchical policies for software defined networks2012
- Splendid isolation2012
- Frenetic2011
- FreneticACM SIGPLAN Notices, 2011
- A scalable, commodity data center network architectureACM SIGCOMM Computer Communication Review, 2008
- OpenFlowACM SIGCOMM Computer Communication Review, 2008
- Kleene algebra with testsACM Transactions on Programming Languages and Systems, 1997
- Partial derivatives of regular expressions and finite automaton constructionsTheoretical Computer Science, 1996