[ndnSIM] ndn cache replace policy

gc199211 gc199211 at mail.ustc.edu.cn
Thu Mar 23 22:35:57 PDT 2017


Dear John,Spyros:
   《ndnSIM-Things I have learned》 is quite helpful for me.Thank you for your help.But I still have some problems. In order to keep  topology node information along the interest forwarding path ,I need to get node id in  NFD/daemon/fw/forward.cpp. However,I haven't found the API yet. Based on 《ndnSIM-Things I have learned》 ,we can get the forward instance by node id  in jpd-test.cpp:
   

      Can I get the node id by forward instance in the opposite way? How can I get node id in Forward::onOutgoingInterest(...) ?Thank you very much!

2017-03-24 

gc199211 



发件人:"Spyridon (Spyros) Mastorakis" <mastorakis at cs.ucla.edu>
发送时间:2016-12-23 16:37
主题:Re: [ndnSIM] ndn cache replace policy
收件人:"John Baugh"<jpbaugh at umich.edu>
抄送:"gc199211"<gc199211 at mail.ustc.edu.cn>,"ndnsim"<ndnsim at lists.cs.ucla.edu>

John,


thanks for sharing that. Looks quite helpful.


Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department
UCLA


On Dec 23, 2016, at 9:27 AM, John Baugh <jpbaugh at umich.edu> wrote:


Greetings,



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 PDF on my Google Drive:


https://drive.google.com/open?id=0By9ufeKqmJYYTnZVYnBlNktvMHc



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.


Thanks,


John






On Fri, Dec 23, 2016 at 2:23 AM, John Baugh <jpbaugh at umich.edu> wrote:

Greetings,


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.


Thanks,


John


On Fri, Dec 23, 2016 at 2:02 AM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu> wrote:

Hi,


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
UCLA




On Dec 22, 2016, at 5:20 PM, gc199211 <gc199211 at mail.ustc.edu.cn> wrote:



Hello :
  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!
                                       
2016-12-22


gc199211






__________ Information from ESET NOD32 Antivirus, version of virus signature database 14571 (20161208) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170324/f8463e9e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Clip(03-24-13-20-42).png
Type: image/png
Size: 9681 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170324/f8463e9e/attachment-0001.png>


More information about the ndnSIM mailing list