Jennifer Rexford Princeton University MW 11:00am-12:20pm SDN Programming Languages COS 597E: Software Defined Networking.

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.
Frenetic: A High-Level Language for OpenFlow Networks Nate Foster, Rob Harrison, Matthew L. Meola, Michael J. Freedman, Jennifer Rexford, David Walker.
Composing Software Defined Networks
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
Jennifer Rexford Princeton University Future of SDN.
Programming Abstractions for Software-Defined Networks Jennifer Rexford Princeton University.
Software-Defined Networking
Data Plane Verification. Background: What are network policies Alice can talk to Bob Skype traffic must go through a VoIP transcoder All traffic must.
SDX: A Software Defined Internet Exchange Arpit Gupta, Laurent Vanbever, Muhammad Shahbaz, Sean P. Donovan, Brandon Schlinker Nick Feamster, Jennifer Rexford,
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,
Jennifer Rexford Princeton University MW 11:00am-12:20pm SDN Software Stack COS 597E: Software Defined Networking.
Cellular Core Network Architecture
Jennifer Rexford Princeton University MW 11:00am-12:20pm Programmable Data Planes COS 597E: Software Defined Networking.
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
Frenetic: A Programming Language for Software Defined Networks Jennifer Rexford Princeton University Joint work with Nate.
Software-Defined Networks Jennifer Rexford Princeton University.
Software Defined-Networking. Network Policies Access control: reachability – Alice can not send packets to Bob Application classification – Place video.
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.
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
Jennifer Rexford Princeton University MW 11:00am-12:20pm Measurement COS 597E: Software Defined Networking.
Programming Languages for Software Defined Networks Jennifer Rexford and David Walker Princeton University Joint work with the.
Workpackage 3 New security algorithm design ICS-FORTH Ipswich 19 th December 2007.
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,
Enabling Innovation Inside the Network Jennifer Rexford Princeton University
Pyretic Programming.
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.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Testing and Debugging COS 597E: Software Defined Networking.
Programming Abstractions & Languages for SDN: Frenetic & Pyretic.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
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.
Programming SDN 1 Problems with programming with POX.
SDN challenges Deployment challenges
Discovering Your Research Taste
Compiling Path Queries
Jennifer Rexford Princeton University
Martin Casado, Nate Foster, and Arjun Guha CACM, October 2014
Programming Abstractions & Languages for SDN: Frenetic & Pyretic
Software Defined Networking
Programming the Networks of the Future
Programmable Networks
Composing Software-Defined Networks
Software Defined Networking (SDN)
Enabling Innovation Inside the Network
Languages for Software-Defined Networks
Programmable Networks
Administrivia Paper assignments for reviews 2 and 3 are out
Lecture 10, Computer Networks (198:552)
Frenetic: Programming Software Defined Networks
Control-Data Plane Separation
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

Jennifer Rexford Princeton University MW 11:00am-12:20pm SDN Programming Languages COS 597E: Software Defined Networking

Programming SDNs 2 Images by Billy Perkins The Good –Network-wide visibility –Direct control over the switches –Simple data-plane abstraction The Bad –Low-level programming interface –Functionality tied to hardware –Explicit resource control The Ugly –Non-modular, non-compositional –Challenging distributed programming

Network Control Loop 3 Read state OpenFlow Switches Write policy Compute Policy

Language-Based Abstractions 4 Query abstraction s OpenFlow Switches Update abstractions Writing/combining modules

Policy as a Function 5

Policy in OpenFlow Defining “policy” is complicated –All rules in all switches –Packet-in handlers –Polling of counters Programming “policy” is error-prone –Duplication between rules and handlers –Frequent changes in policy (e.g., flowmods) –Policy changes affect packets in flight 6

From Rules to a Policy Function Located packet –A packet and its location (switch and port) Policy function –From located packet to set of located packets Examples –Original packet: identity –Drop the packet: none –Modified header: modify(f=v) –New location: fwd(a) 7

From Bit Patterns to Predicates OpenFlow –No direct way to specify dstip!= –Requires two prioritized bitmatches Higher priority: dstip= Lower priority: * Using boolean predicates –Providing &, |, and ~ –E.g., ~match(dstip= ) 8

Virtual Header Fields Unified abstraction –Real headers: dstip, srcport, … –Packet location: switch and port –User-defined: e.g., traffic_class Simple operations –Match: match(f=v) –Modify: modify(f=v) Example – match(switch=A) & match(dstip=‘ ’ ) 9

Queries as Buckets Forwarding to a “bucket” – Q = packets(limit=1,group_by=['srcip']) Callback functions – Q.register_callback(printer) Multiple kinds of buckets –Packets: with limit on number –Packet counts: with time interval –Byte counts: with time interval 10

Power of Policy as a Function Dynamic policy –A stream of policy functions Composition –Parallel: Monitor + Route –Sequential: Firewall >> Route A >> (B + C) >> D (A >> P) + (B >> P) (A + B)>>P 11

Computing Policy Parallel and Sequential Composition Topology Abstraction 12

Combining Many Networking Tasks 13 Controller Platform Monitor + Route + FW + LB Monolithic application Hard to program, test, debug, reuse, port, …

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

Beyond Multi-Tenancy 15 Controller Platform Slice 1 Slice 2 Slice n... Each module controls a different portion of the traffic Relatively easy to partition rule space, link bandwidth, and network events across modules

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

Parallel Composition 17 Controller Platform Route on destination Monitor on source + dstip =  fwd(1) dstip =  fwd(2 ) srcip =  count

Parallel Composition 18 Controller Platform Route on destination Monitor on source + dstip =  fwd(1) dstip =  fwd(2 ) srcip =  count srcip = , dstip =  fwd(1), count srcip = , dstip =  fwd(2 ), count srcip =  count dstip =  fwd(1) dstip =  fwd(2)

Sequential Composition 19 Controller Platform Routing Load Balancer >> dstip =  fwd(1) dstip =  fwd(2 ) srcip = 0*, dstip=  dstip= srcip = 1*, dstip=  dstip=

Sequential Composition 20 Controller Platform Routing Load Balancer >> dstip =  fwd(1) dstip =  fwd(2 ) srcip = 0*, dstip=  dstip= srcip = 1*, dstip=  dstip= srcip = 0*, dstip =  dstip = , fwd(1) srcip = 1*, dstip =  dstip = , fwd(2 )

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

Abstract Topology: Load Balancer Present an abstract topology –Information hiding: limit what a module sees –Protection: limit what a module does –Abstraction: present a familiar interface 22 Real network Abstract view

Abstract Topology: Gateway 23

Abstract Topology: Gateway 24 Left: learning switch on MAC addresses Middle: ARP on gateway, plus simple repeater Right: shortest-path forwarding on IP prefixes

High-Level Architecture 25 Controller Platform M1 M2 M3 Main Program Main Program

Paper Discussion Pyretic and Maple 26

Questions Other ways to combine multiple policies? How to compile policies efficiently? Relationships to the other papers we’ve read (e.g., HSA, VeriFlow, NICE, ndb)? Comparison of Pyretic and Maple? Support for distributed controllers, fault tolerance, supporting more sophisticated switches, etc.? 27