nam trace with 3D

51 views
Skip to first unread message

werkineh eshete

unread,
Nov 28, 2017, 9:52:58 AM11/28/17
to Network Simulator 2 (NS2)
I was using bonnmotion for creating Gauss markov mobility model and use it in ns2 using this setting :

./bm -f supfanetmovt GaussMarkov -d 300 -n 10 -x 30000 -y 30000 -z 30000 -m 340 -h 1700
After converting it to ns2 format by : ./bm NSFile -f supfanetmovt when I see the supfanetmovt.ns_movements using gedit supfanetmovt.ns_movements, the part looks like this:
$node_(0) set X_ 9924.744663015208
$node_(0) set Y_ 25524.11867347023
$node_(0) set Z_ 10.0
$ns_ at 0.0 "$node_(0) setdest 8804.257172326174 29026.397689120426 10.0 1470.861000652573"
$ns_ at 2.5 "$node_(0) setdest 8775.509022887978 32704.621081316272 10.0 2908.755263286932"
$ns_ at 5.0 "$node_(0) setdest 7815.0113955083325 36255.01919105103 10.0 4374.529924519729"
$ns_ at 7.5 "$node_(0) setdest 7297.852182057985 32615.80506339625 10.0 3025.0310400938765"
$ns_ at 10.0 "$node_(0) setdest 6251.1080112801155 29093.482714295624 10.0 2048.8422449728546"
$ns_ at 12.5 "$node_(0) setdest 3688.1394815972794 26459.25999325077 10.0 2522.529951516131"
$ns_ at 15.0 "$node_(0) setdest 7327.587404995378 25950.614468356827 10.0 1052.7772403270146"

Here the third column(I think the "z" colomon) for setdest persists 10.0 throughout the simulation for all 10 nodes. where is my mistake please help me, In addition to this when I use this to ns2 it shows the following error
Loading scenario file...
ns: _o14 setdest 19237.430183658184 10716.799004351824 10.0 1059.9637867954364:
    (_o14 cmd line 1)
    invoked from within
"_o14 cmd setdest 19237.430183658184 10716.799004351824 10.0 1059.9637867954364"
    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 "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 setdest 19237.430183658184 10716.799004351824 10.0 1059.9637867954364"
I was thinking it is  related to $ns namtrace-all-wireless $namTrc $val(x) $val(y) this command and  I put $val(z) and tried it but another error with the additional argument error, is there any way to use 3D ?
please help!!

knudfl

unread,
Nov 28, 2017, 10:42:41 AM11/28/17
to Network Simulator 2 (NS2)
When using setdest up to 30,000 please make sure that the simulation.tcl has settings no less than 30000:

set val(x)         30000           ;# X dimension of topography
set val(y)         30000           ;# Y dimension of topography

werkineh eshete

unread,
Nov 28, 2017, 11:19:58 AM11/28/17
to Network Simulator 2 (NS2)
yes sir, first of all thank you for your quick reply, Here are my setting,

set val(x) 37894.0
set val(y) 38034.0
set val(z) 30020.0

I just copy it from .ns_params converted from bonnmotion
 and
$topo load_flatgrid $val(x) $val(y)
here $val(z) is not working it gives error
Regards

knudfl

unread,
Nov 28, 2017, 12:04:07 PM11/28/17
to Network Simulator 2 (NS2)
Your errors ..
(SplitObject unknown line 2)
.... etc. etc. :   Looks just like the usual "otcl errors" which can be caused by any faulty simulation.

Suggest :  Upload the simulation files to 'Google Drive',
and show a shared link in a new post.

werkineh eshete

unread,
Nov 29, 2017, 1:24:51 AM11/29/17
to Network Simulator 2 (NS2)

knudfl

unread,
Nov 29, 2017, 9:05:47 AM11/29/17
to Network Simulator 2 (NS2)
The file  "supfanetmovt.ns_movements"  is missing.
Message has been deleted

werkineh eshete

unread,
Nov 29, 2017, 9:19:52 AM11/29/17
to Network Simulator 2 (NS2)

knudfl

unread,
Nov 29, 2017, 11:15:39 AM11/29/17
to Network Simulator 2 (NS2)
OK, I generated the file myself :
A little different file size, bonnmotion 3.0.1 , and no luck with any -z value.

Now I have downloaded your "supfanetmovt.ns_movements" : No issues with an ns2 friendly OS.
$ $ ns235-64-orig eshete-aomdv2.tcl
.
.
293.000523: d: 2440.348364, Pr: 3.228690e-11
293.001883: d: 2062.341373, Pr: 4.520733e-11
293.019005: d: 2621.169620, Pr: 2.798593e-11
293.534546: d: 1527.562910, Pr: 8.240086e-11
293.534550: d: 2924.252238, Pr: 2.248538e-11
293.667060: d: 3730.936397, Pr: 1.381320e-11
294.130002: d: 3322.104657, Pr: 1.742221e-11
294.130002: d: 3476.051695, Pr: 1.591320e-11
294.363156: d: 1613.404307, Pr: 7.386582e-11
294.363163: d: 3694.437363, Pr: 1.408748e-11
294.963531: d: 2626.417560, Pr: 2.787420e-11
294.963537: d: 4260.882457, Pr: 1.059085e-11
295.839184: d: 1599.644708, Pr: 7.514202e-11
296.750160: d: 582.558050, Pr: 5.665673e-10
297.555148: d: 607.467517, Pr: 5.210553e-10
297.941889: d: 911.875753, Pr: 2.312377e-10
298.586989: d: 1468.746890, Pr: 8.913249e-11
298.841304: d: 1694.193185, Pr: 6.698909e-11
299.473353: d: 2260.299211, Pr: 3.763553e-11
299.804704: d: 2558.977249, Pr: 2.936277e-11

ns2 APP-Tool analyze ....
Packet Delivery Ratio
GeneratedPackets = 1

ReceivedPackets = 52

Packet Delivery Ratio = 5200

Total Dropped Packets = 0

? ?  Which OS are you using ? ?
         ... I used PCLinuxOS 2017 - x86_64 for the above.
____________________________________________
screen10588.jpg

werkineh eshete

unread,
Nov 29, 2017, 12:24:09 PM11/29/17
to Network Simulator 2 (NS2)
I am using ubuntu 16.04 LTS, even sir the z column is constant 10 did you observe that? I have no doubt about this, the error persists.

knudfl

unread,
Nov 29, 2017, 12:54:17 PM11/29/17
to Network Simulator 2 (NS2)
?  Where do you observe "the z column is constant 10" ? ?


I downloaded a new set of files,  aomdv2.tcl , supfanetmovt.ns_movements on Ubuntu 16.04.3 - amd64.
$ ns235-64-orig aomdv2.tcl

... The files nam.trc 19.4MB, ns.trc 39.7MB are created :   Same result as PCLinuxOS2017.

? ?  Are you sure the OS is 64bits ?     ( $ uname -m )
And are you quite sure that no changes were made to ns-2.35 ?

Building ns-2.35 , Ubuntu 16.04 :
tar xvf ns-allinone-2.35_gcc5.tar.gz
https
://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns
-allinone-2.35/
./install
cd ns
-2.35/
cp ns ns
-orig     // This is your backup, and a safe identifier of the un-modified ns-2.35/ns
sudo cp ns
-orig /usr/local/bin/

.......... Simulation, please use "ns-orig" ................
$ ns-orig aomdv2.tcl

knudfl

unread,
Nov 29, 2017, 12:56:33 PM11/29/17
to Network Simulator 2 (NS2)
Note :  You can have as many ns-allinone-2.xx as you want, installed at the same time.

werkineh eshete

unread,
Nov 30, 2017, 12:46:13 AM11/30/17
to Network Simulator 2 (NS2)
sorry sir I made a mistake when I upload supfanetmovt.ns_movements it is done for 2d, sorry for this sir when I want to do other things I replace this file with 2d. here is the 3d ns_movements file with the command ./bm -f supfanetmovt GaussMarkov -d 300 -n 10 -x 30000 -y 30000 -z 30000 -m 340 -h 1700
https://drive.google.com/open?id=1tmChc1VxlwPwciQny-qVDQHCifXYVVki
https://drive.google.com/open?id=1FHjd7MwMwT1pfvelcbTCRmJUVUGKGZJq

the first google drive link is for:
supfanetmovt3d.ns_movements
the second link is for: 
supfanetmovt3d.ns_params

I want to apologize for mistake I made uploading file and wasting your time sorry!!!

knudfl

unread,
Dec 2, 2017, 12:24:03 PM12/2/17
to Network Simulator 2 (NS2)
I found no information about "Gauss-Markov3D". 3D : RandomWaypoint3D.

. http://mohittahiliani.blogspot.in/2010_04_01_archive.html

. https://www.researchgate.net/post/Can_anybody_tell_me_how_to_use_a_BonnMotion_created_mobility_model_in_ONE
 →
+ Boundless v1.0 Application to construct Boundless mobility scenarios
+ ChainScenario v1.0 Application which links different scenarios
+ Column v1.0 Application to create movement scenarios according to the Column model
+ DisasterArea v1.0 Application to create extended catastrophe scenarios according to the Disaster Area model
+ GaussMarkov v1.0 Application to construct GaussMarkov mobility scenarios
+ ManhattanGrid v1.0 Application to construct ManhattanGrid mobility scenarios
+ MSLAW v1.0 Application to construct MSLAW mobility scenarios
+ Nomadic v1.0 Application to create movement scenarios according to the Nomadic community Mobility model
+ OriginalGaussMarkov v1.0 Application to construct mobility scenarios according to the original Gauss-Markov model
+ ProbRandomWalk v1.0 Application to construct Probabilistic Random Walk mobility scenarios
+ Pursue v1.0 Application to create movement scenarios according to the Pursue Mobility model
+ RandomDirection v1.0 Application to construct Random Direction mobility scenarios
+ RandomStreet v1.0 Application to construct RandomStreet mobility scenarios
+ RandomWalk v1.0 Application to construct RandomWalk mobility scenarios
+ RandomWaypoint v1.0 Application to construct RandomWaypoint mobility scenarios
+ RandomWaypoint3D v1.0 Application to construct RandomWaypoint (3D) mobility scenarios
+ RPGM v1.0 Application to create movement scenarios according to the Reference Point Group Mobility model
+ SLAW v1.0 Application to construct mobility scenarios according to the Self-similar Least Action Walk model
+ SMOOTH v0.1 Application to construct SMOOTH mobility scenarios
+ Static v1.0 Application to construct static scenarios with no movement at all
+ StaticDrift v1.1 Application to construct static scenarios with a drift
+ SteadyStateRandomWaypoint v1.0 Application to construct Steady State Random Waypoint mobility scenarios
+ TIMM v1.0 Application to construct Tactical Indoor Mobility Model mobility scenarios
Reply all
Reply to author
Forward
0 new messages