Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SDN Concepts
SDN Controller
OpenFlow
OpenSource SDN
Mininet Demo
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Agenda
SDN Concepts
SDN Controller
OpenFlow
OpenSource SDN
Mininet Demo
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
SDN: An Open Source Demo
SDN Concepts
Increased:
o Efficiency
o Scalable
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
SDN: An Open Source Demo
SDN Concepts
Control, SDN
Program Entire Network
Control
Physical
separation
Forwarding
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
SDN: An Open Source Demo
SDN Concepts
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
SDN: An Open Source Demo
SDN Concepts
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
SDN: An Open Source Demo
SDN Concepts
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Agenda
SDN Concepts
SDN Controller
OpenFlow
OpenSource SDN
Mininet Demo
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
SDN: An Open Source Demo
SDN Controller
Control
Physical
separation
Forwarding
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
SDN: An Open Source Demo
SDN Controller
Traditional networks
Operating
System
App App App
Specialized Packet
Forwarding Hardware
Operating
System
Specialized Packet
App App App
Forwarding Hardware
Operating
System
Specialized Packet
Forwarding Hardware
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
SDN: An Open Source Demo
SDN Controller
Control Programs SDN based networks
Network Operating System
Simple Packet
Forwarding
Hardware Simple Packet
Forwarding
Hardware
Simple Packet
Forwarding
Hardware
Simple Packet
Forwarding
Hardware
Simple Packet
Forwarding
Hardware © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Dr. Jawad Khalife
SDN: An Open Source Demo
SDN Controller
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
Agenda
SDN Concepts
SDN Controller
OpenFlow
OpenSource SDN
Mininet Demo
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
SDN: An Open Source Demo
OpenFlow
Control, Program
(Open Flow Language) How does the controller instructs
Control
the forwarding devices?
Physical
separation
Forwarding
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
SDN: An Open Source Demo
OpenFlow
Open Flow forwarding (Reactive)
For every flow the SDN device sends a “PACKET IN” message to the controller
The controller based on what application’s needs sends a “PACKET OUT” message
Controller
SDN
Device PACKET IN
Packet Out SDN
Device SDN
Device
SDN
Device
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
SDN: An Open Source Demo
OpenFlow
Open Flow forwarding (Proactive)
The controller preprograms the forwarding table of devices according to the application
When the flow matching the preprogramed flow entry enters the device the controller is NOT
consulted
Controller
pre-configured rules
SDN
Device
SDN
Device SDN
Device
SDN
Device
pre-configured rules pre-configured rules
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
SDN: An Open Source Demo
OpenFlow (Forwarding Rules)
Rule Action Stats
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
SDN: An Open Source Demo
OpenFlow (Rules Examples)
Switching
Switch MAC MAC Eth VLAN IP IP IP TCP TCP
Action
Port src dst type ID Src Dst Prot sport dport
* * 00:1f:.. * * * * * * * port6
Routing
Switch MAC MAC Eth VLAN IP IP IP TCP TCP
Action
Port src dst type ID Src Dst Prot sport dport
* * * * * * 5.6.7.8 * * * port6
Firewall
Switch MAC MAC Eth VLAN IP IP IP TCP TCP
Action
Port src dst type ID Src Dst Prot sport dport
* * * * * * * * * 22 drop
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
SDN: An Open Source Demo
OpenFlow (Forwarding Table)
Protocol QoS
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
Let’s put all together…
SDN
Real Case Examples
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
Software Defined Networks
Open Flow Messages
▪ Example: H1 HTTP Request to H4
• 1 FW
• 2 routers
• 2 Switches
• 8 Cables
…..Replaced by
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
Software Defined Networks
Open Flow Messages
▪ Example: H1 HTTP Request to H4
• 1 Controller
• 1 Switch
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
Open Flow
Reactive scenario
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
Software Defined Networks
Open Flow Messages: Reactive scenario
▪ Example: H1 HTTP Request to H4
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
Software Defined Networks
Open Flow Messages: Reactive scenario
▪ Example: H1 HTTP Request to H4
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
Software Defined Networks
Open Flow Messages: Reactive scenario
▪ Example: H1 HTTP Request to H4
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28
Software Defined Networks
Open Flow Messages: Reactive scenario
▪ Example: H1 HTTP Request to H4
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
Software Defined Networks
Open Flow Messages: Reactive scenario
▪ Example: H1 HTTP Request to H4
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
Open Flow
Proactive scenario
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
Software Defined Networks
Open Flow Messages: Proactive scenario
▪ Example: H1 HTTP Request to H4
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
Agenda
SDN Concepts
SDN Controller
OpenFlow
OpenSource SDN
Mininet Demo
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
SDN: An Open Source Demo
OpenSource SDN (Open Controllers)
Name Lang Platform(s) License Original Notes
Author
OpenFlow C Linux OpenFlow Stanford/Nicira not designed for
Reference License extensibility
Beacon Java Win, Mac, GPL (core), David Erickson runtime modular, web UI
Linux, FOSS (Stanford) framework, regression test
Android Licenses for framework
your code
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
SDN: An Open Source Demo
Conclusion
• SDN
Efficiency, Ease of management
• SDN:
Data-Center driven initiative
Centralized , programmable virtual network (Custom
Forwarding Policy)
Separation of control and data plane
OpenFlow, an Interface to program switches via controller
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36
Agenda
SDN Concepts
SDN Controller
OpenFlow
OpenSource SDN
Mininet Demo
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
SDN: An Open Source Demo
Mininet Emulator
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38
SDN: An Open Source Demo
Mininet Emulator
Virtual test bed and development environment for
software-defined networks (SDN).
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
SDN: An Open Source Demo
Mininet Emulator (LAB Requirements)
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
SDN: An Open Source Demo
Mininet Emulator (Simple Topologies)
Creating Simple Topology:
firefox httpd
# sudo mn
Host Switch Host
Creating Topologies:
# mn
# mn --topo tree,depth=3,fanout=3 --link=tc,bw=10
# mn --topo linear,100
mininet> xterm h1 h2
h1# wireshark &
h2# python -m SimpleHTTPServer 80 &
h1# firefox & © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
Dr. Jawad Khalife
SDN: An Open Source Demo
Mininet Emulator (Simple Topologies)
Topology:
• 2 Hosts
• 1 Switch
Controller • 1 Controller
firefox httpd
h1 Switch h2
eth1 10.0.0.2
10.0.0.1 eth0 S1
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
SDN: An Open Source Demo
Mininet Emulator (Simple Topologies)
Topology:
Controller • 2 Hosts
C0 • 1 Switch
port6633
loopback
• 1 Controller
(127.0.0.1:6633)
loopback
S1 OpenFlow (127.0.0.1:6634)
dpctl
(user space
Switch process)
s1-eth0 s1-eth1
h1-eth0 h2-eth0
h1 h2
10.0.0.1 10.0.0.2
virtual hosts
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
SDN: An Open Source Demo
Mininet Emulator (Custom Topologies)
Creating custom Topologies:
# mn --custom custom.py --topo mytopo
Mininet FAQ:
https://github.com/mininet/mininet/wiki/FAQ#NAT
Mininet Walkthrough:
http://mininet.org/walkthrough/
Dr. Jawad Khalife © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45