[ndnSIM] set individual cache sizes

NDIKUMANA ANSELME anselme333 at gmail.com
Sun Apr 10 01:08:03 PDT 2016


Dear Qhsong,

Thank you for giving me the hint. You can use content store tracer for
getting details about Cache hits and cache misses as described
in  ndn-tree-cs-tracers.cpp example: http://ndnsim.net/2.0/metric.html

With Regards,

Anselme N.



On Sat, Apr 9, 2016 at 10:25 PM, qhsong <ndn at sqh.me> wrote:

> Hi,
>
> How to checks  CS entries?I find I can't checks CS entries via --vis
> tools?And how to check it?
>
> And to set difference content store size,maybe you can try this:
> http://ndnsim.net/2.1/cs.html
>
> qhsong
>
> 2016-04-09 10:52 GMT+08:00 NDIKUMANA ANSELME <anselme333 at gmail.com>:
>
>> Hi,
>>
>> I am trying to set individual cache sizes in some nodes based
>> on ndn-simple-with-different-sizes-content-store.cc example, and when i
>> checked CS entries in these nodes, there are no entries. Any hint on how
>> to fix this, will be appreciated.
>>
>> ndn::StackHelper ndnHelper;
>>  ndnHelper.SetOldContentStore("ns3::ndn::cs::Freshness::Lru");
>>   ndnHelper.InstallAll()
>>  //set individual cache sizes on nodes
>>   Config::Set ("/NodeList/9/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue(100000));
>>   Config::Set ("/NodeList/11/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue(100000));
>>   Config::Set ("/NodeList/12/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue(100000));
>>   Config::Set ("/NodeList/1/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue(10000));
>>   Config::Set ("/NodeList/3/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue(10000));
>>   Config::Set ("/NodeList/4/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue(10000));
>>   //Config::Set ("/NodeList/CRouter4/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue (10000));
>>   //Config::Set
>> ("/NodeList/node->GetId(CRouter4)/$ns3::ndn::ContentStore/MaxSize",
>> UintegerValue (10000));
>>
>>
>> With Regards,
>>
>> Anselme N.
>>
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://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/20160410/3ed34982/attachment.html>


More information about the ndnSIM mailing list