Installing Network Simulator-ns2
Tags network simulator, ns2
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
NS2 INSTALLATION:
after 15 min installatin wil complts
by
giving this suggestions
But don't mind dat message open u r bash
do
copy and paste below code in the .bashrc file
final step:
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.
download latest NS2 installation files at this link
NS2 INSTALLATION:
Code:
$su password: $ tar -xvf ns-allinone-2.33.tar.gz $ cd ns-allinone-2.33 $ ./install
by
giving this suggestions
Quote:
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.
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
Code:
$su password: # vi .bashrc
Code:
# 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
Code:
#cd ns-2.33 #./validate
if u have taken any other folder as extraction path will be changed.
Total Comments 4
Comments
-
Building software as root in not recommended.
Please never do that.
Default location for build , compiling is
/home/"user-name"/ e.g. /home/"user-name"/tmp
or for ns2 /home/"user-name"/ns2/ns-<version>.
.....Posted 02-04-2010 at 12:38 PM by knudfl -
Quote:
use "/home/../.. "
ok , that's fine. !Posted 02-04-2010 at 03:22 PM by raju.mopidevi -
Hi !
I am trying to install ns-2.26 on Red hat Linux 9.0; although I used ns226.patch (patch to install ns-2.26), it informs an error (please see the picture below)
http://i371.photobucket.com/albums/o...-10_221239.jpg
If anyone knows, please shows me how to solvve this problem.
Thanks a lot !
VoPosted 07-10-2010 at 10:22 AM by thinhtelecom
Updated 07-10-2010 at 10:24 AM by thinhtelecom -
Hi,
We are professional in this filed and we charge for making project, saw your requirement on Ns2 project.
Incase if your interested in making project with us, please send us your base paper which you are planning to implement.
Please note that for any NS2 project our rate is set that 24k INR.
Below are the few video link sample which we have completed recently.
https://www.dropbox.com/s/dplgq8z2e8nrjjh/Wormhole.swf
https://www.dropbox.com/s/n0uej1d0ro...-TCP_VEGAS.swf
https://www.dropbox.com/s/xakkpksadp...s2icsvideo.zip
Contact: jyoti@technozonk.com
Note:
We don't take one and one session, doubts are clear only via email within a span of 1 week.
We will show you complete flow project and make sure it run on your PC.
In order to start the project you have to pay us 7k advance and once the project is completed we will send you either a video of project or screenshots.
After that you have to send us rest of the amount for getting complete projectPosted 01-14-2014 at 06:23 AM by rungtajyoti