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/
-