implements the Mean-Deviation RTT estimator More...
#include <rtt-estimator.hpp>
Public Types | |
using | Duration = time::microseconds |
Public Member Functions | |
RttEstimator (uint16_t maxMultiplier=16, Duration minRto=1_ms, double gain=0.1) | |
void | addMeasurement (Duration measure) |
void | incrementMultiplier () |
void | doubleMultiplier () |
Duration | computeRto () const |
Static Public Member Functions | |
static Duration | getInitialRtt () |
implements the Mean-Deviation RTT estimator
This RttEstimator algorithm is designed for TCP, which is a continuous stream. NDN Interest-Data traffic is not always a continuous stream, so NDN may need a different RttEstimator. The design of a more suitable RttEstimator is a research question.
Definition at line 43 of file rtt-estimator.hpp.
using nfd::RttEstimator::Duration = time::microseconds |
Definition at line 46 of file rtt-estimator.hpp.
nfd::RttEstimator::RttEstimator | ( | uint16_t | maxMultiplier = 16 , |
Duration | minRto = 1_ms , |
||
double | gain = 0.1 |
||
) |
Definition at line 30 of file rtt-estimator.cpp.
|
inlinestatic |
Definition at line 53 of file rtt-estimator.hpp.
void nfd::RttEstimator::addMeasurement | ( | Duration | measure | ) |
Definition at line 42 of file rtt-estimator.cpp.
References ndn::time::abs().
Referenced by nfd::fw::asf::RttStats::addRttMeasurement(), and nfd::face::LpReliability::processIncomingPacket().
void nfd::RttEstimator::incrementMultiplier | ( | ) |
Definition at line 61 of file rtt-estimator.cpp.
void nfd::RttEstimator::doubleMultiplier | ( | ) |
Definition at line 67 of file rtt-estimator.cpp.
RttEstimator::Duration nfd::RttEstimator::computeRto | ( | ) | const |
Definition at line 73 of file rtt-estimator.cpp.
Referenced by nfd::fw::asf::RttStats::computeRto(), and nfd::face::LpReliability::handleOutgoing().