[ndnSIM] nonce value deletion in PIT entry

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Jun 12 20:04:04 PDT 2013


Hi huyao,

If Interests are getting to your producer app, then you can easily generate different types of data (with different freshness) as a response to different "kind" of Interests.  Though, you would need to make modifications, or write a different one, producer app for that.

---
Alex


On Jun 12, 2013, at 8:14 AM, yao hu <huyao0107 at gmail.com> wrote:

> Hi Alex,
> 
> Thanks for your reply. 
> 
> My thought is that when an intersecting node receives a duplicate Interest (with the same nonce), it returns a kind of Interest Nack message to its downstream node which will delete the nonce value from the PIT entry, while it will not influence other pending Interest (with different Nonce) information. 
> 
> As for the fressness field in Data packets, could I specify a special value for responding just one kind of Interest, but not all Data packets in the simulation?
> 
> Regards,
> huyao
> 
> 
> 
> 2013/6/11 Alex Afanasyev <alexander.afanasyev at ucla.edu>
> 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 
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

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


More information about the ndnSIM mailing list