Composing Software Defined Networks

Slides:



Advertisements
Similar presentations
Towards Software Defined Cellular Networks
Advertisements

Incremental Update for a Compositional SDN Hypervisor Xin Jin Jennifer Rexford, David Walker.
Compiling Path Queries in Software-Defined Networks Srinivas Narayana Jennifer Rexford and David Walker Princeton University.
SDN Applications Jennifer Rexford Princeton University.
Programming Protocol-Independent Packet Processors
Frenetic: A High-Level Language for OpenFlow Networks Nate Foster, Rob Harrison, Matthew L. Meola, Michael J. Freedman, Jennifer Rexford, David Walker.
Why SDN and MPLS? Saurav Das, Ali Reza Sharafat, Guru Parulkar, Nick McKeown Clean Slate CTO Summit 9 th November, 2011.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Network Virtualization COS 597E: Software Defined Networking.
Composing Software-Defined Networks Princeton*Cornell^ Chris Monsanto*, Joshua Reich* Nate Foster^, Jen Rexford*, David Walker*
Nanxi Kang Princeton University
Jennifer Rexford Princeton University
Modular SDN Programming w/ Pyretic
Slick: A control plane for middleboxes Bilal Anwer, Theophilus Benson, Dave Levin, Nick Feamster, Jennifer Rexford Supported by DARPA through the U.S.
Can the Production Network Be the Testbed? Rob Sherwood Deutsche Telekom Inc. R&D Lab Glen Gibb, KK Yap, Guido Appenzeller, Martin Cassado, Nick McKeown,
Incremental Consistent Updates Naga Praveen Katta Jennifer Rexford, David Walker Princeton University.
OpenFlow-Based Server Load Balancing GoneWild
Programming Abstractions for Software-Defined Networks Jennifer Rexford Princeton University.
David Walker Princeton University Joint work with Nate Foster, Michael J. Freedman, Rob Harrison, Christopher Monsanto, Mark Reitblatt, Jennifer Rexford,
Software-Defined Networking
Software Defined Networking By: Widhi Yahya. Introduction.
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
Languages for Software-Defined Networks Nate Foster, Arjun Guha, Mark Reitblatt, and Alec Story, Cornell University Michael J. Freedman, Naga Praveen Katta,
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
Scalable Server Load Balancing Inside Data Centers Dana Butnariu Princeton University Computer Science Department July – September 2010 Joint work with.
Software Defined Networking
Cellular Core Network Architecture
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
Composing Software Defined Networks Jennifer Rexford Princeton University With Joshua Reich, Chris Monsanto, Nate Foster, and.
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
OpenFlow-Based Server Load Balancing GoneWild Author : Richard Wang, Dana Butnariu, Jennifer Rexford Publisher : Hot-ICE'11 Proceedings of the 11th USENIX.
Frenetic: A Programming Language for Software Defined Networks Jennifer Rexford Princeton University Joint work with Nate.
Software-Defined Networks Jennifer Rexford Princeton University.
Higher-Level Abstractions for Software-Defined Networks Jennifer Rexford Princeton University.
Languages for Software-Defined Networks Nate Foster, Michael J. Freedman, Arjun Guha, Rob Harrison, Naga Praveen Katta, Christopher Monsanto, Joshua Reich,
Professor Yashar Ganjali Department of Computer Science University of Toronto Some slides courtesy.
Frenetic: Programming Software Defined Networks Jennifer Rexford Princeton University Joint with Nate Foster, David Walker,
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks TCP.
Software Defined Networking Kathryn Abbett. Definition □Origins from Berkley and Stanford, around 2008 □Software-Defined Networking (SDNs) allows applications.
Copyright 2013 Open Networking User Group. All Rights Reserved Confidential Not For Distribution Programming Abstractions for Software-Defined Networks.
Programming Abstractions for Software-Defined Networks Jennifer Rexford Princeton University
SDX: A Software-Defined Internet eXchange Jennifer Rexford Princeton University
Programming Languages for Software Defined Networks Jennifer Rexford and David Walker Princeton University Joint work with the.
Aaron Gember, Theophilus Benson, Aditya Akella University of Wisconsin-Madison.
High-Level Abstractions for Programming Software Defined Networks Joint with Nate Foster, David Walker, Arjun Guha, Rob Harrison, Chris Monsanto, Joshua.
Programming Abstractions for Software-Defined Networks Jennifer Rexford Princeton University.
Enabling Innovation Inside the Network Joint with Nate Foster, David Walker, Rob Harrison, Chris Monsanto, Cole Schlesinger, Mike Freedman, Mark Reitblatt,
CellSDN: Software-Defined Cellular Core networks Xin Jin Princeton University Joint work with Li Erran Li, Laurent Vanbever, and Jennifer Rexford.
Evolving Toward a Self-Managing Network Jennifer Rexford Princeton University
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
Jennifer Rexford Princeton University MW 11:00am-12:20pm SDN Programming Languages COS 597E: Software Defined Networking.
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
Jennifer Rexford Princeton University MW 11:00am-12:20pm Data-Plane Verification COS 597E: Software Defined Networking.
NetEgg: Scenario-based Programming for SDN Policies Yifei Yuan, Dong Lin, Rajeev Alur, Boon Thau Loo University of Pennsylvania 1.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Testing and Debugging COS 597E: Software Defined Networking.
Software Defined Networking BY RAVI NAMBOORI. Overview  Origins of SDN.  What is SDN ?  Original Definition of SDN.  What = Why We need SDN ?  Conclusion.
InterVLAN Routing 1. InterVLAN Routing 2. Multilayer Switching.
The Internet: An Exciting Time
SDN challenges Deployment challenges
Discovering Your Research Taste
Jennifer Rexford Princeton University
Martin Casado, Nate Foster, and Arjun Guha CACM, October 2014
Programming the Networks of the Future
Programmable Networks
Composing Software-Defined Networks
Enabling Innovation Inside the Network
Languages for Software-Defined Networks
Programming Languages for Programmable Networks
Programmable Networks
Frenetic: Programming Software Defined Networks
Control-Data Plane Separation
Presentation transcript:

Composing Software Defined Networks Jennifer Rexford Princeton University With Joshua Reich, Chris Monsanto, Nate Foster, & David Walker

Software Defined Networking (SDN) Network-wide visibility and control Controller Application Controller Platform Direct control via open interface Network-wide visibility and control Direct control via an open interface But, how should we write controller applications?

Combining Many Networking Tasks Monolithic application Route + Monitor + FW + LB Controller Platform But, real networks perform a wide variety of tasks Routing, network monitoring, firewalls, server load balancing, etc. Hard to program, test, debug, reuse, port, …

Modular Controller Applications A module for each task Route Monitor FW LB Controller Platform Easier to program, test, and debug Greater reusability and portability

... Beyond Multi-Tenancy Slice 1 Slice 2 Slice n Controller Platform Each module controls a different portion of the traffic ... Slice 1 Slice 2 Slice n Controller Platform Simple case: multi-tenancy Each module controls a different subset of the traffic Relatively easy to partition traffic, rule space, and bandwidth resources We want to write a single application out of modules that affect the handling of same traffic Relatively easy to partition rule space, link bandwidth, and network events across modules

Modules Affect the Same Traffic Each module partially specifies the handling of the traffic Monitor Route FW LB Controller Platform How to combine modules into a complete application?

Parallel Composition [ICFP’11, POPL’12] srcip = 5.6.7.8  count srcip = 5.6.7.9  count dstip = 1.2/16  fwd(1) dstip = 3.4.5/24  fwd(2) Monitor on source IP Route on dest prefix + Controller Platform From ICFP’11 and POPL’12 srcip = 5.6.7.8, dstip = 1.2/16  fwd(1), count srcip = 5.6.7.8, dstip = 3.4.5/24  fwd(2), count srcip = 5.6.7.9, dstip = 1.2/16  fwd(1), count srcip = 5.6.7.9, dstip = 3.4.5/24  fwd(2), count

Example: Server Load Balancer Spread client traffic over server replicas Public IP address for the service Split traffic based on client IP Rewrite the server IP address Then, route to the replica 10.0.0.1 10.0.0.2 1.2.3.4 clients load balancer 10.0.0.3 server replicas

Sequential Composition [new!] srcip = 0*, dstip=1.2.3.4  dstip=10.0.0.1 srcip = 1*, dstip=1.2.3.4  dstip=10.0.0.2 dstip = 10.0.0.1  fwd(1) dstip = 10.0.0.2  fwd(2) Load Balancer Routing >> Controller Platform Load balancer splits traffic sent to public IP address over multiple replicas, based on client IP address, and rewrites the IP address srcip = 0*, dstip = 1.2.3.4  dstip = 10.0.0.1, fwd(1) srcip = 1*, dstip = 1.2.3.4  dstip = 10.0.0.2, fwd(2)

Sequential Composition: Gateway Ethernet Gateway IP Core Ethernet IP Core Left: learning switch on MAC addresses Middle: ARP on gateway, plus simple repeater Right: shortest-path forwarding on IP prefixes

Dividing the Traffic Over Modules Predicates Specify which traffic traverses which modules Based on input port and packet-header fields Monitor Routing + dstport != 80 Load Balancer Routing >> dstport = 80

High-Level Architecture M1 M2 M3 Composition Spec Controller Platform

Partially Specifying Functionality A module should not specify everything Leave some flexibility to other modules Avoid tying the module to a specific setting Example: load balancer plus routing Load balancer spreads traffic over replicas … without regard to the network paths Load Balancer Routing >>

Avoid Custom Interfaces Each module generates a partial spec What it needs to see and control What it can leave unspecified Unwieldy solution New syntax and work for the programmer Complex interaction between modules Enforcement of “contract” by the controller “I modify dstip but don’t need to pick the path” Load Balancer Routing

Abstract Topology Views Present abstract topology to the module Concise: implicitly encodes the constraints General: can represent a variety of constraints Intuitive: looks just like a normal network Safe: prevents the module from overstepping Real network Abstract view 15

Separation of Concerns Hide irrelevant details Load balancer doesn’t see the internal topology or any routing changes Routing view Load-balancer view

High-Level Architecture View Definitions M1 M2 M3 Composition Spec Controller Platform

Implementation Alternatives Option #1: virtualize the OpenFlow API Many API calls, few high-level constructs Modules map between topology views Nested virtualization becomes expensive Option #2: language-based solution High-level core language for writing modules High-level specification of network views Compiler performs syntactic transformations

Supporting Topology Views Virtual ports (V, 1): [(P1,2)] (V, 2): [(P2, 5)] Simple firewall policy in=1 out=2 Virtual headers Push virtual ports Route on these ports From (P1,2) to (P2,5) 1 V 2 firewall 1 1 2 4 2 5 P1 P2 3 3 4 routing

Conclusions Modularity is crucial Language abstractions Ongoing work Ease of writing, testing, and debugging Separation of concerns, code reuse, portability Language abstractions Parallel and sequential composition Abstract topology views Virtual packet headers Ongoing work Prototype system and more applications Richer data-plane models (e.g., OpenFlow 1.3)

Frenetic Project http://frenetic-lang.org Programming languages meets networking Cornell: Nate Foster, Gun Sirer, Arjun Guha, Robert Soule, Shrutarshi Basu, Mark Reitblatt, Alec Story Princeton: Dave Walker, Jen Rexford, Josh Reich, Rob Harrison, Chris Monsanto, Cole Schlesinger, Praveen Katta, Nayden Nedev http://frenetic-lang.org Short overview at http://www.cs.princeton.edu/~jrex/papers/frenetic12.pdf