[ndnSIM] caching

Alex Afanasyev alexander.afanasyev at ucla.edu
Tue Jun 4 10:13:48 PDT 2013

Thanks Saeid!  

Yes, if it is acceptable in your simulations, you could simply set MaxSize to 1, which will effectively disable caching.  However, I decided to make a trivial implementation of content store that does not incur additional overhead if caching really needs to be disabled.  If you get the latest update from github, you can start using ns3::ndn::cs::Nocache content store, which basically does nothing.  For an example usage, you can refer to examples/ndn-simple-with-cs-lfu.cc.


On Jun 4, 2013, at 3:21 AM, Saeid Montazeri <saeid.montazeri at gmail.com> wrote:

> Dear Alex,
> You can set the content store size to 1. If the number of total packets in your network is very large compare to the number of nodes with cache size equal to 1, the effect of cache size equals 1 is negligible and it is similar to CS with size zero. CS size equals to 0 was interpreted as unlimited cache size as far as I know. 
> But if you need to disable CS in total, you should write a new cache policy which disables the cache. You can see how the LRU, FIFO, ... policies have been implemented and follows the implementation style.
> Best Regards,
> Saeid
> On Tue, Jun 4, 2013 at 5:38 PM, Axel Pinto <pinto2304 at gmail.com> wrote:
> Hi,
> I want to test the different policies of the caching and for that I want to disable the caching from all the routers except one. I do not find how to do this. Can you help me, please ?
> Best Ragrds.
> Axel Pinto.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130604/7fdc2a4c/attachment.html>

More information about the ndnSIM mailing list