[ndnSIM] configure wifi ad-hoc face on ndn-sim

Muktadir R Chowdhury (mrchwdhr) mrchwdhr at memphis.edu
Thu May 2 12:35:44 PDT 2019


Hi ,

I have defined a custom Transport which uses LINK_TYPE_AD_HOC. I am using this transport in my scenario.


class V2VNetDeviceTransport : public nfd::face::Transport

{

public:

  V2VNetDeviceTransport(Ptr<Node> node, const Ptr<NetDevice>& netDevice,

                     const std::string& localUri,

                     const std::string& remoteUri,

                     ::ndn::nfd::FaceScope scope = ::ndn::nfd::FACE_SCOPE_NON_LOCAL,

                     ::ndn::nfd::FacePersistency persistency = ::ndn::nfd::FACE_PERSISTENCY_PERSISTENT,

                     ::ndn::nfd::LinkType linkType = ::ndn::nfd::LINK_TYPE_AD_HOC);

                     //::ndn::nfd::LinkType linkType = ::ndn::nfd::LINK_TYPE_POINT_TO_POINT);



I have the following topology:

     0 (consumer)  --- 1 (forwarder)  --- 2 (producer)

Here, node 0 and 1 are in range, and node 1 and 2 are in range.

All the nodes are in wifi ad-hoc mode.


WifiHelper wifi;

  // wifi.SetRemoteStationManager ("ns3::AarfWifiManager");

  wifi.SetStandard(WIFI_PHY_STANDARD_80211a);

  wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode",

                               StringValue("OfdmRate24Mbps"));


  YansWifiChannelHelper wifiChannel; // = YansWifiChannelHelper::Default ();

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

  wifiChannel.AddPropagationLoss("ns3::ThreeLogDistancePropagationLossModel");

  wifiChannel.AddPropagationLoss("ns3::NakagamiPropagationLossModel");


  // YansWifiPhy wifiPhy = YansWifiPhy::Default();

  YansWifiPhyHelper wifiPhyHelper = YansWifiPhyHelper::Default();

  wifiPhyHelper.SetChannel(wifiChannel.Create());

  wifiPhyHelper.Set("TxPowerStart", DoubleValue(5));

  wifiPhyHelper.Set("TxPowerEnd", DoubleValue(5));


  WifiMacHelper wifiMacHelper;

  wifiMacHelper.SetType("ns3::AdhocWifiMac");


Here is the problem:

 0 (consumer)  --- 1 (forwarder)  --- 2 (producer)

When node#0  is sending interest, node#2 is getting the interest via node#1. But when node#2 sending back the data node#1 does not get it.

Not sure what is going wrong here. I have attached the log file.I have found a similar topic<https://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-April/002656.html> in the thread, but did not find a definite solution. Not sure what changes the author made in the propagation model to make it work.

Appreciate your help.

-Muktadir



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190502/a6ead486/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndnsim.log
Type: application/octet-stream
Size: 1825 bytes
Desc: ndnsim.log
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190502/a6ead486/attachment.obj>


More information about the ndnSIM mailing list