<div dir="ltr"><font face="arial, helvetica, sans-serif" style="font-size:12.8px">Hi Spyridon,</font><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Thank you for the reply. </font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif">I am using "ndn-tree-cs-tracers" example. In this example cache hit ratio=(10/20)*100=50% for the <b>root </b>node (.txt file is attached here) for all  cache replacement policy e.g., "Lfu", "Lru", and "Fifo". I also change content store maximum size of the root node e.g.,  </font><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px;text-align:justify">"Config::Set("/NodeList/6/$</span><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px;text-align:justify">ns3::ndn::ContentStore/</span><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px;text-align:justify">MaxSize", UintegerValue(200))" as well as </span><font face="arial, helvetica, sans-serif" style="font-size:12.8px;text-align:justify"><span style="color:rgb(0,0,0);font-size:14.6667px;line-height:19.0667px">maximum CS sizes of packets e.g.,  </span></font><font color="#000000" face="arial, helvetica, sans-serif" style="font-size:12.8px;text-align:justify"><span style="font-size:14.6667px;line-height:19.0667px">ndnHelper.SetOldContentStore("ns3::ndn::cs::Fifo", "MaxSize",</span></font><span style="text-align:justify;font-size:14.6667px;line-height:19.0667px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">"100"). </span></div><div style="font-size:12.8px"><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></span></div><div style="text-align:justify"><span style="font-family:arial,helvetica,sans-serif;font-size:14.6667px;line-height:19.0667px"><font color="#000000">Still I am getting maximum 50% cache hit ratio. I want to increase the cache hit ratio by tweaking parameters. </font></span></div><div style="text-align:justify"><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif"><br></span></div><div style="text-align:justify"><span style="font-family:arial,helvetica,sans-serif;font-size:14.6667px;line-height:19.0667px"><font color="#000000">Please help me. </font></span><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif"> </span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px;text-align:justify"><span style="font-size:14.6667px;line-height:19.0667px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Thank you in advanced and apology if I made wrong interpretation. </span></div><div class="" style="font-size:12.8px"><div id=":156" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Tanzil</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 11:36 AM, Shahrear Tanzil <span dir="ltr"><<a href="mailto:tanzil.eee@gmail.com" target="_blank">tanzil.eee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="arial, helvetica, sans-serif">Hi Spyridon,</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thank you for the reply. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">I am using "ndn-tree-cs-tracers" example. In this example cache hit ratio=(10/20)*100=50% for the <b>root </b>node (.txt file is attached here) for  all  cache replacement policy e.g., "Lfu", "Lru", and "Fifo".  </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div style="text-align:justify"><font face="arial, helvetica, sans-serif">I would link to know, how to increase the cache hit ratio by increasing content store maximum size i.e., "Config::Set("/NodeList/6/$ns3::ndn::ContentStore/MaxSize", UintegerValue(200))" ,  and for different <span style="color:rgb(0,0,0);font-size:14.6667px;line-height:19.0667px;text-align:justify">maximum CS sizes of packets e.g.,  </span></font><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:14.6667px;line-height:19.0667px">ndnHelper.SetOldContentStore("ns3::ndn::cs::Fifo", "MaxSize",</span></font><span style="font-size:14.6667px;line-height:19.0667px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">"100"), since I am getting same result for different size. </span></div><div style="text-align:justify"><span style="font-size:14.6667px;line-height:19.0667px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div style="text-align:justify"><span style="font-size:14.6667px;line-height:19.0667px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Thank you in advanced and apology if I made wrong interpretation. </span></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 4, 2015 at 5:13 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
first of all, you need to run an example that uses the CsTracer. After the execution of such an example, a .txt file would be generated (typically with the name “cs-trace.txt”). This file contains the number of CacheHits and CacheMisses for each node with respect to the simulation time. To compute the cache hit ratio of your simulation, you need to use the following formula:<br>
<br>
Cache hit ratio (%) = (Total number of cache hits / (Total number of cache hits + Total number of cache misses)) * 100<br>
<br>
--<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" rel="noreferrer" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
PhD Computer Science<br>
UCLA<br>
<div><div><br>
> On Sep 4, 2015, at 4:46 PM, Shahrear Tanzil <<a href="mailto:tanzil.eee@gmail.com" target="_blank">tanzil.eee@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am a new user of ndnSIM. I would like to compare cache hit ratio for different cache replacement policies for variable cache size. Can you please let me know how to calculate cache hit ratio using CsTracer (following examples ndn-tree-cs-tracers and ndn-simple-with-different-sizes-content-store).<br>
><br>
> Thank you in advanced.<br>
><br>
> --<br>
><br>
> Kind Regards,<br>
> S.M. Shahrear Tanzil<br>
> Graduate Research Assistant<br>
> University of British Columbia<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br>Kind Regards,<br>S.M. Shahrear Tanzil<br>Graduate Research Assistant<br>University of British Columbia<br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br>Kind Regards,<br>S.M. Shahrear Tanzil<br>Graduate Research Assistant<br>University of British Columbia<br></div>
</div></div>