<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 25, 2016, at 3:18 AM, <a href="mailto:yao930@mail.ustc.edu.cn" class="">yao930@mail.ustc.edu.cn</a> wrote:</div><br class="Apple-interchange-newline"><div class="">Dear ndnsim users,<br class=""><br class="">I am new to ndnSIM and want to use it to realize some cache policy,and while running cs-trace examples,I encouter a few problems and questions.<br class=""><br class=""><ol class=""><li class=""> in the output file cs-trace.txt, we can see the numbers of cachehits and cachemisses in every node are only 10, but the consumer we set is supposed to send 100 interest per second, why the nodes hit/miss so much less packets than the sent interest?</li></ol></div></blockquote><div>Is your CS tracer configured to output every second or every 0.1 seconds?  If former, I'm not sure why it is not showing 100...</div><div><br class=""></div><blockquote type="cite" class=""><div class="">     2.   in the visulizer during the simulation , I found the CS always has only one entry<span id="cid:4d1ea775$1$1544ced10ab$Coremail$yao930$mail.ustc.edu.cn"><desc.png></span>but the cs size is supposed to be 100.<br class=""></div></blockquote><div><br class=""></div><div>That's strange. I was able to reproduce the problem if I select "old" style of the content store.  As of right now, there is a broken enumeration of the content store entries in the python bindings when the old style is used.  We'll try to fix it soon.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class="">     3.  when the cs replacement policy is changed to "random",in this way,<br class="">ndnHelper.SetOldContentStore("ns3::ndn::cs::Random", "MaxSize",  "100"); <br class="">an error comes out as follows:<br class="">msg="Attribute name=Min could not be set for this object: tid=ns3::UniformRandomVariable", file=../src/core/model/<a href="http://object-base.cc" class="">object-base.cc</a>, line=206<br class="">terminate called without an active exception<br class="">how can I fix this?</div></blockquote><div><br class=""></div><div>There is some strange issue with NS-3.  I've made a workaround that will be pushed to master branch as soon as CI tests finish. You can check the code here: <a href="https://gerrit.named-data.net/#/c/2902/" class="">https://gerrit.named-data.net/#/c/2902/</a></div><div><br class=""></div><div>Thanks for pointing to the problems!</div><div><br class=""></div><div>--</div><div>Alex</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><br class="">Many thanks!<br class="">Chen.<br class="">_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></body></html>