FANET scenario for comparing OLSR and AODV

618 views
Skip to first unread message

Hemant Saini

unread,
Jun 7, 2020, 6:10:46 AM6/7/20
to ns-3-users
Hello ,

Can anyone tell  me the fanet scenario code for NS3 to run from scratch to compare olsr and aodv. Pl. share the code for such am attaching an compare of manet for example


Also if i had made a fis file fuzzy logic then how it can be implemented in NS3 for FANET . if any idea pl. share
manet-routing-compare.cc

Muhammad Bin Saif

unread,
Jul 12, 2020, 1:46:08 PM7/12/20
to ns-3-users
you can use gausmarkhov 3d mobility model for fanet scenario 

Hemant Saini

unread,
Jul 12, 2020, 9:56:02 PM7/12/20
to ns-3-...@googlegroups.com
I actually want a scenario for fanet in ns3 to compare energy 

Also can anyone tell me how I implement fuzzy logic in Fanet scenario in ns3

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/9e152eee-4c8f-435c-a7e3-399aca85cff5o%40googlegroups.com.

Lady Hadjer

unread,
Jul 14, 2020, 8:46:54 PM7/14/20
to ns-3-users
Did you find the source code of FANET to compare the two protocols ? And how can we mesure metrics such as PDR and End-to-end delay in manet-routing-protocol ? 


Le lundi 13 juillet 2020 03:56:02 UTC+2, Hemant Saini a écrit :
I actually want a scenario for fanet in ns3 to compare energy 

Also can anyone tell me how I implement fuzzy logic in Fanet scenario in ns3
On 12 Jul 2020 11:16 p.m., "Muhammad Bin Saif" <saifis...@gmail.com> wrote:
you can use gausmarkhov 3d mobility model for fanet scenario 


On Sunday, June 7, 2020 at 3:10:46 PM UTC+5, Hemant Saini wrote:
Hello ,

Can anyone tell  me the fanet scenario code for NS3 to run from scratch to compare olsr and aodv. Pl. share the code for such am attaching an compare of manet for example


Also if i had made a fis file fuzzy logic then how it can be implemented in NS3 for FANET . if any idea pl. share

--
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-...@googlegroups.com.

Lady Hadjer

unread,
Jul 14, 2020, 8:48:39 PM7/14/20
to ns-3-users
If I change the model of the mobility in "manet-routing-compare.cc" file it will give me "fanet-routing-compare.cc" ??? plz answer me

Hemant Saini

unread,
Jul 15, 2020, 12:31:31 AM7/15/20
to ns-3-...@googlegroups.com
Still am searching for that
Waiting someone help in this fanet scenarios

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/25ec962a-b372-400d-9c30-d010e3dc20f3o%40googlegroups.com.

Hemant Saini

unread,
Aug 24, 2020, 2:01:45 AM8/24/20
to ns-3-users
@lili this is correect but i also want to compae the energy consumption by olsr and aodv in this manet-routing -compare.cc if you had such code pl. send

Hubert

unread,
Sep 7, 2020, 3:17:13 AM9/7/20
to ns-3-users
Hi Hemant,

I was also working on implementing energy consumption in aodv. This may help you:
https://groups.google.com/g/ns-3-users/c/r96qVKEOVzQ/m/3IlLDxwtAQAJ

Cheers,
Hubert

Hemant Saini

unread,
Apr 26, 2021, 10:11:37 AM4/26/21
to ns-3-users
can anyone find the scenario code to compare olsr and odv in fanet 3D pl share

Jhonny Carchi

unread,
Apr 27, 2021, 12:10:09 AM4/27/21
to ns-3-users
Did you find the source code of FANET to compare the two protocols ? And how can we mesure metricsRe: FANET scenario for comparing OLSR and AODV please

Hemant Saini

unread,
May 2, 2021, 8:27:53 AM5/2/21
to ns-3-users
 here is a problem

need to implement
.................................................
//Mobility Model -3D
 MobilityHelper mobilityAdhoc;
int64_t streamIndex = 0;
mobilityAdhoc.SetMobilityModel ("ns3::GaussMarkovMobilityModel",
  "Bounds", BoxValue (Box (0, 100, 0, 100, 0, 100)),
  "TimeStep", TimeValue (Seconds (0.5)),
  "Alpha", DoubleValue (0.85),
  "MeanVelocity", StringValue ("ns3::UniformRandomVariable[Min=800|Max=1200]"),
  "MeanDirection", StringValue ("ns3::UniformRandomVariable[Min=0|Max=6.283185307]"),
  "MeanPitch", StringValue ("ns3::UniformRandomVariable[Min=0.05|Max=0.05]"),
  "NormalVelocity", StringValue ("ns3::NormalRandomVariable[Mean=0.0|Variance=0.0|Bound=0.0]"),
  "NormalDirection", StringValue ("ns3::NormalRandomVariable[Mean=0.0|Variance=0.2|Bound=0.4]"),
  "NormalPitch", StringValue ("ns3::NormalRandomVariable[Mean=0.0|Variance=0.02|Bound=0.04]"));
mobilityAdhoc.SetPositionAllocator ("ns3::RandomBoxPositionAllocator",
  "X", StringValue ("ns3::UniformRandomVariable[Min=0|Max=100]"),
  "Y", StringValue ("ns3::UniformRandomVariable[Min=0|Max=100]"),
  "Z", StringValue ("ns3::UniformRandomVariable[Min=0|Max=100]"));
mobilityAdhoc.Install (adhocNodes);

..............................................................
original code in manetroutingcompare.cc
/

*
  MobilityHelper mobilityAdhoc;
  int64_t streamIndex = 0; // used to get consistent mobility across scenarios

  ObjectFactory pos;
  pos.SetTypeId ("ns3::RandomRectanglePositionAllocator");
  pos.Set ("X", StringValue ("ns3::UniformRandomVariable[Min=0.0|Max=300.0]"));
  pos.Set ("Y", StringValue ("ns3::UniformRandomVariable[Min=0.0|Max=1500.0]"));
//300x1500metres

  Ptr<PositionAllocator> taPositionAlloc = pos.Create ()->GetObject<PositionAllocator> ();
  streamIndex += taPositionAlloc->AssignStreams (streamIndex);

  std::stringstream ssSpeed;
  ssSpeed << "ns3::UniformRandomVariable[Min=0.0|Max=" << nodeSpeed << "]";
  std::stringstream ssPause;
  ssPause << "ns3::ConstantRandomVariable[Constant=" << nodePause << "]";
  mobilityAdhoc.SetMobilityModel ("ns3::RandomWaypointMobilityModel",
                                  "Speed", StringValue (ssSpeed.str ()),
                                  "Pause", StringValue (ssPause.str ()),

                                  "PositionAllocator", PointerValue (taPositionAlloc));
  mobilityAdhoc.SetPositionAllocator (taPositionAlloc);
  mobilityAdhoc.Install (adhocNodes);*/
  streamIndex += mobilityAdhoc.AssignStreams (adhocNodes, streamIndex);
  NS_UNUSED (streamIndex); // From this point, streamIndex is unused


now the problem is how we change the speed,pause,tapositionalloc streamindex in the above gauss 3D

if anyone can helpme

igs...@gmail.com

unread,
Oct 7, 2021, 4:51:15 AM10/7/21
to ns-3-users

By using the GaussMarkovMobilityModel and RandomBoxPositionAllocator, which are readily available under ns-3, we can do a FANET simulation, we can simulate any type of  3D mobile  Network.

This 3-dimensional Gauss-Markov mobility model available under ns-3  can be used for modelling the mobility of aircraft flying at different altitudes. In general, this mobility model can be used to simulate any multi-tier UAV/AANET/FANET.


The following presents a typical configuration of  GaussMarkovMobilityModel and RandomBoxPositionAllocator for a 3D, Mobile, UAV/AAANET/FANET simulation.

mobility.SetMobilityModel ("ns3::GaussMarkovMobilityModel",
"Bounds", BoxValue (Box (0, 300, 0, 300, 100, 500)),

"TimeStep", TimeValue (Seconds (0.5)),
"Alpha", DoubleValue (0.85),
"MeanVelocity", StringValue ("ns3::UniformRandomVariable[Min=0|Max=20]"),

"MeanDirection", StringValue ("ns3::UniformRandomVariable[Min=0|Max=6.283185307]"),
"MeanPitch", StringValue ("ns3::UniformRandomVariable[Min=0.05|Max=0.05]"),
"NormalVelocity", StringValue ("ns3::NormalRandomVariable[Mean=0.0|Variance=0.0|Bound=0.0]"),
"NormalDirection", StringValue ("ns3::NormalRandomVariable[Mean=0.0|Variance=0.2|Bound=0.4]"),
"NormalPitch", StringValue ("ns3::NormalRandomVariable[Mean=0.0|Variance=0.02|Bound=0.04]"));

mobility.SetPositionAllocator ("ns3::RandomBoxPositionAllocator",
"X", StringValue ("ns3::UniformRandomVariable[Min=200.0|Max=500.0]"),
"Y", StringValue ("ns3::UniformRandomVariable[Min=200.0|Max=500.0]"),
"Z", StringValue ("ns3::UniformRandomVariable[Min=0.0|Max=500.0]"));

You can see a prototype implementation of FANET at the following link.
Using Gauss-Markov 3D Mobility Model Under ns-3 for Simulating Unmanned Aerial Vehicle (UAV), Aerial Ad-hoc Network (AANET) and Flying Ad-hoc Network (FANET)

The attached animated GIF file shows the Gauss-Markov 3D Mobility Model in action. While using Gauss-Markov 3D Mobility Model Under ns-3, a group of nodes will only fly in some fixed altitudes, and they will not move to other altitudes. We have to keep it in mind while designing our UAV/AANET/FANET.
FANETGaussMarkovMobility3D.gif
Reply all
Reply to author
Forward
0 new messages