abstractions for network update
play

Abstractions for Network Update Cole Schlesinger Nate Foster - PowerPoint PPT Presentation

Abstractions for Network Update Cole Schlesinger Nate Foster Jennifer Rexford Mark Reitblatt David Walker At 12:47 AM PDT on April 21st, a network change was performed as part of our normal scaling activities... During the change, one of


  1. Abstractions for Network Update Cole Schlesinger Nate Foster Jennifer Rexford Mark Reitblatt David Walker

  2. At 12:47 AM PDT on April 21st, a network change was performed as part of our normal scaling activities... During the change, one of the steps is to shift traffic off of one of the redundant routers... The traffic shift was executed incorrectly and the traffic was routed onto the lower capacity redundant network. This led to a “re-mirroring storm”... During this re-mirroring storm, the volume of connection attempts was extremely high and nodes began to fail, resulting in more volumes left needing to re-mirror. This added more requests to the re-mirroring storm... The trigger for this event was a network configuration change .

  3. Network Updates OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch Reasons Common Problems • Routine maintenance • Lost packets • Unexpected failure • Broken connections • Tra ffi c engineering • Forwarding loops • Fine-grained security • Security vulnerabilities

  4. Prior Work

  5. Kinetic: Abstractions for Network Update Main Challenge • The network is a distributed system • Can only update one element at a time OpenFlow Switch OpenFlow Switch Kinetic Approach OpenFlow Switch • Provide programmers with abstractions for updating the whole network at once OpenFlow Switch OpenFlow Switch OpenFlow Switch update(config, ¡topo) • Design semantics to ensure “reasonable” behavior • Engineer e ffi cient implementation mechanisms - Compiler constructs low-level update protocols - Automatically applies optimizations

  6. Example: Distributed Access Control Security Policy Application Controller Src Tra ffi c Action F1 Web Allow OpenFlow Switch Non-web Drop I F2 Any Allow OpenFlow Switch OpenFlow Switch F3 OpenFlow Switch Tra ffi c Con fi guration A Con fi guration B ? Process black-hat tra ffi c on F1 Process black-hat tra ffi c on {F1,F2} Process white-hat tra ffi c on {F2,F3} Process white-hat tra ffi c on F3

  7. Update Semantics Atomic Updates • Seem sensible... • but costly to implement... OpenFlow Switch OpenFlow Switch • and di ffi cult to reason about, due to OpenFlow Switch behavior on in- fl ight packets OpenFlow Switch OpenFlow Switch Per-Packet Consistent Updates OpenFlow Switch Every packet processed with old or new con fi guration, but not a mixture of the two Per-Flow Consistent Updates Every set of related packets processed with old or new con fi guration, but not a mixture of the two

  8. Per-Packet Consistency, Formally Global Queue Update Con fi guration u h C, Q i � ! h C 0 , Q 0 i Queues • Keep track of packets waiting to be processed at each location • Record the full processing history of each packet as a trace De fi nition (Per-Packet Consistency) An update us is per-packet consistent if for every Q ′ and t such that ! ? h C 2 , Q 0 i us h C 1 , Q i and t ∈ Q ′ , there exist Q i and Q ′′ such that � ! ? h C 1 , Q 00 i ! ? h C 2 , Q 00 i h C 1 , Q i i � or and t ∈ Q ′′ . h C 2 , Q i i �

  9. Properties Trace: sequence of port-packet pairs Property: pre fi x-closed set of traces Satisfaction: • : every trace in Q an element of P Q | = P • : every queue generated by C satis fi es P C | = P De fi nition (Universal Property Preservation) An update us is universal property preserving if for all properties P such that and and all executions C 1 | C 2 | = P = P Q 0 | ! ? h C 2 , Q 0 i us h C 1 , Q i � we have that . = P Theorem An update us is per-packet consistent if and only if it is universal property preserving.

  10. Consistent Update Classes One-Touch Update • Packets traverse updated region of the network at most once • Example: Loop-free single switch update • Example: Ingress port update Unobservable Update • Set of traces generated by new con fi guration unchanged • Example: Internal switch update Theorem (Composition Principle) The composition of an unobservable update and a per-packet consistent update is a per-packet consistent update.

  11. Implementation Architecture Controller Control Plane Control Plane Data Plane Data Plane Control Plane Control Plane Data Plane Data Plane

  12. Implementation Two-phase commit • Construct versioned internal and edge con fi gurations F r e n e • Phase 1: Install internal con fi guration t i c A p p l i c a t i o n • Phase 2: Install edge con fi guration update(con fi g,topo) Pure Extension Frenetic Run-Time System • Update strictly adds paths Calculate rules, generate messsages Pure Retraction • Update strictly removes paths NOX Controller Sub-space update Raw OpenFlow • Update modi fi es a small number of paths control messages OpenFlow Switch OpenFlow Switch Sub-topology update • Update a ff ects a small number of switches OpenFlow Switch

  13. The Abstractions at Work # ¡Configuration ¡A I_configA ¡= ¡[Rule({IN_PORT:1},[forward(5)]), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({IN_PORT:2},[forward(5)]), # ¡Configuration ¡B ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({IN_PORT:3},[forward(6)]), I_configB ¡= ¡[Rule({IN_PORT:1},[forward(5)]), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({IN_PORT:4},[forward(7)])]) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({IN_PORT:2},[forward(6)]), F1_configA ¡= ¡[Rule({TP_DST:80}, ¡[forward(2)]), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({IN_PORT:3},[forward(7)]), OpenFlow Switch OpenFlow Switch ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({TP_DST:22}, ¡[])]) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({IN_PORT:4},[forward(7)])]) F2_configA ¡= ¡[Rule({},[forward(2)])] OpenFlow Switch F1_configB ¡= ¡[Rule({TP_DST:80}, ¡[forward(2)]), F3_configA ¡= ¡[Rule({},[forward(2)])] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({TP_DST:22}, ¡[])]) configA ¡= ¡{I:SwitchConfiguration(I_configA), F2_configB ¡= ¡[Rule({TP_DST:80}, ¡[forward(2)]), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡F1:SwitchConfiguration(F1_configA), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Rule({TP_DST:22}, ¡[])]) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡F2:SwitchConfiguration(F2_configA), OpenFlow Switch OpenFlow Switch F3_configB ¡= ¡[Rule({},[forward(2)])] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡F3:SwitchConfiguration(F3_configA)} configB ¡= ¡{I:SwitchConfiguration(I_configB), OpenFlow Switch ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡F1:SwitchConfiguration(F1_configB), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡F2:SwitchConfiguration(F2_configB), ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡F3:SwitchConfiguration(F3_configB)} Other Examples # ¡Main ¡Function • Point-to-point routing topo ¡= ¡NXTopo(...) per_packet_update(configA, ¡topo) • Multicast routing ...wait ¡for ¡traffic ¡load ¡to ¡shift... • Application load balancer per_packet_update(configB, ¡topo)

  14. Demo OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch OpenFlow Switch

  15. Formal Veri fi cation Universal Preservation Corollary OpenFlow Switch OpenFlow Switch To verify that a property is invariant, OpenFlow Switch simply check that the old and new con fi gurations satisfy it Kripke Structure CTL Property Properties • Connectivity • Loop freedom Model Checker • Blackhole freedom • Access control • Waypointing ✓ ✘ • Totality

  16. Per-Flow Consistency Use Cases • In-order delivery OpenFlow Switch • Load balancer Per-Packet Consistent Update Every set of related packets processed with old or new con fi guration, but not a mixture of the two. OpenFlow Switch Main challenge • Need to identify active fl ows Implementation mechanisms • Switch rules with timeouts • Wildcard cloning • End-host feedback

  17. Ongoing Work Other abstractions • Loop-free updates • Destination-preserving updates Update Synthesis • Programmer speci fi es an invariant • Compiler generates an update that preserves it Better responsiveness • Act quickly when failures occur • Monotonic updates? Enhanced fault tolerance • Use compiler to “harden” con fi gurations • Pre-load a backup Leverage end hosts • Help identify active fl ows • Consistent source routing?

  18. Thank You! Collaborators Shrutarshi Basu (Cornell) Mike Freedman (Princeton) Rob Harrison (USMA West Point) Chris Monsanto (Princeton) Mark Reitblatt (Cornell) Gün Sirer (Cornell) Cole Schlesinger (Princeton) http://frenetic-lang.org Alec Story (Cornell) Jen Rexford (Princeton) Dave Walker (Princeton) Funding

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend