[ndnSIM] logging OnInterest and OnData on every node
alexander.afanasyev at ucla.edu
Wed Apr 30 11:20:22 PDT 2014
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:
> 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?
> Thanks in advance,
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM