NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::fw::RetxSuppression Class Referenceabstract

helper for consumer retransmission suppression More...

#include <retx-suppression.hpp>

Inheritance diagram for nfd::fw::RetxSuppression:
Collaboration diagram for nfd::fw::RetxSuppression:

Public Types

enum  Result { NEW, FORWARD, SUPPRESS }
 

Public Member Functions

virtual Result decide (const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const =0
 determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppressed More...
 

Protected Member Functions

time::steady_clock::TimePoint getLastOutgoing (const pit::Entry &pitEntry) const
 

Detailed Description

helper for consumer retransmission suppression

Definition at line 36 of file retx-suppression.hpp.

Member Enumeration Documentation

Enumerator
NEW 

Interest is new (not a retransmission)

FORWARD 

Interest is retransmission and should be forwarded.

SUPPRESS 

Interest is retransmission and should be suppressed.

Definition at line 39 of file retx-suppression.hpp.

Member Function Documentation

virtual Result nfd::fw::RetxSuppression::decide ( const Face inFace,
const Interest interest,
pit::Entry pitEntry 
) const
pure virtual

determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppressed

Implemented in nfd::fw::RetxSuppressionExponential, and nfd::fw::RetxSuppressionFixed.

time::steady_clock::TimePoint nfd::fw::RetxSuppression::getLastOutgoing ( const pit::Entry pitEntry) const
protected
Returns
last out-record time
Precondition
pitEntry has one or more unexpired out-records

Definition at line 32 of file retx-suppression.cpp.

References nfd::pit::FaceRecord::getLastRenewed(), and nfd::pit::Entry::getOutRecords().

Referenced by nfd::fw::RetxSuppressionFixed::decide(), and nfd::fw::RetxSuppressionExponential::decide().


The documentation for this class was generated from the following files: