aodv and propagation loss model

49 views
Skip to first unread message

Bilel Zaghdoudi

unread,
Mar 10, 2015, 10:06:45 AM3/10/15
to ns-3-...@googlegroups.com
Hi, i'm working on implementing a deployement protocol in Ad hoc networks and i have two questions :

First question, what are the differences between this two codes installing AODV:

1) AodvHelper aodv;
InternetStackHelper stack;
stack.SetRoutingHelper (aodv);   
stack.Install (c);

2) AodvHelper aodv;
Ipv4StaticRoutingHelper staticRouting;
Ipv4ListRoutingHelper list;
list.Add (staticRouting,0);
list.Add (aodv,10);
InternetStackHelper stack;
stack.SetRoutingHelper (list);
stack.Install (c);

Since i find these two in some other works and they give me different results.

Second question, how can i get a more real scenario? what propagation loss model i have to use or a combination of multiple propagation loss model for example for an Ad hoc network with mobile nodes? for the moment i'm using LogDistancePropagationLossModel. is there any suggestions, I appreciate any help thnx.

Tommaso Pecorella

unread,
Mar 10, 2015, 12:18:59 PM3/10/15
to ns-3-...@googlegroups.com
Hi,

the two codes are functionally equivalent. In one case the node just have one routing protocol (AODV), while in the second it does have two protocols (static and AODV).
The static routing allows you to add static routes and/or to use GlobalRouting. In all the other cases it shouldn't disturb. However, due to the random number initialization, you may have slightly different simulations results. In any case the results should be statistically equivalent. If they aren't, you found a bug.

About the propagation model, I'm not an expert. however I think it mainly depends on the scenario (urban, rural, etc.) and the nodes speed. A literature scouting should be the best way to get an answer.

Cheers,

T.

Bilel Zaghdoudi

unread,
Mar 10, 2015, 12:56:20 PM3/10/15
to ns-3-...@googlegroups.com

I appreciate the help, thnx. for the routing protocol issue i have different simulation results even when i try to simulate the same bonnmotion file containing the same scenario in the two cases (with only AODV; with static and AODV)!!. For the second issue i'm using a density equivalent to 300nodes/km2 and a node speed between 0-1m/s with the randomwaypoint mobility model (for example an open place like a Coffee Terrace). What i'm looking for is what propagation loss model i have to use with the scenario described above? I'm using this code right now:

WifiHelper wifi;
wifi.SetStandard (WIFI_PHY_STANDARD_80211a);

YansWifiPhyHelper wifiPhy =  YansWifiPhyHelper::Default ();
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);

YansWifiChannelHelper wifiChannel;
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");

wifiChannel.AddPropagationLoss ("ns3::RandomPropagationLossModel");
wifiChannel.AddPropagationLoss ("ns3::LogDistancePropagationLossModel",
                              "Exponent", DoubleValue (3.0));

wifiPhy.SetChannel (wifiChannel.Create ());

NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
                              "DataMode",StringValue (phyMode),
                              "ControlMode",StringValue (phyMode));
wifiMac.SetType ("ns3::AdhocWifiMac");
 devices = wifi.Install (wifiPhy, wifiMac, c);

Thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ZEeyHY_a-VU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages