[ndnSIM] [EXT] SetOldContentStore

Junxiao Shi shijunxiao at arizona.edu
Fri Jun 30 10:21:03 PDT 2023


Hi Asim

NFD (and by extension ndnSIM 2.8 or later) does not have LFU cache policy.
Please choose among these supported options:

   - "nfd::cs::lru"
   - "nfd::cs::priority_fifo"

https://github.com/named-data-ndnSIM/ndnSIM/blob/90d50396654dabad54b6979f2dc8fa929ade544c/helper/ndn-stack-helper.cpp#L59-L62

Yours, Junxiao

On Fri, Jun 30, 2023 at 9:57 AM Asim ALHIMSYA <asim.alhimsya at gmail.com>
wrote:

> *External Email*
> Hi Junxiao,
> I executed the following code:
>
>   ndn::StackHelper ndnHelper;
>   ndnHelper.setCsSize(1000);
>   *ndnHelper.setPolicy ("nfd::cs::lfu");*
>   ndnHelper.InstallAll();
>
> but the following error occurred:
>
> Waf: Entering directory `/home/asim/ndnSIM/ns-3/build'
> Waf: Leaving directory `/home/asim/ndnSIM/ns-3/build'
> Build commands will be stored in build/compile_commands.json
> 'build' finished successfully (1.048s)
> *msg="Cache replacement policy nfd::cs::lfu not found",
> file=../src/ndnSIM/helper/ndn-stack-helper.cpp, line=168*
> *terminate called without an active exception*
> 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>").
> asim at asim-VirtualBox:~/ndnSIM/ns-3$
>
> How can I solve this problem so I can use LFU cache replacement policy?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20230630/a817b462/attachment.html>


More information about the ndnSIM mailing list