<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="">Hi,<div class=""><br class=""></div><div class="">a suggestion would be to use the NS-3 scheduler directly:</div><div class=""><br class=""></div><div class=""><a href="https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a81c1ade622b5266d81908b2a99a330d2" class="">https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a81c1ade622b5266d81908b2a99a330d2</a></div><div class=""><br class=""></div><div class="">The NFD scheduler has been redirected to the NS-3 scheduler in any case.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 6, 2018, at 1:04 AM, 书忆江南 <<a href="mailto:375446972@qq.com" class="">375446972@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi all, </div><div class="">We all know that when a data packet satisfies a interest, the PIT entry will be deleted immediately, but i want to delay the PIT entry deletion, when first data packet satisfies a interest in Incomming Data pipeline, do not delete the PIT entry(or outRecord in NFD) immediately, let the PIT entry stay for a while, so that second and third data packet will find this PIT entry and satisfy the same interest. </div><div class="">Instead of one interest for one data packet, I want a mechanisim like sending one interest to retrieve multi data packets. I came up with a method but it comes out a error, I modified the file NFD/daemon/fw/forwarder.cpp, in the onIncomingData() method, my code is shown below:</div><div class=""><br class=""></div><div class=""><div class="">void</div><div class="">Forwarder::onIncomingData(Face& inFace, const Data& data)</div><div class="">{</div></div><div class="">   ......</div><div class="">   // mark PIT satisfied</div><div class="">    pitEntry->clearInRecords();</div><div class="">    //pitEntry->deleteOutRecord(inFace);  //this is the origin method to delete PIT entry(or outRecord)</div><div class="">    nfd::scheduler::schedule(time::seconds(1),[&]{pitEntry->deleteOutRecord(inFace);});  //my method to delay PIT entry deletion</div><div class="">   ......</div><div class="">}</div><div class=""><br class=""></div><div class="">The compilation using ./waf is successful, but when the simulation runs ,it came out the following error:</div><div class=""><br class=""></div><div class=""><div class="">Command ['/home/yyc/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-25nodes-debug'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div></div><div class=""><br class=""></div><div class="">I don't know if my method is wrong, or the parameter i wrote in the parenthesis of schedule() is wrong. Can anyone helps? I will be grateful for your help. </div></div></blockquote></div><br class=""></div></body></html>