[ndnSIM] Doubts regarding NACK: Could not detect NACK

madhurima buragohain madhurimajya at gmail.com
Thu Sep 20 21:06:35 PDT 2018


Thank you. I am able to detect the NACK.

On Tue, Sep 18, 2018 at 9:03 AM Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi,
>
> most probably the NACK is not sent or received.
>
> Enable the nfd.Forwarder logging component to see what exactly is going on.
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On Sep 17, 2018, at 7:55 PM, madhurima buragohain <madhurimajya at gmail.com>
> wrote:
>
> I want to send a NACK to the downstream when the PIT approaches it limit
>
> void
> Forwarder::onIncomingInterest(Face& inFace, const Interest& interest)
> {
> .............
> if (m_pit.size()< 20)
> {
> lp::Nack nack(interest);
> nack.setReason(lp::NackReason::X );
> inFace.sendNack(nack);
> }
> ............
> }
>
> But when I want to print a statement in the below function:
> void
> Forwarder::onIncomingNack(Face& inFace, const lp::Nack& nack)
> {
>
>     std::cout <<"\nNACK is received\n";
> ..................
>
> }
>
> The statement is not printed.
> I could not figure out the reason. Could anyone please help me?
>
> PS: I have modified the nack-header.cpp file for introducing new NACK X.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180921/0afa427c/attachment.html>


More information about the ndnSIM mailing list