[ndnSIM] Caching probability issue

G.Sánchez g.sanchez148 at gmail.com
Mon Jun 2 21:37:21 PDT 2014


Hi all,

Firstly, I'm quite new with ndnSim, so sorry if my questions may seem too
obvious.

I am trying to implement scenarios with caching probability, i.e. each node
has a probability X to cache the content or not. As far as I know, this is
done by using the following function inside the .cc scenario:



*ndnHelper.SetContentStore ("ns3::ndn::cs::Probability::Lru",
"CacheProbability", "1.0");*
before installing the ndnHelper on the nodes.

I have tried it with 2 scenarios, the tree scenario with cs tracers, and
the ndn simple scenario (adding the same cs tracer). Then I check the cs
tracer output (CacheHits/Misses), to see if the behaviour is as expected.

In the tree scenario, it works correctly, depending on the probability, we
have a number or another of CacheHits, but in the ndn simple scenario,
everything is missed (no CacheHits), even if probability is set to 1.0,
offering the same results no matter which probability is used. The rest of
the code has remained untouched.

Does the simple scenario have something special that the tree one doesn't
for this situation? Should I add something else in the code? Something
different? Is it a bug?

Thank you all for your time and help.

Guillermo Sánchez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140603/80b93154/attachment.html>


More information about the ndnSIM mailing list