LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Aqua-Sim in NS2 (https://www.linuxquestions.org/questions/linux-newbie-8/aqua-sim-in-ns2-4175607369/)

Shaveta Kamra 06-06-2017 04:05 AM

Aqua-Sim in NS2
 
Hello..

I have installed Aqua-Sim-1.0 and after that when i move to ns-2.30 directory run make install command.When i checked my ns2 version on my machine it showed me that i have ns2.35 is installed.

See this command:

dpkg-query -s ns2

now output:

Package: ns2
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 13010
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Version: 2.35+dfsg-2ubuntu1
Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libotcl1 (>= 1.14), libpcap0.8 (>= 0.9.8), libstdc++6 (>= 4.9), libtcl8.6 (>= 8.6.0), libtclcl1 (>= 1.20), libtk8.6 (>= 8.6.0)
Suggests: gnuplot
Description: Discrete event simulator targeted at networking research
Provides substantial support for simulation of TCP, routing,
and multicast protocols over wired and wireless (local and satellite)
networks.
Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl.
.
Ns began as a variant of the REAL network simulator in 1989 and has
evolved substantially over the past few years. In 1995 ns development
was supported by DARPA through the VINT project at LBL, Xerox PARC,
UCB, and USC/ISI. Currently ns development is support through DARPA
with SAMAN and through NSF with CONSER, both in collaboration with
other researchers including ACIRI. Ns has always included substantal
contributions from other researchers, including wireless code from the
UCB Daedelus and CMU Monarch projects and Sun Microsystems.
Homepage: http://www.isi.edu/nsnam/ns/
Original-Maintainer: Debian Network Simulators Team <pkg-netsim-devel@lists.alioth.debian.org>




Research survey suggest me to install ns-2.30 package only.We can't use ns-2.35 or and ns version?

And how can i know ns-2.30 is installed or not?

Please give me answer with explanations.Thanks in advance:)

knudfl 06-06-2017 05:39 AM

Welcome to LQ.

You can have as many ns-allinone-2* as you want, installed at the same time.
But : Do never add any *PATH text to .bashrc. Not required.

AquaSim:
Code:

cd [aquasim]/ns-2.30/
cp ns ns-aquasim
sudo cp ns-aquasim /usr/local/bin/

cd underwatersensor/uw_tcl/
ns-aquasim hop_by_hop_VBF_example.tcl

The Ubuntu package ns2 : /usr/bin/ns
... and you can have only one 'ns', other extra protocols must be named: ns-[any-name]
The ns-2.30, 'make install' : /usr/local/bin/ns (if the ns230 build was OK.)

Other ns2, example ...
/home/[name]/ns2/a/ns-allinone-2.35/
/home/[name]/ns2/b/ns-allinone-2.35/
/home/[name]/ns2/c/ns-allinone-2.35/
/home/[name]/ns2/d/ns-allinone-2.35/
etc. etc. ... no limit.


-

knudfl 06-06-2017 06:02 AM

The usable Ubuntu nam package only exists for Ubuntu 17.04.

Other Ubuntu versions :
http://www.linuxquestions.org/questi...-4175524760/#2
cd Downloads/
sudo gdebi [nam-package].deb

AquaSim is OK when the hop_by_hop_VBF_example.tcl creates some files:
hop_hop_vbf.nam ~190kB, hop_hop_vbf.tr ~199kB
... A few other examples may also work with Ubuntu.

Any questions? Then please specify Ubuntu version, architecture.
This command will reply with i686 or x86_64 : uname -a


-

Shaveta Kamra 06-07-2017 04:15 AM

Quote:

Originally Posted by knudfl (Post 5719561)
Welcome to LQ.

You can have as many ns-allinone-2* as you want, installed at the same time.
But : Do never add any *PATH text to .bashrc. Not required.

AquaSim:
Code:

cd [aquasim]/ns-2.30/
cp ns ns-aquasim
sudo cp ns-aquasim /usr/local/bin/

cd underwatersensor/uw_tcl/
ns-aquasim hop_by_hop_VBF_example.tcl

The Ubuntu package ns2 : /usr/bin/ns
... and you can have only one 'ns', other extra protocols must be named: ns-[any-name]
The ns-2.30, 'make install' : /usr/local/bin/ns (if the ns230 build was OK.)

Other ns2, example ...
/home/[name]/ns2/a/ns-allinone-2.35/
/home/[name]/ns2/b/ns-allinone-2.35/
/home/[name]/ns2/c/ns-allinone-2.35/
/home/[name]/ns2/d/ns-allinone-2.35/
etc. etc. ... no limit.


-

Thanks Sir:)

Shaveta Kamra 06-13-2017 01:35 AM

Thanku sir :)


All times are GMT -5. The time now is 05:11 PM.