<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Sorry for the delay, I have approved your request to Mini-NDN list.</p>
<p><br>
</p>
<p>Yes that is the reason - you need an entry on the node b to node a. You can do a few things:</p>
<p><br>
</p>
<p>1) Use /ndn/edu/a in your producer-consumer example as they are already registered in FIB by NLSR.</p>
<p><br>
</p>
<p>2) Register prefix via nfdc register:</p>
<p>mininet> b nfdc register /example/testApp/ udp://1.0.0.1</p>
<p>1.0.0.1 would be the IP of a, you can check:</p>
<p>mininet> a ifconfig</p>
<p><br>
</p>
<p>This method won't work if you are trying to register for more than one hop since nodes cannot reach non-neighbors in Mini-NDN - you can use NLSR for routing as in step 3:</p>
<p><br>
</p>
<p>3) Use nlsrc:</p>
<p>mininet> a nlsrc advertise /example/testApp</p>
<p>So b will automatically get the entry via NLSR.</p>
<p>This would be the easiest I think.</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Ndn-interest <ndn-interest-bounces@lists.cs.ucla.edu> on behalf of bertolin@eurecom.fr <bertolin@eurecom.fr><br>
<b>Sent:</b> Wednesday, September 7, 2016 10:11:55 AM<br>
<b>To:</b> ndn-interest@lists.cs.ucla.edu<br>
<b>Subject:</b> [Ndn-interest] Run an arbitrary program on miniNDN</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Good morning to all,<br>
Waiting for my request in miniNDN list, I need to ask an advice to the  <br>
community, using this mailing list.<br>
<br>
I successfully installed and tried the ndnPing / ndnPingserver  <br>
commands with miniNDN, and all works. Now, next step. I would like to  <br>
run my personal program in the environment, byt I am having some  <br>
troubles and my poor knowledge does not help me.<br>
<br>
I wrote a simple topology composed by two nodes, a and b, connected by  <br>
a link. I've already used this topology for the ping experiment so I  <br>
assume that it is correct.<br>
Now I would like to put in a node the program "producer" already  <br>
written in the section "examples" of ndn-cxx package availaible on the  <br>
git, and the "consumer" on b node.<br>
Both programs are here:  <br>
<a href="https://github.com/named-data/ndn-cxx/tree/master/examples">https://github.com/named-data/ndn-cxx/tree/master/examples</a><br>
<br>
I generated the executable and I was trying to run them into a and b.<br>
The consumer start, it express its interest for the prefix  <br>
/example/testApp/randomData , but after few time the timeout expires.<br>
<br>
Making some little changing in the producer, I noticed that it  <br>
successfully enter into Run() function, but it does not enter neither  <br>
in onInterest callback and onRegisterFailed callback.<br>
<br>
My suspicious is that the prefix /example/testApp is not registered  <br>
anywhere, because I do not see it into the tables. Indeed:<br>
The FIB table of a is:<br>
   /ndn/NLSR/sync nexthops={faceid=257 (cost=0), faceid=260 (cost=10)}<br>
   /localhost/nfd/rib nexthops={faceid=256 (cost=0)}<br>
   /ndn/NLSR/LSA nexthops={faceid=260 (cost=10)}<br>
   /ndn/broadcast/KEYS nexthops={faceid=257 (cost=0), faceid=260 (cost=10)}<br>
   /ndn/NLSR/LSA/edu/%C1.Router/cs/a nexthops={faceid=257 (cost=0)}<br>
   /ndn/edu/%C1.Router/cs/b nexthops={faceid=260 (cost=10)}<br>
   /localhost/nfd nexthops={faceid=1 (cost=0)}<br>
   /localhost/nlsr nexthops={faceid=257 (cost=0)}<br>
   /ndn/edu/%C1.Router/cs/a nexthops={faceid=257 (cost=0)}<br>
<br>
The FIB table of b is:<br>
   /ndn/NLSR/sync nexthops={faceid=257 (cost=0), faceid=260 (cost=10)}<br>
   /localhost/nfd/rib nexthops={faceid=256 (cost=0)}<br>
   /ndn/NLSR/LSA nexthops={faceid=260 (cost=10)}<br>
   /ndn/broadcast/KEYS nexthops={faceid=257 (cost=0), faceid=260 (cost=10)}<br>
   /ndn/edu/%C1.Router/cs/b nexthops={faceid=257 (cost=0)}<br>
   /ndn/edu/a nexthops={faceid=260 (cost=10)}<br>
   /localhost/nfd nexthops={faceid=1 (cost=0)}<br>
   /localhost/nlsr nexthops={faceid=257 (cost=0)}<br>
   /ndn/edu/%C1.Router/cs/a nexthops={faceid=260 (cost=10)}<br>
   /ndn/NLSR/LSA/edu/%C1.Router/cs/b nexthops={faceid=257 (cost=0)}<br>
<br>
So I am getting wrong something I think... any advice ?<br>
Thanks to all,<br>
Matteo<br>
<br>
-------------------------------------------------------------------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr">
http://webmail.eurecom.fr</a><br>
<br>
<br>
_______________________________________________<br>
Ndn-interest mailing list<br>
Ndn-interest@lists.cs.ucla.edu<br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
</div>
</span></font>
</body>
</html>