[Nfd-dev] beforeExpirePendingInterest for forwarding strategy

Steve DiBenedetto dibenede at cs.colostate.edu
Thu Aug 20 06:53:17 PDT 2015


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<pit::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