Search

Install NS2 in Ubuntu in 6 easy steps PDF Print E-mail
User Rating: / 8
PoorBest 
Linux / Unix - Ubuntu
Written by admin   
Thursday, 26 August 2010 07:17

NS (version 2) is an object-oriented, discrete event driven network simulator developed at UC Berkely written in C++ and OTcl. Nns is popularly used in the simulation of routing and multicast protocols, among others, and is heavily used in ad-hoc networking research. ns supports an array of popular network protocols, offering simulation results for wired and wireless networks alike. It can be also used as limited-functionality network emulator. It is popular in academia for its extensibility (due to its open source model) and plentiful online documentation.NS was built in C++ and provides a simulation interface through OTcl, an object-oriented dialect of Tcl. The user describes a network topology by writing OTcl scripts, and then the main NS program simulates that topology with specified parameters.


The package could be easily installed in Ubuntu from PPA(Personal Package Archive). The ppa repository for ns2 created by Wouter Horré.This is how to do it

Step 1:  Visit the PPA's overview page in Launchpad. Look for the heading that reads Adding this PPA to your system and click the Technical details about this PPA link.

Step 2:  Use the Display sources.list entries drop-down box to select the version of Ubuntu you're using.

Step 3:
You will get this two lines

deb http://ppa.launchpad.net/wouterh/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/wouterh/ppa/ubuntu lucid main

Step 4:
copy this lines and add to /etc/sources.lst by using the following command in terminal

$ sudo gedit /etc/apt/sources.list

This will open a text editor with sources.lst contents. Add the copied lines to the end portion. Save the file and exit the editor.

Step 5:
Back on the PPA's overview page, look for the Signing key heading. You will get 1024R/B3F3334F. To add the key execute the following command in terminal

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F

Step 6: Now you can install the packages. Run the following commands in terminal

$ sudo apt-get update
$ sudo apt-get install ns nam xgraph


Follow the link....
to get some examples to test the install.


Add this page to your favorite Social Bookmarking websites
 
Last Updated on Thursday, 26 August 2010 08:02
 

Add comment


Security code
Refresh

We have 64 guests online