<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I think you overcomplicate things.  Do you need this information in runtime or just for later analysis?</div><div><br></div><div>If for later analysis, ndnSIM has a couple of metric tracing helpers that already collect this sort of information (<a href="http://ndnsim.net/metric.html#packet-level-trace-helpers">http://ndnsim.net/metric.html#packet-level-trace-helpers</a>).  Both ndn::L3AggregateTracer and ndn::L3RateTracer will give the information you're interested in.</div><div><br></div><div>Is it what you need or you need something more than just numbers?  </div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Feb 27, 2013, at 4:56 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu">chengyu@cs.colostate.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi~<div><br></div><div>Please forgive me if I missed something apparent.</div><div><br></div><div>I want to collect the information of how many Interests and what Interests arrive on a node from different faces.</div><div>
Unfortunately, I did not find an example that shows how to collect those data. </div><div><br></div><div>I find a class <span style="background-color:rgb(250,250,250);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-weight:bold;line-height:23px">ns3::ndn::NetDeviceFace</span> that seems suit my requirements. And I need to override RegisterProtocolHandler function.</div>
<div>Is it correct?</div><div><br></div><div>Or is there a Tracer class can collect the data for me?</div><div><br></div><div>Thanks,</div><div>Chengyu</div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>