Install the Mininet -SDN Network Simulator

Step 1 : Download Mininet.

Download Mininet herePicture1

Mininet VM Images click here

The VM images are in zipped .ovf format (including .vmdk disk images), and should be usable with any modern x86 virtualization system.

Download VirtualBox click here

Based on your operating system select the appropriate VirtualBox  platform package. After install VirtualBox start virtual machine open new terminal and type virtualbox.Picture2

Step 2 : Install Mininet.

In Oracle VM VirtualBox Manager import mininet ovf file to install mininet in VirtualBox.

File –> Import Appliance..

picture2a

Browse .ovf by clicking  folder

picture2b

Click Next

picture2c

Click Import

Its take some time to install be patient to install… After install you will get a mininet in virtualboxPicture18

Step 3 : To Start Mininet.

Click Start button to start a mininet…Picture3

Which takes some time to start to compile and updates of mininet in VM…Picture4

After mininet started mininet terminal will open it require username and password to start mininet…

Username : mininet             password: mininet

Picture5

we can’t run our mininet programs with xterm in VM itself, so we need to open mininet in Ubuntu.

Open new Ubuntu terminal to run Mininet… To start mininet in Ubuntu by typing

ssh -Y mininet@192.168.56.101

Picture6

Enter password and get into mininet…Picture7

Step 4 : Working with Mininet.

To Check Mininet is working by the following command.

mininet@mininet-vm:~$ sudo mn

Picture19.png

For opening host terminals

mininet> xterm h1 h2

Picture8

Working with Host terminals. checking with nodes connectivity…

In Node:h2 (To connect server)

root@mininet-vm:~# iperf -s

In Node:h1 (To connect client)

root@mininet-vm:~# iperf -c  10.0.0.2

Picture9

We can get nodes details and net details by typing node and net…Picture10

Step 5 : Working with Mininet GUI.

mininet@mininet-vm~$  cd  /mininet/examples

mininet@mininet-vm~ /mininet/examples$ sudo python miniedit.py

Picture13

You can pick and place the network devices and make a connectivity by blue line and simulate the created network. For Example…Picture14

Setting Network Preferences
Edit ->preferences

Picture15

 Setting Link Details
Right click on the link ->properties

Picture16

File-> save to save as a .mn
File ->Export Level 2 script to save as a .py

Picture17

Done

Congrats! You’ve completed the Mininet installation and few examples. Try out new topology and controllers or check out the more source code available in mininet itself.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s