[ndnSIM] Running cs-tracer on two or more nodes and increasing the Cache size of individual node

Alex Afanasyev alexander.afanasyev at ucla.edu
Sat Nov 16 16:11:43 PST 2013


Hi Yowaraj!

On Nov 14, 2013, at 10:03 PM, Yowaraj Chhetri <yowarj at gmail.com> wrote:

> Thank you Sir for your previous answer regarding Title "error in running cs-tracer::install()"
> 
> Now it is working fine.
> 
> 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.
> 
> 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.

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:

NodeContainer nodesWithTracer;
nodesWithTracer.Add (<your-node1>);
nodesWithTracer.Add (<your-node2>);

...

ndn::CsTracer::Install (nodesWithTracer, ... );


> 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.

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:

ndn::StackHelper ndnHelper;


ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "10000");
ndnHelper.Install (node1);

ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "10");
ndnHelper.Install (node2);

ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "200");
ndnHelper.Install (node3);

...

The second option is to install the same cache type on all nodes and then configure cache sizes:

node1->GetObject<ndn::ContentStore>()->SetAttribute("MaxSize", IntegerValue(10000));
node2->GetObject<ndn::ContentStore>()->SetAttribute("MaxSize", IntegerValue(10));
node3->GetObject<ndn::ContentStore>()->SetAttribute("MaxSize", IntegerValue(200));

---
Alex

> How to achieve this, I tried but couldnt succeed.
> 
> With Regards,
> Yowaraj Chhetri

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


More information about the ndnSIM mailing list