[ndnSIM] [EXT] SetOldContentStore

Asim ALHIMSYA asim.alhimsya at gmail.com
Fri Jun 30 06:56:18 PDT 2023


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?

On Thu, Jun 29, 2023 at 7:57 PM Asim ALHIMSYA <asim.alhimsya at gmail.com>
wrote:

> Actually, I didn't find LFU in NFD ContentStore. There is only LRU and
> Priority_Fifo as cache replacement policy in the following directory:
> *ndnSIM/ns-3/src/ndnSIM/NFD/daemon/table.*
> How can I use LFU, pure FIFO, and Random, please?
>
> On Thu, Jun 29, 2023 at 6:46 PM Junxiao Shi <shijunxiao at arizona.edu>
> wrote:
>
>> Hi Asim
>>
>> SetOldContentStore feature is removed since ndnSIM 2.8.
>> Use the NFD ContentStore instead.
>>
>> Yours, Junxiao
>>
>>
>> On Thu, Jun 29, 2023, 11:42 Asim ALHIMSYA via ndnSIM <
>> ndnsim at lists.cs.ucla.edu> wrote:
>>
>>> *External Email*
>>> Dear Colleagues,
>>> When I run the following line of code:
>>> ndnHelper.SetOldContentStore("ns3::ndn::cs::Lfu");
>>>
>>> I get the following error message:
>>>
>>> Waf: Entering directory `/home/asim/ndnSIM/ns-3/build'
>>> [2826/3276] Compiling src/ndnSIM/examples/ndn-tree-tracers.cpp
>>> [3234/3276] Linking
>>> build/src/ndnSIM/examples/ns3-dev-ndn-tree-tracers-debug
>>> Waf: Leaving directory `/home/asim/ndnSIM/ns-3/build'
>>> Build commands will be stored in build/compile_commands.json
>>> 'build' finished successfully (9.395s)
>>> *assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
>>> ns3::ndn::cs::Lfu not found", file=../src/core/model/type-id.cc,
>>> line=828terminate 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>").
>>>
>>> How can I solve this problem?
>>> Best regards
>>>
>>> _______________________________________________
>>> ndnSIM mailing list
>>> ndnSIM at lists.cs.ucla.edu
>>> https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20230630/e6cd9bc3/attachment.html>


More information about the ndnSIM mailing list