<div dir="ltr">Hello Steve,<div><br></div><div>The code snippet is here: <a href="https://gist.github.com/anilj1/ebd1dbb6cf7d9a2582c9">https://gist.github.com/anilj1/ebd1dbb6cf7d9a2582c9</a><br><div><br></div><div>To debug further, I just isolated the thread (not invoking it), still see the same behavior. I have the following call flow.<div><ol><li>P --> sends Interests to --> C<br></li><li>C --> sends Data to --> P (this is being received)<br></li><li>C --> sends a new Interests to --> C (I can see this Interest on ndndump running on C)</li><ol><li>But I do not see the Interest reaching application on P.</li></ol></ol><div><span style="font-size:12.8000001907349px">What </span><span style="font-size:12.8000001907349px">I meant to say when I mentioned </span><span style="font-size:12.8000001907349px">"looks like it is not being picked up by NFD", that I can see the Interest (#3) on ndndump, so it is for sure reaching the host, but not NFD (I guess so). Below is the ndndump output; I have marked the log number with the above call flow sequence number.  </span></div></div></div><div><span style="font-size:12.8000001907349px"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div style><span style="font-size:12.8000001907349px">#1 --> 1431551430.759917 From: 133.164.60.154, To: 133.164.60.158, Tunnel Type: UDP, INTEREST: /ndn/A/R2.router/nsr/2/access/2/DATA/%24cname%3D/ndn/temp/s/2%2Crname%3D/ndn/A/R1.router/nsr/1/access/1%24?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=4128987363</span></div></div><div><div style><span style="font-size:12.8000001907349px">#2 --> 1431551430.767940 From: 133.164.60.158, To: 133.164.60.154, Tunnel Type: UDP, DATA: /ndn/A/R2.router/nsr/2/access/2/DATA/%24cname%3D/ndn/temp/s/2%2Crname%3D/ndn/A/R1.router/nsr/1/access/1%24/testApp/%FD%00%00%01MR%19Q%C5</span></div></div><div><div style><span style="font-size:12.8000001907349px">#3 --> 1431551430.768142 From: 133.164.60.158, To: 133.164.60.154, Tunnel Type: UDP, INTEREST: /ndn/A/R1.router/nsr/1/access/1/ndn/temp/s/2?ndn.MustBeFresh=1&ndn.InterestLifetime=1000&ndn.Nonce=2531323018</span></div></div></blockquote><div><div style="font-size:12.8000001907349px"><br></div></div><div style="font-size:12.8000001907349px">Producer logs shows this</div><div style="font-size:12.8000001907349px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">20150513141030759 DEBUG: [Producer] WAITING FOR Events</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">20150513141030768 DEBUG: [Producer] Received the Data: Name: /ndn/A/R2.router/nsr/2/access/2/DATA/%24cname%3D/ndn/temp/s/2%2Crname%3D/ndn/</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">A/R1.router/nsr/1/access/1%24/testApp/%FD%00%00%01MR%19Q%C5</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">MetaInfo: ContentType: 0, FreshnessPeriod: 10000 milliseconds</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">Content: (size: 11)</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">Signature: (type: 1, value_length: 256)</div></div></blockquote></div><div style="font-size:12.8000001907349px"><div><br></div><div><br></div></div><div style="font-size:12.8000001907349px">Below is the FACE and FIB status on the NFD, which is in question. </div><div style="font-size:12.8000001907349px"><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">nfd-status -f</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">Faces:</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=1 remote=internal:// local=internal:// counters={in={0i 409d 0B} out={1642i 0d 0B}} local persistent point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=254 remote=contentstore:// local=contentstore:// counters={in={0i 0d 0B} out={0i 0d 0B}} local persistent point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=255 remote=null:// local=null:// counters={in={0i 0d 0B} out={0i 0d 0B}} local persistent point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=256 remote=udp4://<a href="http://224.0.23.170:56363">224.0.23.170:56363</a> local=udp4://<a href="http://10.0.3.1:56363">10.0.3.1:56363</a> counters={in={0i 0d 0B} out={0i 0d 0B}} non-local persistent multi-access</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=257 remote=udp4://<a href="http://224.0.23.170:56363">224.0.23.170:56363</a> local=udp4://<a href="http://133.164.60.154:56363">133.164.60.154:56363</a> counters={in={0i 0d 0B} out={0i 0d 0B}} non-local persistent multi-access</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=258 remote=ether://[01:00:5e:00:17:aa] local=dev://lxcbr0 counters={in={0i 0d 0B} out={0i 0d 0B}} non-local persistent multi-access</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=259 remote=ether://[01:00:5e:00:17:aa] local=dev://eth0 counters={in={0i 0d 0B} out={0i 0d 0B}} non-local persistent multi-access</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=260 remote=fd://27 local=unix:///run/nfd.sock counters={in={1609i 25d 120560B} out={25i 369d 325684B}} local on-demand point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=267 remote=udp4://<a href="http://133.164.60.158:6363">133.164.60.158:6363</a> local=udp4://<a href="http://133.164.60.154:6363">133.164.60.154:6363</a> counters={in={13i 12d 7384B} out={15i 3d 3812B}} non-local persistent point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=291 remote=fd://28 local=unix:///run/nfd.sock counters={in={2i 0d 579B} out={0i 2d 1280B}} local on-demand point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  faceid=293 remote=fd://32 local=unix:///run/nfd.sock counters={in={1i 0d 46B} out={0i 0d 0B}} local on-demand point-to-point</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">nfd-status -b</div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">FIB:</span><br></div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  /localhost/nfd nexthops={faceid=1 (cost=0)}</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  /ndn/A/R2.router/nsr/2 nexthops={faceid=267 (cost=0), faceid=291 (cost=0)}</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  /localhost/nfd/rib nexthops={faceid=260 (cost=0), faceid=291 (cost=0)}</div></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">  / nexthops={faceid=291 (cost=0)}</div></div></blockquote><div style="font-size:12.8000001907349px"><div><br></div><div>/anil.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 2:21 PM, Steve DiBenedetto <span dir="ltr"><<a href="mailto:dibenede@cs.colostate.edu" target="_blank">dibenede@cs.colostate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Could you please share your code via <a href="https://gist.github.com" target="_blank">https://gist.github.com</a> (or something else?).<div><br></div><div>What do you mean by the Interest is not picked up by NFD? Is the Interesting coming into NFD, but not sent do the application's face? If you aren't already, debug-level logs are useful for this time of problem.<br><div><br></div><div>-Steve</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 13, 2015 at 1:46 PM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">In the producer example code (see below link), I have added a new thread to process some other input device.<div><a href="https://github.com/named-data/ndn-cxx/blob/master/examples/producer.cpp" target="_blank">https://github.com/named-data/ndn-cxx/blob/master/examples/producer.cpp</a><br></div><div><br></div><div>So, I am doing the following just before calling m_face.processEvents() function. </div><div><br></div><div><div>    m_stopDataTracker = true;</div><div>    m_dataThread = boost::thread(&Producer::trackData, this);</div></div><div><br></div><div>Now, my situation is that this producer application is not able to receive any incoming Interests for some reason. I have done the following checks so far:</div><div><ul><li><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">m_face.</span><span style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">setInterestFilter</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">(</span><span style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><span style="color:rgb(24,54,145)">"</span><font color="#183691">/</font><span><font color="#183691">",...</font><font color="#333333">),</font></span></span>I am registering for "/" just to ensureproducer receives ALL the traffic.<br></li><li>I have registered (into NFD) the name prefix in the remote node (where consumer is running) pointing to the host where producer is running. </li><li>I have also tested this setup using stand-alone producer and consumer apps, ensuring that NFD configuration is fine. </li></ul><div>I am curious to know if this addition of application (producer) thread is causing anything here. I can see the Interest reaching on 'ndndump', but looks like it is not being picked up by NFD and hence not reaching the application. </div></div><div><br></div><div>Is there any problem in my setup or this thread design?</div><span><font color="#888888"><div><br></div><div>/anil.</div><div><br></div><div><br></div></font></span></div>
<br></div></div>_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>