<div dir="ltr"><br clear="all"><div>Dear all</div><div>I am running the ndn-simple-wifi.cc example with 10 nodes with nodes.Get(0) as producer and from nodes.Get(1) to nodes.Get(9) as consumers. The problem is that no packet transmission is seen at the python visualizer. The code is as follows:-</div><div><br></div><div>#include "ns3/core-module.h"<br>#include "ns3/network-module.h"<br>#include "ns3/applications-module.h"<br>#include "ns3/wifi-module.h"<br>#include "ns3/mobility-module.h"<br>#include "ns3/internet-module.h"<br><br>#include "ns3/ndnSIM-module.h"<br><br>using namespace std;<br>namespace ns3 {<br><br>NS_LOG_COMPONENT_DEFINE("ndn.WifiExample");<br><br><br>int<br>main(int argc, char* argv[])<br>{<br>   ns3::PacketMetadata::Enable ();<br>  <br>  Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200"));<br>  Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200"));<br>  Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode",<br>                     StringValue("OfdmRate24Mbps"));<br><br>  CommandLine cmd;<br>  cmd.Parse(argc, argv);<br><br>  <br>  WifiHelper wifi;<br>  wifi.SetStandard(WIFI_PHY_STANDARD_80211a);<br>  wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode",<br>                               StringValue("OfdmRate24Mbps"));<br><br>  YansWifiChannelHelper wifiChannel; // = YansWifiChannelHelper::Default ();<br>  wifiChannel.SetPropagationDelay("ns3::ConstantSpeedPropagationDelayMode");<br>  wifiChannel.AddPropagationLoss("ns3::ThreeLogDistancePropagationLossModel");<br>  wifiChannel.AddPropagationLoss("ns3::NakagamiPropagationLossModel");<br> YansWifiPhyHelper wifiPhyHelper = YansWifiPhyHelper::Default();<br>  wifiPhyHelper.SetChannel(wifiChannel.Create());<br>  wifiPhyHelper.Set("TxPowerStart", DoubleValue(0.01));<br>  wifiPhyHelper.Set("TxPowerEnd", DoubleValue(0.01));<br><br>  WifiMacHelper wifiMacHelper;<br>  wifiMacHelper.SetType("ns3::AdhocWifiMac");<br><br>  Ptr<UniformRandomVariable> randomizer = CreateObject<UniformRandomVariable>();<br>  randomizer->SetAttribute("Min", DoubleValue(10));<br>  randomizer->SetAttribute("Max", DoubleValue(100));<br><br>  MobilityHelper mobility;<br> mobility.SetPositionAllocator("ns3::RandomBoxPositionAllocator", "X", PointerValue(randomizer), "Y", PointerValue(randomizer), "Z", PointerValue(randomizer));<br><br>  mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel");<br><br>  NodeContainer nodes;<br>  nodes.Create(10);<br><br> <br>  NetDeviceContainer wifiNetDevices = wifi.Install(wifiPhyHelper, wifiMacHelper, nodes);<br><br>   mobility.Install(nodes);<br>  NS_LOG_INFO("Installing NDN stack");<br>  ndn::StackHelper ndnHelper;<br>  ndnHelper.setPolicy("nfd::cs::lru");<br>  ndnHelper.setCsSize(1000);<br>  ndnHelper.SetDefaultRoutes(true);<br>  ndnHelper.Install(nodes);<br><br>    ndn::StrategyChoiceHelper::Install(nodes, "/", "/localhost/nfd/strategy/best-route");<br><br>    NS_LOG_INFO("Installing Applications");<br><br>  ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");<br>  consumerHelper.SetPrefix("/test/prefix");<br>  consumerHelper.SetAttribute("Frequency", DoubleValue(10.0));<br>  consumerHelper.Install(nodes.Get(0));<br>  consumerHelper.Install(nodes.Get(1));<br>  consumerHelper.Install(nodes.Get(2));<br>  consumerHelper.Install(nodes.Get(3));<br>  consumerHelper.Install(nodes.Get(4));<br>  consumerHelper.Install(nodes.Get(5));<br>  consumerHelper.Install(nodes.Get(6));<br>  consumerHelper.Install(nodes.Get(7));<br>  consumerHelper.Install(nodes.Get(8));<br>  consumerHelper.Install(nodes.Get(9));<br><br>  ndn::AppHelper producerHelper("ns3::ndn::Producer");<br>  producerHelper.SetPrefix("/");<br>  producerHelper.SetAttribute("PayloadSize", StringValue("1200"));<br>  producerHelper.Install(nodes.Get(1));<br>  Simulator::Stop(Seconds(30.0));</div><div>  Simulator::Run();<br>  Simulator::Destroy();<br><br>  return 0;<br>}<br><br>} <br><br>int<br>main(int argc, char* argv[])<br>{<br>  return ns3::main(argc, argv);<br>}<br></div><div><br></div><div>Please help me to identify the real cause why the packets are not transmitted. Thanks in advance</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34)">Thanks & Regards<br></div><div><font color="#444444" face="georgia, serif" size="4">Subodh Mishra</font></div><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)"><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><font color="#000000" face="times new roman, serif"><span style="font-size:small">Research Scholar (Ph.D),</span><br></font></div><div style="color:rgb(136,136,136);font-size:12.8px"><font size="2" color="#000000" face="times new roman, serif">Department of Computer Science and Engineering,</font></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><font size="2" color="#000000" face="times new roman, serif">PDPM-Indian Institute of Information Technology, </font></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><font size="2" color="#000000" face="times new roman, serif">Design and Manufacturing, Jabalpur</font></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><br></div></div><div style="color:rgb(34,34,34);font-size:12.8px"><font color="#000000">Email: 1911602 [at] iiitdmj [dot] ac [dot] in ,</font></div><div style="color:rgb(34,34,34);font-size:12.8px"><font color="#000000">           subodhkmishra [at] gmail [dot] com</font></div></div></div></div>