[ndnSIM] ndn cache replace policy
gc199211 at mail.ustc.edu.cn
Sun Dec 25 05:27:52 PST 2016
Spyros and John,Thank you for your sharing and suggestion .It is quite helpful for me,as I have spent much time to study ns3::ndn::ContentStore .
If I want to refresh all the CS table every 1 second, Can you give me some advice ? It seems that the NDNSim api document has no related content. Should I study the NS-3 source code.Thank you very much!
发件人：John Baugh <jpbaugh at umich.edu>
主题：Re: [ndnSIM] ndn cache replace policy
收件人："Spyridon (Spyros) Mastorakis"<mastorakis at cs.ucla.edu>
抄送："gc199211"<gc199211 at mail.ustc.edu.cn>,"ndnsim"<ndnsim at lists.cs.ucla.edu>
By no means do I claim to be an expert in this simulator (yet!), but I have been taking and trying to organize notes about using it.
Please see page 9 in the attached PDF. I hope to eventually more fully organize this document after adding a significant amount more, adding a table of contents, etc.
But hopefully this helps some people even in its current, very unedited and minimal state.
On Fri, Dec 23, 2016 at 2:02 AM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu> wrote:
personally, I feel it would be easier for you to use the CS of NFD.
You will have to create your own class that will derive from the Policy class of NFD.
Hope that this helps.
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department
On Dec 22, 2016, at 5:20 PM, gc199211 <gc199211 at mail.ustc.edu.cn> wrote:
I am trying to realize a cache replacement policy on ndnSIM .The new policy is based on lfu policy. According to the api document I found that
1) The ns3::ndn::ContentStore has realized lfu policy , but the code is quite complex,including trie.hpp、tire-with-policy.hpp、lfu-policy.hpp and so on
2) The nfd::cs::Cs hasn't realized lfu policy,but the code seems easier.
So which kind of contentstore is easier to realize my policy, ns3::ndn::ContentStore or nfd::cs::Cs ?And how to realize a cache replacement policy,Think you very much!
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM