OpenDaylight(ODL) is an open source Software Defined Networking (SDN) controller platform which provides a number of ready-to-install features for networking solutions. It also provides a platform to develop our own features. Mininet is an open source network emulator which runs a collection of end hosts and network devices which are created using software to make a single system look like a real network. This blog post describes step by step instructions to use ODL controller with mininet.
As ODL is a java based controller, first install java run-time environment on your machine using below commands:
sudo add-apt-repository ppa:webupd8team
Next, install mininet on your machine using below commands:
git clone git:
Test your mininet installation through a ping test:
This command creates a network with two hosts connected with a single switch, starts a default controller and tests ping reachability from one host to other. Both the hosts should be able to ping each other.
Next, download ODL(beryllium version) using below command:
Next, extract the downloaded file and install the controller using below commands:
As mentioned earlier, ODL provides a number of ready-to-install features. Install few basic required features using below command on karaf console:
odl-restconf odl-mdsal-clustering odl-dlux-core odl-dlux-node odl-dlux-yangui odl-dlux-yangvisualizer odl-l2switch-all
Now on your machine, mininet environment is set and ODL controller is installed and running. Create a simple single switch, 2 hosts topology in mininet using ODL as remote controller:
mn --topo single,2 --controller=remote,ip=127.0.0.1
Test the setup through a ping test
Hit below mentioned URL to view topology and YangUI on your favorite browser. Use username/password: admin/admin to login.
We will explain how to implement Quality of service by limiting bandwidth using ODL controller in our next blog posts.