[Paper Review] Merlin: A Language for Provisioning Network Resources
Merlin is a high-level, declarative programming language for specifying end-to-end network policies in software-defined networks, enabling administrators to express packet classification, forwarding paths, transformations, and bandwidth constraints. The system compiles these policies into efficient, constraint-based configurations using mixed-integer programming and finite automata, while supporting dynamic adaptation via negotiators that verify policy modifications without violating global constraints—demonstrating scalability and expressiveness on real-world topologies.
This paper presents Merlin, a new framework for managing resources in software-defined networks. With Merlin, administrators express high-level policies using programs in a declarative language. The language includes logical predicates to identify sets of packets, regular expressions to encode forwarding paths, and arithmetic formulas to specify bandwidth constraints. The Merlin compiler uses a combination of advanced techniques to translate these policies into code that can be executed on network elements including a constraint solver that allocates bandwidth using parameterizable heuristics. To facilitate dynamic adaptation, Merlin provides mechanisms for delegating control of sub-policies and for verifying that modifications made to sub-policies do not violate global constraints. Experiments demonstrate the expressiveness and scalability of Merlin on real-world topologies and applications. Overall, Merlin simplifies network administration by providing high-level abstractions for specifying network policies and scalable infrastructure for enforcing them.
Motivation & Objective
- To address the gap in existing SDN APIs that lack expressive power for managing complex, network-wide policies involving bandwidth, middleboxes, and rich packet transformations.
- To provide a unified, high-level programming interface that abstracts over switches, middleboxes, and end hosts, simplifying network administration.
- To enable dynamic policy adaptation through negotiators that verify modifications while preserving global constraints.
- To design a compiler that translates high-level policies into efficient, correct low-level configurations using advanced compilation techniques.
- To demonstrate the expressiveness and scalability of the approach through real-world network topologies and performance evaluation.
Proposed method
- The Merlin language uses a declarative syntax with logical predicates for packet classification, regular expressions for path specification, and Presburger arithmetic for bandwidth constraints.
- The compiler translates policies into a unified logical topology that models both network structure and policy constraints.
- For bandwidth-constrained traffic, it formulates a mixed-integer program to solve a variant of the multi-commodity flow problem.
- For unconstrained traffic, it uses finite automata and regular expression properties to efficiently generate forwarding trees.
- The system employs a constraint solver with parameterizable heuristics to allocate bandwidth while respecting global limits.
- Runtime negotiators enable dynamic adaptation by verifying policy modifications (e.g., bandwidth changes, path updates) and ensuring no violation of global constraints.
Experimental results
Research questions
- RQ1How can a high-level language express rich network policies that include packet classification, forwarding paths, transformations, and bandwidth constraints in a unified way?
- RQ2What compilation techniques can efficiently translate high-level policies into correct, scalable low-level configurations across diverse network elements?
- RQ3How can dynamic policy updates be safely managed without violating global network constraints?
- RQ4What is the performance overhead of verifying policy modifications in a distributed, policy-delegated environment?
- RQ5Can the system scale to real-world datacenter and enterprise network topologies while maintaining correctness and responsiveness?
Key findings
- The Merlin compiler successfully provisions and configures real-world datacenter and enterprise networks with low compilation latency, demonstrating scalability.
- Policy verification via negotiators completes in milliseconds for tens of thousands of statements and allocations, enabling rapid adaptation.
- Regular expression verification scales quadratically and takes about 3.5 seconds for complex expressions with 1,000 nodes, but such complexity is unlikely in realistic deployments.
- Dynamic adaptation using AIMD and MMFS negotiators enables quick response to changing traffic demands, as shown in throughput traces over time.
- Merlin improves application performance in data analytics and replication systems by enforcing bandwidth guarantees and efficient path allocation.
- The system achieves correct, globally consistent configurations through constraint solving and formal verification of delegated policy modifications.
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.