<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi huyao,<div><br></div><div>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.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><br><div><div>On Jun 12, 2013, at 8:14 AM, yao hu <<a href="mailto:huyao0107@gmail.com">huyao0107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div style="">Thanks for your reply. </div><div style=""><br></div><div style="">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. </div>
<div style=""><br></div><div style="">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?</div><div style=""><br></div><div style="">
Regards,</div><div style="">huyao</div><div style=""><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/11 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi huyao,<div><br></div><div>1) It is not possible right now, but you can easily implement method <b>pit::Entry::RemoveSeenNonce</b> in <b>pit/ndn-pit-entry.h|cc</b>.  The underlying data structure is a simple std::set.  (Is there a reason you want this functionality?)</div>
<div><br></div><div>2) You can try to use content store that respects freshness field in DATA packets (<a href="http://ndnsim.net/cs.html#content-stores-respecting-freshness-field-of-contentobjects" target="_blank">http://ndnsim.net/cs.html#content-stores-respecting-freshness-field-of-contentobjects</a>) 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 <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/custom-policies/freshness-policy.h#L107" target="_blank">https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/custom-policies/freshness-policy.h#L107</a> 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.</div>
<div><br></div><div>Alternatively, you can modify this policy (or better, create a new one) and treat freshness 0 as indication to disable caching.</div><div><br></div><div>---</div><div>Alex</div><div><div class="h5"><div>
<br></div><div><br><div><div>On Jun 10, 2013, at 7:47 AM, yao hu <<a href="mailto:huyao0107@gmail.com" target="_blank">huyao0107@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br>
</div><div>I have two questions about implementation things in ndnsim?</div><div><br></div><div>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?</div>

<div><br></div><div>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.</div>

<div><br></div><div>Thanks very much for your reply!</div><div><br></div><div><br></div><div>Regards,</div><div>huyao </div></div></blockquote></div></div></div></div></div></blockquote></div><br></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>