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

Ashlesh Gawande (agawande) agawande at memphis.edu
Thu May 18 10:43:34 PDT 2017


I think it is rejected because of violating localhost scope.


Ashlesh

________________________________
From: ndnSIM <ndnsim-bounces at lists.cs.ucla.edu> on behalf of Michał Król <mharnen at gmail.com>
Sent: Thursday, May 18, 2017 12:08:10 PM
To: shijunxiao at email.arizona.edu; ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] Question about updating name prefix list of the routers

Is it necessary to start NLSR in a special way? After executing the same
code the interest is rejected on my node. I installed bestroute2
strategy for all the prefixes "/", but it's not invoked here.


0.0200091s 1 nfd.Forwarder:onIncomingInterest(): [DEBUG] In:
/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%0Eupdated-prefix/%14/%01%DE1nbtU%BA/%160%1B%01%01%1C+%07%29%08%0Ctmp-identity%08%04%CD%A6%05%8A%08%03KEY%08%05ksk-0%08%07ID-CERT/%17%FD%01%00%D2%C2l%0B9%E7%F3r%ED%07%E1%07%5C%3B%84i%F7%FB%1A%F9%FD%B8N%F2%19%BE%CC%E4%7B%7F%18P%F6%90tLfU%16%B7%C4%FA%C0%95%16%DC%9A%99K%8AW%D6%D6%FA9%0A%E2%C5h%2A%B9eH%5E%02%C7%8E%D9%C4q%C7%EA%0BS%FE%0E%0A%E7%F4%05%FE%7D%C2%03%D59%24%90%84%FD%16%E8T%8D%F3%C8%A2%8E%11buux%1D%1A%19%7B4%B5k%B6%1Fh%03H0%CCam%DFT%FCM%23r%91%22%C93%8CX%FA%1C%7B%B5%EA%98%10%DA%84D%87%9D%F7%DD9%3C%B5b%3AP%7C%8B%8D%F4k%F3%E1%A7%C2%08%D1L%EC%F6QE%A6%1B%B8c%94q%FC%83%DB%96%1Bb%D7%1E%89%FB%80%EFg%D1%0DP%C4%96_0%DD%BE%B3%BF%C4H%18%D2a%1F%3Fa%90%FB%10%16%1Bh%A5%C8%E3%84%87J%8E%A2%C8%DByw%A7%14%CC%AE-%83%DE%1A%D8%C8%19%9F%18g%86%26%FE%F7%25%28%FEs%89%D0E%B7%C9%87%B7%BCDQ%E7


0.0200091s 1 nfd.Forwarder:onContentStoreMiss(): [DEBUG]
onContentStoreMiss
interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%0Eupdated-prefix/%14/%01%DE1nbtU%BA/%160%1B%01%01%1C+%07%29%08%0Ctmp-identity%08%04%CD%A6%05%8A%08%03KEY%08%05ksk-0%08%07ID-CERT/%17%FD%01%00%D2%C2l%0B9%E7%F3r%ED%07%E1%07%5C%3B%84i%F7%FB%1A%F9%FD%B8N%F2%19%BE%CC%E4%7B%7F%18P%F6%90tLfU%16%B7%C4%FA%C0%95%16%DC%9A%99K%8AW%D6%D6%FA9%0A%E2%C5h%2A%B9eH%5E%02%C7%8E%D9%C4q%C7%EA%0BS%FE%0E%0A%E7%F4%05%FE%7D%C2%03%D59%24%90%84%FD%16%E8T%8D%F3%C8%A2%8E%11buux%1D%1A%19%7B4%B5k%B6%1Fh%03H0%CCam%DFT%FCM%23r%91%22%C93%8CX%FA%1C%7B%B5%EA%98%10%DA%84D%87%9D%F7%DD9%3C%B5b%3AP%7C%8B%8D%F4k%F3%E1%A7%C2%08%D1L%EC%F6QE%A6%1B%B8c%94q%FC%83%DB%96%1Bb%D7%1E%89%FB%80%EFg%D1%0DP%C4%96_0%DD%BE%B3%BF%C4H%18%D2a%1F%3Fa%90%FB%10%16%1Bh%A5%C8%E3%84%87J%8E%A2%C8%DByw%A7%14%CC%AE-%83%DE%1A%D8%C8%19%9F%18g%86%26%FE%F7%25%28%FEs%89%D0E%B7%C9%87%B7%BCDQ%E7

0.0200091s 1 nfd.Forwarder:onInterestReject(): [DEBUG] onInterestReject
interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%0Eupdated-prefix/%14/%01%DE1nbtU%BA/%160%1B%01%01%1C+%07%29%08%0Ctmp-identity%08%04%CD%A6%05%8A%08%03KEY%08%05ksk-0%08%07ID-CERT/%17%FD%01%00%D2%C2l%0B9%E7%F3r%ED%07%E1%07%5C%3B%84i%F7%FB%1A%F9%FD%B8N%F2%19%BE%CC%E4%7B%7F%18P%F6%90tLfU%16%B7%C4%FA%C0%95%16%DC%9A%99K%8AW%D6%D6%FA9%0A%E2%C5h%2A%B9eH%5E%02%C7%8E%D9%C4q%C7%EA%0BS%FE%0E%0A%E7%F4%05%FE%7D%C2%03%D59%24%90%84%FD%16%E8T%8D%F3%C8%A2%8E%11buux%1D%1A%19%7B4%B5k%B6%1Fh%03H0%CCam%DFT%FCM%23r%91%22%C93%8CX%FA%1C%7B%B5%EA%98%10%DA%84D%87%9D%F7%DD9%3C%B5b%3AP%7C%8B%8D%F4k%F3%E1%A7%C2%08%D1L%EC%F6QE%A6%1B%B8c%94q%FC%83%DB%96%1Bb%D7%1E%89%FB%80%EFg%D1%0DP%C4%96_0%DD%BE%B3%BF%C4H%18%D2a%1F%3Fa%90%FB%10%16%1Bh%A5%C8%E3%84%87J%8E%A2%C8%DByw%A7%14%CC%AE-%83%DE%1A%D8%C8%19%9F%18g%86%26%FE%F7%25%28%FEs%89%D0E%B7%C9%87%B7%BCDQ%E7


On 23/03/17 15:52, shijunxiao at email.arizona.edu (Junxiao Shi) wrote:
> Hi Sabet
>
> Yes, the Interest is now signed.
> Run the scenario within GDB, and type bt full upon crash, so that you can see where the crash happens.
>
> Yours, Junxiao
>
>> On Mar 22, 2017, at 1:01 PM, Muhammad Hosain Abdollahi Sabet <mhasabet at gmail.com> wrote:
>>
>>
>> I did as you said:
>>
>>      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_keyChain.sign(*advertiseCommand);
>>      m_transmittedInterests(advertiseCommand,this,m_face);
>>      m_appLink->onReceiveInterest(*advertiseCommand);
>>
>> And you can see that the interest is signed:
>>
>> 6s 2 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=261 interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%0Eupdated-prefix/%17p/n%29%05B%EE%F41g/%164%1B%01%01%1C%2F%07-%08%0Ctmp-identity%08%04Z%21%0A%16%08%03KEY%08%09ksk-16106%08%07ID-CERT/%17%FD%01%00%A0%9A%8CS%7CQU%24%E9%A7%5B%AE%84%5B%C0%9D%19W%5B%F6%FA%15%BC%8B%F8%FD%D4B%F7%F4%A7%03%C5SDY%A1%98%B3%A9%17%7B%DDE%D1JF%5E%F1%0A%7BY%13qA%24HP%DEV%D4%F0%F6Qr%27y%EA-L%82%A1u%01%2A%F2%FB%16%B4%82%02%18%8D%B7Z%C4%22%7C%E8SU%98%E5%C1%CF%D2%1FE%21%D0A%FD%40%85%C3D%94D%B6%95%FA%10%1AS%19%1E13%7C6%BC%21%86%D7q%9A%CC%1D%C3%13d%90%C9%C3%14%AB%3D%BA%AA%E4%A3%3C%98U%CF%7F%BC.j%9B%0C0ui%40%CBnMa%B8%19%2FWR%06%90D%EF%92%EEM%F6%0Am%25%FF%95%97%CF%F6%84W+%FCA%3D%FB%8B%8A%CA-1%98%8A%5B%1F%14%D3%CB%25%16%B5%95%8AB%D66%13%B5%A8m%F5%8F%1E1o%ADx%0EX%D1LFrS%BF%81%B5%92m%A2%26%91%D71o%FA%CCA%AC%BB7%FFI%210%8DW%E5%F6ctO%2C%3A%CF
>>
>> But then again:
>>
>> 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
>>
>> I don't think it is a bug. I guess there is something I should've done but didn't and I'm looking for it. But if it is, I will post a complete report of the environment, steps to reproduce, expected/actual result and so on.
>>
>> Thanks,
>> Sabet?
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170323/1fd17d22/attachment-0001.html>
>

_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170518/e071a249/attachment-0001.html>


More information about the ndnSIM mailing list