[Paper Review] Contra: A Programmable System for Performance-aware Routing
Contra is a programmable system that compiles high-level performance-aware routing policies into per-switch P4 programs, enabling distributed, policy-compliant routing on arbitrary topologies with fast adaptation.
We present Contra, a system for performance-aware routing that can adapt to traffic changes at hardware speeds. While existing work has developed point solutions for performance-aware routing on a fixed topology (e.g., a Fattree) with a fixed routing policy (e.g., use least utilized paths), Contra can be configured to operate seamlessly over any network topology and a wide variety of sophisticated routing policies. Users of Contra write network-wide policies that rank network paths given their current performance. A compiler then analyzes such policies in conjunction with the network topology and decomposes them into switch-local P4 programs, which collectively implement a new, specialized distance-vector protocol. This protocol generates compact probes that traverse the network, gathering path metrics to optimize for the user policy dynamically. Switches respond to changing network conditions at hardware speeds by routing flowlets along the best policy-compliant paths. Our experiments show that Contra scales to large networks, and that in terms of flow completion times, it is competitive with hand-crafted systems that have been customized for specific topologies and policies.
Motivation & Objective
- Provide a general, topology-agnostic framework for performance-aware routing.
- Enable distributed, data-plane routing without centralized control.
- Ensure policy-compliant, loop-free, and stable routing that adapts quickly to metric changes.
- Offer a practical compiler that translates high-level policies into per-device P4 programs.
- Demonstrate scalability and competitiveness against hand-crafted systems.
Proposed method
- Introduce a policy language that ranks network paths using regular expressions and dynamic metrics.
- Decompose policies into isotonic subpolicies and analyze them with a product graph to ensure correctness.
- Synthesize per-device P4 programs that implement a specialized, policy-aware distance-vector protocol.
- Use periodic probes carrying policy state to gather path metrics and update routing decisions.
- Employ policy-aware flowlet switching and tagging to prevent loops and preserve policy compliance.
- Provide compilation techniques that handle both stable and changing metrics, including isotonicity analysis and probe management.
Experimental results
Research questions
- RQ1How can we support performance-aware routing on arbitrary network topologies with a unified programmable framework?
- RQ2How can policies be expressed and enforced to guarantee policy-compliant, loop-free routing in the data plane?
- RQ3What compiler techniques are needed to translate high-level policies into correct, efficient P4 implementations?
- RQ4How does Contra perform in terms of scalability and flow completion time compared to hand-crafted systems for specific topologies and policies?
- RQ5What mechanisms are necessary to handle dynamic metrics and avoid routing oscillations or loops in practice?
Key findings
- Contra can scale to large networks and achieve competitive flow completion times relative to hand-crafted systems tailored to specific topologies and policies.
- The system demonstrates generality by supporting a wide range of policies and arbitrary topologies instead of fixed topology assumptions.
- Probes, policy tagging, and flowlet switching enable fast, policy-compliant decisions implemented in programmable data planes.
- A compiler based on product graphs and policy automata decomposes non-isotonic policies into isotonic subpolicies to ensure correct propagation of metrics.
- The prototype shows that Contra is implementable on today’s programmable data planes and provides distributed, responsive routing without central coordination.
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.