<div dir="ltr">Hi members,<div dir="auto">I am trying to compare the forwarding
performance of existing Forwarding strategies in ndnSIM 2.9 for a
network with 279 nodes. All strategies show the same rate, drop and
delay with rate and delay tracers. Why is it so and how else can I
achieve this objective? <br></div><div dir="auto"><br></div><div><br></div><div dir="auto"></div><div dir="auto">Thanks and regards</div><div>Swetha</div><div>I have used the following scenario.</div><div><br></div><div>int<br>main(int argc, char* argv[])<br>{<br> CommandLine cmd;<br> cmd.Parse(argc, argv);<br><br> AnnotatedTopologyReader topologyReader("", 25);<br> //topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-grid-3x3.txt");<br> topologyReader.SetFileName("src/ndnSIM/examples/topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt");<br> topologyReader.Read();<br><br> // Install NDN stack on all nodes<br> ndn::StackHelper ndnHelper;<br> ndnHelper.InstallAll();<br><br> // Set BestRoute strategy<br> ndn::StrategyChoiceHelper::InstallAll("/", "/localhost/nfd/strategy/best-route");<br> // ndn::StrategyChoiceHelper::InstallAll("/", "/localhost/nfd/strategy/access");<br> //ndn::StrategyChoiceHelper::InstallAll("/", "/localhost/nfd/strategy/random");<br> //ndn::StrategyChoiceHelper::InstallAll("/", "/localhost/nfd/strategy/asf");<br> <br> // Installing global routing interface on all nodes<br> ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;<br> ndnGlobalRoutingHelper.InstallAll();<br><br> // Getting containers for the consumer/producer<br> Ptr<Node> producer = Names::Find<Node>("leaf-4337");<br> NodeContainer consumerNodes;<br> consumerNodes.Add(Names::Find<Node>("leaf-327"));<br><br> // Install NDN applications<br> std::string prefix = "/prefix";<br><br> ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");<br> consumerHelper.SetPrefix(prefix);<br> consumerHelper.SetAttribute("Frequency", StringValue("1000")); // 100 interests a second<br> consumerHelper.Install(consumerNodes);<br><br> ndn::AppHelper producerHelper("ns3::ndn::Producer");<br> producerHelper.SetPrefix(prefix);<br> producerHelper.SetAttribute("PayloadSize", StringValue("1024"));<br> producerHelper.Install(producer);<br><br> // Add /prefix origins to ndn::GlobalRouter<br> ndnGlobalRoutingHelper.AddOrigins(prefix, producer);<br><br> // Calculate and install FIBs<br> ndn::GlobalRoutingHelper::CalculateRoutes();<br><br> Simulator::Stop(Seconds(5.0));<br> //ndn::AppDelayTracer::InstallAll("app-delays-trace.txt");<br> ndn::L3RateTracer::InstallAll("rate-trace.txt", Seconds(0.5));<br> L2RateTracer::InstallAll("drop-trace.txt", Seconds(0.5));<br> ndn::AppDelayTracer::InstallAll("app-delays-trace.txt");<br> Simulator::Run();<br> Simulator::Destroy();<br><br> return 0;<br>}<br><br>} // namespace ns3<br><br>int<br>main(int argc, char* argv[])<br>{<br> return ns3::main(argc, argv);<br>}</div><font color="#888888"><div dir="auto"><div><br></div></div></font></div>