Getting Started
Overview
Floodlight is Java-based and intended to run with standard jdk tools and ant and can optionally be run in Eclipse.
Prerequisites
Linux
- Ubuntu 10.04 (Natty) or higher. (Has been run with Ubuntu 10.04 with Ant versions 1.8.1 or lower).
- Install JDK, Ant. You can optionally choose to install eclipse but it is not required.
Code Block xml xml sudo apt-get install build-essential default-jdk ant python-dev eclipse
...
Note: Want to get started fast? You can set up an Ubuntu image on Amazon here and add the above Linux dependencies.
Download And Build
Floodlight is simple to download from Github and build.
...
Note: This uses the latest stable version of Floodlight.
Running Floodlight
Assuming java is in your path, you can directly run the floodlight.jar file produced by ant.
...
Floodlight will start running and print debug output to your console.
Setting Up Eclipse
Its also possible to setup, develop and run Floodlight through Eclipse. Rather than setting up projects manually, its easily to use the Eclipse ant target.
...
To then run Floodlight click on the drop-down arrow next to the Play button and select the proper target to run. These also work with debug targets.
Simulating A Network
Now that Floodlight is running, you need to attach it to an OpenFlow network. One of the best tools for this is Mininet, a network simulation tool.
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ ssh -Y openflow@<vm-ip> $ sudo wireshark &; |
Next Steps
If you are finished the getting started guide, you may want to check out Developing Floodlight. It will walk you through a simple coding example.