NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::fw::asf::FaceInfo Class Reference

Strategy information for each face in a namespace. More...

#include <asf-measurements.hpp>

Public Member Functions

 FaceInfo (shared_ptr< const ndn::util::RttEstimator::Options > opts)
bool isTimeoutScheduled () const
time::nanoseconds scheduleTimeout (const Name &interestName, scheduler::EventCallback cb)
void cancelTimeout (const Name &prefix)
void recordRtt (time::nanoseconds rtt)
void recordTimeout (const Name &interestName)
bool hasTimeout () const
time::nanoseconds getLastRtt () const
time::nanoseconds getSrtt () const
size_t getNTimeouts () const
void setNTimeouts (size_t nTimeouts)

Static Public Attributes

static const time::nanoseconds RTT_NO_MEASUREMENT {-1}
static const time::nanoseconds RTT_TIMEOUT {-2}


class NamespaceInfo

Detailed Description

Strategy information for each face in a namespace.

Definition at line 40 of file asf-measurements.hpp.

Constructor & Destructor Documentation

◆ FaceInfo()

nfd::fw::asf::FaceInfo::FaceInfo ( shared_ptr< const ndn::util::RttEstimator::Options opts)

Definition at line 44 of file asf-measurements.hpp.

Member Function Documentation

◆ isTimeoutScheduled()

bool nfd::fw::asf::FaceInfo::isTimeoutScheduled ( ) const

Definition at line 50 of file asf-measurements.hpp.

References cancelTimeout(), and scheduleTimeout().

Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack().

◆ scheduleTimeout()

◆ cancelTimeout()

void nfd::fw::asf::FaceInfo::cancelTimeout ( const Name prefix)

◆ recordRtt()

void nfd::fw::asf::FaceInfo::recordRtt ( time::nanoseconds  rtt)

◆ recordTimeout()

void nfd::fw::asf::FaceInfo::recordTimeout ( const Name interestName)

Definition at line 69 of file asf-measurements.hpp.

References cancelTimeout(), and RTT_TIMEOUT.

◆ hasTimeout()

bool nfd::fw::asf::FaceInfo::hasTimeout ( ) const

Definition at line 76 of file asf-measurements.hpp.

References getLastRtt(), and RTT_TIMEOUT.

Referenced by nfd::fw::asf::ProbingModule::getProbingInterval().

◆ getLastRtt()

◆ getSrtt()

◆ getNTimeouts()

size_t nfd::fw::asf::FaceInfo::getNTimeouts ( ) const

Definition at line 94 of file asf-measurements.hpp.

Referenced by nfd::fw::asf::FaceStatsCompare::operator()().

◆ setNTimeouts()

void nfd::fw::asf::FaceInfo::setNTimeouts ( size_t  nTimeouts)

Definition at line 100 of file asf-measurements.hpp.

Friends And Related Function Documentation

◆ NamespaceInfo

friend class NamespaceInfo

Definition at line 117 of file asf-measurements.hpp.

Member Data Documentation


const time::nanoseconds nfd::fw::asf::FaceInfo::RTT_NO_MEASUREMENT {-1}


const time::nanoseconds nfd::fw::asf::FaceInfo::RTT_TIMEOUT {-2}

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