<div dir="ltr"><div>Hi Asim</div><div><br></div><div>NFD (and by extension ndnSIM 2.8 or later) does not have LFU cache policy.</div><div>Please choose among these supported options:</div><div><ul><li>"nfd::cs::lru"</li><li>"nfd::cs::priority_fifo"</li></ul></div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/90d50396654dabad54b6979f2dc8fa929ade544c/helper/ndn-stack-helper.cpp#L59-L62">https://github.com/named-data-ndnSIM/ndnSIM/blob/90d50396654dabad54b6979f2dc8fa929ade544c/helper/ndn-stack-helper.cpp#L59-L62</a><br></div><div><br></div><div>Yours, Junxiao</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 30, 2023 at 9:57 AM Asim ALHIMSYA <<a href="mailto:asim.alhimsya@gmail.com">asim.alhimsya@gmail.com</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">Hi Junxiao,<div>I executed the following code:<br></div><div><br></div><div> <font face="tahoma, sans-serif"> ndn::StackHelper ndnHelper;<br>  ndnHelper.setCsSize(1000);<br>  <b>ndnHelper.setPolicy ("nfd::cs::lfu");</b><br>  ndnHelper.InstallAll();</font><br></div><div><font face="tahoma, sans-serif"><br></font></div><div>but the following error occurred:<font face="tahoma, sans-serif"><br></font></div><div><br></div><div><div style="text-align:left"><span style="color:rgb(56,118,29)">Waf: Entering directory `/home/asim/ndnSIM/ns-3/build'</span></div><font color="#38761d"><div style="text-align:left">Waf: Leaving directory `/home/asim/ndnSIM/ns-3/build'</div><div style="text-align:left">Build commands will be stored in build/compile_commands.json</div><div style="text-align:left">'build' finished successfully (1.048s)</div></font><font color="#000000"><div style="text-align:left"><b>msg="Cache replacement policy nfd::cs::lfu not found", file=../src/ndnSIM/helper/ndn-stack-helper.cpp, line=168</b></div><b><div style="text-align:left"><b>terminate called without an active exception</b></div></b></font><font color="#ff0000"><div style="text-align:left">Command ['/home/asim/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-tree-tracers-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div></font><div style="text-align:left">asim@asim-VirtualBox:~/ndnSIM/ns-3$ </div></div><div><br></div><div>How can I solve this problem so I can use LFU cache replacement policy?</div></div>
</blockquote></div></div>