[ndnSIM] [ndnSIM2.0]: Data packet isn't receiving on the other nodes

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Feb 9 13:42:42 PST 2015


Hi Hitesh,

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.

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 http://ndnsim.net/2.0/doxygen/LogComponentList.html <http://ndnsim.net/2.0/doxygen/LogComponentList.html>)

—
Alex

> On Feb 9, 2015, at 1:37 PM, Hitesh Wadekar <wadekahn at clarkson.edu> wrote:
> 
> Hello Guys,
> 
> 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.
> 
> 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.
> 
> Since I am receiving 'Interest Packet"  hence looks like FIB entries (routes) could not be a problem.
> 
> Here is sample code that I am using,
> 
> void ConsumerApp::SendDataPacket(shared_ptr<const Interest> interest) {
>     if (!m_active)
>         return;
>     NS_LOG_FUNCTION(this << interest);
>     std::cout<< "ConsumerApp: Sending a Data Packet -> "<< interest->getName() << std::endl;
> 
>     Name dataName(interest->getName());
>     auto dPacket = make_shared<Data>();
>     dPacket->setName(dataName);
>     dPacket->setFreshnessPeriod(ndn::time::milliseconds(3000));
>     dPacket->setContent(make_shared< ::ndn::Buffer>(m_virtualPayloadSize));
> 
>     Signature signature;
> 
>     SignatureInfo signatureInfo(static_cast< ::ndn::tlv::SignatureTypeValue>(255));
> 
>     if (m_keyLocator.size() > 0) {
>         signatureInfo.setKeyLocator(m_keyLocator);
>     }
> 
>     signature.setInfo(signatureInfo);
>     signature.setValue(Block(&m_signature, sizeof(m_signature)));
> 
>     dPacket->setSignature(signature);
>     dPacket->wireEncode();
>     std::cout << "\n ConsumerApp: Data packet- > " << dPacket->getName () << " is sending from face -> " << m_face << std::endl;
> 
>     m_transmittedDatas(dPacket, this, m_face);
>     m_face->onReceiveData(*dPacket);
>     std::cout << "\n";
> }
> 
> I am looking forward to hear from you back.
> 
> Thank you.
> 
> Regards,
> Hitesh Wadekar
> _______________________________________________
> 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/20150209/01f38862/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150209/01f38862/attachment.bin>


More information about the ndnSIM mailing list