[ndnSIM] ndnsim some problems about caching

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Nov 14 20:57:16 PST 2013

Hi Julia,

`cached' variable is set to true whenever the item was successfully cached by the ContentStore.  For all default caching policies, this value is always be true if the Data packet was requested (i.e., there is an outstanding PIT entry).  But, you make design your own caching policy that may reject to cache items.

For the second question.  If suspect that you have installed just one consumer application. In this case, this application is requesting unique pieces of data within the configured prefix (unique sequence numbers: /prefix/0, /prefix/1, ...) and you don't see any effects of caching.


On Nov 14, 2013, at 5:30 PM, <zhaojiayan90 at sina.com> <zhaojiayan90 at sina.com> wrote:

> Hi~
> I'm a student new to learn ndnsim.Nowadays,I'm doing some reaserch about ndn's caching algorithm,but I met some problems when I do some experiments.
> The first one is that I find there is a bool variable named 'cached' occured in ndnSIM/model/fw/ndn-fowarding-strategy.cc,and I want to know is the variable control cached or not?  
> The next one is that there is no different route choices between the twice request from the same node. As my understanding, the first request's response will let all the nodes in route cached data, then the request node will has a near node which cached data. When the same request be sent again, the best routing isn't the near node? But I find wether two oi more times,the same routing was chose.Could you tell me why?
> Thank you very much~
> Julia Zhao

More information about the ndnSIM mailing list