[ndnSIM] Cache module

Spyridon (Spyros) Mastorakis spiros.mastorakis at gmail.com
Wed Apr 29 21:02:49 PDT 2015


Hello,

I am not sure that I fully understand your question. Could you please be more specific? 

You are not supposed to access any of the CS related classes from the simulation scenario. The simulation scenario should simply define the desired parameters of the simulation itself. You may customize the CS behavior based on your custom policies and CS implementation:

http://ndnsim.net/2.0/cs.html#old-content-store-implementations

Moreover, you can use the contest store tracer to monitor the cache misses/hits:

http://ndnsim.net/2.0/metric.html#content-store-trace-helper

To deploy your own custom policies, your code needs to inherit the base class of the ContentStore or ContentStore implementation and to correctly define the TypeId of each implementation:

https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/content-store-with-freshness.hpp#L87
https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/content-store-with-freshness.hpp#L39-L40

Hope that this helps.

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




> On Apr 24, 2015, at 11:01 PM, Ibrahim ABDULLAHI <ibrahim at internetworks.my> wrote:
> 
> Hi,
> I am trying to get the cache module or the class that handles the caching in the typical examples in the ndnSim. I have ran all the examples in the example directory.  
> Please where are the results of the ran simulations? 
> How can I add my cache deployment strategies? 
> Placement and eviction policies.
> 
> Thank you.
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim





More information about the ndnSIM mailing list