Lecture 5- Software Defined Networking
Lecture 5- Software Defined Networking
and Networks
Ketema Adere(PhD)
1
What is Software Defined Network (SDN)?
§ The researchers at a Stanford university introduced:
Virtualized networks (separating software from
hardware network)
A network in which the control plane is
physically separate from the data plane.
and
A single (logically centralized) control plane controls
several forwarding devices.
2
….
n Architecture of Difference between Traditional IP networks
and Software-Defined Network
3
Software Defined Network (…)
n The physical separation of the network control plane from the
forwarding plane, and where a control plane controls several
devices.
n It is an emerging networking paradigm that greatly simplifies
network management tasks.
n It opens the door for network innovation through a programmable
flexible interface controlling the behavior of the entire network.
4
Software Defined Network (…)
q SDN is built around 3 main concepts:
n Programmable Networks
5
Software Defined Network (SDN)
Control Plane
Control
Packet
Forwarding Control
Packet
Forwarding
Control
Packet
Control Forwarding
Packet
Forwarding Control
Packet
Forwarding
n Layered architecture of an SDN network
7
SDN: Separation of Control and Data layer
q Features of SDN
n Makes networking and IP routing flexible
9
A Major Trend in Networking
Entire backbone
runs on SDN
Bought for $1.2 billion
(mostly cash)
10
The Networking “Planes”
n Data plane: processing and delivery of packets with local
forwarding state
n Forwarding state + packet header forwarding decision
n Filtering, buffering, scheduling
11
Timescales
12
Data and Control Planes
control plane
data plane Processor
Switching
Line card Line card
Fabric
n Example: IP Forwarding
LAN 1 LAN 2
router router router
WAN WAN
1.2.3.0/24
5.6.7.0/24
forwarding table 14
Control Plane
n Compute paths the packets will follow
n Dijkstra’s algorithm
15
16
1. Figure out which routers and links are present.
2. Run Dijkstra’s algorithm to find shortest paths.
Data
2
1 “If , send to 3”
17
Management Plane
n Traffic Engineering
n It is related to the dynamic monitoring & control of the network in order
to achieve high level design objectives such as satisfying differentiated
service delay requirements, fast failure recovery & maximizing the traffic
that could be served by the network.
n Setting the weights
n Inversely proportional to link capacity?
n Proportional to propagation delay?
n Network-wide optimization based on traffic?
2
3 1
1
3
2 3
1 5
4 3
18
Challenges
Indirect control
The network is
– Must invert protocol behavior, “coax” it to do what you want
• Hard to reason about
– Ex. Changing weights instead of paths for TE
• Hard
Uncoordinated control
to evolve
– Cannot • Expensive
control which router updates first
Feature Feature
Network OS
Feature Feature
OS
Feature Feature
Custom Hardware
OS
Feature Feature
Custom Hardware
OS
Feature Feature
Custom Hardware
OS
OS
Custom Hardware
20
SDN
3. Consistent, up-to-date global network view 2. At least one Network OS
probably many.
Control Program 1 Control Program 2 Open- and closed-source
Network OS
1. Open interface to packet forwarding
Packet
Forwarding Packet
Forwarding
Packet
Packet Forwarding
Forwarding
Packet
Forwarding
21
Network OS
Network OS: distributed system that creates a consistent, up-to-
date network view
22
SDN
Control Program A Control Program B
Network OS
Packet
Forwarding Packet
Forwarding
Packet
Packet Forwarding
Forwarding
Packet
Forwarding
Control Program
Control program operates on view of network
n Input: global network view (graph/database)
n Output: configuration of each network device
24
Forwarding Abstraction
Purpose: Standard way of defining forwarding state
n Flexible
n Behavior specified by control plane
n Minimal
n Streamlined for speed and low-power
25
SDN
Virtual Topology
Network
ControlHypervisor
Program
Global Network View
Network OS
26
Virtualization Simplifies Control Program
Abstract Network View
A
AB drop
B
Hypervisor then inserts flow entries as needed
A AB drop
Global Network View
AB drop
B 27
Does SDN Simplify the Network?
28
Does SDN Simplify the Network?
29
The benefits of SDN
n While SDN is only a networking paradigm, the benefits of SDN
could be achieved through using the correct application.
n Several applications utilizing the benefits of SDN Five major
application domains:
• Hybrid network control,
• Traffic Engineering,
• Data Center networking,
• Wireless networks &
• Network security applications
30
Why is SDN happening now?
31
The Road to SDN
n Active Networking: 1990s
- First attempt make networks programmable
- Demultiplexing packets to software programs, network
virtualization, …
32
SDN Drivers
33
Virtualization is Killer App for SDN
Consider a multi-tenant datacenter
- Want to allow each tenant to specify virtual topology
- This defines their individual policies and requirements
34
What is OpenFlow?
n OpenFlow is a Layer 2 communications protocol that gives access
to the forwarding plane of a network switch or router over the
network
36
OpenFlow Basics
n OpenFlow:
n Interface between switches and controllers
n Enabling SDN
n “OpenFlow: Enabling Innovation in Networks”
n Like hardware drivers
37
OpenFlow Basics
Network OS
OpenFlow Protocol
Network OS
“If header = p, send to port 4”
Packet “If header = q, overwrite header with r,
Forwarding add header s, and send to ports 5,6”
“If header = ?, send to me”
Flow
Packet Table(s)
Forwarding Packet
Forwarding
Primitives <Match, Action>
Match: 1000x01xx0101001x
n Match on any header, or new header
n Allows any flow granularity
Action
n Forward to port(s), drop, send to controller
n Overwrite header with mask, push or pop
n Forward at specific bit-rate
OpenFlow Rules
Exploit the flow table in switches, routers, and chipsets
Flow 1. Rule
Action Statistics
(exact & wildcard)
Flow 2. Rule
Action Statistics
(exact & wildcard)
Flow 3. Rule
Action Statistics
(exact & wildcard)
Rule
Flow N. Default Action Statistics
(exact & wildcard)
41
Practical Challenges
n Scalability
• Decision elements responsible for many routers
n Reliability
• Surviving failures of decision elements and routers
n Response time
• Delays between decision elements and routers
n Consistency
• Ensuring multiple decision elements behave consistently
n Security
• The centralized SDN controller presents a single point of failure
• Network vulnerable to attacks on decision elements
n Interoperability
• Legacy routers and neighboring domains
42
Thank You!
43