[ndnSIM] Unable to flood interest to neighbours

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Mon Apr 9 14:59:05 PDT 2018


Hi,

please enable the nfd.Forwarder logging component as well as the logging component of the forwarder strategy that you are using (e.g., nfd::BestRouteStrategy2 for the best route strategy) and try to debug. 

If you are using the multi-cast strategy, this strategy forwards the Interest out of all the outgoing faces of the matching FIB entry. It does not do blind broadcast.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department
UCLA

> On Apr 9, 2018, at 9:17 AM, Mudasir Qazi <mudasirqazi00 at gmail.com> wrote:
> 
> Hi, Thank you for your response, its always helping and I appreciate your effort on this platform. 
> 
> I have tried the solution you advised. The following lines 
> 
> this->dispatchToStrategy(*pitEntry,
>             [&] (fw::Strategy& strategy) {
>                 strategy.afterReceiveInterest(inFace, interest, pitEntry);
>         }
>     );
> 
> of onContentStoreMiss method calls the callback afterReceiveInterest. The afterReceiveInterest callback takes it back to the start of forwarder.cpp file where following lines 
> 
> face.afterReceiveInterest.connect(
>                 [this, &face] (const Interest& interest) {
>                     this->startProcessInterest(face, interest);
>                 });
> 
> are get executed on the same node which has started all this before. It is not being forwarded to neighboring node. Please advise further what can I do to resolve this issue?
> 
> 
> On 7 April 2018 at 23:10, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu> wrote:
> Mudasir,
> 
> the nextHopFaceIdTag is supposed to be used for other reasons (not for generic Interest forwarding). Therefore, being a nullptr is expected in your case.
> 
> You will have to investigate what happens when the Interest is actually dispatched to the strategy and specifically to the afterReceiveInterest callback.
> 
> Thanks,
> 
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
> 
> > On Apr 7, 2018, at 6:34 AM, Mudasir Qazi <mudasirqazi00 at gmail.com> wrote:
> >
> > Hi,
> >
> > I'm unable to flood my interest from one node to another, let me explain it below:
> >
> > Following line in onContentStoreMiss method in Forwarder.cpp always returns nullptr making if (nextHopTag != nullptr) returns false at very next line. So the execution does not goes inside this if-block.
> >
> > shared_ptr<lp::NextHopFaceIdTag> nextHopTag = interest.getTag<lp::NextHopFaceIdTag>();
> >
> > This way, following statement inside the if-block
> >
> > this->onOutgoingInterest(pitEntry, *nextHopFace, interest);
> >
> > never executed and hence the Interest is not flooded to neighboring nodes. Why the nextHopTag is null in Interest? What is the solution of it? Am I missing something? Please help.
> >
> > P.S. I'm creating interest from other interest using following statement:
> > auto myInterest = std::make_shared<Interest>(interest.wireEncode());
> >
> >
> > Please help me solving this issue.
> >
> > --
> > Regards,
> > Mudasir Qazi
> 
> 
> 
> 
> -- 
> Regards,
> Mudasir Qazi



More information about the ndnSIM mailing list