[ndnSIM] How to disable the CS cache?
alexander.afanasyev at ucla.edu
Wed Mar 6 20:36:32 PST 2013
I this case, I would recommend using ns3::ndn::cs::Freshness::* content store implementations. You can see details how freshness is handled in https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/custom-policies/freshness-policy.h
The currently implemented way treats Freshness=0s as an unset value, but you can easily modify this behavior.
On Mar 6, 2013, at 7:00 PM, Chengyu Fan <chengyu at cs.colostate.edu> wrote:
> On Wed, Mar 6, 2013 at 5:05 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
> Freshness would work only if you're using a CS version that honors content freshness (http://ndnsim.net/cs.html#content-stores-respecting-freshness-field-of-contentobjects)
> If you want completely disable caching (not per specific packet), then you can set
> ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "1");
> 1 is the minimum value that you can set currently. Would it be sufficient? If not, it is possible to implement a non-caching "content store". Let me know.
> For now, I can generate the required result without setting the content freshness.
> But I may need it someday. Could you please tell me which file implements the caching behavior?
> On Mar 6, 2013, at 3:54 PM, Chengyu Fan <chengyu at cs.colostate.edu> wrote:
>> I want to do a experiment with no CS cache. For example, set the freshness as 0, so the routers would not cache this content.
>> However, when I check the code, I found that setting the Freshness to 0 means unlimited freshness:
>> producerHelper.SetAttribute ("Freshness", TimeValue (Seconds (0))); // unlimited freshness
>> So is there a way to let routers not cache the content?
>> Another question: does anyone know how many Attributes we can set? And what kind of format? Can we add new attributes?
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM