[Paper Review] WNetKAT: A Weighted SDN Programming and Verification Language
WNetKAT is a novel network programming and verification language that extends NetKAT with weighted semantics to model bandwidth, latency, and cost constraints in SDNs. It enables formal reasoning about capacity-aware reachability, quality-of-service, and service chains, and proves decidability of the emptiness problem (equivalence to zero), despite undecidability of full equivalence due to connections with weighted finite automata theory.
Programmability and verifiability lie at the heart of the software-defined networking paradigm. While OpenFlow and its match-action concept provide primitive operations to manipulate hardware configurations, over the last years, several more expressive network programming languages have been developed. This paper presents WNetKAT, the first network programming language accounting for the fact that networks are inherently weighted, and communications subject to capacity constraints (e.g., in terms of bandwidth) and costs (e.g., latency or monetary costs). WNetKAT is based on a syntactic and semantic extension of the NetKAT algebra. We demonstrate several relevant applications for WNetKAT, including cost- and capacity-aware reachability, as well as quality-of-service and fairness aspects. These applications do not only apply to classic, splittable and unsplittable (s; t)-flows, but also generalize to more complex network functions and service chains. For example, WNetKAT allows to model flows which need to traverse certain waypoint functions, which may change the traffic rate. This paper also shows the relation between the equivalence problem of WNetKAT and the equivalence problem of the weighted finite automata, which implies undecidability of the former. However, this paper also succeeds to prove the decidability of another useful problem, which is sufficient in many practical scnearios: whether an expression equals to 0. Moreover, we initiate the discussion of decidable subsets of the whole language.
Motivation & Objective
- To address the lack of formal languages for modeling weighted network properties such as bandwidth, latency, and monetary costs in SDN.
- To extend NetKAT with algebraic constructs that support weighted operations, including flow splitting, rate changes, and waypointing through virtualized network functions.
- To enable formal verification of network policies involving capacity constraints and cost-aware routing.
- To analyze the decidability of key verification problems, especially equivalence and emptiness, in the weighted setting.
- To explore decidable subsets of WNetKAT, particularly focusing on emptiness, for practical deployment.
Proposed method
- Extends NetKAT's algebraic foundation with weighted operations using semirings and bimonoids, specifically the tropical semiring and min-plus algebra.
- Introduces weighted automata models over semirings to represent WNetKAT expressions, enabling formal semantics and verification.
- Uses the correspondence between WNetKAT equivalence and weighted finite automaton (WFA) equivalence to analyze decidability.
- Employs compilation techniques to map WNetKAT expressions to OpenFlow-compatible flow tables using lookup tables and group tables for stateful operations.
- Leverages existing OpenFlow features such as group tables, counters, and meters to implement switch variables and stateful logic.
- Identifies unambiguous subsets of WNetKAT as a path toward decidability of equivalence, inspired by results on unambiguous automata.
Experimental results
Research questions
- RQ1Can a network programming language formally model capacity and cost constraints inherent in real-world networks?
- RQ2Is the equivalence problem for weighted network expressions decidable, and if not, what useful subproblems are decidable?
- RQ3How can WNetKAT express complex network functions such as service chains with rate-changing middleboxes?
- RQ4Can WNetKAT be compiled to existing SDN platforms like OpenFlow while preserving semantics?
- RQ5What subsets of WNetKAT allow for decidable verification, especially emptiness and equivalence?
Key findings
- The equivalence problem for WNetKAT expressions is undecidable, as it reduces to the equivalence problem of weighted finite automata over general semirings.
- The emptiness problem—determining whether a WNetKAT expression evaluates to zero—is decidable, as it corresponds to emptiness of the corresponding weighted automaton.
- Decidability of emptiness holds over key structures like the tropical semiring and min-plus bimonoid, which are used to model capacity and cost.
- WNetKAT supports modeling of complex network functions such as waypointing and rate-changing middleboxes (e.g., firewalls, WAN optimizers) in service chains.
- The language enables formal reasoning about splitable and unsplittable flows under capacity and cost constraints, generalizing reachability and QoS analysis.
- Compilation of WNetKAT to OpenFlow is feasible using existing features like lookup tables, group tables, and counters, enabling practical deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.