LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2014, 09:57 AM   #1
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 34

Rep: Reputation: Disabled
Unhappy Simulation in aqua-sim


Dear all,

I'm developing a routing protocol for underwater sensor networks in Aqua-sim. I am trying to run the the tcl file but I'm getting this error:
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd port-dmux _o26"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o14" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 23)
(Node/MobileNode add-target line 23)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 105)
(Simulator create-wireless-node line 105)
invoked from within
"_o3 create-wireless-node 0"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node 0"
invoked from within
"set node_(0) [$ns_ node 0]"

can anyone help me, please?
 
Old 05-24-2014, 10:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

Please attach your tcl file as file-name.tcl.txt .

Attachments : The paper clip tool in the 'Advanced Editor'.

-
 
Old 05-26-2014, 12:50 PM   #3
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
memory corruption when running a routing protocol in ns2

Thank you. I have solved the problem, but now I got a memory corruption problem.

I set some varaibles to some values but when i tried to use them, their values are changed to some strange values.

Hopefully, you can assist me to solve this problem.
Attached Files
File Type: txt mggr.tcl.txt (9.2 KB, 9 views)
 
Old 05-26-2014, 02:13 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 3 .

'mggr.tcl' line 35 :
set opt(rp) MGGR ;# Routing protocol

? Is MGGR a new routing protocol, that you have created ?

-
 
Old 05-26-2014, 02:22 PM   #5
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
Yes, that is my routing protocl.
 
Old 05-26-2014, 06:24 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 5 .

Please describe the "routing protocol MGGR".

And attach the code / upload the code to 'Google Docs,
if you want your mggr.tcl file tested.

-
 
Old 05-27-2014, 02:30 AM   #7
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
I'm sorry, I can not disclose the code because it will be my thesis.

I appreciate your intention to help me.

Thank you..
 
Old 05-27-2014, 12:05 PM   #8
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
The origin of the coordinates in aqua-sim

One more question, please:

Where does aqua-sim assumes the origin of xyz-coordinates, is it at the sea surface or at the bottom?

Thank you in advance
 
Old 05-28-2014, 05:11 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 8 .

Probably like shown in the other application from `obinet´ : Aqua-3D →
http://obinet.engr.uconn.edu/wiki/index.php/Aqua-3D
http://ubinet.engr.uconn.edu/aqua_pa...-1.0.0-src.tgz
→ Aqua3d-1.0.0-src.tgz

-
 
Old 05-29-2014, 09:41 AM   #10
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
i seems from aqua 3D that the origin is at the middle of the monitored volume (middle of the sea).

However, in vbf_example_6.tcl written by the develpers of aqua-sim, nodes are given positive values and within the range of the length, width and hight of the monitored volume.
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 - DBR protocol saye_s Linux - Software 69 04-29-2016 12:04 AM
Aqua-Sim (ns-2 based underwater network simulator) Questions sdb Linux - Wireless Networking 1 01-29-2016 03:05 AM
VBF protocol in Aqua-sim lilong_guet Linux - Wireless Networking 2 07-05-2013 07:30 AM
[SOLVED] install aqua-sim on ubuntu dina Linux - Newbie 4 11-01-2012 05:49 AM


All times are GMT -5. The time now is 09:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration