Search This Blog

Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

[ns-3] Installing ndnSIM on Ubuntu: One Step Procedure

7

Labels: , , , ,

ndnSIM is "ns-3 based Named Data Networking Simulator" [1]. This post provides a "shell script" that automates the installation of ndnSIM on Ubuntu. It has been tested on Ubuntu 14.04, 15.04, 16.04 and 17.04.

Note 1: This post is updated when a new version of ndnSIM or a new version of Ubuntu is released.
Note 2: You must be connected to Internet while executing the shell script.

Contributed by: Kiran Ramesh, Karthik S and Ayush Agarwal, Wireless Information Networking Group (WiNG), NITK Surathkal.

Updated by: Viyom Mittal and Vivek Jain, WiNG, NITK Surathkal.

Steps to install ndnSIM:

1. Download the shell script: ndnSIM-install.sh and place it on Desktop

2. Go to Desktop via terminal and give the following command:

sh ndnSIM-install.sh

3. Give your system password, when asked.

You are done with it!

Verifying the installation of ndnSIM:

1. Go ~/Desktop/ndnSIM/ns-3 and give the following command:

./waf --run=ndn-simple

If you see " 'build' finished successfully " message, ndnSIM is installed correctly.

Hope it helps.

Regards,
Mohit P. Tahiliani

References:

[1] ndnSIM Documentation: http://ndnsim.net/2.3/getting-started.html

[ns-3] Installing ns-3 on Ubuntu 15.04: Simplified

8

Labels: , , , , , , , , , , , , ,

This post describes a simplified approach to install ns-3 and related tools such as NetAnim, PyViz, Wireshark, Gnuplot and TraceMetrics in Ubuntu 15.04. 

Note: This post is updated when a new version of ns-3 or a new version of Ubuntu is released.

First, update the package list by executing this command: sudo apt-get update

Install following packages (command is given below):

For ns-3:
1. gcc
2. g++
3. python
4. python-dev

For NetAnim:
1. qt4-dev-tools

For PyViz:
1. libgtk-3-dev
2. python-pygoocanvas
3. python-pygraphviz

For Wireshark and Gnuplot:
1. wireshark
2. gnuplot

For TraceMetrics:
1. openjdk-7-jdk (install openjdk-8-jdk if you're using Ubuntu 16.04 or higher)

Command to install all these packages together:

sudo apt-get install gcc g++ python python-dev qt4-dev-tools libgtk-3-dev python-pygoocanvas python-pygraphviz wireshark gnuplot openjdk-7-jdk

Wireshark and Gnuplot will be ready to use after this command! TraceMetrics does not require installation. Read more about TraceMetrics

Steps to install ns-3:

1. Download ns-allinone-3.27.tar.bz2 and unzip it.

2. Go to ns-allinone-3.27 and give the following command:

./build.py --enable-examples --enable-tests

This command will install ns-3, NetAnim and PyViz.

3. Once the installation completes, go to ns-allinone-3.27/ns-3.27 and give the following command:

./test.py -c core

You are done with it!

Hope it helps.

Regards,
Mohit P. Tahiliani