[ndnSIM] Question about updating name prefix list of the routers
anilj.mailing at gmail.com
Sun Jun 11 13:33:19 PDT 2017
Yes, this is what I am doing from my example.
93 // Install NLSR Controller on Node-1.
94 NS_LOG_INFO ("Installing NLSR Controller application on all nodes");
95 ndn::AppHelper nlsrcHelper ("ns3::ndn::NlsrcApp");
109 // Schedule the new prefis registration at 100 sec.
110 Simulator::Schedule(Seconds(100.0), advertise, nodes.Get(1));
I referred to the example given here:
I am explicitly selecting the node 1 to schedule this event on; but not
sure why it is returning -1 at runtime. Do you still think
is the correct way to go?
On Sun, Jun 11, 2017 at 11:50 AM, Junxiao Shi <shijunxiao at email.arizona.edu>
> Hi Anil
> The log indicates some code is calling ns3::NodeList::GetNode(-1), but -1
> is obviously not a valid NodeId.
> I guess this invalid NodeId comes from ns3::Simulator::GetContext(), which
> usually returns the current NodeId on which an event is scheduled. However,
> some code (most likely in main function or initialization procedure) has
> scheduled an event without context, so that ns3::Simulator::GetContext()
> is returning -1.
> You may search for calls to ns3::Simulator::Schedule and replace them with
> ns3::Simultor::ScheduleWithContext. The context value should indicate
> which node the event should be happening.
> Yours, Junxiao
> On Jun 11, 2017 10:35, "Anil Jangam" <anilj.mailing at gmail.com> wrote:
> Hi All,
> Mahsa, Sabet, How have you solved this issue of SIGABRT?
> I converted the "nlsrc" into a a ndn::Application instance and installed
> it on each of the nodes. In my simulation example, I am scheduling a new
> prefix injection (at 100.0 sec) from a node.
> I see that experiment is running and at time 100 secs into simulation,
> its crashing. I am attaching the stack trace for more details. Can you help
> me know what wrong here?
> Let me know if you need additional info.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM