[ndnSIM] Data from onData

Sirapop Theeranantachai sirapop741 at gmail.com
Wed Mar 29 01:27:16 PDT 2023


 Hello,

What command did you run when you use ndnSIM. Consumers and producers in
ndnSIM will print out logs only if "NS_LOG" variables are defined as
ndn.Consumer and ndn.Producer respectively.

For example,
ndn.Consumer contains "OnData", "SendPacket", and "OnTimeout".
ndn.Producer contains "OnInterest".
If you want ndnSIM to show the log of both "OnData" and "OnInterest", you
may need to put prefix before the ./waf command such as:

*NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=xxx *

If the packet does not actually arrive, you will see OnTimeout instead, so
I do believe the packets are arriving.

Hope this help!
Mark

Begin forwarded message:

*From: *Puming Fang via ndnSIM <ndnsim at lists.cs.ucla.edu>
*Subject: **[ndnSIM] App::OnData(data) is not called when Data Arrives*
*Date: *March 27, 2023 at 11:11:32 AM PDT
*To: *ndnsim at lists.cs.ucla.edu
*Reply-To: *Puming Fang <pfang at umass.edu>

Dear NDN team,

I am currently working with ndnsim and have a query regarding the handling
of Interest and Data packets. While attempting to implement certain
operations upon the arrival of these packets, I have noticed that while the
"App::OnInterest(Interest)" function works as expected, the
"App::OnData(Data)" function does not seem to be called when the Data
packet arrives. My intention is to log some information upon the arrival of
Data packets.

I can confirm that the Data packets are indeed arriving at the node and
being forwarded correctly. Could you please advise me on what could be
causing this issue?

Thank you for your time and assistance.

Best, Puming
_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
https://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/20230329/90f66f0a/attachment.html>


More information about the ndnSIM mailing list