<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; "><div>Hi Shenglan,</div><div><br></div><div>Got it.  I think for your specific case you should not use tracer at all, since it is really designed for recording simulation scenario metrics, and not to be used internally.</div><div><br></div><div>For the "instant" link load (besides that you have to carefully define "instant"), there are no modules in the base code of ndnSIM, but I made an extension to obtain run-time statistics per interface/per name prefix about incoming/outgoing interest/data packets as part of Interest flooding mitigation research.  It may be not exactly what you need, but you can try to modify it for your needs.  </div><div><br></div><div>You can check the code in this repo on github: <a href="https://github.com/cawka/ndnSIM-ddos-interest-flooding">https://github.com/cawka/ndnSIM-ddos-interest-flooding</a></div><div>The files that you will be interested are:</div><div>- extensions/stats.h and extensions/stats.cc  defining a "forwarding strategy" (actually it is a strategy layer) that tracks in real-time NDN stats and records it in a special data structure</div><div>- extensions/stats/*  implementation of this special data structure.</div><div><br></div><div>Let me know if you have questions.  I wasn't sure that this "module" (and this particular implementation) is general enough to be included in ndnSIM code base, but if you find it useful, I can push it to the base.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><br><div><div>On Apr 16, 2013, at 12:00 AM, 陈胜蓝 <<a href="mailto:blindeafer@163.com">blindeafer@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; ">Yes,I got the "rate-trace.txt" and "aggregate-trace.txt".<div><br></div><div>I want to write a caching scheme that nodes implement it according to both the instant input link load when they got a contentobject and the output link load according to PIT entry(s).</div><div><br></div><div>Would please provide me an example on how can a node get the instant link load and make use of the instant value to decide whether to cache the contentobject?<br> <br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2013-04-16 01:29:26,"Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:<br> <blockquote id="isReplyContent" style="padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; position: static; z-index: auto; "><div>Hi Shenglan,</div><div><br></div><div>Have you tried ndn::L3RateTracer (<a href="http://ndnsim.net/metric.html#example-of-packet-level-trace-helpers">http://ndnsim.net/metric.html#example-of-packet-level-trace-helpers</a>)?  It breaks down the "rates" (and the aggregate number of packet/bytes) for incoming and outgoing data/interest packets, as well as faces on which (to which) data/interest packets were send out.  You can just run the example and check the contents of rate-trace.txt file.</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Apr 15, 2013, at 2:29 AM, 陈胜蓝 <<a href="mailto:blindeafer@163.com">blindeafer@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; ">Hi Alex,<div><br></div><div>Is there any module to obtain the link load of the link from which a content object come into a node and the link(s) which a node transmit to according to PIT entry(s)?</div><div><br></div><div>Best regards,</div><div>Shenglan</div></div></blockquote></div><br></blockquote></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></body></html>