32 time::milliseconds(1);
35 time::milliseconds(250);
62 : m_initialInterval(initialInterval)
63 , m_multiplier(multiplier)
64 , m_maxInterval(maxInterval)
66 BOOST_ASSERT(initialInterval > time::milliseconds::zero());
67 BOOST_ASSERT(multiplier >= 1.0);
68 BOOST_ASSERT(maxInterval >= initialInterval);
101 if (outRecord == pitEntry.
out_end()) {
110 PitInfo* pi = outRecord->insertStrategyInfo<
PitInfo>(m_initialInterval).first;
113 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
generalization of a network interface
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::TimePoint 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 forwarding strategy places on table entries