feedburner

Enter your email address:

Delivered by FeedBurner

* Network Simulator - NS2 installation

Labels: , ,

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 latest NS2 installation files at this link
http://sourceforge.net/project/showfiles.php?group_id=149743&package_id=169689&release_id=588643 

NS2 INSTALLATION:

$su
password:
$ cd /opt
$ tar -xvf ns-allinone-2.33.tar.
$ cd ns-allinone-2.33
$ ./install


after 15 min installatin wil complts
by
giving this suggestions

Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.18:
/opt/ns-allinone-2.33/{bin,include,lib}
tk8.4.18:
/opt/ns-allinone-2.33/{bin,include,lib}
otcl:
/opt/ns-allinone-2.33/otcl-1.13
tclcl:
/opt/ns-allinone-2.33/tclcl-1.19
ns:
/opt/ns-allinone-2.33/ns-2.33/ns
nam: /opt/ns-allinone-2.33/nam-1.13/nam
xgraph: /opt/ns-allinone-2.33/xgraph-12.1
gt-itm: /opt/ns-allinone-2.33/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
----------------------------------------------------------------------------------
Please put /opt/ns-allinone-2.33/bin:/opt/ns-allinone-2.33/tcl8.4.18/unix:/opt/ns-
allinone-2.33/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /opt/ns-allinone-2.33/otcl-1.13, /opt/ns-allinone-2.33/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
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=
(2) You MUST put /opt/ns-allinone-2.33/tcl8.4.18/library into yourTCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
After these steps, you can now run the ns validation suite with
cd ns-2.33; ./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.


But don't mind dat message open u r bash
do

$su
password:
# vi .bashrc


copy and paste below code in the .bashrc file

# LD_LIBRARY_PATH
OTCL_LIB=/opt/ns-allinone-2.33/otcl-1.13
NS2_LIB=/opt/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:
$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/opt/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/opt/ns-allinone-2.33/bin:/opt/ns-allinone-2.33/tcl8.4.18/unix:/opt/ns-
allinone-2.33/tk8.4.18/unix
NS=/opt/ns-allinone-2.33/ns-2.33/
NAM=/opt/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM


final step:

#cd ns-2.33
#./validate

this commands given by considering u r software extraction is done at the location “/opt”
if u have taken any other folder as extraction path will be changed.




0 comments:

Post a Comment