TL;DR
VMN (Verification for Middlebox Networks) is a new framework that brings rigorous reachability and isolation verification to modern networks containing "middleboxes" like firewalls and NATs. By leveraging the concepts of network "slices" and symmetry, VMN makes verification time independent of total network size, allowing it to scale to massive production environments even when accounting for potential hardware failures.
What Problem Does This Paper Address?
For years, network verification tools like HSA and Veriflow have helped operators ensure that "Host A cannot talk to Host B." However, these tools share a major blind spot: they assume the network is made of static routers.
In reality, about two-thirds of the boxes in enterprise networks are middleboxes (firewalls, load balancers, caches). These devices have "mutable datapaths," meaning their behavior changes based on the traffic they’ve seen in the past. For example, a stateful firewall might block an incoming packet unless it previously saw a corresponding outgoing packet. Because middleboxes can technically make a network "Turing complete," verifying them is a nightmare—standard approaches either ignore them or fail to scale.
Methods
The authors introduce VMN, which translates network topologies and middlebox behaviors into logical formulas that can be checked by an SMT solver (specifically Z3). To make this computationally feasible, they employ four key strategies:
- Limited Invariants: Instead of checking everything, they focus on reachability (can X talk to Y?) and "pipeline" invariants (does traffic pass through the firewall before the cache?).
- Abstract Middlebox Models: They don't analyze raw C++ code. Instead, they use a high-level, loop-free language to model how a box behaves (e.g., "if this is a new flow, add it to the 'established' set and forward").
- Modularization: They separate the static parts of the network (routing tables) from the mutable parts (middlebox state), using existing tools to handle the static "glue."
- Slicing and Symmetry: This is the core innovation. VMN identifies a slice—the smallest subnetwork that is "closed" under forwarding and state. If an invariant holds in the slice, it is guaranteed to hold in the entire network. They also exploit symmetry, where many hosts follow identical policies, allowing them to verify one representative group and skip the rest.
Datasets
The authors evaluated VMN using several realistic network scenarios rather than static datasets:
- Datacenter Topology: A model based on a real-world study of 10 datacenters, featuring 1,000 hosts and redundant chains of firewalls, load balancers, and Intrusion Detection/Prevention Systems (IDPS).
- Enterprise/University Network: A topology with public, private, and quarantined subnets protected by stateful firewalls.
- ISP Backbone: Modeled on the SWITCHlan backbone, incorporating peering points with IDS boxes and centralized "scrubbing" boxes for DDoS mitigation.
Key Insights and Ideas
- The "History" Problem: The behavior of a mutable datapath is a function of the entire packet history it has seen. VMN handles this by modeling state transitions as logical axioms.
- Decidability through Abstraction: By abstracting packet classification to an "oracle" (assuming the box knows what "Skype traffic" is) and keeping middlebox models loop-free, they turn an undecidable problem into a decidable one.
- Size Independence: The most striking insight is that for common network designs (which the authors categorize as "flow-parallel" or "origin-agnostic"), the complexity of verifying an invariant depends on the complexity of the policy, not the number of switches or hosts in the network.
- Failure-Awareness: Unlike previous tools, VMN checks if invariants hold even if specific links or boxes fail, which is when most reachability violations actually occur.
Key Results
- Scalability: In an ISP scenario with 250 subnets, verifying the whole network took ~6 minutes. Using slices, the median time dropped to just 0.21 seconds.
- Linear Growth: Total verification time for an entire network scales linearly with the number of "policy equivalence classes" (groups of hosts treated the same way), rather than the total number of hosts.
- Bug Detection: VMN successfully identified reachability violations caused by misconfigured firewall rules and cases where traffic bypassed security boxes during failover events.
- Efficiency: For a network with 100 different policy classes, VMN could verify all data isolation invariants in less than 4 minutes on a single-core machine.
Limitations and Future Work
- Classification Trust: VMN assumes the middlebox correctly identifies packet types. If a firewall has a bug in its deep-packet inspection (DPI) logic, VMN’s proof of "security" might be false.
- Semantic Gaps: The tool uses abstract packet classes. If two classes are mutually exclusive (e.g., a packet cannot be both "encrypted" and "plain text") but VMN doesn't know this, it might report a "false positive" violation that can't actually happen.
- Complex Modifications: VMN currently struggles with middleboxes that perform complex packet transformations (like encryption or compression), typically treating the output as a "random value" to maintain reachability checking.
- Future Directions: The authors suggest integrating VMN with software testing tools (like Buzz) to verify that the actual middlebox code matches the abstract models used for network-wide verification.
Summary updated