[ndnSIM] nonce value deletion in PIT entry

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Jun 10 11:06:59 PDT 2013


Hi huyao,

1) It is not possible right now, but you can easily implement method pit::Entry::RemoveSeenNonce in pit/ndn-pit-entry.h|cc.  The underlying data structure is a simple std::set.  (Is there a reason you want this functionality?)

2) You can try to use content store that respects freshness field in DATA packets (http://ndnsim.net/cs.html#content-stores-respecting-freshness-field-of-contentobjects) and then set up different freshness parameter (SetFreshness) in different DATA packets. If you set freshness to 1ns (if you set up 0, freshness policy https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/custom-policies/freshness-policy.h#L107 will assume that DATA packet should be cached for as long as possible), which will force this specific packet to be removed from cache almost immediately.

Alternatively, you can modify this policy (or better, create a new one) and treat freshness 0 as indication to disable caching.

---
Alex


On Jun 10, 2013, at 7:47 AM, yao hu <huyao0107 at gmail.com> wrote:

> Hi Alex,
> 
> I have two questions about implementation things in ndnsim?
> 
> 1) About nonce value deletion in PIT entry. I know, for one node, one PIT entry has a list of nonces, could I just delete a specific nonce from the list of nonces, rather than deleting the whole PIT entry?
> 
> 2) About on-path Data caching. Could I specify an Interest to fetch a Data from the content provider, and the Data will be not cached in intermediate nodes on the return path? This does not influence the Data in-network caching triggered by other Interests.
> 
> Thanks very much for your reply!
> 
> 
> Regards,
> huyao 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130610/a8f1810a/attachment.html>


More information about the ndnSIM mailing list