LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-16-2015, 08:21 PM   #46
tmsherazi
Member
 
Registered: Dec 2014
Posts: 30

Rep: Reputation: Disabled

Dear Sir; please tell how we can we measure the depth of a node and how we routing based on node depth. please do some help

Last edited by tmsherazi; 02-16-2015 at 11:17 PM.
 
Old 02-17-2015, 06:30 AM   #47
tmsherazi
Member
 
Registered: Dec 2014
Posts: 30

Rep: Reputation: Disabled
Sir, please help me
 
Old 02-18-2015, 10:29 AM   #48
tmsherazi
Member
 
Registered: Dec 2014
Posts: 30

Rep: Reputation: Disabled
Sir is there any source of tcl scripting from where i got some help for hop hop routing not depend on vector base routing approach
 
Old 02-18-2015, 11:38 AM   #49
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
← ref. #47 .. #49.

Have you read all documentation ?
. http://obinet.engr.uconn.edu/wiki/im...-sim-10-26.pdf
. http://obinet.engr.uconn.edu/wiki/im...r_Tutorial.pdf
. http://obinet.engr.uconn.edu/wiki/index.php/Aqua-Sim

Have you tried out Aqua3d ?


-
 
Old 03-30-2015, 01:41 PM   #50
eng ehab
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
Please help me When making validate to aqua sim some mistakes appear in the testing process and when run any example in underwatersensor does not work

Last edited by eng ehab; 03-30-2015 at 02:00 PM.
 
Old 03-30-2015, 03:50 PM   #51
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
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

-

Last edited by knudfl; 03-30-2015 at 03:53 PM.
 
Old 04-09-2015, 12:47 PM   #52
eng ehab
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
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

osama@ubuntu:~$ uname -m
x86_64
 
Old 04-09-2015, 01:23 PM   #53
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
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.

-
 
Old 04-09-2015, 02:28 PM   #54
eng ehab
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
can i use ns2.34 in ubundu 14.4 (32 bits) to Aqua-Sim1.0
 
Old 04-09-2015, 04:22 PM   #55
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
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.


-
 
Old 04-11-2015, 01:26 PM   #56
eng ehab
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
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

Last edited by eng ehab; 04-11-2015 at 01:40 PM.
 
Old 04-11-2015, 02:05 PM   #57
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
Re #56.
Quote:
invalid command name "Agent/Vectorbasedforward"
You are using an 'ns' executable with no aquasim.

? Have you read the aquasim posts to know how to build Aqua-Sim ?
. http://www.linuxquestions.org/questions/tags/aquasim/
. http://network-simulator-ns-2.7690.n...85.html#a29814

The build ( Ubuntu 14.04 ) :
$ cd aquasim/
$ patch -p0 < ns230_gcc44.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
$ cd ns-2.30/ && sudo make install
$ cp ns ns-aqua
$ sudo cp ns-aqua /usr/local/bin/
$ cd underwatersensor/uw_tcl/
$ ns-aqua vbf_example_5.tcl


-

Last edited by knudfl; 04-11-2015 at 02:15 PM.
 
Old 04-17-2015, 08:03 PM   #58
eng ehab
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
please help me i want to run uw_mac which have files .cc ,files .o and files .h how ?
 
Old 04-18-2015, 05:07 AM   #59
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
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/".


-

Last edited by knudfl; 04-18-2015 at 05:25 AM.
 
Old 04-18-2015, 03:52 PM   #60
eng ehab
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
I could not understand what you want to say
 
  


Reply

Tags
aqua3d, 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
[SOLVED] Aquasim:How insert mac protocol to aquasim vaj-bor Linux - Software 35 03-15-2017 06:43 PM
NS2 and Aquasim Preeti1910 Linux - Software 48 10-15-2016 01:09 PM
aquasim question MonaJalili Linux - Wireless Networking 6 05-12-2013 06:59 AM
aquasim varshitha Linux - Wireless Networking 0 01-29-2011 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 AM.

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