<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Zhang,</div><div><br></div><div>It is a little bit confusing to me.  It doesn't make sense (and kind of impossible in ndnSIM) to create a new PIT entry for the same name prefix.  When you receive a similar Interest, you should just remember the incoming face inside the same PIT entry, but not to create a new one.</div><div><br></div><div>The question of whether to suppress the transmission of the interest further is a different one.  For that, you could modify ShouldSuppressIncomingInterest to always return false, removing function of "supporessing" similar Interest transmission.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><br><div><div>On Apr 27, 2014, at 7:59 PM, zhangxuebei <<a href="mailto:zhangxuebei1215@163.com">zhangxuebei1215@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial;"> Hi!<br>I use the ndnSIM to do my research about the influence of the suppress of PIT.<br>So I want to turn down the function of suppress,that is when a CCN node receive a similar interest from different face,I need the PIT creates a new pit entry.(Do you understand me?)<br>Now I think maybe I need to modify the function   OnInterest()  in <span class="label"><a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_forwarding_strategy.html" class="classns3_1_1ndn_1_1_forwarding_strategy.html">ForwardingStrategy</a>.cc . Is that right? but it is always fail, I really need your help!!!!<br>Because my time is limited, I beg your reply sincerely!!<br>Thank you sooooooo much!<br>Best regards!<br><br>Zhang<br><br>p.s : This is the code I modified,but it is failed. Other place is the same as the original,just this section of OnInterest() is modified.<br><br><br> void<br>ForwardingStrategy::OnInterest (Ptr<Face> inFace,<br>                                Ptr<Interest> interest)</span><span class="label"><br>{<br><br><br>   if (similarInterest && ShouldSuppressIncomingInterest (inFace, interest, pitEntry))<br>     {<br>       Ptr<pit::Entry> similarpitEntry = m_pit->Create (interest);<br>       if (similarpitEntry != 0)<br>         {<br>           DidCreatePitEntry (inFace, interest, similarpitEntry);<br><br>           similarpitEntry->AddIncoming(inFace);<br>           similarpitEntry->UpdateLifetime(interest->GetInterestLifetime());<br>           DidForwardSimilarInterest(inFace, interest,similarpitEntry );<br>         }<br>       else<br>         {<br>           FailedToCreatePitEntry (inFace, interest);<br>           return;<br>         }<br>       //pitEntry->AddIncoming (inFace/*, interest->GetInterestLifetime ()*/);<br>       // update PIT entry lifetime<br>       //pitEntry->UpdateLifetime (interest->GetInterestLifetime ());<br><br>       // Suppress this interest if we're still expecting data from some other face<br>       //NS_LOG_DEBUG ("Suppress interests");<br>       //m_dropInterests (interest, inFace);<br><br>       //DidSuppressSimilarInterest (inFace, interest, pitEntry);<br>       return;<br>     }<br><br> <br> }<br></span></div></blockquote></div><br></body></html>