
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
- Installation of Red Hat Linux 9.0 for compatibility reason of NS2
- Download the Ns2-allinone package version 2.26 from the following link
http://www.isi.edu/nsnam/dist/ns-allinone-2.26.tar.gz
- Basically there are two ways to install NS
- All at once.
- Getting from the pieces.
For quick time all at once is more favorable
- Download all-in-one source file i.e. ns-allinone-2.26.tar.gz for NS2
- 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)
Xgraph version 12 (optional component)
CWeb version 3.4g (optional component)
6. Once downloaded place the file in the /usr/src directory.
- Open the terminal and move to /usr/src
Command: cd /usr/src
- Unpack this file using
Command: tar –xzvf ns-allinone-2.26.tar.gz
- This will create a new directory /usr/src/ns-allinone-2.26
- Move to directory /usr/src/ns-allinone-2.26.tar.gz
- To compile the source file enter
. /install
- To run the simulator, place the following bash script in the /home/ directory
- Give the suitable name to the script, in this case
ns_run.sh
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