Floodlight Controller Tutorial - Pradeepa

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

10/20/2020 Floodlight Controller Tutorial | Pradeepa

Edit this message in the Customizer (Theme Options)

Pradeepa

Floodlight Controller Tutorial

Posted on March 6, 2018March 6, 2018 by Pradeepa

Floodlight Controller:

The Floodlight Open SDN Controller is an enterprise-class, Apache-licensed, Java-based OpenFlow


Controller and intended to run with standard JDK tools and ant.

Highlights:

Easy to set up with minimal dependencies


Supports a broad range of virtual and physical OpenFlow switches
Can handle mixed OpenFlow and non- OpenFlow networks.
It can manage multiple “islands” of OpenFlow hardware switches
Designed to be high-performance

Installation:

Floodlight master has been updated (on 04/30/16) to Java 8.

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 1/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

Prerequisites:

Java development kit


JDK 8 for Floodlight master and above
JDK 7 for Floodlight v1.2 and below
Ant to build
Python development package

-To download dependencies for Floodlight master and above:

sudo apt-get install build-essential ant maven python-dev

-To download dependencies for Floodlight v1.2 and below:

sudo apt-get install build-essential openjdk-7-jdk ant maven python-dev eclipse

Download And Build:

Floodlight is simple to download from Github and install. The “git clone” step below uses the master
version of Floodlight.Type the below command in SDNHub Terminal.

$ git clone git://github.com/floodlight/floodlight.git

If You are having JDK 7 use a specific version, specify the version branch in the “git clone”

$ git clone -b v1.2 git://github.com/floodlight/floodlight.git

After installation complete follow the steps to build floodlight controller.

$ cd floodlight
$ git submodule init
$ git submodule update
$ ant

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 2/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

After build completed successful. Make a directory floodlight and set root permission for it.
$ sudo mkdir /var/lib/floodlight
$ sudo chmod 777 /var/lib/floodlight

Running Floodlight in the Terminal

Assuming java is in your path, you can directly run the floodlight.jar file produced by ant from
within the floodlight directory:

$ java -jar target/floodlight.jar

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 3/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

To Create mininet topology with floodlight remote controller, another terminal run the below
command,

$ cd floodlight

$ sudo mn --controlle=remote,ip=127.0.0.1,port=6653 --topo=single,3

we created single topology with 3 host 1 switch and one controller. This can be view in the following
url. Go to web browser and type,

http://127.0.0.1:8080/ui/index.html (http://127.0.0.1:8080/ui/index.html)

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 4/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

In topology tab we can see our topology.

Switches can be view in switches tab.

Hosts are listed in Hosts tab.

we can view host separately by xterm in mininet

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 5/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

mininet>xterm h1 h2

ping each other host by ping command with host IP

In node h1 $ ping 10.0.0.2

In node h2 $ ping 10.0.0.1

Done

Congrats! Now you can simulate your various topologies with floodlight controllers.

Posted in Floodlight, SDN, SDN controllers, SDN simulator Tagged Floodlight, Floodlight
installation, Floodlight tutorial, SDN, SDN Controller 3 Comments

3 thoughts on “Floodlight Controller Tutorial”


https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 6/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

1.
Emran says:
April 23, 2018 at 8:14 pm
Hello,
This is really a very helpful website. I am interested in SDN Simulator which has support for both
SDN based Wifi and Cellular networks. Can you please guide me which simulator has support for
both SDN based Wifi and Cellular networks.
Regards,
Emran

REPLY
1.
Pradeepa says:
May 21, 2018 at 6:13 am
Thank you. you can use mininet wifi for sdn based wifi

2. REPLY
Pradeepa says:
May 21, 2018 at 6:14 am

How to install Mininet WiFi

REPLY

A WordPress.com Website.

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 7/8
10/20/2020 Floodlight Controller Tutorial | Pradeepa

https://pradeepaphd.wordpress.com/2018/03/06/floodlight-controller-tutorial/ 8/8

You might also like