Incorrect number of neighbors with AODV routing protocol

87 views
Skip to first unread message

Devel JD

unread,
Mar 29, 2016, 2:46:01 AM3/29/16
to ns-3-users

Hi,


I am doing a simulation on VANET using AODV routing protocol. 


Below is how I define my netdevice, without default propagation loss model.

  YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default();
 
YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default();

  wifiPhy
.SetChannel(wifiChannel.Create());
  wifiPhy
.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11);

 
NqosWaveMacHelper wifi80211pMac = NqosWaveMacHelper::Default();
 
Wifi80211pHelper wifi80211p = Wifi80211pHelper::Default();

  wifi80211p
.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
                                     
"DataMode", StringValue("OfdmRate6MbpsBW10MHz"),
                                     
"ControlMode", StringValue("OfdmRate6MbpsBW10MHz"));

  devices
= wifi80211p.Install (wifiPhy, wifi80211pMac, nodes);


First, my problem is why does the NetAnim show that every node is in range of node 2, but in the neighborlist of node 2 has node 1 only?
Second, can you explain a little bit detail of Tx/Rx gain power? Actually, I want to calculate the possible communication range of each node. I have gone through many different threads in this forum, but I still can't get how to calculate the communication range.


Best regards,


JD


Tommaso Pecorella

unread,
Mar 29, 2016, 5:17:41 AM3/29/16
to ns-3-users
Hi,

the fact that the second node is receiving the packet doesn't means that it's decoding it :)
The signal could be so low that it's discarded due to too many errors.

About how to calculate the transmission range, there's a practical way. Use a 2-nodes simulation and have then transmitting packets to each other. Then move them a bit apart and continue. For each stationary point, calculate the number of sent and received packets. Save all the data then plot them.
Note that many examples in the wireless examples folder do this.

Cheers,

T.

Chea Sowattana

unread,
Apr 3, 2016, 4:32:54 AM4/3/16
to ns-3-...@googlegroups.com
Hi,

Thank you for idea.

regards,

JD
--
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 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/rGwoFBhscvQ/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 https://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