[ndnSIM] Failed to register prefix in local hub's daemon

Anil Jangam anilj.mailing at gmail.com
Mon Dec 28 12:49:45 PST 2015


Thanks Alex. It worked!

 68     nlsrApp->SetStartTime(Seconds (1.0));

Proceeding with next set of debugging. :)

/anil.


On Mon, Dec 28, 2015 at 12:06 PM, Alex Afanasyev <aa at cs.ucla.edu> wrote:

> Most likely you're starting your NLSR application at time moment 0.  You
> need to schedule the start at a later time moment (say, 1second).
> Otherwise, ndn::Face::registerPrefix() will always fail.
>
> ---
> Alex
>
> > On Dec 28, 2015, at 11:23 AM, Anil Jangam <anilj.mailing at gmail.com>
> wrote:
> >
> > Hi,
> >
> > I am testing a scenario of NLSR simulation and hitting an exception in
> ndnSIM. I searched for the error in the past learned that I need to start
> the NFD and NRD processes, but that suggestion was in case of real
> applications. What is the cause of this in the simulation setup?
> >
> > Am I missing any environment setup, which is leading to this error?
> >
> > 4.227s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00
> > 4.227s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00
> > 4.227s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00
> > 8.487s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00
> > 8.487s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00
> > 8.487s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00
> > 10s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 5
> seconds
> > 10s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 5
> seconds
> > 10s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 5
> seconds
> > ERROR: Failed to register prefix in local hub's daemon
> > terminate called after throwing an instance of 'nlsr::Nlsr::Error'
> >   what():  Error: Prefix registration failed
> >
> > Program received signal SIGABRT, Aborted.
> > 0x00007fffe99cccc9 in __GI_raise (sig=sig at entry=6) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:56
> > 56    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> >
> > /anil.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151228/2b340d33/attachment.html>


More information about the ndnSIM mailing list