LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-16-2016, 04:49 PM   #1
Alkindi
LQ Newbie
 
Registered: Jun 2016
Posts: 10

Rep: Reputation: Disabled
using scenario file to run vbf_example tcl file


Hi All,

I am trying to run below scenario file with ns-2.30/underwatersensor/uw_tcl/vbf_example_5.tcl. This scenario generated by bonnmotion tool and there is an error occur while running it.
can't read "a_(5)": no such element in array
while executing
"$a_($i) set data_rate_ [expr 1.0/$opt(interval)]"
("for" body line 2)
invoked from within
"for { set i 1 } { $i<$opt(nn) } {incr i } {
$a_($i) set data_rate_ [expr 1.0/$opt(interval)]
$ns_ at $start_time "$a_($i) cbr-start"
set start_time..."
(file "/home/squ/Aqua-Sim-1.0/ns-2.30/underwatersensor/uw_tcl/vbf_example_5.tcl" line 304)

Please help.
Thanks

tcl file :
https://drive.google.com/open?id=1_e...8iswKW2jTk17vs

scenario files:
RWP3D.ns_params
https://drive.google.com/open?id=1BP...6Ww6CbDGgIUE4E
RWP3D.ns_movements:
https://drive.google.com/open?id=107...TW25ashsd9N49U

Last edited by Alkindi; 06-17-2016 at 06:25 PM.
 
Old 06-17-2016, 06:17 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
Welcome to LQ.

Sorry, your "links" ...
"https://docs.google.com/document/d/1...it?usp=sharing"
and
"https://docs.google.com/document/d/1...it?usp=sharing"
... are half a copy of links.
Copying a link address : Right click > Copy Link Location.

Please edit your post to show the real links.
Editing : That's the 'Edit' botton in post #1.

P.S. : A contemporary Ubuntu OS may not be very usable for aquasim.
? Are all the default (12) examples running OK ?

AquaSim INFO http://www.linuxquestions.org/questions/tags/aquasim/


-

Last edited by knudfl; 06-17-2016 at 06:27 PM.
 
Old 06-17-2016, 06:28 PM   #3
Alkindi
LQ Newbie
 
Registered: Jun 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi knudfl,

Thank you for your replay !! i have changed the links ! and i have try the same scenario files with different file and it show different error !!


All example running fine without the scenario files , once i do the changes and add the scenario files ! It shows errors!
could you please check out the links now.

Last edited by Alkindi; 06-17-2016 at 06:51 PM.
 
Old 06-17-2016, 06:58 PM   #4
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
Example HOWTO format / upload a file.txt with usable code :
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Your files are not very readable with "ns-aqua".
Looks like they are made with a Windows©© tool. Not "unix files".
And the 'dos2unix' command cannot fix it. I had to delete line 1 in the vbf...tcl, and retype the line.

Code:
$ ns-aqua vbf_example_6-Alkindi.tcl
can't read "node_(0)": no such variable
    while executing
"$node_(0) set X_ 122.49146098302171"
.
Please upload files written in e.g. the gedit editor. Preferable as name.txt .
And : You will have to respond to our questions : Repeat : Which Ubuntu ?
These commands will show : 1) uname -m 2) cat /etc/issue


-

Last edited by knudfl; 06-17-2016 at 07:13 PM.
 
Old 06-17-2016, 07:15 PM   #5
Alkindi
LQ Newbie
 
Registered: Jun 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sorry !! the files generated by bonnmotion tool and then converted to ns file which have the extention : .ns_movement and .ns_params

tcl file :
https://drive.google.com/open?id=0B9...HRtNVg1b0Fzekk

movement file :
https://drive.google.com/open?id=0B9...mFTdVlkVjdCZnM

parameters file :
https://drive.google.com/open?id=0B9...E9uNk04Z1hydG8

Ubuntu 14.04.1 and x86_64
 
Old 06-18-2016, 02:11 PM   #6
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
The error I get is ...
Code:
$ ns-aqua-64 vbf_example_tcl.txt 
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
ns: _o15 setdest 122.49146098302172 58.85417455781869 13.195859329293715 0.5220217175254592:
.
.
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
I have no solution. And there is none of the default examples with a similar setup :
No lines with "setdest .. ..", or the use of external files.
And I don't remember any succes stories creating examples.tcl for aquasim.
See http://www.linuxquestions.org/questions/tags/aquasim/

Complex setups :
Please use 'Desert Underwater' http://nautilus.dei.unipd.it/desert-underwater
There is a 3.6GB VBox image you can import to VirtualBox :
http://telecom.dei.unipd.it/ns/deser...SERT_2.1.0.ova
It's LinuxMint, with /home/desert/DESERT_Underwater/\
{DESERT-2.1.0 : ns-2.34 + ns-miracle + uw-stuff.}

.... Samples.tcl :
/home/desert/DESERT_Underwater/DESERT_buildCopy_PC/DESERT-2.1.0-src/samples/{ desert_samples/, desert_with_woss_samples/}
-------

There is also aqua-sim for ns3 https://github.com/rmartin5/aqua-sim-ng
.. and https://groups.google.com/forum/?fro...rum/ns-3-users
Current protcol support includes:
[MAC layer]: BroadcastMAC, Underwater ALOHA, CopeMAC, Underwater FAMA, Underwater Slotted FAMA, GOAL, UWAN, RMac, Tmac, [Routing Layer]: DBR, Static, Dynamic, Flooding, VBF, and VBVA. Furthermore, Aqua-Sim NG core continues to support basic underwater functions such as half-duplex, long propagation delays, and acoustic signal attenuation.



-

Last edited by knudfl; 06-18-2016 at 06:41 PM.
 
1 members found this post helpful.
Old 06-18-2016, 02:17 PM   #7
Alkindi
LQ Newbie
 
Registered: Jun 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you knudfl for your support ,
The same error i got while running the tcl file ! One more question please. Any other method i could use them to generate mobilty models and use it with these tcl files in ns 2 ?
 
Old 06-18-2016, 02:27 PM   #8
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 #7, mobility.

NS-2 "node movements"
. http://www.isi.edu/nsnam/ns/doc/node172.html
. http://www.isi.edu/nsnam/ns/tutorial/nsscript7.html
. http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html


-
 
1 members found this post helpful.
Old 06-18-2016, 02:31 PM   #9
Alkindi
LQ Newbie
 
Registered: Jun 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Most of the wireless scenarios created in 2D , i think the problem because i am trying to connect the 3D mobility models with the ns2 tcl examples ! i will try to use ns3 and check out the result .


Thanks again for ur help
 
  


Reply

Tags
aquasim, desert-underwater, 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
using scenario file to run tcl file Faiza Al-Salti Linux - Networking 5 06-09-2016 12:04 PM
Get Error after run tcl file for OLSR....anyone please help AUJU Linux - Newbie 21 10-28-2015 06:42 AM
[SOLVED] terminal doesn't response while trying to run scenario file in TCL script rc49 Linux - Newbie 1 08-23-2015 11:25 PM
[SOLVED] giving path of scenario file in tcl script rc49 Linux - Newbie 1 08-18-2015 07:46 AM

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

All times are GMT -5. The time now is 08:06 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