<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; "><div>Hi Xee,</div><div><br></div><div>I'm not sure what do you mean by the producer side, since producers only satisfy interests, they don't deal with interest lifetime in any way...</div><div><br></div><div>As for the consumer side.  How are you expecting to know PIT sizes, and which PIT sizes are you thinking about?  On the consumer node (kind of possible, but requires communicating between app and ndn::L3Protocol)?  If you want something more, you will need to implement some additional protocol to exchange PIT sizes and communicate them back to the consumer, but I'm not sure how can that be implemented. Of course, in the simulator you can cheat in many ways and get hold of any node from any other node, but it still would require some deep hacking.</div><div><br></div><div>As for changing interest lifetime, there is a call GetInterestLifetime and SetInterestLifetime in ndn::Interest class. You can use them to get/set lifetime of a specific interest. </div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Apr 27, 2013, at 6:06 PM, "Xee" <1839750381@<a href="http://qq.com">qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Alex</div><div><br></div><div>Thanks for your email, I want to change the lifetime of Interest packets both at the consumer and producer side. I need to change the lifetime value for interests packet in PIT, based on number of PIT entries of the available space in PIT.</div><div><div><br></div><div>rgd,</div><div>-Xee</div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Alex Afanasyev"<<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>>;</div><div><b>Date: </b> Apr 28, 2013</div><div><b>To: </b> "Xee"<1839750381@<a href="http://qq.com">qq.com</a>>; <wbr></div><div><b>Cc: </b> "ndnsim"<<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>>; <wbr></div><div><b>Subject: </b> Re: [ndnSIM] Pending Interest Table</div></div><div><br></div>Hi Xee,<br><br>Can you explain in more detail what you want to achieve?  What do you mean by PIT value?<br><br>When you saying that you want to change lifetime of the interests, do you want to do that at the consumer side? or rewrite interest by the forwarding strategy? or just adjust time (NDN router is not really required to fully honor lifetime specified in the Interest) the interests are kept in PIT on a specific node?<br><br>---<br>Alex<br><br>On Apr 27, 2013, at 8:12 AM, "Xee" <1839750381@<a href="http://qq.com">qq.com</a>> wrote:<br><br>> Hi Alex<br>> <br>> I have need to change lifetime of interest packet based on PIT value, I have tried to the program code "ndn-simple-with-pit-count-stats" to process some PIT entries values. I am unable to process the PIT values from function to program main body, it may be because I am not strong in C++ language. I need your help me to do this.<br>> <br>> rgd<br>> -Xee<br>> _______________________________________________<br>> ndnSIM mailing list<br>> <a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><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></body></html>