Software Defined Networking - TAU

1y ago
5 Views
1 Downloads
2.26 MB
57 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Vicente Bone
Transcription

Software DefinedNetworkingWhat is it, how does it work,and what is it good for?Many slides stolen from Jennifer Rexford, NickMcKeown, Scott Shenker, Teemu Koponen, YotamHarchol and David Hay

Agenda What is Software DefinedNetworking (SDN)? What is OpenFlow? How does itwork? Challenges en route to SDN Research directions

What is SDN?

The Internet: A Remarkable Story Tremendous success– from research experimentto global infrastructure Enables innovation in applications– Web, P2P, VoIP, social networks, virtualworlds But, the Internet’s infrastructureremained fairly stagnant for decades

The Internet’s Landscapeconstant innovationApplications:Internet Protocols:routing, congestionstagnant! control, naming, (TCP/IP, BGP, DNS, OSPF, ECMP, )Technologies:constant innovation

Why Can’t We Innovate? Closed equipment– software bundled with hardware– vendor-specific interfaces Over specified– slow protocol standardization Few people can innovate– equipment vendors write the code– long delays to introduce new featuresImpacts performance, security, reliability, cost

Networks are Hard to Manage Operating a network is expensive– more than half the cost of a network– yet, operator error causes most outages Buggy software in the equipment– routers with 20 million lines of code– cascading failures, vulnerabilities, etc. The network is “in the way”– especially a problem in data centers– and home networks

Traditional Computer NetworksData plane:packetstreamingforward, filter, buffer, mark,rate-limit, and measure packets

Traditional Computer NetworksControl plane:distributed algorithmstrack topology changes, computeroutes, install forwarding rules

Traditional Computer NetworksManagement plane:human time scalecollect measurements and configurethe equipment

New Paradigm:Software Defined Networking (SDN)logically-centralized controlsmart,slowAPI to the data plane(e.g., OpenFlow)dumb,fastswitches

12A Helpful Analogy

zedHardwarevertically integratedclosed, proprietaryslow innovationsmall industryOpen InterfaceWindows(OS)Macor Linux or OSOpen InterfaceMicroprocessorhorizontalopen interfacesrapid innovationhuge industry

edHardwarevertically integratedclosed, proprietaryslow innovationOpen pen InterfaceMerchantSwitching Chipshorizontalopen interfacesrapid innovation

15How SDN worksThe OpenFlow protocol

OpenFlow SwitchingOpenFlow Switch specificationOpenFlow SwitchSecuresw ChannelhwFlowTablePCController

Controller: ProgrammabilityController ApplicationNetwork OSevents from switchestopology changes,traffic statistics,arriving packets17commands to switches(un)install rules,query statistics,send packets

Reactive vs. Proactive Reactive SDN:switches send (first) packets to controller, thencontroller programs switch's flow table to handlerest of the flow– Problem: source of DoS on controller (packet-inevent) Proactive SDN:Controller programs the switches proactively,according to its own knowledge of the network– Requires smarter approaches than just reacting tonetwork events (global knowledge, discovery,updates )

Flow Table Entry at Switch“Type 0” OpenFlow SwitchRuleActionStatsPacket byte counters1. Forward packet to port(s)2. Encapsulate and forward to controller3. Drop packet4. Send to normal processing pipelineSwitchPort ortTCPdport

Data-Plane: Simple Packet Handling Simple packet-handling rules– Pattern: match packet header bits– Actions: drop, forward, modify, send to controller– Priority: disambiguate overlapping patterns– Counters: #bytes and #packets1. src 1.2.*.*, dest 3.4.5.* drop2. src *.*.*.*, dest 3.4.*.* forward(2)3. src 10.1.2.3, dest *.*.*.* send tocontroller

OpenFlow Definition in progress Additional actions rewrite headers map to queue/class encrypt More flexible header allow arbitrary matching of first few bytes Support multiple controllers load-balancing and reliability

Example OpenFlow Applications Dynamic access control Seamless mobility/migration Server load balancing Network virtualization Using multiple wireless access points Energy-efficient networking Adaptive traffic monitoring Denial-of-Service attack detectionSee http://www.openflow.org/videos/

E.g.: Dynamic Access Control Inspect first packet of a connection Consult the access control policy Install rules to block or route traffic

E.g.: Seamless Mobility/Migration See host send traffic at new location Modify rules to reroute the traffic

E.g.: Server Load Balancing Pre-install load-balancing policy Split traffic based on source IPsrc 0*src 1*25

In-depth Example: Simple RepeaterController12Switch Simple Network Repeater26– forward packets received on port 1 out 2 and vice versa

Simple RepeaterController (POX) (Pseudo)-Programdef handle packetIn(packet):out port 2if packet.in port 2:out port 1flow mod ofp flow mod()flow mod.match ofp match()flow mod.match.in port \packet.in portaction ofp action output()action.out port out portflow mod.action [ action ]flow mod.buffer id \packet.buffer idsend(flow mod)Controller12SwitchFlow Table27PriorityPatternActionCountersDEFAULTIN PORT:1OUTPUT:2(0,0)DEFAULTIN PORT:2OUTPUT:1(0,0)

OpenFlow in the Wild Open Networking Foundation– Google, Facebook, Microsoft, Yahoo, Verizon,Deutsche Telekom, and many other companies Commercial OpenFlow switches– HP, NEC, Quanta, Dell, IBM, Juniper, Network operating systems– NOX, Beacon, Floodlight, POX, Network deployments– Campuses, research backbone networks– Commercial deployments (e.g., Google backbone)

But Heterogeneous Switches Number of packet-handling rules (TCAM/memory limits) Different OpenFlow version support Range of matches and actions (not all matches and actions aremandatory in the protocol) Multi-stage pipeline of packet processing (allowed but notdefined in the standard) Vendor-specific features Offload some control-plane functionality (?)accesscontrol29MAClook-upIPlook-up

SDN or OpenFlow? OpenFlow is not being adapted as-is Major vendors either completely discardOpenFlow or use a massively changed variant Doing that requires having the ability to changethe protocol on both sides (controller switch) Is OpenFlow dead?30

31Challenges

Controller Delay and Overhead Controller is much slower the the switch Processing packets leads to delay andoverhead Need to keep most packets in the “fast path”packets32

Distributed ControllerControllerApplicationFor scalability andreliabilityControllerApplicationPartition and replicate stateNetwork OSNetwork OS and: where to put thecontroller(s)?Taking into account latency,resiliency, load balancing.33

Testing and Debugging OpenFlow makes programming possible– Network-wide view at controller– Direct control over data plane Plenty of room for bugs– Still a complex, distributed system Need for testing techniques– Controller applications– Controller and switches– Rules installed in the switches34

Programming Abstractions Controller APIs are low-level– Thin veneer on the underlying hardware Need better languages– Composition of modulesController– Managing concurrency– Querying network state– Network-wide abstractions Example:– http://www.frenetic-lang.org/35Switches

MiniNet36

MiniNet Creates scalable SDN (up to hundreds of nodes) usingOpenFlow, on a single PC Allows to quickly create, interact with and customizea SDN prototype with complex topologies, and can beused to emulate real networks – all on your PC Can work with any kind of OpenFlow controller Takes seconds to install Easy to program Of course, is anopen source project37

MiniNet Not only for teaching purposes! Used for the development and testingof networks38

Innovating with SDN

Dealing with Large TablesPalette: Distributing Tables in SoftwareDefined NetworksY. Kanizo, D. Hay and I. Keslassy

Access Control in SDN Consider the following network.– Table at each ingress pointIngress points hold(too) large tables41

How to Solve this Problem?Idea: Distribute the rules among allswitches such that each packet goesthrough all rules along its path.42

Palette: Step ISplit the large (TCAM) table into smaller tables– identify each smaller table with a unique colour43

Palette: Step IIAssign at most a single colour to each switch s.t.every packet-forwarding path is a “rainbow path”

Algorithmic Challenges Maximizing the number of colours (smallertables), k Splitting the large (TCAM) table into ksmaller tables– so as to minimize the size of the largest table http://webee.technion.ac.il/ isaac/p/tr1205 palette.pdf

Rethinking (Routing)ProtocolsOn the Resilience of Routing Tables:J. Feigenbaum, P. B. Godfrey, A. Panda,M. Schapira, S. Shenker, and A. Singla

Motivationd

MotivationdRoutes computed by, say, shortest pathsrouting alg

MotivationPacketiXdforwarding path? No!

Routing: Data vs. Control Plane Routing is a control plane operation– slow (ms – s) Packet forwarding is a data plane operation– fast (μs) Today’s routing protocols1. establish connectivity2. optimize routes ( shortest paths) failure re-convergence dropped packets!

How to Solve this Problem?Idea: Push (only!) connectivity tothe data plane– immediately react to failures– optimize routes on a longer time scale51

Forwarding Model Packet for node d arrives at node i Outgoing edge is a function of-incoming edgeset of live edgesdfid: Ei x P(Ei) - Eii

Resilient Forwarding Forwarding is t-resilient iff for any(at most) t edge failures:– existence of path from i to d loopfree forwarding from to d Perfect resilience t

Thm: Can always protect againstone failureBig Gap!Thm: Cannot always provide perfectresilience

What Next? Conditions for k-resilience?– restricted failure models? Resilience for specific families ofgraphs? Randomized forwarding rules? . ?Full paper available online as YALE/DCS/TR1454See also [Liu-Panda-Singla-Godfrey-S-Shenker, NSDI 2013]

Conclusion SDN is revolutionizing networking Rethinking networking– open interfaces to the data plane– separation of control and data– leveraging techniques from distributedsystems Significant momentum, many challenges56– in both research and industry

Thank You

Creates scalable SDN (up to hundreds of nodes) using OpenFlow, on a single PC Allows to quickly create, interact with and customize a SDN prototype with complex topologies, and can be used to emulate real networks - all on your PC Can work with any kind of OpenFlow controller Takes seconds to install Easy to program

Related Documents:

SDN is the key solution to the aforementioned problems. Through the concept of software-defined networking, network programmability is enhanced and network elements can be remotely managed from a centralized controller. The following sections discusses further on software-defined networking. 3. Concept of Software-Defined Networking . 3.1 .

6. Broadly apply SDN principles to all networking and net-work services including security—from the data center and enterprise campus to the mobile and wireline networks used by service providers. THE CHALLENGES WITH NETWORKING SOFTWARE WHAT IS SDN? For the past year, software-defined networking (SDN) has been the buzz of the networking world.

THE TAU EMPIRE The Tau are a relatively young, aspiring race, whose homeworld is situated deep in the galactic eastern rim of Ultima Segmentum. The ancestors of the Tau had been discovered by an Imperial exploratory mission

Stanley C. Rosenberg, Tau Beta Sigma -Delta Delta Honorary, Spring 2014 . Tyler Jason Ramsay, Tau Beta Sigma – Delta Delta, Spring 2015 . BethAyn Curtis, Tau Beta Sigma – Delta Delta Honorary, Spring 2015 . Awards and Recognition: District Alumni Secretary Award, 2013 . Tau Beta Sigma,

As in past years, Tau Beta Pi members participated prepared and facilitated a popsicle stick bridge building event. It was held during our Watson School of Engineering’s E-Week Community Day. For three hours, kids from the community could come in and we would help them design and construct a bridge usi

The Tau Manifesto Michael Hartl Tau Day, 2010 1 The circle constant Welcome to the Tau Manifesto. This manifesto is dedicated to one of the most important numbers in math- . has a minimum at a half period, and passes through zero at one-quarter and three-quarters of a period (Figure11). For reference, both figures show the value of (in radians)

Networking 101 . Agenda Introduction Networking Defined Purpose of Networking Types of Networking Meet & Greets Recap Disney Agenda . Did You Know? Approximately 70 percent of all jobs are found through networking Most people you meet have at least 250 contacts

The OpenFlow Switch Specification is published by Tablethe Open Networking Foundation (ONF). ONF is a group of software providers, content delivery networks, and networking equipment vendors to support software defined networking. The OpenFlow version 1.0 was first dev