<div dir="ltr">Thanks for you guys helps<div><br></div><div>Best regards</div><div>Wonjun, Choi</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small">----------------------------------------------------------------------------</div><div style="font-family:arial;font-size:small">Korea Institute of Science and Technology Information(KISTI)</div><div style="font-family:arial;font-size:small">National Institute of Supercomputing and Networking</div><div style="font-family:arial;font-size:small">Networking Service Development Team</div><div style="font-family:arial;font-size:small">TEL: +82-42-869-0890</div><div style="font-family:arial;font-size:small">FAX:+82-42-869-0589</div><div style="font-family:arial;font-size:small">Email: <a href="mailto:cwj@kisti.re.kr" target="_blank">cwj@kisti.re.kr</a>, <a href="mailto:wonjunchoi001@gmail.com" target="_blank">wonjunchoi001@gmail.com</a></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><span style="color:rgb(0,0,0);font-family:arial,sans-serif">University of Science & Technology(UST)</span><br></div><div style="font-family:arial;font-size:small"><span style="color:rgb(0,0,0);font-family:arial,sans-serif">Grid & Supercomputing</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><br></span></div><div style="font-family:arial;font-size:small"><span style="color:rgb(0,0,0);font-family:arial,sans-serif">Integrated course </span><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><br></span></div><div style="font-family:arial;font-size:small">----------------------------------------------------------------------------</div></div></div></div>
<br><div class="gmail_quote">2015-01-09 10:58 GMT+09:00 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>You can just connect to the TraceSource and do whatever trace processing you need.  </div><div><br></div><div>Currently, we don’t have in ndnSIM trace helpers that simplify this operation.  But it is very simple to do such tracing</div><div><br></div><div>1. define callback</div><div><br></div><div>void</div><div><div>WillBeCalledWhenInterestIsReceived(Ptr<const Interest> i, Ptr<App> a, Ptr<Face> f)</div></div><div>{</div><div>   ...</div><div>}</div><div><br></div><div>2. connect callback to trace source of the application you interested in</div><span class=""><div><br></div><div><span style="font-family:Menlo-Regular">/NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App</span></div><div><br></div></span><div><div>Config::ConnectWithoutContext("/NodeList/1/ApplicationList/2/ReceivedInterests", MakeCallback(&WillBeCalledWhenInterestIsReceived);</div></div><div><br></div><div><br></div><div>Numbers here you will probably need to guess (they depend on the order nodes and applications are created in the scenario).</div><div><br></div><div><br></div><div>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><br></div><div>—</div><span class="HOEnZb"><font color="#888888"><div>Alex</div><br></font></span><div><blockquote type="cite"><span class=""><div>On Jan 8, 2015, at 2:46 AM, 최원준 <<a href="mailto:wonjunchoi001@gmail.com" target="_blank">wonjunchoi001@gmail.com</a>> wrote:</div><br></span><div><div><div class="h5"><div dir="ltr"><p style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:13px;line-height:16.8999996185303px">Hello.</p><p style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:13px;line-height:16.8999996185303px">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">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"><b><a 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)" target="_blank">ns3::ndn::App</a></b><br></p><ul style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:13px;line-height:16.8999996185303px"><li>ReceivedInterests: ReceivedInterests</li><li>ReceivedNacks: ReceivedNacks</li><li>ReceivedDatas: ReceivedDatas</li><li>TransmittedInterests: TransmittedInterests</li><li>TransmittedDatas: TransmittedDatas</li></ul><div><font face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="line-height:16.8999996185303px">Best regards</span></font></div><div><font face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="line-height:16.8999996185303px">Wonjun, Choi</span></font></div>
</div></div></div><span class="">
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></span></div></blockquote></div><br></div></blockquote></div><br></div>