26 #ifndef NFD_DAEMON_FW_ASF_STRATEGY_HPP 27 #define NFD_DAEMON_FW_ASF_STRATEGY_HPP 57 const shared_ptr<pit::Entry>& pitEntry)
override;
61 const shared_ptr<pit::Entry>& pitEntry)
override;
65 const shared_ptr<pit::Entry>& pitEntry)
override;
73 const shared_ptr<pit::Entry>& pitEntry);
77 const fib::Entry& fibEntry,
const shared_ptr<pit::Entry>& pitEntry);
80 getBestFaceForForwarding(
const Interest& interest,
const Face& inFace,
81 const fib::Entry& fibEntry,
const shared_ptr<pit::Entry>& pitEntry,
82 bool isNewInterest =
true);
85 onTimeoutOrNack(
const Name& interestName,
FaceId faceId,
bool isNack);
88 sendNoRouteNack(
Face& face,
const shared_ptr<pit::Entry>& pitEntry);
94 size_t m_nMaxTimeouts = 3;
107 #endif // NFD_DAEMON_FW_ASF_STRATEGY_HPP Helper class to retrieve and create strategy measurements.
void afterReceiveNack(const lp::Nack &nack, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after a Nack is received.
void afterReceiveInterest(const Interest &interest, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after an Interest is received.
void beforeSatisfyInterest(const Data &data, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
trigger before PIT entry is satisfied
Represents a face-endpoint pair in the forwarder.
static const Name & getStrategyName()
Main class of NFD's forwarding engine.
Represents an Interest packet.
represents a Network Nack
Copyright (c) 2011-2015 Regents of the University of California.
Name PartialName
Represents an arbitrary sequence of name components.
Represents an absolute name.
Represents a forwarding strategy.
Contains information about an Interest toward an outgoing face.
Represents a Data packet.
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...
AsfStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
Adaptive SRTT-based Forwarding Strategy.
uint64_t FaceId
Identifies a face.
boost::chrono::milliseconds milliseconds