26 #ifndef NFD_DAEMON_FW_NCC_STRATEGY_HPP 27 #define NFD_DAEMON_FW_NCC_STRATEGY_HPP 47 const shared_ptr<pit::Entry>& pitEntry)
override;
51 const Face& inFace,
const Data& data)
override;
144 #endif // NFD_DAEMON_FW_NCC_STRATEGY_HPP static const time::microseconds DEFER_FIRST_WITHOUT_BEST_FACE
static const Name & getStrategyName()
a forwarding strategy similar to CCNx 0.7.2
StrategyInfo on measurements::Entry.
void doPropagate(FaceId inFaceId, weak_ptr< pit::Entry > pitEntryWeak)
propagate to another upstream
shared_ptr< Face > getBestFace()
static const int UPDATE_MEASUREMENTS_N_LEVELS
static const time::microseconds DEFER_RANGE_WITHOUT_BEST_FACE
NccStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
time::microseconds maxInterval
maximum interval between forwarding to two nexthops except best and previous
represents an Interest packet
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
weak_ptr< Face > bestFace
static const time::microseconds MIN_PREDICTION
static constexpr int getTypeId()
represents a Measurements entry
std::shared_ptr< ns3::EventId > EventId
static constexpr int getTypeId()
Copyright (c) 2011-2015 Regents of the University of California.
void inheritFrom(const MeasurementsEntryInfo &other)
static const int ADJUST_PREDICT_DOWN_SHIFT
void timeoutOnBestFace(weak_ptr< pit::Entry > pitEntryWeak)
best face did not reply within prediction
static const time::nanoseconds MEASUREMENTS_LIFETIME
Represents an absolute name.
scheduler::EventId propagateTimer
timer for propagating to another face
scheduler::EventId bestFaceTimeout
timer that expires when best face does not respond within predicted time
static const int ADJUST_PREDICT_UP_SHIFT
StrategyInfo on pit::Entry.
represents a forwarding strategy
MeasurementsEntryInfo & getMeasurementsEntryInfo(measurements::Entry *entry)
time::microseconds prediction
static const time::microseconds INITIAL_PREDICTION
uint64_t FaceId
identifies a face
void updateBestFace(const Face &face)
Represents a Data packet.
weak_ptr< Face > previousFace
virtual void beforeSatisfyInterest(const shared_ptr< pit::Entry > &pitEntry, const Face &inFace, const Data &data) override
trigger before PIT entry is satisfied
#define PUBLIC_WITH_TESTS_ELSE_PROTECTED
static const time::microseconds MAX_PREDICTION
contains arbitrary information forwarding strategy places on table entries