Software Defined Network
Software Defined Network
1
VARIOUS CONTROL AND DATA PLANE
Control Plane
Sending data without controller
Ryu Controller
POX Controller
NOX Controller
Floodlight Controller
OpenDaylight Controller
Data Plane
Openflow Switch
OVS Switch
BVM2 Switch
2
SIMULATION :
3
OUTLINE OF PRESENTATION
Traditional Network
Problems associated with traditional network
Software Defined Network-SDN
Introduction
Working of SDN
Architecture & protocol stack
5
FAT TREE TOPOLOGY
6
TRADITIONAL NETWORK
Router B
PCis
Routing table
generated by
Routing Table exchanging
Match Action Routing
information
Router C
Routing Table
Match Action
OpenFlowSwitch.org 7
TRADITIONAL NETWORK (CONTINUE…)
Intelligence for
Generating
Routing Table
Efficient
Searching
8
TRADITIONAL NETWORK NODE
Router
Router can be partitioned into three planes
1. Management plane configuration
2. Control plane make decision for the route
3. Data plane data forwarding
Topology DB
Config DB
Control
RIB Plane
Routing and
Signaling
Policy DB
Routing Table
P1 Forwarding
P2 P3 Plane
Pn
10
Network Device
Management Plane
Control Plane
Data Plane
Network
Network Device
Device
(Router/Switc
h)
Basic Terminology
Management/Policy Plane
To configure control plane
Monitor the device its operation, interface, counter etc.
CLI/SNMP/NetConf
Control Plane
Runs in switch/router CPU
Processing speeds of thousands of packets/sec
Processes such as Routing Protocols
Data Plane
Dedicated h/w ASICs
Processing speeds of millions or billions of packets/sec
Data plane functionality such as L2/L3 forwarding , QoS, ACLs etc.
Today's Network Devices
Management Management
Plane Plane
Vendor
Cisco , Juniper
etc
Customer (Service
Provider)
AirTel, Idea etc.
Vendor Dependence
~4
Add New Feature Add Days
Feature Software
engineer
Vendor Project
Cisco , Juniper Manager 1
year
etc
Hardware
engineer
Customer (Service
Provider)
AirTel, Idea etc.
Vendor Dependence
Network Operators and Owners depend on Vendors to introduce
new features
Vendors software release cycles ~ months
Vendors hardware custom ASIC ~ Years
Interoperability requiers Open Standard ~ Years
Operation Cost
Capex and Opex Costs
30% capex & 70% opex
Many Networking experts are required to manage the
complexity of their own products
IT teams globally under tremendous pressure to
decrease opex costs
PROBLEMS ASSOCIATED WITH TRAD. NW.
Slow convergence
19
TRADITIONAL NETWORK
Router B
PC
It takes some
Routing Table time to
Match Action generate
accurate
routing table
Router C
Routing Table
Match Action
OpenFlowSwitch.org 20
PROBLEMS ASSOCIATED WITH TRAD. NW.
Slow convergence
Distributed computing
Multiple location intelligence computing
21
TRADITIONAL NETWORK
Router B
PC
Routing Table
Match Action
Router C
Routing Table
Match Action
OpenFlowSwitch.org 22
PROBLEMS ASSOCIATED WITH TRAD. NW.
Slow convergence
Routing table updates take some time
Distributed computing
Multiple time & location computing
Proactive
Resources has to allocate and are computing same
thing all the time
Even data are not sent and received
No flexibility of programming to user
23
REQUIREMENT OF GOOGLE [1]
Unified view of the network fabric
High utilization
Faster failure handling
Faster time to market/deployment
Elastic compute
Easy to Manage
Simple to configure each interface
Simple to configure network wide function
Much Flexible
More susceptible to future innovations
24
HISTORY OF PROGRAMMABLE NETWORKS
25
SDN Defination-1 (ONF)
“The physical separation of the network control plane from the
forwarding plane, and where a control plane controls several
devices”
SDN M.P
Controller C.P
M.P M.P
C.P C.P
Feature Feature
Feature Feature
Feature Feature
Feature Feature
Feature Feature
28
SDN CONCEPT
SDN separates Control and Data plane functions
Control & Management Plane
SDN Controller
(S/W)
OpenFlow
Data Plane
Router/Switch
31
SDN: PLANES OF SDN [2]
Control Plane: establishing the state in routers
Determines how and where packets are forwarded
Routing, traffic engineering, firewall state, …
Slow time-scales (per control event)
32
HOW DOES IT WORK?
Controller
Path to dest
PC
OpenFlow
Rule Switch
Action Statistics
OpenFlow
Protocol
OpenFlow OpenFlow
Rule Action Statistics Rule Action Statistics
Switch Switch
OpenFlowSwitch.org 33
DIFFERENCE
34
THE ACTUAL FLOW TABLE LOOKS LIKE
35
FLOW TABLE: BASIC ACTIONS
All: To all interfaces except incoming interface.
Controller: Encapsulate and send to controller.
Local: send to its local networking stack.
Table: Perform actions in the next flow table (table
chaining or multiple table instructions).
In_port: Send back to input port.
Normal: Forward using traditional Ethernet.
Flood: Send along minimum spanning tree except the
incoming interface.
36
INSTALLATION OF MININET (UBUNTU 14 ONLY)
38
TESTING OF MININET
39
COMMANDS
Pingall
Pingallfull
Ports
40
LINK
links
Link up and down
links1 h1 down
h1 ping h2 //Ping from h1 to h2
h2 ping h1 //Ping from h2 to h1
link s1 h1 up
h1 ping h2 //Ping from h1 to h2
h2 ping h1 //Ping from h2 to h1
41
1. TOPOLOGY IN MININET
Creating a simple topology using CLI and
Python
#sudo mn --topo linear,4
creates
a topology of 4 nodes, each connected with a
separate switch
#sudo mn --topo single,4
creates a topology 4 nodes, each connected with a single
switch
#sudo mn --link tc,bw=10,delay=10ms
setbandwidth to 10Mbps and delay to 10ms for all the
links in network
42
VERIFY DELAY AND BANDWIDTH
#sudo mn --link tc,bw=10,delay=10ms
set bandwidth to 10Mbps and delay to 10ms for all the links
in network
To verify delay
To verify bandwidth
Type following command at mininet terminal (>)
Xterm h1
Xterm h2
On X-terminal of h1 type following command
iperf –s &
On X-terminal of h2 type following command
iperf –c h1
43
2. CREATING CUSTOM TOPOLOGY
#cd Desktop/Mininet
#ls custom
You will get file named topo-2sw-2host.py
Open file
#gedit custom/topo-2sw-2host.py
44
45
46