26 #ifndef NFD_DAEMON_FW_NCC_STRATEGY_HPP 27 #define NFD_DAEMON_FW_NCC_STRATEGY_HPP 47 shared_ptr<fib::Entry> fibEntry,
121 shared_ptr<MeasurementsEntryInfo>
124 shared_ptr<MeasurementsEntryInfo>
129 doPropagate(weak_ptr<pit::Entry> pitEntryWeak, weak_ptr<fib::Entry> fibEntryWeak);
148 #endif // NFD_DAEMON_FW_NCC_STRATEGY_HPP static const time::microseconds DEFER_FIRST_WITHOUT_BEST_FACE
a forwarding strategy similar to CCNx 0.7.2
static const Name STRATEGY_NAME
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, shared_ptr< fib::Entry > fibEntry, shared_ptr< pit::Entry > pitEntry) 1
trigger after Interest is received
StrategyInfo on measurements::Entry.
shared_ptr< Face > getBestFace()
static const int UPDATE_MEASUREMENTS_N_LEVELS
static const time::microseconds DEFER_RANGE_WITHOUT_BEST_FACE
time::microseconds maxInterval
maximum interval between forwarding to two nexthops except best and previous
represents an Interest packet
NccStrategy(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
shared_ptr< MeasurementsEntryInfo > getMeasurementsEntryInfo(shared_ptr< measurements::Entry > entry)
std::shared_ptr< ns3::EventId > EventId
weak_ptr< Face > bestFace
#define DECL_OVERRIDE
expands to 'override' if compiler supports this feature, otherwise expands to nothing ...
static const time::microseconds MIN_PREDICTION
static constexpr int getTypeId()
virtual void beforeSatisfyInterest(shared_ptr< pit::Entry > pitEntry, const Face &inFace, const Data &data) 1
trigger before PIT entry is satisfied
static constexpr int getTypeId()
Copyright (c) 2011-2015 Regents of the University of California.
void inheritFrom(const MeasurementsEntryInfo &other)
void doPropagate(weak_ptr< pit::Entry > pitEntryWeak, weak_ptr< fib::Entry > fibEntryWeak)
propagate to another upstream
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
Name abstraction to represent 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
time::microseconds prediction
static const time::microseconds INITIAL_PREDICTION
void updateBestFace(const Face &face)
weak_ptr< Face > previousFace
static const time::microseconds MAX_PREDICTION
contains arbitrary information forwarding strategy places on table entries