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