Floodlight
SOFTWARE DEFINED NETWORKINGIntroduction to Floodlight ControllerAgenda Introduction Installing FloodlightRunning FloodlightUsing Floodlight in MininetAssignmentsLearn MoreFloodlight Master version vs Floodlight v1.21. IntroductionFloodlight is an open source SDN controller developed by Big Switch Networks. Just like many other controllers, when you run Floodlight, both northbound and southbound operations of the controller become active. That is, when you run the Floodlight, the controller and the set of configured module applications will run, too. ?The northbound REST APIs exposed by all the running modules becomes available via the specified REST port. Any application can interact (retrieve information and invoke services) with the controller by sending http REST commands. On the other hand, at the southbound, the provider module of Floodlight will start listening on the OpenFlow-specified TCP-port for connections from the OpenFlow switches.2. InstallationFloodlight can be installed in your system by the following waysUsing Floodlight vmUsing Floodlight GIT repositoryIn this tutorial we will be installing the controller on UBUNTU operating by using the second method. Step 1: Open a new terminal.Ctrl + Alt + t(above command will open a new terminal)Step 2: Floodlight is a java based application and it requires JAVA sdk to run.To check if java sdk is already installed in your system execute the following command in the terminal.javac –version(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.Step 3:Install Javasudo apt-get install oracle-java8-set-default(above command will install the java version 8 in your system)Step 4: Install GITsudo apt-get install git(above command will install git version control in your machine)Step 5: Goto desktop via terminalcd Desktop(above command will change directory path to desktop)Step 6(a): Clone floodlight from git(This is to install the master version of floodlight)git clone git://floodlight/floodlight.git(above command will download the floodlight source code from github) orStep 6(b): Clone floodlight from git(This is to install a particular version of floodlight)git clone git://floodlight/floodlight.git –bv1.2 (eg: for installing any other version “–b v1.1”)(above command will download the floodlight v1.2 source code from github)Step 7: Change the directory to floodlightcd floodlight(above command will change directory path to floodlight )Step 8: Initialize Sub modulesgit submodule init(above command will initialize your local configuration file)Step 9: Update Sub modulesgit submodule update(above command will fetch all the data from that project and check out the appropriate commit listed in your super project)Step 10: Build And Deployant(above command will build and deploy the codes which you have cloned from the repository)Step 11: As per floodlight requirement we need a folder name: sudo mkdir /var/lib/floodlight(this will create a folder name floodlight at the specified path. If the folder already exist ignore this command.) sudo chmod 777 /var/lib/floodlight(this command changes the file permission for reading, writing and executable)3. Running FloodlightStep 1: Open a new terminal:Ctrl + Alt + t(above command will open a new terminal)Step 2: Goto desktop via terminalcd Desktop(above command will change directory path to desktop)Step 3 Change the directory to floodlightcd floodlight(above command will change directory path to floodlight )Step 4: Run the Controller java -jar target/floodlight.jar(above command will start the Floodlight and print log and debug output to your console)Step 5: Open a new terminal:Ctrl + Alt + t(above command will open a new terminal)Step 6: Verify if floodlight controller is active and runningxdg-open (above command will open the gui of floodlight controller in the default browser)orxdg-open (above command will open the gui of floodlight controller in the default browser)4. Using Floodlight controller in 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: Obtain the ip address of the local hostifconfig(above command will show the network information)Step 3: Change the directory to floodlightcd floodlight(above command will change directory path to floodlight )Step 4: Run the floodlight Controller java -jar target/floodlight.jar(above command will start the Floodlight and print log and debug output to your console)Step 5:Open a new terminal.Ctrl + Alt + t(above command will open a new terminal)Step 6: Go to the ‘mininet’ directory created during cloning and install Mininetcd mininet(above command will change the directory to Mininet)Step 7: Start Mininet with the remote controllersudo mn --controller=remote,ip=<obtained from step 2>,port=6653(above command will run mininet with minimal topology which is connected to port number 6653 of a remote controller whose ip is <obtained from step number 2>)Step 8: Open a new terminal:Ctrl + Alt + t(above command will open a new terminal)Step 9: Floodlight controller GUIxdg-open (above command will the gui of floodlight controller in the default browser)orxdg-open (above command will open the gui of floodlight controller in the default browser)Step10: View the topology Click on the topology link on the left side of the page. The next screen will show you the minimal topology which you created in step number 7.5. AssignmentsDemonstrate the following topologies and obtain the topology designs from the controllers GUIMinimal TopologySingle Topology with 10 hostLinear Topology of 6 host and 6 switches6. Learn More. Floodlight Master version vs Floodlight v1.2Sometimes the floodlight master version might throw an JSON parsing error, if you are performing any REST request so the REST api output might not be getting parsed.To overcome this error. It is suggested you install the Floodlight v1.2 because it supports JSON parsing for performing REST request.(This analysis is based on the issues that have been faced while performing REST requests in a network for performing load balancing. If you are not following this method you can ignore this) ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.