LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2017, 12:24 PM   #1
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Rep: Reputation: Disabled
Exclamation Aqua-Sim Examples


Hello Sir,

system descriptions: Aqua-Sim-1.0, ns-2.30, ubuntu 16.4 32 bits

I have downloaded aquasim examples from your provided link :

Examples, aquasim-examples-06.17.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

But when i run vbf_example_6.tcl then no output comes it opens just nam window and file has 100 nodes which are randomly move without any sending or receiving data packets.Why this happen?

Is this vbf_example_6.tcl is an example of aqua-3d?
Please help me.Thanks in advance!
 
Old 06-13-2017, 01:12 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
My examples, testing "vbf_example_6.tcl" : 1) A 64bits OS.
Code:
$ ns-aqua-64 vbf_example_6.tcl

the file name is vbf_example_6.data
the sending interval is 10.0
num_nodes is set 100
Width=100
INITIALIZE THE LIST xListHead
Node 1 is sending first!!
starting Simulation...
GOD: the old file name istest.data
GOD: the new file name isvbf_example_6.data
SORTING LISTS ...DONE!
UWSink (id:0): I get the packet data no.0 from 67 
UWSink (id:0): I get the packet data no.1 from 45 
SK 0: Num_Recv 2, InterArrival 10.104117
UWSink (id:0): I get the packet data no.2 from 7 
SK 0: Num_Recv 3, InterArrival 11.434931
UWSink (id:0): I get the packet data no.6 from 80 
SK 0: Num_Recv 4, InterArrival 38.842406
SINK 1 : terminates (send 10, recv 0, cum_delay 0.000000)
SINK 0 : terminates (send 0, recv 4, cum_delay 29.954449)
SINK(0) : send_id = 1, num_recv = 4
god: the energy consumped is 112.665675
NS EXISTING...
2) Ubuntu 10.10 - 32
Code:
$ ns-aqua-1010 vbf_example_6.tcl

the file name is vbf_example_6.data
the sending interval is 10.0
Width=100
Node 1 is sending first!!
starting Simulation...
NS EXISTING...
num_nodes is set 100
GOD: the old file name istest.data
GOD: the new file name isvbf_example_6.data
UWSink (id:0): I get the packet data no.1 from 99 
UWSink (id:0): I get the packet data no.2 from 99 
SK 0: Num_Recv 2, InterArrival 9.545183
SINK 1 : terminates (send 10, recv 0, cum_delay 0.000000)
SINK 0 : terminates (send 0, recv 2, cum_delay 14.433776)
SINK(0) : send_id = 1, num_recv = 2
god: the energy consumped is 110.989047
NS EXISTING...
An early install of Ubuntu 10.10 was the last Ubuntu version to build and run old ns2 code perfectly.
An updated 10.10 or a later versions : Reduced aquasim functionality.
Today the recommended OS for aquasim is CentOS 6.9 - 32.


Missing communication in the nam window:
There is no guaranty for a particular behavior with the examples.
... You are most welcome to edit vbf_example_6.tcl to add more functions.
Origin of the file: ns-2.30/underwatersensor/uw_tcl/

-

Last edited by knudfl; 06-13-2017 at 01:17 PM.
 
Old 06-13-2017, 03:55 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"vbf_example_6.tcl" : Get even much more information in the terminal window →
141 lines / 2067 lines of text output → →
You can install the old files from Ubuntu 10.10 and CentOS 6 :

aquasim-ns_2.30-2-ubuntu1010_i386.deb ( 1.4MB )
https://drive.google.com/file/d/0B7S...ew?usp=sharing

aquasim-ns2_2.30-1.el6_i386.deb ( 1.7MB )
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Download the two packages, and install them ...
Code:
$ cd Downloads/
$ sudo gdebi aquasim-ns_2.30-2-ubuntu1010_i386.deb
$ sudo gdebi aquasim-ns2_2.30-1.el6_i386.deb
Provides /usr/local/bin/{ ns-aqua-1010, ns-aqua-el6 }.

Saving the text output from the simulation :
Code:
$ ns-aqua-1010 vbf_example_6.tcl 2>&1 | tee vbf_6-1010.txt
$ ns-aqua-el6 vbf_example_6.tcl 2>&1 | tee vbf_6-el6.txt

Last edited by knudfl; 06-13-2017 at 03:58 PM.
 
  


Reply

Tags
aquasim, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aqua-Sim in NS2 Shaveta Kamra Linux - Newbie 4 06-13-2017 01:35 AM
Aqua-Sim in NS2 Shaveta Kamra Linux - Newbie 3 06-07-2017 11:01 AM
NS2 and Aqua-sim Faiza Al-Salti Linux - Networking 3 06-12-2014 12:46 AM
Simulation in aqua-sim Faiza Al-Salti Linux - Newbie 9 05-29-2014 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:36 PM.

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
Open Source Consulting | Domain Registration