An opensource Aanalytic, Diagnosis and Management framework for SDN. http://www.slideshare.net/rascov/20140824-omni-ui
###Introduction###
OmniUI is a diagnosis, analytic and management framework for Software-Defined Networks.
It provides a graphical user interface to illustrate information on flows, devices and statistic data.
Features of OmniUI includes:
- Compatible with various controller
- Forwarding path of specific flow
- Topology view with traffic information
- Statistic data of specific flow
- Statistic data of specific port/link
- Dynamic flow migration
- Demo Video
###Quickstart using Docker image###
-
Pull Docker image from Docker Hub
docker pull dlinknctu/openadm
-
Run Docker container
docker run -itdP --name openadm dlinknctu/openadm /bin/bash
-
Check port forwarding
docker port openadm
# 5567 -> 32773 OpenADM core
# 6633 -> 32772 OpenFlow
# 8000 -> 32771 UI
-
Setup IP address
docker exec openadm /root/openadm/run.sh setup 10.211.55.3 32773
Note: The IP should be the one of Docker host instead of containter. The port should be the one mapped to port 5567 -
Start controller, core and UI
docker exec -it openadm /root/floodlight/floodlight.sh
docker exec -it openadm omniui
docker exec -it openadm bash -c "cd /root/openadm/ui && npm run dev"
-
Connect Mininet to controller
sudo mn --mac --topo=tree,2 --controller=remote,ip=10.211.55.3,port=32772
Note: The IP should be the one of Docker host instead of containter. The port should be the one mapped to port 6633 -
Access web UI
http://10.211.55.3:32771
Note: The IP should be the one of Docker host instead of containter. The port should be the one mapped to port 8000
Developers who do not familiar with Docker can install OpenADM natively without Docker. OpenADM has been tested on Ubuntu operating system. Before proceeding further, please be sure you have Ubuntu 14.04 LTS installed and Internet connectivity.
- Get root privilege:
$ sudo su -
- Install dependencies:
$ echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y git-core wget unzip python-minimal python-pip python-dev oracle-java7-installer ant && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk7-installer && \
wget -qO- https://deb.nodesource.com/setup_5.x | bash - && \
apt-get install -y nodejs
- Drop root privilege, then clone the OpenADM repository under the home directory:
$ exit
$ git clone https://github.com/dlinknctu/openadm.git ~/openadm
- Install OpenADM bundle (including Floodlight, OpenADM Core, OpenADM WebUI):
$ cd openadm
$ ./run.sh install
-
Modify
OpenADMCoreUrl
in~/openadm/ui/config/config.json
to be the machine's IP address which runs OpenADM Core. -
Open three terminals and execute the command respectively (you can use
screen
ortmux
):
- Floodlight:
~/floodlight/floodlight.sh
- OpenADM Core:
~/.local/bin/omniui
- OpenADM WebUI:
cd ~/openadm/ui && npm run dev
- Mininet (optional):
sudo mn --topo=tree,2 --controller=remote
It is recommended that always start the services in this order: Floodlight -> OpenADM Core -> Mininet (optional)
If you're using OpenFlow switches instead of Mininet, please be sure that the OpenFlow switches are properly configured with correct controller, i.e. Floodlight controller's IP and port.
- Open a browser then connect to the machine's IP address and port 8000 (e.g. 127.0.0.1:8000) which runs OpenADM WebUI.
###Prerequisite###
-
Install essential packages
Floodlight
$sudo apt-get install build-essential default-jdk ant python-dev git python-virtualenv
Ryu
$sudo apt-get install build-essential python-dev git python-virtualenv python-eventlet python-routes python-webob python-paramiko
-
Update existing packages
$sudo apt-get update
$sudo pip install --upgrade pip virtualenv
-
Download & Install Mininet
$git clone git://github.com/mininet/mininet
$mininet/util/install.sh -a
-
Clone OmniUI from Github
$git clone https://github.com/dlinknctu/OmniUI.git -b dev
-
Install MongoDB
- Please refer to Install MongoDB
###Installation & Execution of OmniUI Core###
-
Modify OmniUI database credentials
$gedit ~/OmniUI/core/etc/config.json
Modify the following (UIPusher and DbCollection section):
"ControllerType":"<CONTROLLER_NAME>"
If using Ryu, fill ControllerType as "floodlight"
"dbip":"<YOUR_DATABASE_IP_ADDR>",
"dbport":"<YOUR_DATABASE_IP_PORT>",
"db":"<YOUR_DATABASE_NAME>",
"user":"<YOUR_DATABASE_LOGIN_USERNAME>"
"password":"<YOUR_DATABASE_LOGIN_PASSWORD>"
-
Install OmniUI core and dependencies $
cd ~/OmnuUI/core/
$sudo python setup.py install
-
Run OmniUI core $
/usr/local/bin/omniui
###Installation & Execution of Controllers###
- Installation & Execution of controller adapter
- Please refer to
/adapter/<controller>/README.md
- Please refer to
###Current Progress (dev branch)###
feature\controller | Floodlight | POX | Trema | Ryu
---------------------------------------------------
OpenFlow version | 1.0 | 1.0 | 1.3 | 1.0
Port Statistic | V | V | | V
Flow Statistic | V | V | | V
Topology View | V | V | | V
Path Highlight | V | V | | V
Flow Modify | V | | |
General Statistic | V | V | | V
UDS | | | V |