<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1504795964013_3108"><span>Hello,</span></div><div id="yui_3_16_0_ym19_1_1504795964013_3108"><br></div><div id="yui_3_16_0_ym19_1_1504795964013_3108">Thank you for your response.</div><div id="yui_3_16_0_ym19_1_1504795964013_3108"><br></div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr">I have mainly modified the parts of the simulator to allow custom tags on the packets.</div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr">I have been able to resolve the issue by removing (commenting out) the call to the "beforeSatifyInterest" function inside the "onContentHit" routine in the "forwarder.cpp". In theory, this should not affect the behaviour of the Asf strategy since rtt cannot be computed on content hit. </div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr">This seems to be where the problem is.</div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr">Thank you.</div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1504795964013_3108" dir="ltr">Olumide.</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Thursday, September 7, 2017 2:11 AM, Spyridon (Spyros) Mastorakis <mastorakis@cs.ucla.edu> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv7253120645"><div>Hi,<div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">are you sure that the strategy is causing the issue here?</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">In the logs that you provided, I do not see something related to the strategy...</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">What other parts of the simulator have you modified?</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">Thanks,</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645"><div class="yiv7253120645"><div class="yiv7253120645"><div class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Spyridon (Spyros) Mastorakis</span><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Personal Website: </span><a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://cs.ucla.edu/~mastorakis/">http://cs.ucla.edu/~mastorakis/</a><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Internet Research Laboratory</span><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Computer Science Department</span><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">UCLA</span></div></div></div><div class="yiv7253120645"><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645yqt1359055259" id="yiv7253120645yqt00323"><div><blockquote class="yiv7253120645" type="cite"><div class="yiv7253120645">On Sep 6, 2017, at 11:58 AM, Olumide Akinwande <<a rel="nofollow" shape="rect" class="yiv7253120645" ymailto="mailto:jolumideakinwande@yahoo.com" target="_blank" href="mailto:jolumideakinwande@yahoo.com">jolumideakinwande@yahoo.com</a>> wrote:</div><br clear="none" class="yiv7253120645Apple-interchange-newline"><div class="yiv7253120645"><div class="yiv7253120645"><div class="yiv7253120645" style="background-color:rgb(255, 255, 255);font-family:'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:13px;"><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4231"><span class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4232" style="">Hello,</span></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4233" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4234"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4235" style="">Thank you for the response.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4236" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4237"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4238" style="">It helped in finding the possible problem.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4239" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4240"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4241" style="">I wrote the customizedApp in order to generate repeated requests for the same contents. I mean issue Interests with exactly the same names periodically.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4242" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4243"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4244" style="">From the debugging, I have found that using the Asf strategy throws up this error (std::out_of_range) when a subsequent Interest is sent. </div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4245" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4246"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4247" style="">To confirm this I modified the in-built "ndn-consumer.cpp" so that anytime the application tries to send a new interest, instead of advancing the request name in the line:</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4248" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4249"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4250" style="">nameWithSequence->addSequenceNumber(seq);</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4251" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4252"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4253" style="">I replaced the changing "seq", with a constant value. The simulation works correctly with this change under the best-route strategy but throws the above error with the Asf.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4254" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4255"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4256" style="">I'm hoping that my explanation makes sense and hopefully I can get further guidance.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4257" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4258"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4259" style="">Thank you.</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504724098903_4259" style="">(sorry for responding twice, I am trying to follow the thread correctly)</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4260" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504724098903_4261"></div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504724098903_4262" style="">Olumide.</div> <div class="yiv7253120645qtdSeparateBR"><br clear="none" class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645yahoo_quoted" style="display:block;"> <div class="yiv7253120645" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv7253120645" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv7253120645" dir="ltr"><font class="yiv7253120645" size="2" face="Arial"> On Tuesday, September 5, 2017 4:58 AM, Spyridon (Spyros) Mastorakis <<a rel="nofollow" shape="rect" class="yiv7253120645" ymailto="mailto:mastorakis@cs.ucla.edu" target="_blank" href="mailto:mastorakis@cs.ucla.edu">mastorakis@cs.ucla.edu</a>> wrote:<br clear="none" class="yiv7253120645"></font></div>  <br clear="none" class="yiv7253120645"><br clear="none" class="yiv7253120645"> <div class="yiv7253120645y_msg_container"><div class="yiv7253120645" id="yiv7253120645"><div class="yiv7253120645">Hi,<div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">based on your logs, it seems that you use a custom application that you have created. It is not clear to me what is happening in your custom application and the problem can come from there. Based on the logs again, the problem might not be related to the strategy itself (the strategy actually does not appear in the logs at all).</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">Could you please try to debug your custom application and see if the issue is caused by the application?</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645">Thanks,</div><div class="yiv7253120645"><br clear="none" class="yiv7253120645"><div class="yiv7253120645">
<div class="yiv7253120645"><div class="yiv7253120645"><div class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Spyridon (Spyros) Mastorakis</span><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Personal Website: </span><a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://cs.ucla.edu/~mastorakis/">http://cs.ucla.edu/~mastorakis/</a><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Internet Research Laboratory</span><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">Computer Science Department</span><br clear="none" class="yiv7253120645"><span class="yiv7253120645" style="float:none;display:inline;">UCLA</span></div></div></div>
</div>
<br clear="none" class="yiv7253120645"><div class="yiv7253120645yqt3712154501" id="yiv7253120645yqt05950"><div class="yiv7253120645"><blockquote class="yiv7253120645" type="cite"><div class="yiv7253120645">On Sep 4, 2017, at 2:40 PM, Olumide Akinwande <<a rel="nofollow" shape="rect" class="yiv7253120645" ymailto="mailto:jolumideakinwande@yahoo.com" target="_blank" href="mailto:jolumideakinwande@yahoo.com">jolumideakinwande@yahoo.com</a>> wrote:</div><br clear="none" class="yiv7253120645Apple-interchange-newline"><div class="yiv7253120645"><div class="yiv7253120645"><div class="yiv7253120645" style="background-color:rgb(255, 255, 255);font-family:'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:13px;"><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4414"><span class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4415" style="">Hi team,</span></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4416" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4417"></div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_4416" style="">I have asked for help debugging the simulations before but I will be grateful if I can be directed to where I can get adequate information about debugging ns3 simulations. I am quite new to the tool.</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_4416" style=""><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_4416" style="">I keep getting a std::out_of_range error when I use the Asf strategy in my simulation. The simulation exits in the middle. Every other strategy works well. I have also included the backtrace in here:</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_4416" style=""><br clear="none" class="yiv7253120645"></div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_4416" style=""><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24648">#0  0xb7fd9ce5 in __kernel_vsyscall ()</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24649">#1  0xb12a8ea9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24650">#2  0xb12aa407 in __GI_abort () at abort.c:89</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24651">#3  0xb1517d35 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/i386-linux-gnu/libstdc++.so.6</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24652">#4  0xb1515833 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24653">#5  0xb15158ad in std::terminate() () from /usr/lib/i386-linux-gnu/libstdc++.so.6</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24654">#6  0xb1515bce in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24655">#7  0xb5f5bd56 in ndn::util::signal::Signal<nfd::face::LinkService, ndn::Interest>::operator() (this=0x93809cc, args#0=...)</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24656">    at ns3/ndnSIM/ndn-cxx/util/signal-signal.hpp:247</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24657">#8  0xb5f5ae9d in nfd::face::LinkService::receiveInterest (this=0x93809c8, interest=...)</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24658">    at ../src/ndnSIM/NFD/daemon/face/link-service.cpp:100</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24659">#9  0xb5c49330 in ns3::ndn::AppLinkService::onReceiveInterest (this=0x93809c8, interest=...)</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24660">    at ../src/ndnSIM/model/ndn-app-link-service.cpp:81</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24661">#10 0xb5af1176 in ns3::ndn::CustomizedApp::SendPacket (this=0x84f13a0) at ../src/ndnSIM/apps/ndn-customized-app.cpp:230</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24662">#11 0xb5af6a27 in ns3::EventImpl* ns3::MakeEvent<void (ns3::ndn::CustomizedApp::*)(), ns3::ndn::CustomizedApp*>(void (ns3::ndn::CustomizedApp::*)(), ns3::ndn::CustomizedApp*)::EventMemberImpl0::Notify() (this=0x886a238) at ./ns3/make-event.h:323</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24663">#12 0xb3194af5 in ns3::EventImpl::Invoke (this=0x886a238) at ../src/core/model/<a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://event-impl.cc/">event-impl.cc</a>:51</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24664">#13 0xb319a4c0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x80df1b8) at ../src/core/model/<a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://default-simulator-impl.cc/">default-simulator-impl.cc</a>:149</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24665">#14 0xb319a92d in ns3::DefaultSimulatorImpl::Run (this=0x80df1b8) at ../src/core/model/<a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://default-simulator-impl.cc/">default-simulator-impl.cc</a>:202</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24666">#15 0xb3195b1e in ns3::Simulator::Run () at ../src/core/model/<a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://simulator.cc/">simulator.cc</a>:204</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24667">#16 0x0806b72e in ns3::main (argc=1, argv=0xbfffebe4) at ../scratch/<a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://asfce.cc/">ASFCE.cc</a>:371</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24668">#17 0x0806d607 in main (argc=1, argv=0xbfffebe4) at ../scratch/<a rel="nofollow" shape="rect" class="yiv7253120645" target="_blank" href="http://asfce.cc/">ASFCE.cc</a>:382</div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_24669"><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_24670"></div></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4418" style="">Looking forward to your help.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4422" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4423"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4424" style="">Thank you.</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4425" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4426"></div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4427" style="">Kind regards,</div><div class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4428" style=""><br clear="none" class="yiv7253120645" id="yiv7253120645yui_3_16_0_1_1504559579235_4429"></div><div class="yiv7253120645" dir="ltr" id="yiv7253120645yui_3_16_0_1_1504559579235_4430" style="">Olumide.</div></div></div></div></blockquote></div></div><br clear="none" class="yiv7253120645"></div></div></div><br clear="none" class="yiv7253120645"><br clear="none" class="yiv7253120645"></div>  </div> </div>  </div></div></div></div></blockquote></div></div><br clear="none" class="yiv7253120645"></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>