Friday, October 19, 2007

My First Project


While working in PSPL....I got my first project...its Network Simulation using NS2

Working withNS2 was good experience...!!

While working on this project I faced many problems...so here are some tips/links for the beginners if they face any problems.

NS2 official site where you'll get everything about this tool.
http://www.isi.edu/nsnam/

NS2 Tutorial by Mark Greis....Good for new comers
http://www.isi.edu/nsnam/ns/tutorial/index.html

Installtion Tips on Red Hat 9.0

  1. Installation of Red Hat Linux 9.0 for compatibility reason of NS2
  2. Download the Ns2-allinone package version 2.26 from the following link

http://www.isi.edu/nsnam/dist/ns-allinone-2.26.tar.gz

  1. Basically there are two ways to install NS
    1. All at once.
    2. Getting from the pieces.

For quick time all at once is more favorable

  1. Download all-in-one source file i.e. ns-allinone-2.26.tar.gz for NS2
  2. NS ALL IN PACKAGE CONSISTS OF THE FOLLOWING COMPONENETS:

Tcl release 8.0.4 (required component)

Tk release 8.0.4 (required component)

Otcl release 1.0a5 (required component)

TclCL release 1.0b9 (required component)

Ns release 2.1b6 (required component)

Nam release 1.0a8 (optional component)

Xgraph version 12 (optional component)

CWeb version 3.4g (optional component)

6. Once downloaded place the file in the /usr/src directory.

  1. Open the terminal and move to /usr/src

Command: cd /usr/src

  1. Unpack this file using

Command: tar –xzvf ns-allinone-2.26.tar.gz

  1. This will create a new directory /usr/src/ns-allinone-2.26
  2. Move to directory /usr/src/ns-allinone-2.26.tar.gz
  3. To compile the source file enter

. /install

  1. To run the simulator, place the following bash script in the /home/ directory
  2. Give the suitable name to the script, in this case

ns_run.sh

Installation Tips For Windows

Here is the Good news for windows lovers.Now you can install NS on Windows.
Here is the link from where you can get detail decsription about installation.
http://www.item.ntnu.no/fag/ttm4150/labs/ns2win.html

Example Scripts

0 comments:

Post a Comment