Software Defined Networking By: Widhi Yahya
Introduction
Mininet Mininet is a simulation tool that can create a virtual network, running real kernels, switches and application code, on a single machine. Mininet provides a ready way to get the SDN network behaviors and performance for different experimental network topologies. Mininet also enable us to use client server programs such as ping, iperf, netperf, wget, and other packet generator programs.
Nowdays Complexity that leads to stasis Inconsistent policies Inability to scale Vendor dependence enormous installed equipment and protocols barrier to entry for new ideas
Software Defined Networking (SDN) App Specialized Features Control Plane or Open Interface Specialized Control Plane Merchant Switching Chips Open Interface Specialized Hardware Vertically integrated Closed, proprietary Slow innovation Horizontal Open interfaces Rapid innovation Nick McKeown, “How SDN will shape networking”, Standford Univ.
Software Defined Networking (SDN) 2. At least one Network OS probably many. Open- and closed-source Control Program Control Program Global Network View Network OS 1. Open interface to packet forwarding Packet Forwarding Packet Forwarding Packet Forwarding Packet Forwarding Packet Forwarding Nick McKeown, “How SDN will shape networking”, Standford Univ.
Software Defined Networking (SDN) Open Network Foundation, “OpenFlow Switch Specification”, 2013.
Software Defined Networking (SDN) [ONF12]-Software-Defined Networking-newnorm
Software Defined Networking (SDN) Open Network Foundation, “OpenFlow Switch Specification”, 2013.
Motorola
Openflow Switches
Openflow Controller
Software Defined Networking (SDN) 2:match(dstip=A)[fwd(2)] 1:match(* )[fwd(1)] 2:match(dstip=B)[fwd(3)] OpenFlow Program Priority Pattern Action Counters for each rule - #bytes, #packets Route: IP/fwd dstip=A A 2 1 3 B dstip!=A dstip!=B dstip=B Open Network Foundation, “OpenFlow Switch Specification”, 2013; Chris Monsanto*, Joshua Reich*, Nate Foster^, Jen Rexford*, David Walker*, “Composing Software-Defined Networks”,USENIX, 2013
Benefit SDN Centralized control of multi-vendor environments. Reduced complexity through automation. Higher rate of innovation Increased network reliability and security More granular network control Better user experience
SDN Review Software Defined Networking (SDN) is a concept to decouple the control plane and data plane of network devices. The emergence of the SDN technology brings many new network applications realized by programming the SDN controller.
Problems Naive Algorithm (Round Robin)
Problems example Naive Algorithm (Randomized)
Global Topology
SDN Program install_flowmod(5,srcip=X & dstip=P,[mod(dstip=A), fwd(2)]) install_flowmod(4,srcip=0* & dstip=P,[mod(dstip=A), fwd(2)]) install_flowmod(4,srcip=1* & dstip=P,[mod(dstip=B), fwd(3)]) install_flowmod(4,srcip=X & dstip=A ,[fwd(2)]) install_flowmod(4,srcip=X & dstip=B,[fwd(3)]) install_flowmod(3,dstip=A,[fwd(2)]) install_flowmod(3,dstip=B,[fwd(3)]) install_flowmod(2,srcip=X ,[fwd(1)]) install_flowmod(1,*,[fwd(3)])
Frenetic N. Foster, R. Harrison, M. J. Freedman, C. Monsanto, J. Rexford, A. Story, and D. WalkerFoster, “Frenetic: A Network Programming Language”, ACM, 2013.
Pyretic Basic Policies Policy Syntac Semantics Examples match match(f=v) Returns set containing packet if packet's field f matches value v, empty set otherwise match(dstmac=EthAddr('00:00:00:00:00:01')) drop Returns empy set modify modify(f=v) Returns set containing copy of packet where field f is set to value v modify(srcmac=EthAddr('00:00:00:00:00:01')) forward fwd(a) Returns set containing copy of packet where outport field is set to a fwd(1) parallel composition A + B Returns the union of A's output and B's output fwd(1) + fwd(2) sequential composition A >> B Returns B's output where A's output is B's input modify(dstip=IPAddr('10.0.0.2'))>>fwd(2) match(switch=1) >> flood() Pyretic Website, http://frenetic-lang.org/pyretic/
Query Policies Pyretic Syntax Summary packets( limit=n, group_by=[f1,f2,...]) callback on every packet received for up to n packets identical on fields f1,f2,... count_packets( interval=t,group_by=[f1,f2,...] count every packet received callback every t seconds providing count for each group count_bytes( interval=t, group_by=[f1,f2,...]) count every byte received callback every t seconds providing count for each group Pyretic Website, http://frenetic-lang.org/pyretic/
Q & A Thank you