35 : m_minRetxInterval(minRetxInterval)
37 BOOST_ASSERT(minRetxInterval > time::milliseconds::zero());
49 time::steady_clock::TimePoint lastOutgoing = this->
getLastOutgoing(pitEntry);
50 time::steady_clock::TimePoint now = time::steady_clock::now();
51 time::steady_clock::Duration sinceLastOutgoing = now - lastOutgoing;
52 bool shouldSuppress = sinceLastOutgoing < m_minRetxInterval;
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
Interest is retransmission and should be suppressed.
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry) const
virtual Result decide(const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const override
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
Interest is retransmission and should be forwarded.
Interest is new (not a retransmission)
RetxSuppressionFixed(const time::milliseconds &minRetxInterval=DEFAULT_MIN_RETX_INTERVAL)
static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL