[ndnSIM] logging OnInterest and OnData on every node

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Apr 30 11:20:22 PDT 2014

Hi Josh,

For intermediate nodes, you can have multiple places to enable logging.  This could be ndn.fw, ndn.fw.BestRoute (or other strategy's name you're using), ndn.Face

NS_LOG=ndn.Producer:ndn.Consumer:ndn.fw ./waf --run=...

The most verbose logging you would get with (but it will be definitely too much, as it would include everything from NS-3's processing as well).

NS_LOG=* ./waf run=...


On Apr 30, 2014, at 10:24 AM, Josh J <joshjdevl at gmail.com> wrote:

> Hi,
> So if I enable logging, the consumer and producer nodes will log their OnInterest, OnData, and SendPacket messages allowing me to observe the timings of interest and data at the consumer and producer.
> 0s 0 ndn.ConsumerZipfMandelbrot:SendPacket(): [INFO ] > Interest for 62, Total: 1, face: 1
> 0.020512s 2 ndn.Producer:OnInterest(): [INFO ] node(2) respodning with Data: /prefix/%00%3E
> 0.057504s 0 ndn.Consumer:OnData(): [INFO ] < DATA for 62
> How can I view the timing of the intermediate node? I thought maybe to enable logging in the face api, though I don't see any face messages?
> NS_LOG=ndn.ApiFace:ndn.ConsumerZipfMandelbrot:ndn.Consumer:ndn.Producer
> Thanks in advance,
> Josh
> _______________________________________________
> 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/20140430/ceea9a4c/attachment.html>

More information about the ndnSIM mailing list