26 #ifndef NFD_DAEMON_FW_ASF_PROBING_MODULE_HPP 27 #define NFD_DAEMON_FW_ASF_PROBING_MODULE_HPP 48 const Interest& interest,
50 const Face& faceUsed);
60 typedef std::pair<FaceInfo*, Face*> FaceInfoFacePair;
61 typedef std::function<bool(FaceInfoFacePair, FaceInfoFacePair)> FaceInfoPredicate;
62 typedef std::set<FaceInfoFacePair, FaceInfoPredicate> FaceInfoFacePairSet;
65 getFaceBasedOnProbability(
const FaceInfoFacePairSet& rankedFaces);
68 getProbingProbability(uint64_t rank, uint64_t rankSum, uint64_t nFaces);
71 getRandomNumber(
double start,
double end);
77 time::seconds m_probingInterval;
85 #endif // NFD_DAEMON_FW_ASF_PROBING_MODULE_HPP
void scheduleProbe(const fib::Entry &fibEntry, const time::milliseconds &interval)
void afterForwardingProbe(const fib::Entry &fibEntry, const Interest &interest)
ProbingModule(AsfMeasurements &measurements)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
static constexpr time::seconds DEFAULT_PROBING_INTERVAL
bool isProbingNeeded(const fib::Entry &fibEntry, const Interest &interest)
Face * getFaceToProbe(const Face &inFace, const Interest &interest, const fib::Entry &fibEntry, const Face &faceUsed)
Helper class to retrieve and create strategy measurements.