<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Amulya!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You can enable or disable cache on the different nodes by using "<b>ndn::SetOldContentStore</b>" method of StackHelper class. When you are installing NDN stack on a specific node and you want to disable the cache, pass
<b>"</b><b style=" background-color: rgb(255, 255, 255)">ns3::cs::Nocache</b><b>"</b> parameter to <b style=" background-color: rgb(255, 255, 255)">SetOldContentStore
</b><span style=" background-color: rgb(255, 255, 255)">method. Following code will help you to understand better. </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255)"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255)"><span>// Install NDN stack with Nocache (disable) policy on node 1.<br>
</span>
<div>  ndn::StackHelper ndnHelper;<br>
</div>
<div>  ndnHelper.SetDefaultRoutes(true);<br>
</div>
<div>  <b>ndnHelper.SetOldContentStore("ns3::ndn::cs::Nocache");</b><br>
</div>
<span>  ndnHelper.Install(nodes.Get(1));</span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255)"><span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255)"><span><span style=" margin: 0px">// Install NDN stack with default (Lru) cache policy on node 2.<br>
</span>
<div style=" margin: 0px">  ndn::StackHelper ndnHelper;<br>
</div>
<div style=" margin: 0px">  ndnHelper.SetDefaultRoutes(true);</div>
<span style=" margin: 0px">  ndnHelper.Install(nodes.Get(2));</span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255)"><span><span style=" margin: 0px"><br>
</span></span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255)"><span><span style=" margin: 0px">Following are available content store cache policies.</span></span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255); display: inline !important">ns3::ndn::cs::Lru</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important">ns3::ndn::cs::Lfu</span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important">ns3::ndn::cs::Fifo</span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important">ns3::ndn::cs::Random</span><br>
</span></span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important"><span style=" background-color: rgb(255, 255, 255); display: inline !important">ns3::ndn::cs::Nocache</span><br>
</span></span></span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">
<div><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Regards </span></b></span></div>
<div id="geom_inter_1528795240697_70_17"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</span></b></span></div>
<b style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"></b><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Atif
 Ur Rehman</span></b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"> </span></span><span style="font-style:normal; font-weight:400; font-size:12pt; line-height:21.3px; font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont; color:rgb(0,0,0)"><b><span style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">(Ph.D.
 Student)</span></b></span><br style="color:rgb(0,0,0); font-family:Verdana; font-size:small; line-height:21.3px">
<div id="geom_inter_1528795240701_98_20"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><span style="font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont"><b> </b></span></span></div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ndnSIM <ndnsim-bounces@lists.cs.ucla.edu> on behalf of ndnsim-request@lists.cs.ucla.edu <ndnsim-request@lists.cs.ucla.edu><br>
<b>Sent:</b> Friday, July 27, 2018 12:00 AM<br>
<b>To:</b> ndnsim@lists.cs.ucla.edu<br>
<b>Subject:</b> ndnSIM Digest, Vol 68, Issue 20</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send ndnSIM mailing list submissions to<br>
        ndnsim@lists.cs.ucla.edu<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
or, via email, send a message with subject or body 'help' to<br>
        ndnsim-request@lists.cs.ucla.edu<br>
<br>
You can reach the person managing the list at<br>
        ndnsim-owner@lists.cs.ucla.edu<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ndnSIM digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. enabling and disabling caching (amulya amy)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 26 Jul 2018 17:48:32 +0530<br>
From: amulya amy <ammu.amulya12@gmail.com><br>
To: ndnsim <ndnsim@lists.cs.ucla.edu><br>
Subject: [ndnSIM] enabling and disabling caching<br>
Message-ID:<br>
        <CALm1VbcSxFx2OSck=hxkQ5L5rzhNPZcgbRa5EBzP-Gi3tTDc3w@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,<br>
can anybody say how to enable caching on some nodes and disable caching on<br>
other nodes simultaneously?? please help<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180726/f27a883c/attachment-0001.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180726/f27a883c/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
ndnSIM@lists.cs.ucla.edu<br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ndnSIM Digest, Vol 68, Issue 20<br>
**************************************<br>
</div>
</span></font></div>
</body>
</html>