[ndnSIM] How to use ndnSIM to simulate a cache policy?

Alex Afanasyev aa at CS.UCLA.EDU
Wed Apr 13 19:09:50 PDT 2016

Unfortunately, we don't have extensive documentation about it, only examples.

The example repository you're looking is indeed outdated, but the example can still be applied in the latest version of ndnSIM (may be with some modifications).

I would recommend you looking for examples in the latest ndnSIM codebase:
- https://github.com/named-data-ndnSIM/ndnSIM/tree/master/utils/trie <https://github.com/named-data-ndnSIM/ndnSIM/tree/master/utils/trie>
- https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs/custom-policies <https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs/custom-policies>
- https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.hpp <https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.hpp> and
- https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.cpp <https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.cpp>

You can also check out a slide deck (starting slide 34) that highlights steps to write custom cache policy: http://lasr.cs.ucla.edu/afanasyev/data/files/Afanasyev/07-ndnSIM-demo-Alex.pptx


> On Apr 2, 2016, at 4:07 AM, ndn ndn <ndn at sqh.me> wrote:
> Hello,
> Recently, I want to use ndnSIM to simulate a ndn cache policy, but I only find some information on
>  https://github.com/cawka/ndnSIM-examples/tree/master/extensions/custom-cs <https://github.com/cawka/ndnSIM-examples/tree/master/extensions/custom-cs>, it is a three year ago.
> http://ndnsim.net/2.1/cs.html <http://ndnsim.net/2.1/cs.html> it didn't mention how to do it.
> Can I use it? And also if I need implement a cache policy, How to write a class to do this?
> Can you give me some information on this.
> Thanks for your help.
> qhsong
> _______________________________________________
> 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/20160413/86d18c46/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160413/86d18c46/attachment.bin>

More information about the ndnSIM mailing list