[ndnSIM] Doubts regarding NACK: Could not detect NACK
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Mon Sep 17 20:33:55 PDT 2018
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/ <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/20180917/e90d4a9c/attachment.html>
More information about the ndnSIM
mailing list