[ndnSIM] Question about updating name prefix list of the routers

Junxiao Shi shijunxiao at email.arizona.edu
Wed Mar 22 03:14:21 PDT 2017


Hi Sabet

This log confirms NLSR has received the Interest. However, the Interest is
malformed: it should be a Command Interest which has four more components,
but they are missing because you forgot to sign the Interest via KeyChain.

Also, next time you report a crash (including "terminate called ..."), be
sure to include a stack trace. See
http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-May/001748.html

Yours, Junxiao

On Mar 22, 2017 02:24, "Muhammad Hosain Abdollahi Sabet" <mhasabet at gmail.com>
wrote:

Ashlesh,

I have installed a simple app on one router node just for expressing the
advertise command interest as follows:

    auto advertiseCommand = make_shared<Interest>();
    Name command = Name("/localhost/nlsr/prefix-update/advertise");
    ndn::nfd::ControlParameters parameters;
    parameters.setName(Name("updated-prefix"));
    advertiseCommand->setName(command.append(parameters.wireEncode()));
    m_transmittedInterests(advertiseCommand,this,m_face);
    m_appLink->onReceiveInterest(*advertiseCommand);

The last 2 lines are for ndnSIM applications. They basically send packet on
wire.

For this I have:

6s 2 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest
> face=261 interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%
> 08%0Eupdated-prefix
> 6s 2 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss
> interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%
> 08%0Eupdated-prefix
> 6s 2 nfd.Forwarder:onContentStoreMiss(): [LOGIC] onContentStoreMiss
> noLinkObject
> 6s 2 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest
> face=260 interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%
> 08%0Eupdated-prefix
>

6s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=260
> data=/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%
> 0Eupdated-prefix
> 6s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData
> matching=/localhost/nlsr/prefix-update/advertise/h%12%07%10%
> 08%0Eupdated-prefix
> 6s 2 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=261
> data=/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%
> 0Eupdated-prefix
>

But just after that:

>  terminate called after throwing an instance of
> 'boost::exception_detail::clone_impl<boost::exception_detail
> ::error_info_injector<ndn::name::Component::Error> >'
>   what():  Name component does not have the requested marker or the value
> is not a nonNegativeInteger
>
And it seems it has nothing to do with encoding. I have tried without
encoding, but the error is the same. Also tried with ndn::name instead of
controlparameters, but again the same error comes up.
There is no other application on node 2 but nlsr;

I appreciate your help.

Thanks,
Sabet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170322/312ace9d/attachment.html>


More information about the ndnSIM mailing list