<div dir="ltr"><div>Hi Jiacheng</div><div><br></div><div>Preloading the Content Store without sending Interests is meaningless, but it's in fact possible.</div><div><ol><li>In nfd.conf, set tables.cs_unsolicited_policy=admit-local option.</li><li>Start NFD.</li><li>Open a face toward NFD and send Data packets directly to this face, and they will be cached. You may use ndnpoke --unsolicited flag to send a single Data packet.</li></ol></div><div><br></div><div>A more reasonable way is just sending the Interests.</div><div><ol><li>Start NFD (without special changes in nfd.conf).</li><li>Start the producer.</li><li>Start a local consumer that sends Interests.</li><li>The producer would receive the Interests and reply to them, and the Data would be cached.</li></ol></div><div>This would still be preloading, if you perform these steps prior to collecting measurements for your actual experiment.</div><div><ul><li>Retrieve the counters after these preloading steps, and subtract them at the end.</li><li>Record the timestamp when you finish preloading, and ignore log entries before that timestamp.</li></ul></div><div><br></div><div>Note that the Content Store can always evict cached Data, regardless of how you preload them.</div><div>There's also a difference between these two methods when you use "priority FIFO" policy:</div><div><ul><li>The first method would insert unsolicited Data. They would be evicted before any other Data retrieved in response to Interests.</li><li>The second method would insert Data normally. They are classified the same as any other Data.</li></ul></div><div><br></div><div>Yours, Junxiao<br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div id="m_4799892036441982740gmail-m_-5334414436137546915divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> JIACHENG HOU <<a href="mailto:houdemi@outlook.com" target="_blank">houdemi@outlook.com</a>><br>
<b>Sent:</b> Wednesday, February 3, 2021 12:17 AM<br>
<b>To:</b> Saurab Dulal (sdulal) <<a href="mailto:sdulal@memphis.edu" target="_blank">sdulal@memphis.edu</a>><br>
<b>Subject:</b> Re: Preload contents to node's content store in mini-ndn</font>
<div> </div>
</div>

<div lang="EN-CA">
<div>
<p>I understand that NDN nodes cache the data when it receives a data packet. However, I want to manually wrap the content into NDN data packets and insert them to nodes' content store, before the consumer
 sending interest packets. </p>
<p>Is it possible to realize? Or what I am trying to do is meaningless?</p>
<p><br></p></div></div></div>
</blockquote></div></div>