[Nfd-dev] Interest Timeout

Navdeep Uniyal navdeep.uniyal at neclab.eu
Mon Sep 7 06:19:12 PDT 2015


Hi Alex,

Thank you for the reference. There was a small issue with my code( got clear with the example) I am able to trigger the event now. 
And here comes another problem. 

In my function which is called in afterReceiveInterest, using weak_ptr to PIT entry I am checking if the PIT entry is satisfied or not. The issue is, even after the it is satisfied, the PIT entry won't be deleted until straggler timer expires and due to this when my function is trying to send out the interest of the PIT entry over some other out face, the process hangs. Is there a way if you can please suggest me to get the information if the entry is satisfied or not regardless of the straggler timer.


Best Regards,
Navdeep Uniyal

-----Original Message-----
From: Alex Afanasyev [mailto:aa at cs.ucla.edu] 
Sent: Freitag, 4. September 2015 20:14
To: Navdeep Uniyal
Cc: nfd-dev at lists.cs.ucla.edu
Subject: Re: [Nfd-dev] Interest Timeout

The trivial example of how to use scheduler is shown here: http://named-data.net/doc/ndn-cxx/0.3.4/examples.html#consumer-that-uses-ndn-scheduler

If you show us your code that you're having issues along the explanation of what you want to achieve, we may point out what needs to be corrected.

---
Alex

> On Sep 4, 2015, at 5:16 AM, Navdeep Uniyal <navdeep.uniyal at neclab.eu> wrote:
> 
> Thank you Alex,
> 
> I have on more doubt regarding the scheduler. I am trying to schedule an event, certain interval after sending out interest message. The issue is, the event is getting triggered only once and not all the time the interest is sent. Could you please explain a bit about how the scheduler works in nfd.
> 
> 
> Best Regards,
> Navdeep Uniyal
> 
> 
> -----Original Message-----
> From: Alex Afanasyev [mailto:aa at cs.ucla.edu]
> Sent: Donnerstag, 3. September 2015 21:31
> To: Navdeep Uniyal
> Cc: nfd-dev at lists.cs.ucla.edu
> Subject: Re: [Nfd-dev] Interest Timeout
> 
> Hi Navdeep,
> 
> When PIT entry times out, there is no concept of a "face" on which PIT entry timed out.  PIT belongs to the forwarder as a whole.
> 
> I think, what you're looking for are the incoming or outgoing face records (pitEntry->getInRecords(), pitEntry->getOutRecords()).  These are the incoming and outgoing faces that were associated with to-be-expired PIT entry.
> 
> ---
> Alex
> 
>> On Sep 2, 2015, at 5:03 AM, Navdeep Uniyal <navdeep.uniyal at neclab.eu> wrote:
>> 
>> Hello all,
>> 
>> BeforeExpirePendingInterest is triggered when the PIT entry is not satisfied and is about to expire. But is it possible to get the faceId on which it got timed out? Is there existing functions or triggers which can serve such an information when the interest gets timed out on an interface.
>> 
>> 
>> Best Regards,
>> Navdeep Uniyal





More information about the Nfd-dev mailing list