hotswap correct and efficient controller upgrades for
play

HotSwap: Correct and Efficient Controller Upgrades for - PowerPoint PPT Presentation

HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Laurent Vanbever vanbever@cs.princeton.edu HotSDN August, 16 2013 Joint work with Joshua Reich, Theophilus Benson, Nate Foster and Jennifer Rexford HotSwap:


  1. HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Laurent Vanbever vanbever@cs.princeton.edu HotSDN August, 16 2013 Joint work with Joshua Reich, Theophilus Benson, Nate Foster and Jennifer Rexford

  2. HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Today’s upgrades 1 disruptive & incorrect The HotSwap system 2 record, replay, swap Scalability & correctness 3 filter & specify

  3. HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Today’s upgrades 1 disruptive & incorrect The HotSwap system record, replay, swap Scalability & correctness filter & specify

  4. As any piece of complex software, SDN controller must be frequently upgraded SDN controllers must be upgraded to fix bugs improve performance deploy new features or applications

  5. As any piece of complex software, SDN controller must be frequently upgraded SDN controller # releases # commits (over 2 years) Pox 3* 1349 Floodlight 7 2106 Ryu 15 897 Trema 33 2670 source: GitHub * Pox uses branches instead of releases

  6. As any piece of complex software, SDN controller must be frequently upgraded SDN controller # releases # commits (over 2 years) Pox 1 1349 How is it done today? Floodlight 7 2106 Ryu 15 897 Trema 33 2670 source: GitHub

  7. SDN controllers are usually upgraded by rebooting the controller on the new version

  8. SDN controllers are usually upgraded by restarting the controller on the new version During a controller restart, any network failure rule timeout diverted packet is ignored

  9. SDN controllers are usually upgraded by restarting the controller on the new version After a restart, the controller resets all network forwarding state to prevent inconsistencies leading to losses and delays recreates its state according to the current network traffic leading to bugs

  10. SDN controllers are usually upgraded by rebooting the controller on the new version After a reboot, the controller Is it really a problem? resets all network forwarding state to prevent inconsistencies leading to losses and delays recreates its state according to the current network traffic leading to bugs

  11. Restarting a controller can create network-wide disruption

  12. probes 100 lost (%) 0 0 60 time (s)

  13. We stop the controller after 15 seconds stop probes 100 lost (%) 0 0 15 60 time (s)

  14. We restart it controller after 20 seconds stop restart probes 100 lost (%) 0 0 20 60 time (s)

  15. Soon after the controller restart, the network suffered from important network-wide losses stop restart 100 probes 100 lost (%) 83 80 60 40 20 0 0 0 5 10 20 30 40 50 60 0 22 37 60 time (s)

  16. Restarting a controller can create bugs

  17. Let’s restart a controller running a stateful firewall which only allows connection initiated from the inside stateful firewall Controller Internet Host 1 Host 2 Forwarding table 10 H1 H2 fwd 05 H2 H1 fwd

  18. Let’s restart a controller running a stateful firewall which only allows connection initiated from the inside stateful firewall Controller Internet Host 1 Host 2 Forwarding table 10 H1 H2 fwd 05 H2 H1 fwd

  19. Upon restart, the controller wipes out all the forwarding entries stateful firewall Controller *drop ¡ALL* Internet Host 1 Host 2 Forwarding table 10 H1 H2 fwd 05 H2 H1 fwd

  20. Upon restart, the controller wipes out all the forwarding entries stateful firewall Controller Internet Host 1 Host 2 Forwarding table

  21. Ongoing flows for which externally originated packets are received first will get dropped by the controller stateful firewall Controller Internet Host 1 Host 2 Forwarding table

  22. Ongoing flows for which externally originated packets are received first will get dropped by the controller stateful firewall Controller Internet Host 1 Host 2 Forwarding table 15 H2 H1 drop

  23. Ongoing flows for which externally originated packets are received first will get dropped by the controller stateful firewall Restarting the controller can cause Controller allowed traffic to be blocked Internet Host 1 Host 2 Forwarding table 15 H2 H1 drop

  24. Ongoing flows for which externally originated packets are received first will get dropped by the controller stateful firewall Restarting the controller can also cause Controller forbidden traffic to be allowed Internet Host 1 Host 2 Forwarding table 15 H2 H1 drop

  25. HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Today’s upgrades disruptive & incorrect The HotSwap system 2 record, replay, swap Scalability & correctness filter & specify

  26. HotSwap warms up the upgraded controller before giving it control over the network Recreate state in the upgraded controller in a controlled fashion, guaranteeing correctness Keeping as much traffic in the network avoiding network-wide disruptions Tolerating different control and forwarding behavior between the new and old controller

  27. v1 SDN Controller OpenFlow messages Network

  28. HotSwap is a hypervisor that sits between the network and the controller v1 HotSwap Network

  29. HotSwap proceeds in four stages: record , replay , compare & replace v1 HotSwap Network

  30. In the record stage, HotSwap maintains a copy of the network state v1 Network State Network Events HotSwap Forwarding Rules v1 Network

  31. When an upgrade is initiated, HotSwap sets the upgraded controller as slave Master Slave Only the master controller can write to the network v1 v2 HotSwap Network

  32. HotSwap then replays the recorded network events against the upgraded controller Master Slave v1 v2 Network State Network Events HotSwap Forwarding Rules v1 Network

  33. During the replay, HotSwap records the forwarding rules generated by the upgraded controller Master Slave v1 v2 Network State Network Events HotSwap Forwarding Rules v1 Network Forwarding Rules v2

  34. Once the replay is completed, HotSwap computes the deltas between the initial and upgraded rules Master Slave v1 v2 Network State Network Events HotSwap Forwarding Rules v1 Δ Network Forwarding Rules v2

  35. In the replace stage, HotSwap sets the upgraded controller as master and installs the deltas Slave Master v1 v2 Network State Network Events HotSwap Δ Forwarding Rules v1 Network Forwarding Rules v2

  36. HotSwap finally removes the initial controller and re-enters the record stage Master v2 Network State Network Events HotSwap Forwarding Rules v2 Network

  37. HotSwap performs upgrade in a disruption-free manner

  38. Using HotSwap, not a single packet is lost during the upgrade probes 100 lost (%) Restart HotSwap 0 0 60 time (s)

  39. HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Today’s upgrades disruptive & incorrect The HotSwap system record, replay, swap Scalability & correctness 3 filter & specify

  40. Recording all network events does not scale

  41. Recording all network events does not scale ... but is not needed!

  42. Most stateful controllers only require some events to be replayed

  43. The number and type of events to be recorded depend on the controller category ... Event dependency Last History Yes Network-Traffic Dependency No

  44. ... whether their state depend on the actual traffic being exchanged Event dependency Last History Yes Network-Traffic Dependency No

  45. ... whether their state depend on the last network event or on an history of events Event dependency Last History Yes Network-Traffic Dependency No

  46. Event dependency Last History Yes Learning-Switch Stateful Firewall Network-Traffic Dependency No Shortest-Path Reliable Routing Routing

  47. Event dependency Last History HotSwap provides a query language to filter stream of events at record and replay time Yes Learning-Switch Stateful Firewall Network-Traffic Dependent No Shortest-Path Reliable Routing Routing

  48. What does it mean for an upgrade to be correct?

  49. When we upgrade from v1 to v2, We would like the network to behave as if v2 had been running since the beginning

  50. When we upgrade from v1 to v2, We would like the network to behave as if v2 had been running since the beginning What does it mean?

  51. When we upgrade from v1 to v2, We would like the network to behave as if v2 had been running since the beginning What does it mean? same forwarding rules? same forwarding semantic? eventual semantic consistency?

  52. same forwarding rules? same forwarding semantic? It depends ... eventual semantic consistency?

  53. HotSwap verifies if the desired correctness criteria is met before swapping controllers The operator defines a relation that captures the acceptable differences on the controller outputs = same forwarding rules? same forwarding semantic? ≅ eventual semantic consistency?

  54. HotSwap: Correct and Efficient Controller Upgrades for Software-Defined Networks Today’s upgrades disruptive & incorrect The HotSwap system record, replay, swap Scalability & correctness query language

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