Request for building 3D Gauss Markov Mobility Model in ns-3

108 views
Skip to first unread message

2021 11062

unread,
Dec 18, 2022, 2:33:10 AM12/18/22
to ns-3-users
Hello,
I am M.tech student working on FANET mobility model. I need help in implementing 3D gauss markov mobility model in ns-3. which files and folders in ns-3 to target and where changes will be required.

Charles Pandian

unread,
Dec 18, 2022, 11:25:51 AM12/18/22
to ns-3-...@googlegroups.com
I think you need not implement any code to simulate the 3D gauss markov mobility model in ns-3.

By using the ‘GaussMarkovMobilityModel’ and ‘RandomBoxPositionAllocator’, which are readily available under ns-3, we can do any 3D simulation.
 

You may check this link for some clues to use ‘GaussMarkovMobilityModel’ and ‘RandomBoxPositionAllocator’.


Charles Pandian,



On Sun, Dec 18, 2022 at 1:03 PM '2021 11062' via ns-3-users <ns-3-...@googlegroups.com> wrote:
Hello,
I am M.tech student working on FANET mobility model. I need help in implementing 3D gauss markov mobility model in ns-3. which files and folders in ns-3 to target and where changes will be required.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/ebae9117-33d6-459e-8e13-8d694a57e6afn%40googlegroups.com.

2021 11062

unread,
Dec 22, 2022, 4:22:41 AM12/22/22
to ns-3-users
Hi Charles,

I have a doubt in the article that you suggested reading.
1.  Does the snippets of code that you have shared in that article make a complete code? Are there some things that are not mentioned?
2. in ns2, we use nam command to run a scenario in NetAnim, but I am unaware of how to run it in ns3. Can you please guide in on how to execute scenarios in NetAnim in ns3 

Thanks and Regards,
Jui

Gabriel Ferreira

unread,
Dec 22, 2022, 10:35:37 AM12/22/22
to ns-3-users
> 2. in ns2, we use nam command to run a scenario in NetAnim, but I am unaware of how to run it in ns3. Can you please guide in on how to execute scenarios in NetAnim in ns3 

If you are using a recent version with cmake, you just need to enable it (./ns3 configure -- -DNS3_NETANIM=ON), then run it (./ns3 run netanim).
They are not executed on the spot, just replayed though. 

If you want to control the execution, you can try pyviz (./ns3 configure --enable-python-bindings && ./ns3 run simulation --visualize).

Charles Pandian

unread,
Dec 22, 2022, 12:11:31 PM12/22/22
to ns-3-...@googlegroups.com
1)The link that previously sent is not a having a complete code - it is only a partial example. Of course, you can simulate a 3D network topology under ns-3 using  ‘GaussMarkovMobilityModel’ and ‘RandomBoxPositionAllocator'.
2) but even if you can simulate a 3D network topology, you can visualize your 3D network only on a 2D canvas of NetAnimator since NetAnimator only can support 2D simulations.  If you wish to visualize your network in 3D, then you should use another extension+tool called NetSimulyzer.  NetSimulyzer is a freely available software. 

For using NetSimulyzer, you will need two things
a) the NetSimulyzer ns-3 extension
For installing this extension you may use the procedure provided in the official page of NetSimulyzer
https://github.com/usnistgov/NetSimulyzer-ns3-module
Or may use the following one

Installing NetSimulyzer 3D Visualization Support Add-on Module in ns-3 under Debian/Ubuntu

b) the NetSimulyzer 3D visualization tool (just like NetAnimator)
For installing this 3D visualization tool you may use the procedure provided in the official page of NetSimulyzer
https://github.com/usnistgov/NetSimulyzer
Or may use the following one

Installing NetSimulyzer 3D Visualization Tool under Debian/Ubuntu

In fact, you can use NetAnim as well as Netsimulyzer to visualize your 3D network scenario.

But if you visualyze your 3D network using NetAnim, then it will just project it in its 2D canvas as follows:.
image.png

But, it is possible to visualize the same using NetSimulyzer. In that case you will see the actual 3D output of your simulation like below :
image.png
But for that, you have to learn and do lot of things.

But, for a scholarly research simulation, 3D visualization is not at all necessary because in such cases you will only need analyze the trace outputs of the simulation (the visualization will not be a important thing).

So if  2D outputs are sufficient, then using NetSimulyzer is not at all necessary. As Gabriel mentioned, you can also use pyviz also to visualize your network.


Charles Pandian,


Reply all
Reply to author
Forward
0 new messages