SDN/OpenFlow

Architecture and Performance Analysis


Speaker




Rohit Kumar(2011eec10)
Shikha Mishra (2011eec33)
Apporva Shukla(2011eec34)
Prayag Varshney(2011eec40)

AGENDA

In this presentation, we attempt to explain the following :

  • Motivation
  • Architecture
  • Simulation Tools Used
  • Performance Analysis of OpenFlow Controllers
  • Existing Network 
  • Future Work

Motivation

uToday, there is almost no practical way to experiment with new network protocols in sufficiently realistic settings since there are already a large number of existing networks. . This leads to no or very less experimenting of the new networks, which may be better than the existing ones. This is where OpenFlow comes in. It is a way to run experimental protocols used everyday.
uIt also helps to evaluate the networks in real-world traffic settings. Also with OpenFlow, entries can be added and removed to the internal flow-table of switches and potentially routers to make the network more responsive to real-time traffic demands.

uSoftware-Defined Networking (SDN) has emerged as a flexible way to control the network in a systematic way, with OpenFlow as the most commonly used SDN protocol which brings flexibility and programmability to networks and introduces new services and features.

SDN and Open Flow


OPENFLOW


  • General  Myth
    • SDN is OpenFlow

  • Reality
    • OpenFlow is a open API that provides a standard interface for the data plane Switches. 


OpenFlow 

 OpenFlow is a protocol that allows a server to tell network switches where to  send packets. With OpenFlow, the packet-moving decisions are centralized,  so that the network can be programmed independently of the individual  switches and data center gear. OpenFlow is considered the first software-defined networking (SDN) standard.


         

  Figure 1: The Components of OpenFlow switch



OpenFlow is a flow-oriented system and has switches and ports abstraction to control the flow that began in 2008 as a Stanford University Research Project.

The controller communicates with the OpenFlow switch and manage the switch via OpenFlow protocol. An OpenFlow switch consist of flow tables, a group tables and an OpenFlow channel.

OpenFlow ports are virtual ports at the network interface. They pass packets between OpenFlow processing and rest of the network. OpenFlow switches connect with each other via OpenFlow ports.

The OpenFlow protocol supports three message types


1.Controller-to-switch  messages: Initiated by the controller and used to directly manage or inspect the state of  the switch.
>Features , Config , Modify State , Packet Out , Buffer.
2.Asynchronous Messages: Asynchronous messages are initiated by the switch and used to update the controller of network events and changes to the switch state.
>Packet-in , Flow Expiry , Port Status , Error.
3.Symmetric Messages: Symmetric messages are initiated by either the switch or the controller and sent without solicitation.
>Hello,Echo,Vendor.

Software Defined Networking(SDN)

Software-Defined Networking (SDN) is an emerging architecture that is dynamic, manageable, costeffective, and adaptable, making it ideal for the high-bandwidth, dynamic nature of today's applications. This architecture decouples the network control and forwarding functions enabling the network control to become directly programmable and the underlying infrastructure to be abstracted for applications and network services.

SDN is a form of network virtualisation where the control plane is separated from the data plane and moved to an external software controller. A central controller performs all complex functions, including routing, naming, policy declaration, and security checks. This plane constitutes the SDN Control Plane, and consists of one or more SDN servers. The SDN Controller defines the data flows that occur in the SDN Data Plane. Each flow through the network must first get permission from the controller, which verifies that the communication is permissible by the network policy. If the controller allows a flow, it computes a route for the flow to take, and adds an entry for that flow in each of the switches along the path. 


fig 2.


Simulation tools used

1. Mininet : It is a network emulator that simulates a collection of end-hosts, switches, routers, and links on a single Linux kernel. It is commonly used as a simulation, verification, testing tool and resource. It is an open source project hosted on GitHub.

 In short, Mininet's virtual hosts, switches, links, and controllers are the real thing. They are just created using software rather than hardware and for the most part their behavior is similar to discrete hardware elements.


Features 

There are other network emulators which implement OpenFlow, but we are using Mininet because it has the following features:

• It's fast - starting up a simple network takes just a few seconds. This means that your run-editdebug loop can be very quick.

• You can create custom topologies: a single switch, larger Internet-like topologies, the Stanford backbone, a data center, or anything else.

•  You can run real programs: anything that runs on Linux is available for you to run, from web servers to TCP window monitoring tools to Wireshark.

•  You can customize packet forwarding: Mininet's switches are programmable using the OpenFlow protocol. Custom Software-Defined Network designs that run in Mininet can easily be transferred to hardware OpenFlow switches for line-rate packet forwarding.

•  You can share and replicate results: anyone with a computer can run your code once you've packaged it up. 

Upon execution of mininet emulation environment with default topology, the OpenFlow controller and switch initiate the OpenFlow protocol , which can be captured and viewed in the wireshark capturing window.

One reason mininet is widely used for experimentation is that it allows you create custom topologies, many of which have been demonstrated as being quite complex and realistic, such as larger, internet like topologies.

Mininet supports different types of topologies, switches (ovsk, ovsl, user), hosts (cfs, proc, rt),controllers (none, nox, ovsc, ref, remote,pox), and tests (pingall, pingpair, iperf, all).

2. Wireshark: It is a free and open-source packet analyzer and used for network troubleshooting, analysis, software and communications protocol development, and education. It is cross-platform, using the GTK+ widget toolkit in current releases, and Qt in the development version, to implement its user interface, and using pcap to capture packets.

Wireshark is extremely useful for watching OpenFlow protocol messages, as well as general debugging.


Wireshark Welcome Screen


Wireshark Packet Analysis Window


Implementation
  • Setting up VM
  • Setting up network access
$ ifconfig –a
$ ssh -X [user]@[Guest IP Here]
  • Creating network:
    • Various Topologies (Without remote controller )
$ sudo mn --topo single
$ sudo mn --topo linear,4 
$ sudo mn --topo tree, depth=2, fanout=2 


Cont'd...

  • Using Default Controller
    • $ sudo mn --topo single,6 --mac  --controller remote
    • $ h1 ping –c 1 h3 
  • Dpctl Utility
    • $ dpctl show tcp:127.0.0.1:6634
    • $ dpctl dump-flows tcp:127.0.0.1:6634
    • $ dpctl add-flow tcp:127.0.0.1:6634 in_port=1,actions=output:2
    • $ dpctl add-flow tcp:127.0.0.1:6634 in_port=2,actions=output:1
    • $ dpctl add-flow tcp:127.0.0.1:6634in_port=1,
    • idle_timeout=120,actions=output:2
    • $ xterm h1 h2 h3 h4 h5 h6 
    • >iperf (To calculate the bandwidthbetween hosts.)

fig

Wireshark Showing Protocol Hierarchy


fig.

Cont'd...

Using Pox Controller

    • $ sudo mn -c
    • $ sudo mn --topo single,6 --mac  --controller remote
    • $ cd pox$./pox.py log.level --DEBUG misc.of_tutorial

Verification

    • >xterm h1 h2 h3 h4 h5 h6
    • # tcpdump -XX -n -i hx-eth0


Fig

Fig.

Fig


Fig.



Fig.


fig


fig


Cont'd...

Using Pox Controller

  • $ sudo mn -c
  • $ sudo mn --topo single,6 --mac  --controller remote
  • $ cd pox$python./pox.py forwarding.l2_learning

Verification

  • >xterm h1 h2 h3 h4 h5 h6
  • # tcpdump -XX -n -i hx-eth0

Fig


Fig


Fig

Fig

Fig


Fig


Wireshark Result


POX Vs OVS

Pox Result

NODES

BANDWIDTH

(Gbps)

 ROUND TRIP       DELAY (ms)         (RTT)

H1 H2

9.93

0.062

H2 H3

9.34

0.098

H3 H4

17.2

0.090

H4 H5

9.61

0.095

H5 H6

9.80

0.092

H6 H1

16.4

0.096

B.W= 11.20 Gbps, RTT= 0.088 ms

OVS Controller

NODES

BANDWIDTH

(Gbps)

ROUND TRIP DELAY (ms)

(RTT)

H1 H2

9.91

0.093

H2 H3

10.1

0.085

H3 H4

9.74

0.107

H4 H5

9.59

0.119

H5 H6

9.70

0.112

H6 H1

18.2

0.112


                   B.W= 12.03 Gbps, RTT= 0.104 ms


Summary

After analysing the result of default and pox controller, the bandwidth of pox is greater than default controller.  Hence pox controller is used for  

Future Scope

•A new method for modification of flow-entries in an OpenFlow switch is needed.
•Designing OpenFlow network in a wireless environment and successful configuration of OpenFlow network for real world application is still a challenge for SDN community. OpenRoads (OpenFlow wireless) is one such platform.
•For emulating wireless OpenFlow switches and read realistic user traffic/movement and also to implement in same in a hardware platform.

•SDN can transform today’s static networks into more flexible, programmable platforms to provide scalability to support large data centers. It will also provide virtualization that is needed to support automated, dynamic and secure cloud environment.






Thank You

Any questions ?

Copy of Copy of Copy of SFD Python Workshop

By Prayag Varshney

Copy of Copy of Copy of SFD Python Workshop

  • 477