[ndnSIM] Debugging Simulation

Olumide Akinwande jolumideakinwande at yahoo.com
Wed Sep 6 11:58:29 PDT 2017


Hello,
Thank you for the response.
It helped in finding the possible problem.
I wrote the customizedApp in order to generate repeated requests for the same contents. I mean issue Interests with exactly the same names periodically.
>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. 
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:
nameWithSequence->addSequenceNumber(seq);
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.
I'm hoping that my explanation makes sense and hopefully I can get further guidance.
Thank you.(sorry for responding twice, I am trying to follow the thread correctly)
Olumide. 

    On Tuesday, September 5, 2017 4:58 AM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu> wrote:
 

 Hi,
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).
Could you please try to debug your custom application and see if the issue is caused by the application?
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department
UCLA

On Sep 4, 2017, at 2:40 PM, Olumide Akinwande <jolumideakinwande at yahoo.com> wrote:
Hi team,
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.
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:
#0  0xb7fd9ce5 in __kernel_vsyscall ()#1  0xb12a8ea9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54#2  0xb12aa407 in __GI_abort () at abort.c:89#3  0xb1517d35 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/i386-linux-gnu/libstdc++.so.6#4  0xb1515833 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6#5  0xb15158ad in std::terminate() () from /usr/lib/i386-linux-gnu/libstdc++.so.6#6  0xb1515bce in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6#7  0xb5f5bd56 in ndn::util::signal::Signal<nfd::face::LinkService, ndn::Interest>::operator() (this=0x93809cc, args#0=...)    at ns3/ndnSIM/ndn-cxx/util/signal-signal.hpp:247#8  0xb5f5ae9d in nfd::face::LinkService::receiveInterest (this=0x93809c8, interest=...)    at ../src/ndnSIM/NFD/daemon/face/link-service.cpp:100#9  0xb5c49330 in ns3::ndn::AppLinkService::onReceiveInterest (this=0x93809c8, interest=...)    at ../src/ndnSIM/model/ndn-app-link-service.cpp:81#10 0xb5af1176 in ns3::ndn::CustomizedApp::SendPacket (this=0x84f13a0) at ../src/ndnSIM/apps/ndn-customized-app.cpp:230#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#12 0xb3194af5 in ns3::EventImpl::Invoke (this=0x886a238) at ../src/core/model/event-impl.cc:51#13 0xb319a4c0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x80df1b8) at ../src/core/model/default-simulator-impl.cc:149#14 0xb319a92d in ns3::DefaultSimulatorImpl::Run (this=0x80df1b8) at ../src/core/model/default-simulator-impl.cc:202#15 0xb3195b1e in ns3::Simulator::Run () at ../src/core/model/simulator.cc:204#16 0x0806b72e in ns3::main (argc=1, argv=0xbfffebe4) at ../scratch/ASFCE.cc:371#17 0x0806d607 in main (argc=1, argv=0xbfffebe4) at ../scratch/ASFCE.cc:382
Looking forward to your help.
Thank you.
Kind regards,
Olumide.



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170906/e3939f7d/attachment-0001.html>


More information about the ndnSIM mailing list