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

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

#include <simple-limits.h>

Inheritance diagram for ns3::ndn::fw::SimpleLimits:
Collaboration diagram for ns3::ndn::fw::SimpleLimits:

List of all members.

Public Member Functions

 SimpleLimits ()
 Default constructor.
virtual void WillEraseTimedOutPendingInterest (Ptr< pit::Entry > pitEntry)
 Event fired just before PIT entry is removed by timeout.
- Public Member Functions inherited from ns3::ndn::fw::BestRoute
 BestRoute ()
 Default constructor.
virtual bool DoPropagateInterest (Ptr< Face > incomingFace, Ptr< const InterestHeader > header, Ptr< const Packet > origPacket, Ptr< pit::Entry > pitEntry)
 Virtual method to perform Interest propagation according to the forwarding strategy logic.

Static Public Member Functions

static TypeId GetTypeId ()
 This method returns the TypeId associated to ns3::ndn::fw::SimpleLimits.

Protected Member Functions

virtual bool TrySendOutInterest (Ptr< Face > inFace, Ptr< Face > outFace, Ptr< const InterestHeader > header, Ptr< const Packet > origPacket, Ptr< pit::Entry > pitEntry)
 Event fired before actually sending out an interest.
virtual void WillSatisfyPendingInterest (Ptr< Face > inFace, Ptr< pit::Entry > pitEntry)

Detailed Description

Strategy implementing per-FIB entry limits.

Definition at line 36 of file simple-limits.h.


Member Function Documentation

static TypeId ns3::ndn::fw::SimpleLimits::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::ndn::fw::SimpleLimits.

No Attributes defined for this type.
Attributes defined in parent class ns3::ndn::fw::Nacks:

  • EnableNACKs: Enabling support of NACKs
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: construct write read

Attributes defined in parent class ns3::ndn::ForwardingStrategy:

  • CacheUnsolicitedData: Cache overheard data that have not been requested
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: construct write read
  • DetectRetransmissions: If non-duplicate interest is received on the same face more than once, it is considered a retransmission
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: construct write read

No TraceSources defined for this type.
TraceSources defined in parent class ns3::ndn::fw::Nacks:

  • OutNacks: OutNacks
  • InNacks: InNacks
  • DropNacks: DropNacks

TraceSources defined in parent class ns3::ndn::ForwardingStrategy:

  • OutInterests: OutInterests
  • InInterests: InInterests
  • DropInterests: DropInterests
  • OutData: OutData
  • InData: InData
  • DropData: DropData

Reimplemented from ns3::ndn::fw::BestRoute.

Definition at line 50 of file simple-limits.cc.

bool ns3::ndn::fw::SimpleLimits::TrySendOutInterest ( Ptr< Face inFace,
Ptr< Face outFace,
Ptr< const InterestHeader header,
Ptr< const Packet >  origPacket,
Ptr< pit::Entry pitEntry 
)
protectedvirtual

Event fired before actually sending out an interest.

If event returns false, then there is some kind of a problem (e.g., per-face limit reached)

Reimplemented from ns3::ndn::ForwardingStrategy.

Definition at line 77 of file simple-limits.cc.

References ns3::ndn::ForwardingStrategy::DidSendOutInterest().

void ns3::ndn::fw::SimpleLimits::WillEraseTimedOutPendingInterest ( Ptr< pit::Entry pitEntry)
virtual

Event fired just before PIT entry is removed by timeout.

Parameters:
pitEntryPIT entry to be removed

Reimplemented from ns3::ndn::ForwardingStrategy.

Definition at line 117 of file simple-limits.cc.


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