LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > raju.mopidevi
User Name
Password

Notices

Rating: 2 votes, 4.00 average.

Installing Network Simulator-ns2

Posted 12-05-2009 at 11:07 AM by raju.mopidevi
Updated 02-25-2010 at 08:09 AM by raju.mopidevi

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:

Code:
$su
password:
$ tar -xvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
$ ./install
after 15 min installatin wil complts
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.

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

Code:
$su
password:
# vi .bashrc
copy and paste below code in the .bashrc file

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
final step:

Code:
#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.
Posted in Uncategorized
Views 4229 Comments 4
« Prev     Main     Next »
Total Comments 4

Comments

  1. Old Comment
    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 knudfl is online now
  2. Old Comment
    Quote:
    Originally Posted by knudfl View Comment
    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>.
    .....
    you are saying that don't use "/opt"
    use "/home/../.. "
    ok , that's fine. !
    Posted 02-04-2010 at 03:22 PM by raju.mopidevi raju.mopidevi is offline
  3. Old Comment
    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 !
    Vo
    Posted 07-10-2010 at 10:22 AM by thinhtelecom thinhtelecom is offline
    Updated 07-10-2010 at 10:24 AM by thinhtelecom
  4. Old Comment
    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 project
    Posted 01-14-2014 at 06:23 AM by rungtajyoti rungtajyoti is offline
 

  



All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration