[ndnSIM] WillSatisfyPendingInterest

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Sep 26 14:36:49 PDT 2013

Hi JackWee,

In the current implementation, WillSatisfyPendingInterest performs exactly two operations:

1. Updates RTT estimate for the FIB entry for the incoming interface
2. Performs logging of the fact that Interest is being satisfied.

Neither of these operations is strictly necessary.

The assert that you're getting is harmless and just indicating that the face that satisfied the Interest wasn't listed in FIB entry (so there is RTT estimate cannot be updated).  I have pushed an update that replaced the assert with an if statement, simply ignoring the fact.


On Sep 26, 2013, at 6:25 AM, JackWee <jackwee_yao at 163.com> wrote:

> Hi Alex
> We are trying to create a new forwarding strategy and notice that there is a function named WillSatisfyPendingInterest() used in OnData and OnInterest.
> In our forwarding strategy,if we use the function some error sentences appear as below:
> NS_ASSERT_MSG (record != m_faces.get<i_face> ().end (), "Update status can be performed only on existing faces of CcxnFibEntry");
> And if comment it out,no NS_ASSERT_MSG happen and the strategy run as we wish.
> we also look up the use of this function in http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_forwarding_strategy.html#a9ccbf12451582834604db78dbd6d1080 but do not get it.
> Could you tell us the use of this function more specific?
> And is it a necessary function in implement a forwarding strategy?
> Thanks a lot and looking forward for your reply.
>                                                                                                                                                                                                          sincerely
>                                                                                                                                                                                                          JackWee

More information about the ndnSIM mailing list