<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Hello Junxiao,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Thanks for your response.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Please consider the following code:<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)"><br>UanHelper uan;<br>uan.SetMac ("ns3::UanMacCw", "CW", UintegerValue (m_cwMin), "SlotTime", TimeValue (m_slotTime));<br>NodeContainer uanNodes = NodeContainer ();<br>uanNodes.Create (2);<br><br>Ptr<UanPropModelIdeal> prop = CreateObjectWithAttributes<UanPropModelIdeal> ();.<br>//...<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">//The functions for installing the UAN layer on nodes.//<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">//...<br><br>///////////////////////------NDN Stack------//////////////////////////////////<br>    ns3::ndn::StackHelper ndnHelper;<br><br>    ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::Flooding");<br>    //////ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::BestRoute");<br>    ndnHelper.SetPit ("ns3::ndn::pit::Lru","MaxSize","1000");<br>    ndnHelper.SetContentStore ("ns3::ndn::cs::Nocache");<br>    ndnHelper.InstallAll ();<br><br>    // Installing global routing interface on all nodes<br>    ns3::ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;<br>    ndnGlobalRoutingHelper.InstallAll ();<br><br>    ns3::ndn::AppHelper producerHelper ("ns3::ndn::Producer");<br><br>    std::string prefix = "/Area";<br>    producerHelper.SetAttribute("PayloadSize", StringValue("1024"));<br>    ndnGlobalRoutingHelper.AddOrigins (prefix, source);<br>    producerHelper.SetPrefix (prefix);<br>    ApplicationContainer producer = producerHelper.Install(source);<br><br>     ns3::ndn::AppHelper consumerHelper1 ("ns3::ndn::ConsumerZipfMandelbrot");<br><br>     // frequency with which Interests are generated<br>     consumerHelper1.SetAttribute("Frequency", StringValue("10")); <br>     consumerHelper1.SetPrefix (prefix);<br>     std::string NumofContent = "10";<br>     consumerHelper1.SetAttribute ("MaxSeq",StringValue("10"));<br>     consumerHelper1.SetAttribute ("q", StringValue ("0"));<br>     consumerHelper1.SetAttribute ("s", StringValue ("1"));<br><br>     //Number of different content (sequence numbers) that will be requested by the applications<br>     consumerHelper1.SetAttribute ("NumberOfContents", StringValue (NumofContent)); // NumofContent different content file<br>        <br>    /////////////////////////////////////////////////////////////////////////////////<br>    // install consumer app on consumer node c_i to request data from producer p_i //<br>    /////////////////////////////////////////////////////////////////////////////////<br><br>    ApplicationContainer consumer = consumerHelper1.Install (sink);<br>    consumer.Start (Seconds (0.5));<br>    producer.Start (Seconds (0.5));<br><br>    ///////////////////////////////////////////////////////////////////////////////<br><br>    // Calculate and install FIBs<br>    ndnGlobalRoutingHelper.CalculateRoutes ();<br><br>    ////////////////////////////////////////////////////////////////////////////////<br>    ns3::ndn::AppDelayTracer::InstallAll ("app-delays-trace-UAWSN.txt");<br>    ns3::ndn::L3RateTracer::Install(sink,"rate-trace-sink.txt", Seconds (0.1));<br>    ns3::ndn::L3RateTracer::Install(source,"rate-trace-source.txt", Seconds (0.1));<br>.<br>.<br>.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Actually I have tested them with the help of functions in UAN library and ndnSIM libraries of NS-3. For example, L3RateTracer shows no number of InInterest to the source node and AppDelayTracer's file is empty. Also, I checked another trace named "EnableAsciiAll" in UAN library; It checks the number of "RxOk" and "Tx" and nothing is depicted neither for "RxOk" nor for "Tx".<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Regards,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Narges<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 2, 2017 at 5:27 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Narges<br><br></div>Read about how to report a problem effectively: <a href="http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-May/001748.html" target="_blank">http://www.lists.cs.ucla.edu/p<wbr>ipermail/nfd-dev/2016-May/0017<wbr>48.html</a> <br><div><br><div><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">But by adding the NDN layer,</div></blockquote></span><div>Can you provide a link to the code?<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">It seems that no request is coming out of the Sink-Node and no "UanChannel" and "NetDevice" are registered.<br></div></blockquote></span><div>What leads you to conclude that "no request is coming out of the Sink-Node"?<br><br></div><div>Yours, Junxiao <br></div></div></div></div></div></div>
</blockquote></div><br></div>