<div dir="ltr">Dear Junxiao, <div><br><div>Thank you very much for the quick reply.</div><div><br></div><div>As I am new to ns3 and ndnSIM, can you please provide more clarification on the above 4 points. As I found that LRU and Priority_fifo replacement policy includes the file "cs.hpp" which includes "cs-policy.hpp" which eventually includes "cs-entry..hpp" .  Can you please specify exactly how to maintain the counter and time stamp  for each CS entry  and how these  values can be retrieved from the  custom  replacement policy.</div><div><br></div><div>Looking forward for your support</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 11, 2022 at 8:11 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> wrote:<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="auto"><div>Hi Subodh</div><div dir="auto"><br></div><div dir="auto">See answers inline.<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Mar 11, 2022, 09:29 SUBODH MISHRA via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr">Dear Researchers,<div>Respect to your hard works and passion</div><div> I am implementing one of the replacement policy in ndnSIM(lru and priority_fifo is already implemented) of which i need the following information of the content inside the replacement policy.:-</div><div><br clear="all"><div><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">1)Time of generation(by the producer) of contents present in the content store.</span></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This is not possible to know in general, because in NDN protocol, the Data packet is not required to carry content generation time.</div><div dir="auto">For specific applications, you can arrange the application to put an extension TLV field in the MetaInfo of its Data packets, that carries the content generation time.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><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><div><br style="box-sizing:border-box;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">2)Number of requests of the contents present in the content store.</span></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can maintain a counter associated with each CS entry, and increment this counter every time you process a request.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><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><div><br style="box-sizing:border-box;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">3)Time at which the contents are cached in the content store.</span></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can define a timestamp associated with each CS entry, assigned during insertion.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><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><div><br style="box-sizing:border-box;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">4)Time of last request of the contents in the content store</span></div><div dir="auto"></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can define a timestamp associated with each CS entry, updated when you process each Interest.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><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 dir="auto"><br style="box-sizing:border-box;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"> Please help me get this information. Thankyou in advance</span></div></div></blockquote></div></div><div dir="auto"><div class="gmail_quote" dir="auto"><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 dir="auto"></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34)">Thanks & Regards,</div><div><font color="#444444" face="comic sans ms, sans-serif" size="4">Subodh Mishra</font></div></div></div>