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::PerFibLimits< Parent > Class Template Reference

Strategy implementing per-FIB entry limits. More...

#include <per-fib-limits.h>

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

Public Member Functions

 PerFibLimits ()
 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...
 
virtual void DidAddFibEntry (Ptr< fib::Entry > fibEntry)
 Event fired every time a FIB entry is added to FIB. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 
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 (PerFibLimits<Parent>::GetLogName ().c_str ())
 Logging variable.
 

Detailed Description

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

Strategy implementing per-FIB entry limits.

Definition at line 45 of file per-fib-limits.h.

Member Function Documentation

template<class Parent>
virtual void ns3::ndn::fw::PerFibLimits< Parent >::AddFace ( Ptr< Face face)
inlinevirtual

Event fired every time face is added to NDN stack.

Parameters
faceface to be removed

Definition at line 73 of file per-fib-limits.h.

template<class Parent >
bool ns3::ndn::fw::PerFibLimits< 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

Definition at line 141 of file per-fib-limits.h.

template<class Parent>
virtual void ns3::ndn::fw::PerFibLimits< Parent >::DidAddFibEntry ( Ptr< fib::Entry fibEntry)
inlinevirtual

Event fired every time a FIB entry is added to FIB.

Parameters
fibEntryFIB entry that was added

Definition at line 86 of file per-fib-limits.h.

template<class Parent >
void ns3::ndn::fw::PerFibLimits< Parent >::WillEraseTimedOutPendingInterest ( Ptr< pit::Entry pitEntry)
virtual

Event fired just before PIT entry is removed by timeout.

Parameters
pitEntryPIT entry to be removed

Definition at line 165 of file per-fib-limits.h.

template<class Parent >
void ns3::ndn::fw::PerFibLimits< 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

Definition at line 185 of file per-fib-limits.h.


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