<div dir="ltr">Dear Alex and All,<div><br></div><div>I would like to record the interests and their numbers that access each node.</div><div>Specifically, I want to study the characteristic of the interest traffic at different nodes.<br>
</div><div style>I tried observing the received packets at each face in ndn:Face but I could neither get the header nor type of the packet.</div><div style>I followed this code (<a href="http://polythinking.wordpress.com/2012/05/30/ns-3-network-simulator-how-to-find-a-specific-header-in-packet-in-ns-3/">http://polythinking.wordpress.com/2012/05/30/ns-3-network-simulator-how-to-find-a-specific-header-in-packet-in-ns-3/</a>) but it didn't work.</div>
<div style><br></div><div style>To add header to a packet, we can do:<br>packet->AddHeader (interestHeader);<br></div><div style><br></div><div style>Is there any way to do:</div><div style>packet->GetContentName (); </div>
<div style>packet->GetType ();</div><div style>and get the output like:</div><div style>"/prefix/0"</div><div style>"Interest or Data"</div><div style>?</div><div style><br></div><div>Would you kindly tell me how can I get that information?</div>
<div style>Thanks in advance for your time.</div><div><div><br></div>-- <br>Regards,<div>Saran Tarnoi</div><div>Graduate Student</div><div>Department of Informatics</div><div>The Graduate University for Advanced Studies (Sokendai)</div>

<div>Tokyo, Japan</div>
</div></div>