[ndnSIM] enabling and disabling caching

John Baugh jpbaugh at umich.edu
Fri Jul 27 00:47:20 PDT 2018


With the new content store, you can set the cache size to 0 on specific
nodes.  That is equivalent to disabling caching.

Thanks

John P. Baugh, Ph.D.

On Fri, Jul 27, 2018, 3:44 AM Atif Rehman <atif_r at outlook.com> wrote:

> Hi Amulya!
>
> You can enable or disable cache on the different nodes by using "
> *ndn::SetOldContentStore*" method of StackHelper class. When you are
> installing NDN stack on a specific node and you want to disable the cache,
> pass *"**ns3::cs::Nocache**"* parameter to *SetOldContentStore *method.
> Following code will help you to understand better.
>
> // Install NDN stack with Nocache (disable) policy on node 1.
>   ndn::StackHelper ndnHelper;
>   ndnHelper.SetDefaultRoutes(true);
>   *ndnHelper.SetOldContentStore("ns3::ndn::cs::Nocache");*
>   ndnHelper.Install(nodes.Get(1));
>
> // Install NDN stack with default (Lru) cache policy on node 2.
>   ndn::StackHelper ndnHelper;
>   ndnHelper.SetDefaultRoutes(true);
>   ndnHelper.Install(nodes.Get(2));
>
> Following are available content store cache policies.
> ns3::ndn::cs::Lru
> ns3::ndn::cs::Lfu
> ns3::ndn::cs::Fifo
> ns3::ndn::cs::Random
> ns3::ndn::cs::Nocache
>
> *Regards *
>
> *Atif Ur Rehman* *(Ph.D. Student)*
>
> ------------------------------
> *From:* ndnSIM <ndnsim-bounces at lists.cs.ucla.edu> on behalf of
> ndnsim-request at lists.cs.ucla.edu <ndnsim-request at lists.cs.ucla.edu>
> *Sent:* Friday, July 27, 2018 12:00 AM
> *To:* ndnsim at lists.cs.ucla.edu
> *Subject:* ndnSIM Digest, Vol 68, Issue 20
>
> Send ndnSIM mailing list submissions to
>         ndnsim at lists.cs.ucla.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> or, via email, send a message with subject or body 'help' to
>         ndnsim-request at lists.cs.ucla.edu
>
> You can reach the person managing the list at
>         ndnsim-owner at lists.cs.ucla.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ndnSIM digest..."
>
>
> Today's Topics:
>
>    1. enabling and disabling caching (amulya amy)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 26 Jul 2018 17:48:32 +0530
> From: amulya amy <ammu.amulya12 at gmail.com>
> To: ndnsim <ndnsim at lists.cs.ucla.edu>
> Subject: [ndnSIM] enabling and disabling caching
> Message-ID:
>         <CALm1VbcSxFx2OSck=
> hxkQ5L5rzhNPZcgbRa5EBzP-Gi3tTDc3w at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
> can anybody say how to enable caching on some nodes and disable caching on
> other nodes simultaneously?? please help
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180726/f27a883c/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
> ------------------------------
>
> End of ndnSIM Digest, Vol 68, Issue 20
> **************************************
> _______________________________________________
> 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/20180727/2776a641/attachment-0001.html>


More information about the ndnSIM mailing list