Deploying Network Simulator NS3-3.9 on Ubuntu 10.10

by Agus Kurniawan 1. November 2010 09:37

NS3 or Network simulation version 3 is a kind of technology that simulates the network behavior through mathematical modeling and statistical analysis method and then obtains the specific parameters which reflect the characteristics of the network. NS is one of the most famous network simulation software which was developed by LBNL network research group at UC Berkeley in the USA.

Now I would like to introduce how to deploy NS3 on Ubuntu Linux 10.10

Prerequisites

The following list of packages should be accurate for Ubuntu 10.10 release.

requirements for C++ (release)

sudo apt-get install gcc g++ python

requirements for Python (release)

sudo apt-get install gcc g++ python python-dev

Mercurial:

sudo apt-get install mercurial


python bindings:

sudo apt-get install bzr

Debugging

sudo apt-get install gdb valgrind

GNU Scientific Library (GSL):

 

sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl

The Network Simulation Cradle (nsc):

sudo apt-get install flex bison

To read pcap packet traces:

sudo apt-get install tcpdump

Sqlite for statistics framework

sudo apt-get install sqlite sqlite3 libsqlite3-dev

Xml-based version of the config store

sudo apt-get install libxml2 libxml2-dev

A GTK-based

sudo apt-get install libgtk2.0-0 libgtk2.0-dev

To experiment with virtual machines and ns-3

sudo apt-get install vtun lxc

utils/check-style.py code style check program

sudo apt-get install uncrustify

Doxygen

sudo apt-get install doxygen graphviz imagemagick
sudo apt-get install texlive texlive-latex-extra texlive-generic-extra texlive-generic recommended

Texinfo

sudo apt-get install texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html

ustavo Carneiro's ns-3-pyviz visualizer

sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev

Installation

Now we can start to install NS3. Firstly we download ns-allinone-3.9.tar.bz2 file and put on a specific folder such as repos

wget http://www.nsnam.org/releases/ns-allinone-3.9.tar.bz2

Extract ns-allinone-3.9.tar.bz2

tar xjf ns-allinone-3.9.tar.bz2

Change to directory ns-allinone-3.9 and build NS3

./build.py

If success, you can see output messages displayed as below

'build' finished successfully (..)
Leaving directory './ns-3.9'

ns-3.9 is a folder of NS3 codes and scripts

n1

Testing

After installation, you can test that your NS3 works or not.

Change to directory NS build ( in my case, ns-3.9) and run test script as below

./test.py

If success, you can see picture as below

n2

Then you can develop NS3 program for simulating Coffee cup.

Tags:

Linux | Networking | NS

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading