60 : m_initialInterval(initialInterval)
61 , m_multiplier(multiplier)
62 , m_maxInterval(maxInterval)
64 BOOST_ASSERT(initialInterval > 0_us);
65 BOOST_ASSERT(multiplier >= 1.0f);
66 BOOST_ASSERT(maxInterval >= initialInterval);
79 auto sinceLastOutgoing = now - lastOutgoing;
99 if (outRecord == pitEntry.
out_end()) {
103 auto lastOutgoing = outRecord->getLastRenewed();
105 auto sinceLastOutgoing = now - lastOutgoing;
108 PitInfo* pi = outRecord->insertStrategyInfo<
PitInfo>(m_initialInterval).first;
111 if (shouldSuppress) {
Interest is retransmission and should be forwarded.
OutRecordCollection::iterator getOutRecord(const Face &face)
get the out-record for face
static const Duration DEFAULT_INITIAL_INTERVAL
static time_point now() noexcept
Duration suppressionInterval
if last transmission occurred within suppressionInterval, retransmission will be suppressed ...
OutRecordCollection::iterator out_end()
RetxSuppressionResult decidePerUpstream(pit::Entry &pitEntry, Face &outFace)
determines whether Interest is a retransmission per upstream and if so, whether it shall be forwarded...
Interest is retransmission and should be suppressed.
static const float DEFAULT_MULTIPLIER
static const Duration DEFAULT_MAX_INTERVAL
Copyright (c) 2011-2015 Regents of the University of California.
void incrementIntervalForOutRecord(pit::OutRecord &outRecord)
Increment the suppression interval for out record.
Interest is new (not a retransmission)
PitInfo(const Duration &initialInterval)
RetxSuppressionExponential(const Duration &initialInterval=DEFAULT_INITIAL_INTERVAL, float multiplier=DEFAULT_MULTIPLIER, const Duration &maxInterval=DEFAULT_MAX_INTERVAL)
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
std::pair< T *, bool > insertStrategyInfo(A &&... args)
Insert a StrategyInfo item.
time::steady_clock::time_point getLastOutgoing(const pit::Entry &pitEntry)
time::microseconds Duration
time granularity
Contains information about an Interest toward an outgoing face.
static constexpr int getTypeId()
RetxSuppressionResult decidePerPitEntry(pit::Entry &pitEntry)
determines whether Interest is a retransmission per pit entry and if so, whether it shall be forwarde...
Contains arbitrary information placed by the forwarding strategy on table entries.