Programmable Networks

Slides:



Advertisements
Similar presentations
Jennifer Rexford Princeton University MW 11:00am-12:20pm Logically-Centralized Control COS 597E: Software Defined Networking.
Advertisements

Incremental Update for a Compositional SDN Hypervisor Xin Jin Jennifer Rexford, David Walker.
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
Composing Software-Defined Networks Princeton*Cornell^ Chris Monsanto*, Joshua Reich* Nate Foster^, Jen Rexford*, David Walker*
Nanxi Kang Princeton University
Jennifer Rexford Princeton University
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.
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.
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
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.
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
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.
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.
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.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Testing and Debugging COS 597E: Software Defined Networking.
Authors: Mark Reitblatt, Nate Foster, Jennifer Rexford, Cole Schlesinger, David Walker Presenter: Byungkwon Choi Abstractions for Network Update INA.
Programming SDN 1 Problems with programming with POX.
P4: Programming Protocol-Independent Packet Processors
Chapter 4 Network Layer: The Data Plane
SDN challenges Deployment challenges
Discovering Your Research Taste
SDN Network Updates Minimum updates within a single switch
Programming SDN Newer proposals Frenetic (ICFP’11) Maple (SIGCOMM’13)
Jennifer Rexford Princeton University
The DPIaaS Controller Prototype
Heitor Moraes, Marcos Vieira, Italo Cunha, Dorgival Guedes
Martin Casado, Nate Foster, and Arjun Guha CACM, October 2014
NOX: Towards an Operating System for Networks
SDN Overview for UCAR IT meeting 19-March-2014
Srinivas Narayana MIT CSAIL October 7, 2016
Software Defined Networking
Programming the Networks of the Future
Programmable Networks
Composing Software-Defined Networks
Software Defined Networking
Enabling Innovation Inside the Network
Languages for Software-Defined Networks
Implementing an OpenFlow Switch on the NetFPGA platform
Administrivia Paper assignments for reviews 2 and 3 are out
Lecture 10, Computer Networks (198:552)
BGP Instability Jennifer Rexford
Frenetic: Programming Software Defined Networks
Chapter 5 Network Layer: The Control Plane
Control-Data Plane Separation
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

Programmable Networks Jennifer Rexford Fall 2018 (TTh 1:30-2:50 in Friend 006) COS 561: Advanced Computer Networks http://www.cs.princeton.edu/courses/archive/fall18/cos561/

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 From distributed protocols to (centralized) controller applications

Simple, Open Data-Plane API Prioritized list of rules Pattern: match packet header bits Actions: drop, forward, modify, send to controller Priority: disambiguate overlapping patterns Counters: #bytes and #packets Defined in terms of a protocol and mechanism Clarify that each packet matches exactly one rule (the highest priority one that matches). Primitive execution engine. srcip=1.2.*.*, dstip=3.4.5.*  drop srcip=*.*.*.*, dstip=3.4.*.*  forward(2) 3. srcip=10.1.2.3, dstip=*.*.*.*  send to controller

Writing SDN Controller Applications Programming abstractions Controller Platform OpenFlow protocol OpenFlow is a mechanism, not a linguistic formalism.

Composition of Policies

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

Modular Controller Applications Each module partially specifies the handling of the traffic Monitor Route FW LB Controller Platform

Abstract OpenFlow: Policy as a Function Located packet Packet header fields Packet location (e.g., switch and port) Function of a located packet To a set of located packets Drop, forward, multicast Packet modifications Change in header fields and/or location 2 Abstraction of OpenFlow, boolean predicates instead of bit twiddling and rules In PL historically, look to define the meaning of programs using “denotational semantics” (one that is compositional). Programmer doesn’t have to look at the syntax to understand. Goes back to Dana Scott in the 1960s. Meaning of something as a combination of the meanings of the two parts. Applied those lessons here to networking. So, functions of located packets is the primitive building block. 1 3 dstip == 1.2.3.4 & srcport == 80  port = 3, dstip = 10.0.0.1

Parallel Composition (+) 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 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 (>>) 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)

SQL-Like Query Language Reading State SQL-Like Query Language

From Rules to Predicates Traffic counters Each rule counts bytes and packets Controller can poll the counters Multiple rules E.g., Web server traffic except for source 1.2.3.4 Solution: predicates E.g., (srcip != 1.2.3.4) && (srcport == 80) Run-time system translates into switch patterns 1. srcip = 1.2.3.4, srcport = 80 2. srcport = 80

Dynamic Unfolding of Rules Limited number of rules Switches have limited space for rules Cannot install all possible patterns Must add new rules as traffic arrives E.g., histogram of traffic by IP address … packet arrives from source 5.6.7.8 Solution: dynamic unfolding Programmer specifies GroupBy(srcip) Run-time system dynamically adds rules 1. srcip = 1.2.3.4 2. srcip = 5.6.7.8

Suppressing Unwanted Events Common programming idiom First packet goes to the controller Controller application installs rules packets

Suppressing Unwanted Events More packets arrive before rules installed? Multiple packets reach the controller packets

Suppressing Unwanted Events Solution: suppress extra events Programmer specifies “Limit(1)” Run-time system hides the extra events not seen by application packets

SQL-Like Query Language Get what you ask for Nothing more, nothing less SQL-like query language Familiar abstraction Returns a stream Intuitive cost model Minimize controller overhead Filter using high-level patterns Limit the # of values returned Aggregate by #/size of packets Traffic Monitoring Select(bytes) * Where(in:2 & srcport:80) * GroupBy([dstmac]) * Every(60) Learning Host Location Select(packets) * GroupBy([srcmac]) * SplitWhen([inport]) * Limit(1)

Writing State Consistent Updates

Avoiding Transient Disruption Invariants No forwarding loops No black holes Access control Traffic waypointing

Installing a Path for a New Flow Rules along a path installed out of order? Packets reach a switch before the rules do packets Must think about all possible packet and event orderings.

Update Consistency Semantics Per-packet consistency Every packet is processed by … policy P1 or policy P2 E.g., access control, no loops or blackholes Per-flow consistency Sets of related packets are processed by … policy P1 or policy P2, E.g., server load balancer, in-order delivery, … P1 P2

Policy Update Abstraction Simple abstraction Update entire configuration at once Cheap verification If P1 and P2 satisfy an invariant Then the invariant always holds Run-time system handles the rest Constructing schedule of low-level updates Using only OpenFlow commands! P1 P2

Two-Phase Update Algorithm Version numbers Stamp packet with a version number (e.g., VLAN tag) Unobservable updates Add rules for P2 in the interior … matching on version # P2 One-touch updates Add rules to stamp packets with version # P2 at the edge Remove old rules Wait for some time, then remove all version # P1 rules

Update Optimizations Avoid two-phase update Limit scope Naïve version touches every switch Doubles rule space requirements Limit scope Portion of the traffic Portion of the topology Simple policy changes Strictly adds paths Strictly removes paths

Consistent Update Abstractions Many different invariants Beyond packet properties E.g., avoiding congestion during an update Many different algorithms General solutions Specialized to the invariants Specialized to a setting (e.g., optical nets)

“Control Loop” Abstractions Policy Composition Consistent Updates SQL-like queries OpenFlow Switches