<div dir="ltr"><div>Hi, </div><div><br></div><div>I have seen that blog before I ask the question, but it still don't  make everything clear. For instance, in the first segment "First Steps", he gives several lines of codes, but which files should I add those line in or should I create a new file contains all of those codes? Is it too much effort for just adding a new tag?  </div><div><br></div><div>Yours, </div><div>Ru Jia</div><div><div class="gmail_quote"><div>Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>><wbr>于2017年5月8日 周一上午2:50写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>Junxiao pointed you to a link with specific steps on how to add a custom TLV to NDN packets in ndnSIM.</div><div><br></div><div>Please read through the steps described there and follow them.</div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div></div></div>
</div></div></div><div style="word-wrap:break-word"><div>
<br><div><blockquote type="cite"><div>On May 7, 2017, at 9:26 AM, Ru Jia <<a href="mailto:rujia721@gmail.com" target="_blank">rujia721@gmail.com</a>> wrote:</div><br class="m_4863730479178566640m_5750028970153012127Apple-interchange-newline"><div><div>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><<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><div>Hi Ru</div><div><br></div><div>Before talking about code, we need to understand the protocol.</div><div>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>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>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><br></div><div>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><br></div><div>Yours, Junxiao<div><div class="m_4863730479178566640m_5750028970153012127h5"><br><div class="gmail_extra"><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_4863730479178566640m_5750028970153012127m_-3770893860288521084quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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></div><br></div></blockquote></div><br></div></div></blockquote></div></div></div>