[ndnSIM] Question about updating name prefix list of the routers
Anil Jangam
anilj.mailing at gmail.com
Sun Jun 11 13:33:19 PDT 2017
Hi Junxiao,
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");
96 nlsrcHelper.Install(nodes);
97
109 // Schedule the new prefis registration at 100 sec.
110 Simulator::Schedule(Seconds(100.0), advertise, nodes.Get(1));
111
I referred to the example given here:
https://github.com/named-data/ndnSIM/blob/master/examples/ndn-simple-with-link-failure.cpp#L95
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
'ns3::Simultor::ScheduleWithContext'
is the correct way to go?
/anil.
On Sun, Jun 11, 2017 at 11:50 AM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:
> 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.
>
> /anil.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170611/935cbec4/attachment.html>
More information about the ndnSIM
mailing list