26 #ifndef NDN_CXX_UTIL_RTT_ESTIMATOR_HPP 27 #define NDN_CXX_UTIL_RTT_ESTIMATOR_HPP 136 int64_t m_nRttSamples;
142 #endif // NDN_CXX_UTIL_RTT_ESTIMATOR_HPP
MillisecondsDouble minRto
lower bound of RTO
double alpha
weight of exponential moving average for meanRtt
constexpr Options() noexcept
double beta
weight of exponential moving average for varRtt
MillisecondsDouble getEstimatedRto() const
Returns the estimated RTO value.
MillisecondsDouble getMaxRtt() const
Returns the maximum RTT observed.
void backoffRto()
Backoff RTO by a factor of Options::rtoBackoffMultiplier.
RttEstimator(const Options &options=Options())
Create a RTT Estimator.
MillisecondsDouble initialRto
initial RTO value
void addMeasurement(MillisecondsDouble rtt, size_t nExpectedSamples)
Add a new RTT measurement to the estimator.
MillisecondsDouble getAvgRtt() const
Returns the average RTT.
MillisecondsDouble maxRto
upper bound of RTO
MillisecondsDouble getMinRtt() const
Returns the minimum RTT observed.
int k
factor of RTT variation when calculating RTO
time::duration< double, time::milliseconds::period > MillisecondsDouble