Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Ref. post #50, @eng ehab : Welcome to LQ.
'./validate' will most often fail some tests.
Don't worry. Isn't usually with protocols that you are going to use.
Generally about Aqua-Sim : Please read posts #5 and #8 here http://www.linuxquestions.org/questi...-a-4175466464/
I.e. a 32bits OS is required for full ns2 functionality.
? Which Ubuntu version are you using ?
And please show the reply from this command : $ uname -m
what is the solutions of this problem when i install ns2.35 in ubundo 13.10 These messages are NOT errors and can be ignored: warning: using backward compatibility mode This test is not implemented in backward compatibility mode
validate overall report: some tests failed: ./test-all-tcpLinux to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME and when run any example in underwatersensor does not work
and
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #52.
Ns-2.35 can not be used for Aqua-Sim.
Warnings like "using backward compatibility mode" can be ignored.
Warnings are informational text, not errors ( or problems.)
$ uname -m >>> x86_64 : You shouldn't use a 64bits OS for ns2.
Ns2 is for a 32bits (i686) OS.
However the most default simulations can also work with a 64bits OS.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #54.
Usually we do :
1) $ mkdir aquasim && cd aquasim/
2) $ tar xvf Aqua-Sim-1.0.tgz
... then you have a complete "ns-allinone-2.30" !
So we could have made a folder 'ns-allinone-2.30' instead of 'mkdir aquasim'.
? What would be a reason for porting Aqua-Sim to a later ns2 ?
The result would probably just be some simulations not working right.
When I try to run any example in aqua-sim ,this message that appears(ehab@ehab-SATELLITE-C660:~/Aqua-Sim-1.0/ns-2.30/underwatersensor/uw_tcl$ ns vbf_example_5.tcl
the file name is vbf_example_5.data
the sending interval is 10.0
invalid command name "Agent/Vectorbasedforward"
while executing
"Agent/Vectorbasedforward set hop_by_hop_ 0"
(file "vbf_example_5.tcl" line 64)
) , with the knowledge that I have used numerous version from ns2, and many versions of ubuntu and The message has not changed
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #58.
$ cd ns-2.30/underwatersensor/uw_tcl/
Code:
$ grep -n "Mac/UnderwaterMac/BroadcastMac" *
broadcastMAC_example.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
broadcastMAC_example.tcl:Mac/UnderwaterMac/BroadcastMac set packet_size_ 568
GOAL-random.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0
GOAL-random.tcl:Mac/UnderwaterMac/BroadcastMac set packet_size_ $opt(packet_size)
hop_by_hop_VBF_example.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
hop_by_hop_VBF_example.tcl:Mac/UnderwaterMac/BroadcastMac set packet_size_ 400 ;# bits
kinematic.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
uw_rwp.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbf_example_5.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbf_example_5.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0 ;# #of bytes
vbf_example_6.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbf_example_6.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0 ;# #of bytes
vbva_example.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbva_example.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0 ;# # of bytes
Code:
$ grep "Mac/UnderwaterMac/" *
broadcastMAC_example.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
broadcastMAC_example.tcl:Mac/UnderwaterMac/BroadcastMac set packet_size_ 568
GOAL-random.tcl:set opt(mac) Mac/UnderwaterMac/GOAL
GOAL-random.tcl:Mac/UnderwaterMac/GOAL set MaxBurst $opt(max_burst)
GOAL-random.tcl:Mac/UnderwaterMac/GOAL set VBF_MaxDelay 2.0
GOAL-random.tcl:Mac/UnderwaterMac/GOAL set MaxRetxTimes 6
GOAL-random.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0
GOAL-random.tcl:Mac/UnderwaterMac/BroadcastMac set packet_size_ $opt(packet_size)
GOAL-string.tcl:set opt(mac) Mac/UnderwaterMac/GOAL
GOAL-string.tcl:Mac/UnderwaterMac/GOAL set MaxBurst $opt(max_burst)
GOAL-string.tcl:Mac/UnderwaterMac/GOAL set MaxRetxTimes 6
GOAL-string.tcl:Mac/UnderwaterMac/GOAL set VBF_MaxDelay 2.0
hop_by_hop_VBF_example.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
hop_by_hop_VBF_example.tcl:Mac/UnderwaterMac/BroadcastMac set packet_size_ 400 ;# bits
kinematic.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
kinematic.tcl:#Mac/UnderwaterMac/AlohaOverhear set MaxResendInterval_ 0.2
kinematic.tcl:#Mac/UnderwaterMac/AlohaOverhear set DeltaDelay_ 1
rmac-example.tcl:set opt(mac) Mac/UnderwaterMac/RMac
rmac-example.tcl:Mac/UnderwaterMac/RMac set ND_window_ $opt(ND_window)
rmac-example.tcl:Mac/UnderwaterMac/RMac set ACKND_window_ $opt(ACKND_window)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PhaseOne_window_ $opt(PhaseOne_window)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PhaseTwo_window_ $opt(PhaseTwo_window)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PhaseTwo_interval_ $opt(PhaseTwo_interval)
rmac-example.tcl:Mac/UnderwaterMac/RMac set IntervalPhase2Phase3_ $opt(IntervalPhase2Phase3)
rmac-example.tcl:#Mac/UnderwaterMac/RMac set ACKRevInterval_ 0.1
rmac-example.tcl:Mac/UnderwaterMac/RMac set duration_ $opt(duration)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PhyOverhead_ $opt(PhyOverhead)
rmac-example.tcl:Mac/UnderwaterMac/RMac set large_packet_size_ $opt(large_packet_size)
rmac-example.tcl:Mac/UnderwaterMac/RMac set short_packet_size_ $opt(short_packet_size)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PhaseOne_cycle_ $opt(PhaseOne_cycle)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PhaseTwo_cycle_ $opt(PhaseTwo_cycle)
rmac-example.tcl:Mac/UnderwaterMac/RMac set PeriodInterval_ $opt(PeriodInterval)
rmac-example.tcl:Mac/UnderwaterMac/RMac set transmission_time_error_ $opt(transmission_time_error)
tmac-example.tcl:set opt(mac) Mac/UnderwaterMac/TMac
tmac-example.tcl:Mac/UnderwaterMac/TMac set ND_window_ $opt(ND_window)
tmac-example.tcl:Mac/UnderwaterMac/TMac set ACKND_window_ $opt(ACKND_window)
tmac-example.tcl:Mac/UnderwaterMac/TMac set PhaseOne_window_ $opt(PhaseOne_window)
tmac-example.tcl:Mac/UnderwaterMac/TMac set PhaseTwo_window_ $opt(PhaseTwo_window)
tmac-example.tcl:Mac/UnderwaterMac/TMac set IntervalPhase2Phase3_ $opt(IntervalPhase2Phase3)
tmac-example.tcl:Mac/UnderwaterMac/TMac set duration_ $opt(duration)
tmac-example.tcl:Mac/UnderwaterMac/TMac set PhyOverhead_ $opt(PhyOverhead)
tmac-example.tcl:Mac/UnderwaterMac/TMac set large_packet_size_ $opt(large_packet_size)
tmac-example.tcl:Mac/UnderwaterMac/TMac set short_packet_size_ $opt(short_packet_size)
tmac-example.tcl:Mac/UnderwaterMac/TMac set PhaseOne_cycle_ $opt(PhaseOne_cycle)
tmac-example.tcl:Mac/UnderwaterMac/TMac set PeriodInterval_ $opt(PeriodInterval)
tmac-example.tcl:Mac/UnderwaterMac/TMac set transmission_time_error_ $opt(transmission_time_error)
tmac-example.tcl:Mac/UnderwaterMac/TMac set ContentionWindow_ $opt(ContentionWindow)
tmac-example.tcl:Mac/UnderwaterMac/TMac set TransmissionRange_ 90
uwan-mac-random.tcl:set opt(mac) Mac/UnderwaterMac/UWANMac
uwan-mac-random.tcl:Mac/UnderwaterMac/UWANMac set AvgCyclePeriod [expr 1/$opt(data_rate_)]
uwan-mac-random.tcl:Mac/UnderwaterMac/UWANMac set StdCyclePeriod 1
uw_rwp.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
uw_rwp.tcl:#Mac/UnderwaterMac/AlohaOverhear set MaxResendInterval_ 0.2
uw_rwp.tcl:#Mac/UnderwaterMac/AlohaOverhear set DeltaDelay_ 1
vbf_example_5.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbf_example_5.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0 ;# #of bytes
vbf_example_6.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbf_example_6.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0 ;# #of bytes
vbva_example.tcl:set opt(mac) Mac/UnderwaterMac/BroadcastMac
vbva_example.tcl:Mac/UnderwaterMac/BroadcastMac set packetheader_size_ 0 ;# # of bytes
"uw_mac" = Mac/UnderwaterMac/BroadcastMac , Mac/UnderwaterMac .
So you can see for yourself that all these simulations actually are using "uw mac".
* No c++ files (files.cc, files.h) are used at simulation time / run time.
* ns2 works this way : All functions in {files.cc, files.cc, tcl/lib/*, tcl/<etc>/}:
... are compiled into the ececutable 'ns' ('ns-aqua').
* These files only are used at runtime / simulation time :
Aquasim/{ lib/*/*, bin/tcsh8* }, /usr/local/bin/ns-aqua . Nothing else.
The complete ns-2.30/ folder can actually be deleted,
and you can still run the examples from a random located copy of "uw_tcl/".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.