NS (network simulator) INSTALLATION - NS-1, NS-2, NS-3

INTRODUCTION TO NETWORK SIMULATOR NS-2


NS (from network simulator) is a name for series of discrete event network simulators, specifically ns-2 and ns-3. Both simulators are used in the simulation of routing protocols, among others, and are heavily used in ad-hoc networking research, and support popular network protocols, offering simulation results for wired and wireless networks alike.
Both ns-2 and ns-3 are popular in research given their open source model and detailed online documentation.

NETWORK SIMULATOR-2 is designed to run from on most UNIX based  operating   systems.Ns  is  a  discrete  event  simulator  targeted  at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

Download a copy of ns-allinone-2.34.tar.gz. Then from the command prompt there, execute the following:




tar -xzf ns-allinone-2.34.tar.gz cd ns-allinone-2.34
./install





(If this fails, try the Distribution Specific instructions)


After a long wait and a whole lot of text, you should see the installation finish up with text like the following:

Nam has been installed successfully.

Ns-allinone package has been installed successfully. Here are the installation places:
tcl8.4.11:     /home/pcraven/ns-allinone-2.29/{bin,include,lib} tk8.4.11:                                   /home/pcraven/ns-allinone-2.29/{bin,include,lib} otcl:                 /home/pcraven/ns-allinone-2.29/otcl-1.11
tclcl:         /home/pcraven/ns-allinone-2.29/tclcl-1.17





ns:            /home/pcraven/ns-allinone-2.29/ns-2.29/ns nam:            /home/pcraven/ns-allinone-2.29/nam-1.11/nam xgraph: /home/pcraven/ns-allinone-2.29/xgraph-12.1
gt-itm:   /home/pcraven/ns-allinone-2.29/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns


---------------------------------------------------------------------------------- Please put /home/myusername/ns-allinone-
2.29/bin:/home/myusername/ns-allinone-

2.29/tcl8.4.11/unix:/home/myusername/ns-allinone-2.29/tk8.4.11/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.


IMPORTANT NOTICES:



(1) You MUST put /home/myusername/ns-allinone-2.29/otcl-1.11,

/home/myusername/ns-allinone-2.29/lib,

into your LD_LIBRARY_PATH environment variable.

If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH.


If you are using csh, you can set it like:

setenv LD_LIBRARY_PATH <paths> If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>



(2) You MUST put /home/myusername/ns-allinone-2.29/tcl8.4.11/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.



(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.11
and tk8.4.11. They are now installed under /home/myusername/ns- allinone-2.29/{bin,include,lib}


After these steps, you can now run the ns validation suite with cd ns-2.29; ./validate


For trouble shooting, please first read ns problems page http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.





At this  point,  you  should  follow  the  advice  here  and  update  your environment  variables.  You  should  also  add  ns-allinone-2.29/bin  to  you path. This has links to all the executables created by NS-2.  Since the Tcl scripts may call these executables (like nam or xgraph), it is a good idea to have them in the path.

You can test the installation by doing the following:


cd ns-2.29

./validate


Note that this validation takes a really long time. If it starts out ok, you probably have a good installation.

At this point, you can see Getting Started with NS-2 .

ns simulator installation steps | network simulator installation procedure | how to install network simulator na | install network simulator in linux, windows

0 comments:

Post a Comment