<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<br>We have defined an attribute (level) that is changeable by a consumer and we have defined an extern double variable in ndn-consumer.cpp that can be read in ndn-app-trace.cpp. However, after we tried rocketfuel topology, we noticed that although we defined <span style="font-size: 13.33px; line-height: 19.99px; font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); font-stretch: 100%;">different levels for</span> different consumers  but the trace file just shows the level that is defined by the last consumer. The program runs fine but the trace file has this issue of not showing the correct level. Details of the scenario are shown as below:<br><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">namespace ns3 {</div><div dir="ltr">int<br>main (int argc, char *argv[])<br>{<br>  CommandLine cmd;<br>  cmd.Parse (argc, argv);</div><div dir="ltr">  AnnotatedTopologyReader topologyReader ("", 25);<br>  topologyReader.SetFileName ("topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt");<br>  topologyReader.Read ();</div><div dir="ltr">  // Install Ndn stack on all nodes<br>  ndn::StackHelper ndnHelper;<br>  ndnHelper.SetDefaultRoutes(true);<br>ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "10000");<br>  ndnHelper.InstallAll ();</div><div dir="ltr">  // Choosing forwarding strategy<br>  ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/multicast");</div><div dir="ltr"><br>  // Installing global routing interface on all nodes<br>  ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;<br>  ndnGlobalRoutingHelper.InstallAll ();</div><div dir="ltr">  // Getting containers for the consumer/producer<br>  Ptr<Node> producer = Names::Find<Node> ("bb-781");<br>  NodeContainer consumerNodes;<br>  consumerNodes.Add (Names::Find<Node> ("leaf-327"));</div><div dir="ltr"><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:100%;float:none;background-color:transparent"> consumerNodes.Add (Names::Find<Node> ("leaf-1770")</span><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:100%;float:none;background-color:transparent">);</span></div><div dir="ltr"><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:100%;float:none;background-color:transparent">std::string prefix = "/prefix";<br>//*****************consumer with level 2<br>  ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");<br>  consumerHelper.SetPrefix (prefix);<br>  consumerHelper.SetAttribute ("Frequency", StringValue ("100")); // 100 interests a second<br>  //consumerHelper.Install (consumerNodes);<br>consumerHelper.SetAttribute("Level", StringValue("2"));<br><div>ApplicationContainer consumer = consumerHelper.Install(Names::Find<Node> ("leaf-327"));</div><div>//*******************consumer with level 1</div><div>ndn::AppHelper consumerHelper1 ("ns3::ndn::ConsumerCbr");<br>  consumerHelper1.SetPrefix (prefix);<br>  consumerHelper1.SetAttribute ("Frequency", StringValue ("100")); // 100 interests a second<br>consumerHelper1.SetAttribute("Level", StringValue("1"));<br>ApplicationContainer consumer2 =consumerHelper1.Install (Names::Find<Node> ("leaf-1770"));</div><div>//*****************producer</div><div> ndn::AppHelper producerHelper ("ns3::ndn::Producer");<br>  producerHelper.SetPrefix (prefix);<br>  producerHelper.SetAttribute ("PayloadSize", StringValue("1024"));<br>  producerHelper.Install (producer);</div><div>  // Add /prefix origins to ndn::GlobalRouter<br>  ndnGlobalRoutingHelper.AddOrigins (prefix, producer);</div><div>  // Calculate and install FIBs<br>  ndnGlobalRoutingHelper.CalculateRoutes ();</div><div>Simulator::Stop (Seconds (20.0));<br>ndn::AppDelayTracer::InstallAll("app-delays-trace.txt");<br></div><div>  Simulator::Run ();<br>  Simulator::Destroy ();</div><div>  return 0;<br>}</div><div>} // namespace ns3<br>int main(int argc, char* argv[]) {<br>  return ns3::main(argc,argv);<br>}</div><div><br></div><div>Please note that the trace file shows the correct values for ndn-simple.cpp example, but not for rocketfuel.</div><div><br></div></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote>Your help would be much appreciated for the resolution of this problem/ <br><div><span style="background-color: rgba(255, 255, 255, 0);">Warm regards,</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Mohibi</span></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></body></html>