installation Aquasim in ns2

53 views
Skip to first unread message

khoa ho

unread,
Nov 29, 2023, 8:37:12 PM11/29/23
to Network Simulator 2 (NS2)

Hi everybody. i am having problem with my ns2 emulator.
when i run broadcastMAC_example.tcl file it gives error: invalid command name "Mac/UnderwaterMac"
When I run vbf_example_5.tcl file it gives error: invalid command name "Agent/Vectorbasedforward"
i am using ubuntu 16.04 and ns2.30Screenshot from 2023-11-30 08-36-42.png

knudfl

unread,
Nov 30, 2023, 4:02:03 AM11/30/23
to Network Simulator 2 (NS2)
.....  I guess you know how to copy-paste a text.

» invalid command name "Mac/UnderwaterMac" « : Seems you are using a wrong copy of the executable 'ns'.
Or you have a failed build :  Ubuntu 16.04 - amd64 cannot build Aqua-Sim.
.........  But you can install the app `aquasim-ns2_2.30-1ubuntu14_amd64.deb´ into Ubuntu 16.04 - amd64
...... Provides  /usr/local/bin/ns230-Aqua-el6
Download ..... and install
sudo apt install Downloads/aquasim-ns2_2.30-1ubuntu14_amd64.deb
--------- Simulation -------
ns230-Aqua-el6  vbf_example_5.tcl

Building "Aqua-Sim" :  A specific 32bit OS is required :
The ancient Ubuntu 10.10 - i386 or the modern CentOS  6.10 - i386 (EL6)

knudfl

unread,
Nov 30, 2023, 4:05:39 AM11/30/23
to Network Simulator 2 (NS2)
All 43 simulations "aquasim-examples-01.20" .........

khoa ho

unread,
Nov 30, 2023, 9:28:16 AM11/30/23
to Network Simulator 2 (NS2)

Hello knudfl. first of all i thank you for answering my question. but I'm still unclear about NS2 and Aquasim to implement them; Can you help me install it via teamviewer? (I will pay the costs)
Thank you very much
Vào lúc 16:05:39 UTC+7 ngày Thứ Năm, 30 tháng 11, 2023, knudfl đã viết:

knudfl

unread,
Nov 30, 2023, 12:26:47 PM11/30/23
to Network Simulator 2 (NS2)
All you need for a run-time "ns2 AquaSim" is aquasim-ns2_2.30-1ubuntu14_amd64.deb
I.e. that's what all run-time ns2 is about : The executable ns-name + the tcl libraries →
example → ns-allinone-2.35/{ lib/{libtcl*, tclConfig.sh, tcl8*/}, bin/tcsh8* }

The installed size is 9.1 MB for  aquasim-ns2_2.30-1ubuntu14_amd64.deb →
└── usr
    └── local
        ├── bin
        │   └── ns230-Aqua-el6
        └── lib
            └── AquaSim
                ├── bin
                │   └── tclsh8.4
                └── lib
                    ├── libtcl8.4.a
                    ├── libtclstub8.4.a
                    ├── tcl8.4
                    │   ├── auto.tcl
                    │   ├── encoding
.
.
Also required is aquasim-examples-01.20/ ..... in e.g. /home/name/ns2/Aqua-Sim/
----------------------------------------------------
For the best result AquaSim was built with CentOS 6.10, and the package aquasim-ns2_2.30-1ubuntu14_amd64.deb was created in Ubuntu 14.04 - amd64 from the "CentOS 6.10 AquaSim files".
-------------------------------------

......... And if you really want to build the files yourself ...........
Build example, CentOS 6.10 - x86_64 ......
# yum install gcc-c++ compat-gcc-34-c++ autoconf automake libtool libXmu-devel
$ mkdir AquaSim
$ cd AquaSim/
$ tar xvf [path-to)/Aqua-Sim-1.0.tgz
$ export CC=gcc34 CXX=g++34 && ./install
$ cd ns-2.30/
$ cp ns ns-aqua
# cp ns-aqua /usr/local/bin/
----------- Simulation, in aquasim-examples-01.20/  ---------
$ ns-aqua vbf_example_400.tcl

khoa ho

unread,
Nov 30, 2023, 1:03:24 PM11/30/23
to Network Simulator 2 (NS2)
hello sir.
I downloaded aquasim-ns2_2.30-1ubuntu14_amd64.deb and used the command:
$sudo apt install Downloads/aquasim-ns2_2.30-1ubuntu14_amd64.deb
and error appears:
E: Couldn't find any package by glob 'aquasim-ns2_2.30-1ubuntu14_amd64.deb'
E: Couldn't find any package by regex 'aquasim-ns2_2.30-1ubuntu14_amd64.deb'

Vào lúc 00:26:47 UTC+7 ngày Thứ Sáu, 1 tháng 12, 2023, knudfl đã viết:

knudfl

unread,
Nov 30, 2023, 4:03:17 PM11/30/23
to Network Simulator 2 (NS2)
Please check that 'aquasim-ns2_2.30-1ubuntu14_amd64.deb' actually got downloaded to /home/[name]/Downloads/.
..... Maybe you have another download folder?   
Or you will have to confirm the download : Google considers some packages dangerous, probably because the complexity of a package.deb .

$ cd [directory-with-package]
$ sudo apt install ./aquasim-ns2_2.30-1ubuntu14_amd64.deb
Reply all
Reply to author
Forward
0 new messages