<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="">To clarify:<div class=""><br class=""></div><div class="">ndnSIM 2.2 will be using NFD 0.4.1. The CS of NFD 0.4.1 has replacement policies + handles selectors.</div><div class=""><br class=""></div><div class="">My opinion is that it might be easier for you to deal with the old content store to implement your own replacement policy (it offers limited support for Interest selectors though). This is just my personal feeling and I might be actually wrong.</div><div class=""><br class=""></div><div class="">You can take a look at the commit that updates the ndnSIM documentation for the new release here:</div><div class=""><br class=""></div><div class=""><a href="https://gerrit.named-data.net/#/c/3299/" class="">https://gerrit.named-data.net/#/c/3299/</a></div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 31, 2016, at 6:08 AM, John Baugh <<a href="mailto:jpbaugh@umich.edu" class="">jpbaugh@umich.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Sabet,<br class=""><br class=""></div>Aha!  So ndnSIM is using an older version of NFD.  If this is so, how does one specify the content store?<br class=""><br class=""></div>Is this still customizable?  Or should we use the Old Content Store style?  Or something else?<br class=""><br class=""></div>Thanks,<br class=""><br class=""></div>John<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 31, 2016 at 2:13 AM, Muhammad Hosain Abdollahi Sabet <span dir="ltr" class=""><<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi John,<br class=""><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">It's good to have you here again!<br class=""></div><div class="gmail_extra"><br clear="all" class=""><div style="font-family:tahoma,sans-serif" class="gmail_default">​If you have configured ns-3 with <i class="">./waf configure --enable-examples</i> and compiled it(I suppose you have), then you can run examples like you did (<i class="">--run <name-of-the-example></i>). Regardless of enabling examples in the first step(./waf configure), you can always run your simulation scenario by putting the file(here <b class=""><a href="http://ndn-tree-cs2-tracers.cc" class="">ndn-tree-cs2-tracers.cc</a></b>) in <i class="">/scratch</i>​ folder and run it like normal (--run ndn-tree-cs2-tracers). And if you want to have header/source files for some custom applications or something like that in your simulation, you can have your custom folder in /examples(if you have done --enable-examples) e.g.:<br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">/examples/JB-custom-folder<br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">and place the files into it, then #include them in you scenario file which should be placed in /examples folder. Likewise you can do the same with /scratch folder. I mean, you can have your custom directory<br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">/scratch/JB-custom-folder<br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">and put you custom files in it, then #include them in the scenario file. Also you can use scenario-template:<br class=""><a href="https://github.com/named-data-ndnSIM/scenario-template" target="_blank" class="">https://github.com/named-data-<wbr class="">ndnSIM/scenario-template</a><br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Just follow the instruction mentioned in the page.<br class=""><br class="">-----------------<span class=""><br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">​When I move up a couple directories and run ./wra --run=ndn-tree-cs2-tracers, I get an error saying that "<b class="">SetContentStore is not a member of ns3::ndn::StackHelper"</b>, but it's right there in your documentation.<br class=""></blockquote><div class=""> </div></span></div><div style="font-family:tahoma,sans-serif" class="gmail_default">No. Compiler is right :) SetContentStore is not a member of StackHelper. You can check here:<br class=""><a href="http://ndnsim.net/2.1/doxygen/classns3_1_1ndn_1_1StackHelper.html" target="_blank" class="">http://ndnsim.net/2.1/doxygen/<wbr class="">classns3_1_1ndn_1_<wbr class="">1StackHelper.html</a><span class=""><br class=""><br class=""><br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">​Is
 this still recommended, or can we freely use the NDF version now with 
no serious issues?  The previous e-mails seem to imply this.<br class=""></blockquote></span></div><br class=""><div style="font-family:tahoma,sans-serif" class="gmail_default">​As you probably know, ndnSIM uses a different(older) version of NFD. NFD's latest version is 0.5, while ndnSIM 2.1 is using 0.3.4 and ndnSIM 2.2 is going to use 0.4. Of course you can try compiling NFD's latest version with ndnSIM, ​but you will get many errors.<br class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">I hope my answer is not that complicated as it seems.<br class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Thanks,<br class=""></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Sabet<br class=""></div><br class=""><br class=""><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Mon, Oct 31, 2016 at 8:15 AM, John Baugh <span dir="ltr" class=""><<a href="mailto:jpbaugh@umich.edu" target="_blank" class="">jpbaugh@umich.edu</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class="">Greetings again, ndnSIM friends,<div class=""><br class=""></div><div class="">Sorry to bother you all again.  As I tackle this simulator and all the different files and such, I'm finding it somewhat overwhelming at times.  So I hope you can understand if I'm asking silly questions.</div><div class=""><br class=""></div><div class="">Here's my naive thought:</div><div class=""><br class=""></div><div class="">I should be able to just go into the ndnSIM/ns-3/src/ndnSIM/example<wbr class="">s directory, copy one of the files, say <b class="">ndn-tree-cs-tracers </b>to <b class="">ndn-tree-cs2-tracers</b> (note that 2 in the name).</div><div class=""><br class=""></div><div class="">Then, I did notice that if I move up a couple directories and run ./waf --run=ndn-tree-cs2-tracers it does seem to work.</div><div class=""><br class=""></div><div class="">Is this the directory we should always work out of?  Will Waf always find the file even if I make my own custom directory?</div><div class=""><br class=""></div><div class=""><b class="">Also, </b>it looks like most (all?) of the examples on the ndnSIM site<i class=""> use the Old Content store.</i>  <div style="font-family:tahoma,sans-serif;display:inline" class="gmail_default">​​</div>Is this still recommended, or can we freely use the NDF version now with no serious issues?  The previous e-mails seem to imply this.</div><div class=""><br class=""></div><div class="">-----------------------------</div><div class=""><br class=""></div><div class=""><b class="">I tried commenting out the SetOldContentStore </b>lines and added a call to SetContentStore:</div><div class=""><br class=""></div><div class=""><div class=""><b class="">ndnHelper.SetContentStore ("ns3::ndn::cs::Lru",</b></div><div class=""><b class="">                           "MaxSize", "10000");</b></div></div><div class=""><b class=""><br class=""></b></div><div class=""><div style="font-family:tahoma,sans-serif;display:inline" class="gmail_default">​​</div>When I move up a couple directories and run ./wra --run=ndn-tree-cs2-tracers, I get an error saying that "<b class="">SetContentStore is not a member of ns3::ndn::StackHelper"</b>, but it's right there in your documentation.</div><div class=""><br class=""></div><div class="">I'm very confused and just trying to get my feet wet with the actual code before I dive in.  </div><div class=""><br class=""></div><div class="">Thanks!</div><span class="m_-3925704085830288460gmail-m_-1327983550239988483gmail-HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">John</div></font></span></div></div></div></blockquote></div></div></div></blockquote></div></div><br class=""></div></blockquote></div><br class=""></div></body></html>