<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Hitesh,</div><div class=""><br class=""></div><div class="">There are several reasons why data packet be not propagated along the interest path.  Most likely it mistmatches the interest or interest expires before data packet is retrieved.</div><div class=""><br class=""></div><div class="">To help more, you need to give us a reproducible scenario/example.  You can enable more NFD logging to see what is going on with the data packet (look for loggers starting “nfd.” in <a href="http://ndnsim.net/2.0/doxygen/LogComponentList.html" class="">http://ndnsim.net/2.0/doxygen/LogComponentList.html</a>)</div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 9, 2015, at 1:37 PM, Hitesh Wadekar <<a href="mailto:wadekahn@clarkson.edu" class="">wadekahn@clarkson.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class="">Hello Guys,<br class=""><br class=""></div>I started to porting my code to ndnSIM2.0, however, I am facing a weired issue, It would be really helpful for me if you guys pointed out some suggestion and the steps/tips to debug or identify the reason why it so.<br class=""><br class=""></div><div class=""></div><div class="">I have my code working on old version of ndnSIM, we thought that since recently we launched ndnSIM2.0, we have started to port the code on it. The issue is I am not able to receive the data packet on the other node. However, I am able to send interest packet on the all node. The code logic and everything is same as sample example given for Consume and Producer App. Also, I have verified the route as well along with signature/ wireEncode.<br class=""><br class=""></div><div class="">Since I am receiving 'Interest Packet"  hence looks like FIB entries (routes) could not be a problem.<br class=""></div><div class=""><br class=""></div><div class="">Here is sample code that I am using,<br class=""><br class=""></div><div class="">void ConsumerApp::SendDataPacket(shared_ptr<const Interest> interest) {<br class="">    if (!m_active)<br class="">        return;<br class="">    NS_LOG_FUNCTION(this << interest);<br class="">    std::cout<< "ConsumerApp: Sending a Data Packet -> "<< interest->getName() << std::endl;<br class="">    <br class="">    Name dataName(interest->getName());<br class="">    auto dPacket = make_shared<Data>();<br class="">    dPacket->setName(dataName);<br class="">    dPacket->setFreshnessPeriod(ndn::time::milliseconds(3000));<br class="">    dPacket->setContent(make_shared< ::ndn::Buffer>(m_virtualPayloadSize));<br class=""><br class="">    Signature signature;<br class=""><br class="">    SignatureInfo signatureInfo(static_cast< ::ndn::tlv::SignatureTypeValue>(255));<br class=""><br class="">    if (m_keyLocator.size() > 0) {<br class="">        signatureInfo.setKeyLocator(m_keyLocator);<br class="">    }<br class=""><br class="">    signature.setInfo(signatureInfo);<br class="">    signature.setValue(Block(&m_signature, sizeof(m_signature)));<br class=""><br class="">    dPacket->setSignature(signature);<br class="">    dPacket->wireEncode();<br class="">    std::cout << "\n ConsumerApp: Data packet- > " << dPacket->getName () << " is sending from face -> " << m_face << std::endl;<br class=""><br class="">    m_transmittedDatas(dPacket, this, m_face);<br class="">    m_face->onReceiveData(*dPacket);<br class="">    std::cout << "\n";<br class="">} <br class=""></div><div class=""><br class=""></div><div class="">I am looking forward to hear from you back.<br class=""></div><div class=""> <br class=""></div><div class=""></div><div class="">Thank you.<br class=""><br class=""></div><div class="">Regards,<br class=""></div><div class="">Hitesh Wadekar</div></div></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></body></html>