14
Introduction to SDN (S oftware Defined Networking) Associate Prof Dr Chaodit Aswakul Network Research Group Department of Electrical Engineering Faculty of Enigneering Chulalongkorn University 10 Mar 2016 @ PSU 1 WIFUN@EE-CU Outline Traditional networkings Network planes rethought SDN birth SDN impact on networking industry SDN abstractions Global SDN innovations SDN impact to Thailand 2 WIFUN@EE-CU Current Network Focuses ACCESS FTTx 3G UMTS 4G LTE WiMAX 802.16x FemtoCell WMN HetNet Cognitive Radio CORE IPv6 NGN / NGI IMS/EPC FI DTN CCN SDN Energy Aware Networking APPLICATION WSN BAN VANET ITS Green Net SDP, SOA Cloud WIFUN@EE-CU Migration of Core Switching SDH ATM IP Ng-SDH MPLS IP WDM MPLS IP DWDM IP DWDM Legacy NOW 3-5 years > 5 years WIFUN@EE-CU

Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Embed Size (px)

Citation preview

Page 1: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Introduction to SDN (Software Defined Networking)

Associate Prof Dr Chaodit Aswakul Network Research Group

Department of Electrical Engineering Faculty of Enigneering

Chulalongkorn University !

10 Mar 2016 @ PSU

1WIFUN@EE-CU

OutlineTraditional networkings Network planes rethought SDN birth SDN impact on networking industry SDN abstractions Global SDN innovations SDN impact to Thailand

2WIFUN@EE-CU

Current Network Focuses

ACCESS!• FTTx • 3G UMTS • 4G LTE • WiMAX 802.16x • FemtoCell • WMN • HetNet • Cognitive Radio

CORE!• IPv6 • NGN / NGI • IMS/EPC • FI • DTN • CCN • SDN • Energy Aware

Networking !

APPLICATION!• WSN • BAN • VANET • ITS • Green Net • SDP, SOA • Cloud

!

WIFUN@EE-CU

Migration of Core Switching

SDHATM

IP

Ng-SDHMPLS

IP

WDM

MPLSIP

DWDM

IPDWDM

Legacy NOW 3-5 years > 5 years

WIFUN@EE-CU

Page 2: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Drives of Change• Multimedia, mobile personal computing and WWW

dictate the value of networked services • New access network technologies (xDSL, 2.5/3G/4G,

WiFi, WIMAX, FTTH) allow higher level of demands enter core network

• Explosion in available bandwidth due to optical transmission

• Data dominates voice so new network technologies must rather be designed for data hence packet-based backbone

WIFUN@EE-CU

Network Industry Evolution

Homogeneous Traffic

Fixed ClientsSingle-Service Network

Heterogeneous Traffic

Mobile ClientsMultiple-Service Network

Human-to-human Communications

Machine-to-machine Communciations

Overprovisioning Capacity Plan

Cloud-based Investment ModelWIFUN@EE-CU

Growing Complexitiesmake it hard to master networkings

[Ref: McKeown 2012]WIFUN@EE-CU

Why debugging networks is hardComplex interaction

– Between multiple protocols on a switch/router.

– Between state on different switches/routers.

Multiple uncoordinated writers of state.

!

Operators can’t…

– Observe all state.

– Control all state.

[Ref: McKeown 2012]WIFUN@EE-CU

Page 3: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Making Networks Work (Today)!

traceroute, ping, tcpdump, SNMP, Netflow

[Ref: McKeown 2012]WIFUN@EE-CU

Hope: SDN would provide a new framework to 1. Verify that networks behave correctly 2. Identify bugs and systematically find root causes

[Ref: McKeown 2012]WIFUN@EE-CU

Networking (P)lanes

Data

Control

Management

Service

3WIFUN@EE-CU

Data Plane

For transmission of data packets sent by users

Packet forwarding

Multicasting packet replication

Fragmentation and reassembly of large packets

4[Ref: Jain 2013]

WIFUN@EE-CU

Page 4: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Control PlaneNecessary activities for data plane operations,

but not involving end-user data packets

Routing

Setting packet handling policies e.g. security

Base station beaconing to announce availability of services

5[Ref: Jain 2013]

WIFUN@EE-CU

Management Plane

For provisioning and monitoring of networks

Fault, configuration, accounting, performance and security management

• Device management: instantiating new devices and protocols, turning existing devices on/off

6[Ref: Jain 2013]

WIFUN@EE-CU

Service PlaneFor improv ing performance or secur i t y of

networks via middle boxes

Proxy service

Load balancing, off-loading operations

• Intrusion detection, firewall

7[Ref: Jain 2013]

WIFUN@EE-CU

Existing LimitationsData + control

• coupled proprietarily in networking devices

Management + service

• if non-existed, must be handled manually by (admin) master of complexities

8WIFUN@EE-CU

Page 5: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

SDN Birth OpenFlow V1.0.0 2009

Propose to separate data and control planes with open interface Switches with only forwarding elements Control logics (that can be centralised) are moved to x86-based controller OpenFlow is the protocol to send/receive forwarding rules from controller to switches

9

Martin Casado PhD @ Stanford

WIFUN@EE-CU

SDN Conceptual Architecture

10

forwarding plane of data packets

controller plane

application (management + service) plane

(open) southbound API

(open) northbound API

WIFUN@EE-CU

SDN Detailed Architecture (Ref: Open Data Center Alliance Usage Model: Software Defined Networking Rev 1.0)

11

WIFUN@EE-CU

SDN Impact On Networking

Industry

Comparative View from Computer Industry

!Nick McKeown Stanford Univ.

12WIFUN@EE-CU

Page 6: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

SDN InitiativeAppAppAppAppAppAppAppAppAppAppApp

Control Plane

Control Plane

Control Plane or or

Open Interface

Specialized Control Plane

Specialized Hardware

Specialized Features

Merchant Switching Chips

Open Interface

[Slide by McKeown 2011]WIFUN@EE-CU

Computing Industry

14

Specialized Operating System

Specialized Hardware

AppAppAppAppAppAppAppAppAppAppApp

Specialized Applications

Microprocessor

Open Interface

Linux Mac OS

Windows (OS) or or

Open Interface

[Slide by McKeown 2011]WIFUN@EE-CU

Transition Expectation

15 [Ref: McKeown 2011]

Vertically integrated

Closed, proprietary

Rapid innovation

Huge industry

Slow innovation

Small industry

Horizontal

Open interfaces

WIFUN@EE-CU

How SDN is conceived !horizontal architecture

redefining layer abstraction for control plane

!summarised from keynote talks by

SDN co-inventors (prof McKeown & prof Shenker)

16WIFUN@EE-CU

Page 7: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Daily Seen AbstractionsExecutive summary : conclusion of whole report

Abstract of academic paper : input problem & output solution results

Organisation structure of company: responsibilities & interactions of functional units

17WIFUN@EE-CU

Computer Abstraction

18

Hardwares

Operating System

Applications

Low-level Language

High-level Language

User Interfaces

WIFUN@EE-CU

Network Abstraction

19

[Slide by Shenker 2011]

WIFUN@EE-CU

Abstraction

“The Power of Abstraction”

“Modularity based on abstraction is the way things get done”

Barbara Liskov, MIT

20

Module Interface

WIFUN@EE-CU

Page 8: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Network Abstraction

Plenty in data plane

No powerful ones in control plane

21

[Ref: Shenker 2011]

WIFUN@EE-CU

Network Abstraction

To control network devices … how should we abstract them …

as programmable components

distributively vs centrally

22

[Ref: Shenker 2011]

WIFUN@EE-CU

23

Million of linesof source code

6,000 RFCs

Billions of gatesCustom Hardware

OS

Routing, management, mobility management, access control, VPNs, …

Feature Feature

[Slide by McKeown 2011]WIFUN@EE-CU

Redefined Control Plane

24

Custom Hardware

Custom Hardware

Custom Hardware

Custom Hardware

Custom Hardware

OS

OS

OS

OS

OS

Network OS

Feature Feature

Feature Feature

Feature Feature

Feature Feature

Feature Feature

Feature Feature

[Slide by McKeown 2011]WIFUN@EE-CU

Page 9: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Feature Feature

Network OS

1. Open interface to packet forwarding

3. Consistent, up-to-date global network view 2. At least one Network OS probably many.

Open- and closed-source

SDN Abstraction

Packet Forwarding

Packet Forwarding

Packet Forwarding

Packet Forwarding

Packet Forwarding

[Slide by McKeown 2011]WIFUN@EE-CU

Network OS Centralised Design Choice Example

Gathers local switch information

Constructs global topology view of network

Map central control features into distributed control commands at switches

26[Ref: Shenker 2011]

WIFUN@EE-CU

Topology Abstractiondifferent network views

for different problems

27WIFUN@EE-CU

Topology Abstraction

28

Connectivity Matrix

Routing Matrix

WIFUN@EE-CU

Page 10: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

30

Global Network View

Abstract Network Views

Networ Operating System

Network Virtualisation

SWITCH

SWITCH

SWITCH

SWITCH

SWITCH

WIFUN@EE-CU

SDN Module FunctionalitiesControl program: specifies control feature on abstract network model

Network virtualisation: maps abstract network model to global network view

Network operating system: maps global network view to physical switches

32

[Ref: Shenker 2011]WIFUN@EE-CU

Global Network View

Network Virtualization

Packet Forwarding

Packet Forwarding

Packet Forwarding

Packet Forwarding

Abstract Network View

Control Programs

Control Programs

Control Programs

firewall.c … if( pkt->tcp->dport == 22) dropPacket(pkt); …

Packet Forwarding

Network OS1.<Match, Action> 2.<Match, Action> 3.<Match, Action> 4.<Match, Action> 5.<Match, Action> 6.… 7.…

1.<Match, Action> 2.<Match, Action> 3.<Match, Action> 4.<Match, Action> 5.<Match, Action> 6.… 7.…

1.<Match, Action> 2.<Match, Action> 3.<Match, Action> 4.<Match, Action> 5.<Match, Action> 6.… 7.…

1.<Match, Action> 2.<Match, Action> 3.<Match, Action> 4.<Match, Action> 5.<Match, Action> 6.… 7.… 1.<Match, Action>

2.<Match, Action> 3.<Match, Action> 4.<Match, Action> 5.<Match, Action> 6.… 7.…

[Slide by McKeown 2012]WIFUN@EE-CU

Switch AbstractionPacket Forwarder

!based on (match, action) principle

34WIFUN@EE-CU

Page 11: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Match-Action PrincipleSwitches

match header of incoming packet

with flow entry in their tables

handle packet as instructed by actions

Controller

construct and update the match-action tables

35WIFUN@EE-CU

Match-Action PrincipleIf no headers match,

packet is enqueued

header is sent to controller,

controller sends a new rule

Subsequent packets handled by the new rule

36WIFUN@EE-CU

Matching Fields (ref: OpenFlow Switch Spec v 1.1.0)

37WIFUN@EE-CU

Example of Actions (ref: Jain 2013)

Forward to physical / virtual port

Enqueue to particular queue in the port

Drop

Modify field e.g. VLAN tags, ToS bits, TTL

38WIFUN@EE-CU

Page 12: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Flow Table Example (ref: Jain 2013)

39WIFUN@EE-CU

Global SDN Innovations

53WIFUN@EE-CU

• Ensuring correctness [Frenetic][HFT][Netcore]Nate Foster, Andrew Ferguson, Mike Freedman, Jen Rexford, Rob Harrison, Dave Walker, ++

• Software Fault Localization [W3]Scott Shenker, Colin Scott, Kyriakos Zarifis, Andreas Wundsam.

• Checking behavior [NICE]Marco Canini, Daniele Venzano, Peter Peresini, Dejan Kostic, Jen Rexford.

• Checking Invariants [VeriFlow] Ahmed Khurshid, Wenxuan Zhou, Matthew Caesar, P. Brighten Godfrey

• Consistent updatesMark Reitblatt, Rick McGeer, ++

• Troubleshooting [OFRewind] Andreas Wundsam, Dan Levin, Srini Seetharaman, Anja Feldma

[Slide by McKeown 2012]WIFUN@EE-CU

Current Academic & Industry Supports

55WIFUN@EE-CU

Page 13: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

Software OpenFlow Switches (ref: Jain 2013)

Indigo LINC

Pantou Of13softswitch

XORPlus Open vSwitch

56WIFUN@EE-CU

Hardware OpenFlow Switches (ref: Jain 2013)

Arista 7050 Brocade MLXe, Brocade CER, Brocade CES

Extreme Summit x440, x460, x670 Huawei openflow-capable router platforms

HP 3500, 3500yl, 5400zl, 6200yl, 6600, and 8200zl HP V2 line cards in the 5400zl and 8200zl

IBM 8264 Juniper (MX, EX)

NEC IP8800, NEC PF5240, NEC PF5820 NetGear 7328SO, NetGear 7352SO

Pronto (3290, 3295, 3780) Switch Light platform

57WIFUN@EE-CU

Conclusion

58WIFUN@EE-CU

SDN Impact to ThailandProgrammability of network devices opens new chances for academia to experiment / test research ideas in networks at scale

Lower barrier to entry for new software-based businesses in network industry

More fun in teaching networking

59WIFUN@EE-CU

Page 14: Introduction to SDN Outline - Graduate Study Electrical ... · Introduction to SDN ... centralised) are moved to x86-based controller ... Open- and closed-source SDN Abstraction Packet

ReferencesNick McKeown, “Making SDNs Work,” Keynote Talk, ONS 2012.

Nick McKeown, "How SDNs Will Tame Networks,” Keynote Talk, Hot Interconnects, 2012.

Raj Jain, “Lecture Note: Introduction to OpenFlow,” Washington University, 2013.

Scott Shenker, “The Future of Networking and the Past of Protocols,” ONS 2011.

OpenFlow Specifications

60