<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!</div><div><br></div><div>1. You may want to check NS-3 documentation on tracing: <a href="http://www.nsnam.org/docs/manual/html/tracing.html">http://www.nsnam.org/docs/manual/html/tracing.html</a></div><div><br></div><div>You don't need to do anything special with m_receiveDatas, but you would need to implement your own callback and then use one of the forms of TraceConnect to connect callback to the right "trace source".  You can use ndn::L3RateTracer (and its base class ndn::L2Tracer) as an example for that.</div><div><br></div><div>2. You can definitely can inherit from ndn::Limit class, but the question is where exactly you want to enable this limit.  Are you planning to do it as part of the forwarding strategy?</div><div><br></div><div>3. I have a similar question as in 2.  Where exactly you want to detect?  If you implement your own consumer, then you will be able to detect congestion of the whole path.  Is it what you're expecting?</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Oct 8, 2013, at 12:22 PM, "lakerskb.8" <<a href="mailto:lakerskb.8@163.com">lakerskb.8@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; "><div style=""><div style="font-family: arial; font-size: 14px; line-height: 1.7;">Dear friend:</div><span style="font-family: arial; font-size: 14px; line-height: 1.7;">Hi,I am a new user of ndnSIM and </span><span style="font-family: arial; font-size: 14px; line-height: 1.7;">I want to use it to do some experiment about congestion control. </span><span style="font-family: arial; font-size: 14px; line-height: 1.7;">I have read the document file and source code for a few days but I am still not sure where to start. </span><span style="line-height: 1.7;">I have some questions, hope you can help me to solve.</span><div><span style="line-height: 1.7;">1. I am confused about the trace source of ndnSIM. Take the image below as an example. </span><span><截图1.png></span></div><div>If there is a callback function somewhere binds <a class="code" href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_app.html#aa95546f113ccb46af13ed83dae59a517" title="App-level trace of received Data." style="color: rgb(70, 101, 162); font-weight: bold; text-decoration: none; font-family: monospace, fixed; font-size: 13px; line-height: 13px; text-indent: -53px; white-space: pre-wrap; background-color: rgb(252, 252, 252);">m_receivedDatas</a>, or should I implement it myself?</div><div>2. If I want to control the sending rate of interest packet, can I inherit ns3::ndn::limit class?</div><div>3, If I want to detect the congestion based on interest sending rate,can I inherit ns3::ndn::consumer(just like the <span style="background-color: rgb(252, 252, 252); color: rgb(0, 32, 128); font-family: monospace, fixed; font-size: 13px; line-height: 13px; text-indent: -53px; white-space: pre-wrap;">ConsumerWindow class</span><span style="line-height: 1.7;">)?</span></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></body></html>