[ndnSIM] Fwd: How to trace the interest accessing each node?

Saran Tarnoi sarantarnoi at gmail.com
Thu May 30 00:15:33 PDT 2013

Dear All,

I just found that I should use the Interest and ContentObject Constructors
to keep the header of a packet.
In addition, to check whether the considering packet is Interest or Data, I
can simply check the packet's size.
However, If there is any more direct way to do so, please let me know.
Thanks a lot,

Saran Tarnoi

---------- Forwarded message ----------
From: Saran Tarnoi <sarantarnoi at gmail.com>
Date: 2013/5/30
Subject: How to trace the interest accessing each node?
To: Alex Afanasyev <alexander.afanasyev at ucla.edu>, ndnsim at lists.cs.ucla.edu

Dear Alex and All,

I would like to record the interests and their numbers that access each
Specifically, I want to study the characteristic of the interest traffic at
different nodes.
I tried observing the received packets at each face in ndn:Face but I could
neither get the header nor type of the packet.
I followed this code (
but it didn't work.

To add header to a packet, we can do:
packet->AddHeader (interestHeader);

Is there any way to do:
packet->GetContentName ();
packet->GetType ();
and get the output like:
"Interest or Data"

Would you kindly tell me how can I get that information?
Thanks in advance for your time.

Saran Tarnoi
Graduate Student
Department of Informatics
The Graduate University for Advanced Studies (Sokendai)
Tokyo, Japan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130530/9db5f6a4/attachment.html>

More information about the ndnSIM mailing list