NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::fw::PerOutFaceLimits< Parent > Class Template Reference

Strategy implementing per-outgoing face limits. More...

#include <per-out-face-limits.h>

Inheritance diagram for ns3::ndn::fw::PerOutFaceLimits< Parent >:
Collaboration diagram for ns3::ndn::fw::PerOutFaceLimits< Parent >:

Public Member Functions

 PerOutFaceLimits ()
 Default constructor.
 
virtual void WillEraseTimedOutPendingInterest (Ptr< pit::Entry > pitEntry)
 Event fired just before PIT entry is removed by timeout. More...
 
virtual void AddFace (Ptr< Face > face)
 Event fired every time face is added to NDN stack. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get TypeId of the class.
 
static std::string GetLogName ()
 Helper function to retrieve logging name for the forwarding strategy.
 

Protected Member Functions

virtual bool CanSendOutInterest (Ptr< Face > inFace, Ptr< Face > outFace, Ptr< const Interest > interest, Ptr< pit::Entry > pitEntry)
 Method to check whether Interest can be send out on the particular face or not. More...
 
virtual void WillSatisfyPendingInterest (Ptr< Face > inFace, Ptr< pit::Entry > pitEntry)
 Even fired just before Interest will be satisfied. More...
 

Static Protected Attributes

static LogComponent g_log = LogComponent (PerOutFaceLimits<Parent>::GetLogName ().c_str ())
 Logging variable.
 

Detailed Description

template<class Parent>
class ns3::ndn::fw::PerOutFaceLimits< Parent >

Strategy implementing per-outgoing face limits.

Definition at line 45 of file per-out-face-limits.h.

Member Function Documentation

template<class Parent>
virtual void ns3::ndn::fw::PerOutFaceLimits< Parent >::AddFace ( Ptr< Face face)
inlinevirtual
template<class Parent >
bool ns3::ndn::fw::PerOutFaceLimits< Parent >::CanSendOutInterest ( Ptr< Face inFace,
Ptr< Face outFace,
Ptr< const Interest interest,
Ptr< pit::Entry pitEntry 
)
protectedvirtual

Method to check whether Interest can be send out on the particular face or not.

In the base class, this method perfoms two checks:

  1. If inFace is equal to outFace (when equal, Interest forwarding is prohibited)
  2. Whether Interest should be suppressed (list of outgoing faces include outFace), considering (if enabled) retransmission logic
Parameters
inFaceincoming face of the Interest
outFaceproposed outgoing face of the Interest
interestInterest packet
pitEntryreference to PIT entry (reference to corresponding FIB entry inside)
See also
DetectRetransmittedInterest

Reimplemented in ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits< SmartFlooding > >, ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits< BestRoute > >, and ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits< Flooding > >.

Definition at line 134 of file per-out-face-limits.h.

template<class Parent >
void ns3::ndn::fw::PerOutFaceLimits< Parent >::WillEraseTimedOutPendingInterest ( Ptr< pit::Entry pitEntry)
virtual
template<class Parent >
void ns3::ndn::fw::PerOutFaceLimits< Parent >::WillSatisfyPendingInterest ( Ptr< Face inFace,
Ptr< pit::Entry pitEntry 
)
protectedvirtual

Even fired just before Interest will be satisfied.

Note that when Interest is satisfied from the cache, incoming face will be 0

Parameters
inFaceincoming face
pitEntryan existing PIT entry, corresponding to the duplicated Interest

Reimplemented in ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits< SmartFlooding > >, ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits< BestRoute > >, and ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits< Flooding > >.

Definition at line 175 of file per-out-face-limits.h.

References ns3::ndn::Limits::ReturnLimit().


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