<div dir="auto"><div>Hi Ru</div><div dir="auto"><br></div><div dir="auto">Before talking about code, we need to understand the protocol.</div><div dir="auto">NDN network is a distributed system, c and forwarding is hop-by-hop. Every NDN node has a ContentStore which is an opportunistic cache of Data packets.</div><div dir="auto">A Data is "requested" if a consumer expresses an Interest that can be satisfied by the Data. The Data can be served from a producer, or from a cache anywhere in the network.</div><div dir="auto">While a node can count how many times a Data is "requested" by an Interest reaching this node, it would not be possible to count how many times a Data is requested globally without using additional control messages.</div><div dir="auto"><br></div><div dir="auto">Regarding code: see <a href="https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/">https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/</a></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On May 6, 2017 12:06, "Ru Jia" <<a href="mailto:rujia721@gmail.com">rujia721@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.800000190734863px">Hello,</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><span style="font-size:12.800000190734863px">If I want to record the number of times the data was requested, how to add a new TLV filed to the Data packet? Is there any material or codes that I can refer to? </span><br><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">Thanks advanced for your response.</span></div><font color="#888888"><div><span style="font-size:12.800000190734863px">Ru Jia</span></div></font></div></blockquote></div></div></div></div>