BonnMotion tool command

76 views
Skip to first unread message

ah

unread,
Jul 4, 2023, 6:03:26 AM7/4/23
to ns-u...@googlegroups.com, //networksi...@gmail.com, Knud Larsen

Dear Sir Madam
I hope you are doing well.

May I ask you how I could generate such an attached file of (trace file) using the BonnMotion tool if I have( number of nodes 31, Time 180sec, network size area 1000 *1000)

I used this command, but it didn't give me the attached format." 

./bm -f scen ManhattanGrid -u 3 -v 3 -d 180 -n 31 -x 1000 -y 1000 -i 0

./bm NSFile -f scen

I am looking for your help, please.
Thank you in advance
--


Kind Regards

**********************************************

RWP.tcl

knudfl

unread,
Jul 4, 2023, 9:04:19 AM7/4/23
to Network Simulator 2 (NS2)
Hi.

Example BonnMotion ManhattanGrid ....

1)
$ ./bm -f scen31 ManhattanGrid -n 31 -d 60 -x 1000 -y 1000
BonnMotion 3.0.1

OS: Linux 5.16.20-pclos1
Java: Oracle Corporation 15.0.2

Starting ManhattanGrid ...
Next RNG-Seed =8379509054117777062 | #Randoms = 27722
ManhattanGrid done.
Runtime: 0 sec
____________________________________
2)
$ ./bm NSFile -f scen31bm NSFile -f scen31bm NSFile -f scen31

>>> The file scen31.ns_movements 10.9kB is created
____________________________
Example simulation, 31guindy29.tcl

knudfl

unread,
Jul 4, 2023, 12:17:41 PM7/4/23
to Network Simulator 2 (NS2)
Example 2 ...
.. creating a movement file with an argument
"$ns_ at 51.474688404920016 "$node_(0) ...."
like your movement example RWP..

$ ./bm -f obj1 ManhattanGrid -n 31 -x 1000 -y 1000 -p 20 -g 140 -r 3 -e 6 -d 300 -i 5000 -j 1
$ ./bm NSFile -f obj1bm NSFile -f scenNSFile -f obj1

____________________

$ ns M-guindy31.tcl
num_nodes is set 31
.
INITIALIZE THE LIST xListHead
Starting Simulation...
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
NS EXITING...
... sometimes "Segmentation fault" appears after the creation of the trace files: Please ignore.
I got : guindy.nam 4.5MB, guindy.tr 4.5MB

-

knudfl

unread,
Jul 4, 2023, 12:22:36 PM7/4/23
to Network Simulator 2 (NS2)

ah

unread,
Jul 4, 2023, 2:43:19 PM7/4/23
to ns-u...@googlegroups.com
Thank you so much

I would like to ask about the -p, -g, -r, -e, -i, -j and obj1 refer for what please
Also, this command not make like the example that i sent you such as write the in this photo... Thank you in advance

#waypoints 17
$node_(0) set X_ 763.6972124090868
$node_(0) set Y_ 13.377898874030851
$ns_ at 0.0 "$node_(0) setdest 879.0313814348028 13.377898874030851 9.078369900154211"
# $ns_ at 12.704281748175617 "$node_(0) setdest 879.0313814348028 13.377898874030851 0.0"
$ns_ at 13.698000620800485 "$node_(0) setdest 583.7525756051352 13.377898874030851 5.146522873668785"
# $ns_ at 71.0724285749452 "$node_(0) setdest 583.7525756051352 13.377898874030851 0.0"
$ns_ at 71.38263858585879 "$node_(0) setdest 678.4718041009626 13.377898874030851 5.890585627672603"
Thank you


obj1 ManhattanGrid -n 31 -x 1000 -y 1000 -p 20 -g 140 -r 3 -e 6 -d 300 -i 5000 -j 1
--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/ee5db5ac-d666-4623-a50e-296aecf640b0n%40googlegroups.com.


--


Kind Regards

**********************************************

ah

unread,
Jul 4, 2023, 2:54:32 PM7/4/23
to ns-u...@googlegroups.com
If possible please take an online session for 15 minutes. I have some questions please.

Thank you

On Tue, Jul 4, 2023 at 9:17 AM knudfl <tx.li...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/ee5db5ac-d666-4623-a50e-296aecf640b0n%40googlegroups.com.


--


Kind Regards

**********************************************

Message has been deleted

knudfl

unread,
Jul 4, 2023, 4:40:40 PM7/4/23
to Network Simulator 2 (NS2)
About lines commented out with a hash mark ( # ) like this

# $ns_ at 12.704281748175617 "$node_(0) setdest 879.0313814348028 13.377898874030851 0.0"
...... These lines are not used. (And the ' # ' were probably added during a manually editing.)
So you cannot ask for creating lines not to be used for anything.
I still don't know what is is you want. A certain figure? A specific order of lines?
Generating a fie with a "setdest tool" : Expected to write random figures, as seed is random / real life network traffic is rarely reproducible.
-------
About options -p, -g, -r, -e, -i, -j :  Are from a once saved command for "Obstacle-mobility-model", year 2019:
$ ./bm -f obstaclemodel1 DisasterArea -n 111 -x 275 -y 250 -p 20 -a 1 -g 140 -r 3 -e 6 -q 3 -d 300 -i 5000 -j 1 -b 20,190,20,174,56,190,56,174,38,174,56,182,1,20, etc.etc.
https://drive.google.com/drive/folders/1a6TydXjM73iJhCfsrZv8y78znzG3N9ls?usp=sharing
To understand options, I guess you will have to read "everything BonnMotion INFO"
.  bonnmotion-3.0.1/doc/README.pdf
.  https://groups.google.com/g/ns-users/search?q=bonnmotion
.  https://www.linuxquestions.org/questions/tags/bonnmotion/
.  Google        bonnmotion tutorial    
--------
About obj1 : Is a random file name like  sample, scen, scenario ......

On Tuesday, July 4, 2023 at 6:17:41 PM UTC+2 knudfl wrote:

knudfl

unread,
Jul 4, 2023, 7:34:50 PM7/4/23
to Network Simulator 2 (NS2)
If you want to see the "waypoints info" please use this
./bm -f u3v3 ManhattanGrid -n 31 -u5 -v6 -x 1000 -y 1000 -p 20 -g 140 -r 3 -e 6 -d 300 -i 5000 -w 20
./bm NSFile -f u3v3bm NSFile -f scenNSFile -f u3v3
./bm NSFile -f u3v3bm NSFile -f scenNSFile -f u3v3 > waypoints.txt
....... to read the lines with waypoints in the file waypoints.txt
It appears that all the surplus lines starting with a # are actually generated automatically, sorry.
( ?Maybe the calculations are for one of the other network simulators? )
_________
You may get an idea about the waypoints options by using the grep command to search for waypoints:
$ cd bonnmotion-3.0.1/
$ grep -Rn waypoints *
___________________
Simulation :     $ ns M-x1000-guindy31.tcl
→ Example Manhattan4-u-5-v6-x500 https://drive.google.com/drive/folders/1U6e8TgyYpf_pGzQKI7dX-EOgoqYqAZ5n?usp=sharing
On Tuesday, July 4, 2023 at 12:03:26 PM UTC+2 eb.al...@gmail.com wrote:

ah

unread,
Jul 5, 2023, 6:40:40 AM7/5/23
to ns-u...@googlegroups.com
Ok, Maney, thanks. I really appreciate your assistance and support.

May I ask you to check this AODV script, please?  I wonder if it configures well I want to make 4 gateways as follows and hope to be these gateways static and not move while the other nodes are mobile.
My topology is MESH type, please

Here are the approximate coordinates for placing the four gateways in a 1000 m * 1000 m network area:

Gateway 1: Northwest Corner
Latitude: 0° N
Longitude: 0° E

Gateway 2: Northeast Corner
Latitude: 0° N
Longitude: 1000° E

Gateway 3: Southwest Corner
Latitude: 1000° N
Longitude: 0° E

Gateway 4: Southeast Corner
Latitude: 1000° N
Longitude: 1000° E


Kindly, review the AODV.tcl script please.

Thank you in advance.




--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.


--


Kind Regards

**********************************************

RWP.tcl
AODV_4gateway.tcl

ah

unread,
Jul 5, 2023, 7:52:57 AM7/5/23
to ns-u...@googlegroups.com
I update the code of AODV.tcl which is related for the 4 static node, but the nodes still mobile... how could I do them fixed please?

--


Kind Regards

**********************************************

aodv4gateway.tcl
RWP.tcl

Charles Pandian

unread,
Jul 5, 2023, 8:34:58 AM7/5/23
to ns-u...@googlegroups.com
1) First of all, ns-2 uses a simple coordinate system.
   You can only set positions in simple 2D or 3D coordinate systems which only know the positions in meters. Not like,  'x degree N' or 'y degree E' as you mentioned.

2. Even after setting fixed positions to some nodes in your scenario, they are still moving because you are moving them over time.
    I mean, the mobility model file that you are using is simply altering the locations of your 'fixed position nodes' over time.


-----------------------------------------------
Bonnmotion is sufficient for your simulations. 
But, there is another, classical GUI-based mobility file generator called Mobisim.
But for experimenting with different mobility models, one can use Mobisim.
One may try installing it as explained here.
image.png


One can some of the interesting mobility models of Mobisim here

Mobilit files generated by bonnmotion and mobisim can be used in simulators ns-2 as well as ns-3.

image.png

Charles Pandian,



Reply all
Reply to author
Forward
0 new messages