+ All Categories
Home > Documents > Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the...

Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the...

Date post: 25-May-2019
Category:
Upload: buibao
View: 214 times
Download: 0 times
Share this document with a friend
15
SDN - OpenDaylight Controller SOFTWARE DEFINED NETWORKING Introduction to OpenDaylight Controller Agenda 1. Introduction 2. Installing OpenDaylight 3. Running OpenDaylight 4. Installing Mininet 5. Using OpenDaylight with Mininet 6.Assignments 7.Learn More Department of Computer Science, Christ University Page 1
Transcript
Page 1: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

SOFTWARE DEFINED NETWORKINGIntroduction to OpenDaylight

Controller

Agenda

1. Introduction 2. Installing OpenDaylight3. Running OpenDaylight4. Installing Mininet5. Using OpenDaylight with Mininet6. Assignments7. Learn More

Department of Computer Science, Christ University Page 1

Page 2: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

1. Introduction

OPENDAYLIGHT:OpenDaylight (ODL) is a popular open-source SDN controller framework. To learn more about OpenDaylight, it is helpful to use it to manage an emulated network of virtual switches and virtual hosts. Most people use the Mininet network emulator to create a virtual SDN network for OpenDaylight to control. It is one of the open source SDN project aimed at enhancing software-defined-networking which is hosted by Linux Foundation. It is offering a community-led and industry-supported framework for ODL controller which has been renamed as “Open Daylight Platform”.ODL is implemented solely in software and is kept within its own Java Virtual Machine (JVM). It is open to anyone, including the end users and customers and it provides a shared platform for those with SDN goals to work together to find new solutions. Basically, it is exposed on the northbound APIs, which are used by the applications.

MININET:Mininet is a network emulator, or perhaps more precisely a network emulation. It runs a collection of end-hosts, switches, routers, and links on a single Linux kernel. It uses lightweight virtualization to make a single system look like a complete network, running the same kernel, system, and user code. A Mininet host behaves just like a real machine; you can ssh into it (if you start upsshd and bridge the network to your host) and run arbitrary programs (including anything that is installed on the underlying Linux system.) The programs you run can send packets through what seems like a real Ethernet interface, with a given link speed and delay. Packets get processed by what looks like a real Ethernet switch, router, or middlebox, with a given amount of queueing. When two programs, like an iperf client and server, communicate through Mininet, the measured performance should match that of two (slower) native machines.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. It is usually possible to create a Mininet network that resembles a hardware network, or a hardware network that resembles a Mininet network, and to run the same binary code and applications on either platform.

Department of Computer Science, Christ University Page 2

Page 3: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

2. InstallationOpenDaylight can be installed in your system by the following ways:

1. We can install ODL by using SDN Hub2. We can install ODL from the OpenDaylight website.

Step 1 : Open a new terminal using the following command.Ctrl + Alt + t

Step 2: OpenDaylight is a java based application and it requires JAVA JDK to run.To check if java JDK is already installed in your system, execute the following command in the terminal.

java<space>–version(The above command will show you the java version installed in your system along with its mode)

javac<space>–version(The above command will show you the java version installed in your system)

As shown above if you can see the java version in terminal skip to step number 4 or follow step number 3 for installing java.

Department of Computer Science, Christ University Page 3

NOTE: In this tutorial we will be installing the controller on UBUNTU operating system by using the second method.

Page 4: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

Step 3: Install Javasudo<space>apt-get<space>install<space>openjdk-7-jre

(The above command will install the java version 7 in your system)

Step 4: Install OpenDaylight controller from the following websitewget https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.4.0-Beryllium/distribution-karaf-0.4.0-Beryllium.tar.gz

(The above command will install the tar file)

Step 5: Extract the tar filetar -xvf distribution-karaf-0.4.0-Beryllium.tar.gz

(The above command will extract all the files from that tar file.)

Department of Computer Science, Christ University Page 4

Page 5: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

3. Running OpenDaylight

Step 1: Open a new terminal:Ctrl + Alt + t

(The above command will open a new terminal)

Step 2: Specify the path of the controller: cd<space>distribution-karaf-0.4.0-Beryllium (The above command will take to the path of the controller)

Step 3: Run the Controller./bin/karaf

(The above command will connect the ODL controller to the bin karaf.)

(The above figure depicts the running of ODL controller)

Department of Computer Science, Christ University Page 5

Page 6: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

Step 4: Verify if OpenDaylight controller is active and running 192.168.56.130:8181/index.html#/login

(The above command will open the GUI of OpenDaylight controller in the default browser. Make sure your giving the proper port number.)

(The above figure is the OpenDaylight controller GUI of Dlux karaf)

STEP 5: Enter username and password. Type the username and password as admin. Further, it takes you to the homepage of ODL.

Department of Computer Science, Christ University Page 6

IMPORTANT NOTE:If you are not aware of the port number then, open a new terminal in your UBUNTU and type the command ifconfig follow the eth0 inet addr number. That is your port number.

Page 7: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

STEP 6: Install all the important features which are required for the ODL. Few of the feature installation commands are as below:

1) feature:install<space>odl-dlux-node2) feature:install<space>odl-dlux-core3) feature:install<space>odl-dlux-yangui4) feature:install<space>odl-dlux-yangvisualizer5) feature:install<space>odl-restconf6) feature:install<space>odl-l2switch-switch7) feature:install<space> odl-l2switch-switch-ui8) feature:install<space>odl-l2switch-switch-rest9) feature:install<space>odl-l2switch-hosttracker10) feature:install<space>odl-l2switch-addresstracker11) feature:install<space>odl-l2switch-packethandler12) feature:install<space>odl-l2switch-arphandler13) feature:install<space>odl-l2switch-loopremover14) feature:install<space>odl-l2switch-all15) feature:install<space>odl-dlux-all16) feature:install<space>odl-restconf<space>odl-l2switch-switch<space>odl-mdsal-apidocs odl-dlux-all

STEP 7: In order to have a look of features, which are been installed onto the system. Please type the following command.

feature:list<space>--installed

Department of Computer Science, Christ University Page 7

Page 8: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

4. Installing Mininet

Step 1: Open a new terminal.

Ctrl + Alt + t(above command will open a new terminal)

Step 2: Install GITsudo<space>apt-get<space>install<space>git

(The above command will install git version control in your machine)

Step 3: Clone Mininet from gitgit clone git://github.com/mininet/mininet

(The above command will clone into the mininet and make sure all the required packages are been cloned.)

Step 4: After installation

cd mininet

(The above command will change the directory path)

Step 5: List all the available versions of git

git tag #

(The command will all the versions of the git)

Step 6: Install any version of your wish with the help of following command

git checkout -b 2.2.1<space>2.2.1

Step 7: After the installation has completed, test the basic Mininet functionality

sudo<space>mn<space>--test<space>pingall

(The above command will ping the hosts and switches, which tells about the correct installation of the Mininet)

Department of Computer Science, Christ University Page 8

Page 9: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

5. Running OpenDaylight controller with MininetThis section will help you to understand how to configure your Mininet tool to work with

floodlight controller instead of the default controller of Mininet.

Step 1 :Open a new terminal.Ctrl + Alt + t

(above command will open a new terminal)

Step2: Run the ODL controller as we did earlier

Step 3: Open another new terminal and connect with the Mininetcd mininet

(above command will change directory path to mininet )

Step 4: Connect Mininet VM using SSH ssh<space>-X<space>192.168.56.130

(The above command will start the remote session and ask for your password.)

Step 5: Before running any code for topology, run the following codesudo mn -c

(The above command will perform the clean up process)

Department of Computer Science, Christ University Page 9

Page 10: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

Step 6: Now type the topology codeSingle topology creation:sudo<space>mn<space>--controller=remote,ip=192.168.56.130<space>--topo=single,4

Test the network with this command: pingall

sudo<space>mn<space>--controller=remote,ip=192.168.56.130<space>--topo=single,24

Department of Computer Science, Christ University Page 10

Page 11: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

linear topology creation:sudo<space>mn<space>--controller=remote,ip=192.168.56.130<space>--topo=linear,5

(The above command will create a linear topology)

(The above figure shows how the linear topology looks like.)

Tree topology creation: sudo<space>mn<space>--controller=remote,ip=192.168.56.130<space>--topo=tree,4,2

Department of Computer Science, Christ University Page 11

Page 12: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

Torus topology creation:<space>mn<space>--controller=remote,ip=192.168.56.130<space>--topo=torus,3,3

(The above picture depicts the Torus topology before pingall command)

Step 7: View the topology Click on the browser and view the topologies in the ODL controller.

Department of Computer Science, Christ University Page 12

Page 13: Floodlight - bhg2.files.wordpress.com file · Web viewexecute the following command in the terminal. java –version (The above command will show you the java version

SDN - OpenDaylight Controller

6. Assignments

Demonstrate the following topologies and obtain the topology designs from the controllers GUI

1. Topology with depth and fanout.2. Work with the “Torus” topology.3. Tree Topology of 600 host and 60 switches

7. Learn More

https://www.brianlinkletter.com/using-the-opendaylight-sdn-controller-with-the-mininet-network-emulator/

Department of Computer Science, Christ University Page 13


Recommended