<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Yowaraj!<div><br><div><div>On Nov 14, 2013, at 10:03 PM, Yowaraj Chhetri <<a href="mailto:yowarj@gmail.com">yowarj@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thank you Sir for your previous answer regarding Title "</span><span style="font-size:12.727272033691406px;font-family:'Times New Roman'">error in running cs-tracer::install()"</span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<font face="Times New Roman"><br></font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="Times New Roman">Now it is working fine.</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I was trying to run cs-tracer on more than two node at the same time. But could not do it. Can you help me to solve my problem. Thanks in advance.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Problem statement 1: I have 6 routers, but I want to run cs-tracer only on  r1, r2 and r3 at the same time to find collective cache hit/miss.</div></div></blockquote><div><div style="font-family: Menlo-Regular;"><br></div><div style="font-family: Menlo-Regular;">What is the problem?  Just install tracer on different nodes and point to a different trace file.  If you want to have one trace file, then do the following:</div><div style="font-family: Menlo-Regular;"><br></div><div style="font-family: Menlo-Regular;">NodeContainer nodesWithTracer;</div><div style="font-family: Menlo-Regular;">nodesWithTracer.Add (<your-node1>);</div><div style="font-family: Menlo-Regular;">nodesWithTracer.Add (<your-node2>);</div><div style="font-family: Menlo-Regular;"><br></div><div style="font-family: Menlo-Regular;">...</div><div style="font-family: Menlo-Regular;"><br></div><div style="font-family: Menlo-Regular;">ndn::CsTracer::Install (nodesWithTracer, ... );</div><div><br></div></div><div><br></div><blockquote type="cite"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Problem Statement 2: I want to increase the cache size of router r1, r2 and r3 respectively but rest node will have default size of 100. How to go about it.</div></div></blockquote><div><br></div><div>You have two options.  First, you can select cache type (i.e., which policy to use) and cache size before installing NDN stack on the node:</div><div><br></div><div><div>ndn::StackHelper ndnHelper;</div><div><br></div><div><br></div><div>ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "10000");</div><div>ndnHelper.Install (node1);</div><div><br></div><div>ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "10");</div><div>ndnHelper.Install (node2);</div><div><br></div><div>ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "200");</div><div>ndnHelper.Install (node3);</div><div><br></div><div>...</div><div><br></div></div><div>The second option is to install the same cache type on all nodes and then configure cache sizes:</div><div><br></div><div><div>node1->GetObject<ndn::ContentStore>()->SetAttribute("MaxSize", IntegerValue(10000));</div><div>node2->GetObject<ndn::ContentStore>()->SetAttribute("MaxSize", IntegerValue(10));</div><div>node3->GetObject<ndn::ContentStore>()->SetAttribute("MaxSize", IntegerValue(200));</div><div><br></div><div>---</div><div>Alex</div></div><br><blockquote type="cite"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">How to achieve this, I tried but couldnt succeed.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>With Regards,</div><div>Yowaraj Chhetri</div></div></div>
</blockquote></div><br></div></body></html>