<div dir="ltr">Dear Junxiao,<div> </div><div>I am sorry I didn't make myself more clear, I dipected it more specific last time and I thought it would be the same gay reply to me. The thing is I want to determine whether the routers should cache the data based on the number of times the data was requested, so I only need to count the number of the first several times when data packet is still fetched from the provider. </div><div><br></div><div><span style="font-size:12.800000190734863px">Last time, Spyridon Mastorakis replied my email and told me I</span><span style="font-size:12.800000190734863px"> could add a new TLV field to the Data packet and increment it every time that this data packet is requested.</span><span style="font-size:12.800000190734863px"> But i am still a little confused about how to realize that.</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">Ru Jia</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 7, 2017 at 3:39 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/" target="_blank">https://lo.calho.st/<wbr>networks/adding-custom-packet-<wbr>fields-to-packets-in-ndnsim-2-<wbr>3-without-forking-the-entire-<wbr>repository/</a></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<div><div class="h5"><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" target="_blank">rujia721@gmail.com</a>> wrote:<br type="attribution"><blockquote class="m_-3770893860288521084quote" 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></div></div>
</blockquote></div><br></div>