<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">You can just connect to the TraceSource and do whatever trace processing you need.  </div><div class=""><br class=""></div><div class="">Currently, we don’t have in ndnSIM trace helpers that simplify this operation.  But it is very simple to do such tracing</div><div class=""><br class=""></div><div class="">1. define callback</div><div class=""><br class=""></div><div class="">void</div><div class=""><div class="">WillBeCalledWhenInterestIsReceived(Ptr<const Interest> i, Ptr<App> a, Ptr<Face> f)</div></div><div class="">{</div><div class="">   ...</div><div class="">}</div><div class=""><br class=""></div><div class="">2. connect callback to trace source of the application you interested in</div><div class=""><br class=""></div><div class=""><span style="font-family: Menlo-Regular;" class="">/NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App</span></div><div class=""><br class=""></div><div class=""><div class="">Config::ConnectWithoutContext("/NodeList/1/ApplicationList/2/ReceivedInterests", MakeCallback(&WillBeCalledWhenInterestIsReceived);</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Numbers here you will probably need to guess (they depend on the order nodes and applications are created in the scenario).</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This tracing can be arbitrarily complex.  You can look to L3RateTrace source code that Spyros has pointed out for more reference implementation.  The only difference there is that L3Tracer takes input from the whole NDN stack (aggregate among all network channels and applications), while you want to look for specific application.</div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 8, 2015, at 2:46 AM, 최원준 <<a href="mailto:wonjunchoi001@gmail.com" class="">wonjunchoi001@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><p style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 16.8999996185303px;" class="">Hello.</p><p style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 16.8999996185303px;" class="">I have no idea how to trace below value.</p><p style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 16.8999996185303px;" class="">I hope some can help me.</p><p style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 16.8999996185303px;" class=""><b class=""><a class="" href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_app.html" title="Base class that all NDN applications should be derived from. " style="color:rgb(145,165,1)">ns3::ndn::App</a></b><br class=""></p><ul style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 16.8999996185303px;" class=""><li class="">ReceivedInterests: ReceivedInterests</li><li class="">ReceivedNacks: ReceivedNacks</li><li class="">ReceivedDatas: ReceivedDatas</li><li class="">TransmittedInterests: TransmittedInterests</li><li class="">TransmittedDatas: TransmittedDatas</li></ul><div class=""><font face="Lucida Grande, Verdana, Geneva, Arial, sans-serif" class=""><span style="line-height:16.8999996185303px" class="">Best regards</span></font></div><div class=""><font face="Lucida Grande, Verdana, Geneva, Arial, sans-serif" class=""><span style="line-height:16.8999996185303px" class="">Wonjun, Choi</span></font></div>
</div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></body></html>