[Nfd-dev] beforeExpirePendingInterest for forwarding strategy

Navdeep Uniyal navdeep.uniyal at neclab.eu
Thu Aug 20 07:26:48 PDT 2015


Hi Steve,

I cross checked both the areas. Seems to be pretty fine as you suggested.  Please suggest if there are other ways so this method is triggered. And does on every timeout this should be called or it depends on some other factors. I my case I have switched off the CS caching just to experiment.


Best Regards,
Navdeep Uniyal

-----Original Message-----
From: steven.dibenedetto at gmail.com [mailto:steven.dibenedetto at gmail.com] On Behalf Of Steve DiBenedetto
Sent: Donnerstag, 20. August 2015 15:53
To: Navdeep Uniyal
Cc: Junxiao Shi; Steve DiBenedetto; nfd-dev at lists.cs.ucla.edu
Subject: Re: [Nfd-dev] beforeExpirePendingInterest for forwarding strategy

Please make sure the header file's method prototype is:

virtual void

beforeExpirePendingInterest(shared_ptr<pit::Entry> pitEntry) DECL_OVERRIDE;


Also, (sorry, have to ask), did you enable TRACE logging for the specific strategy module/all modules in the nfd config?


On Thu, Aug 20, 2015 at 6:44 AM, Navdeep Uniyal <navdeep.uniyal at neclab.eu> wrote:
> Hi Junxiao,
>
>
>
> Below are the client and server configuration which I am using. As 
> none of the files held by server matches with interest, all requests 
> are getting timed out. While overriding the method, currently I am 
> just trying to check if it works, may be later I will include more code as per the requirement.
>
>
>
>
>
>
>
> Client conf:
>
>
>
> ##########
>
> TrafficPercentage=100
>
> Name=/ndn/nle/file
>
> ExpectedContent=AAAAAAAA
>
> ##########
>
>
>
>
>
> Server Conf:
>
>
>
> ##########
>
> Name=/ndn/nle/file1
>
> Content=AAAAAAAA
>
> ContentBytes=5000
>
> ##########
>
> Name=/ndn/nle/file2
>
> Content=AAAAAAAB
>
> ContentBytes=5000
>
> ##########
>
> Name=/ndn/nle/file3
>
> Content=AAAAAAAC
>
> ContentBytes=5000
>
> ##########
>
> Name=/ndn/nle/file6
>
> Content=AAAAAAAF
>
> ContentBytes=5000
>
> ##########
>
>
>
>
>
> Method:
>
>
>
> void
>
> WeightedLoadBalancerStrategy::beforeExpirePendingInterest(shared_ptr<p
> it::Entry>
> pitEntry)
>
>    {
>
>           NFD_LOG_TRACE("Entering
> beforeExpirePendingInterest"<<pitEntry->getName());
>
>    }
>
>
>
>
>
>
>
>
>
> Best Regards,
>
> Navdeep Uniyal
>
>
>
> From: Junxiao Shi [mailto:shijunxiao at email.arizona.edu]
> Sent: Donnerstag, 20. August 2015 14:36
> To: Navdeep Uniyal; Steve DiBenedetto
> Cc: nfd-dev at lists.cs.ucla.edu
> Subject: RE: [Nfd-dev] beforeExpirePendingInterest for forwarding 
> strategy
>
>
>
> Hi Navdeep
>
>
>
> beforeExpirePendingInterest should be triggered when PIT entry is 
> unsatisfied after InterestLifetime.
>
> If you find it’s not triggered, give more details of your setup 
> including the topology and the configuration files of traffic 
> generator server and client.
>
>
>
> Yours, Junxiao
>
>
>
>
> From: Navdeep Uniyal
> Sent: Thursday, August 20, 2015 05:15
> To: Steve DiBenedetto
> Cc: nfd-dev at lists.cs.ucla.edu
> Subject: Re: [Nfd-dev] beforeExpirePendingInterest for forwarding 
> strategy
>
>
>
>
>
> Hi Steve,
>
>
>
> Thank you for your reply. I have a doubt regarding the triggering of 
> this event. I am using Ndn Traffic Generator for testing my strategy. 
> I am overriding this method “beforeExpirePendingInterest” just to get 
> some log trace. But I am unable to see anything in the logs. As per my 
> understanding, for all the timed out interests this method should be 
> triggered. Please if you can suggest what could be the potential issue 
> for the method to be not logging anything for the timed out  interest messages.
>
>
>
>
>
> Best Regards,
>
> Navdeep Uniyal




More information about the Nfd-dev mailing list