Base class for all RTT Estimators. More...
#include <ndn-rtt-estimator.h>
Public Member Functions | |
RttEstimator (const RttEstimator &) | |
virtual TypeId | GetInstanceTypeId (void) const |
virtual void | SentSeq (SequenceNumber32 seq, uint32_t size) |
Note that a particular sequence has been sent. More... | |
virtual Time | AckSeq (SequenceNumber32 ackSeq) |
Note that a particular ack sequence has been received. More... | |
virtual void | ClearSent () |
Clear all history entries. | |
virtual void | Measurement (Time t)=0 |
Add a new measurement to the estimator. More... | |
virtual Time | RetransmitTimeout ()=0 |
Returns the estimated RTO. More... | |
virtual Ptr< RttEstimator > | Copy () const =0 |
virtual void | IncreaseMultiplier () |
Increase the estimation multiplier up to MaxMultiplier. | |
virtual void | ResetMultiplier () |
Resets the estimation multiplier to 1. | |
virtual void | Reset () |
Resets the estimation to its initial state. | |
void | SetMinRto (Time minRto) |
Sets the Minimum RTO. More... | |
Time | GetMinRto (void) const |
Get the Minimum RTO. More... | |
void | SetMaxRto (Time maxRto) |
Sets the Maximum RTO. More... | |
Time | GetMaxRto (void) const |
Get the Maximum RTO. More... | |
void | SetCurrentEstimate (Time estimate) |
Sets the current RTT estimate (forcefully). More... | |
Time | GetCurrentEstimate (void) const |
gets the current RTT estimate. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Protected Attributes | |
Time | m_currentEstimatedRtt |
Time | m_minRto |
Time | m_maxRto |
uint32_t | m_nSamples |
uint16_t | m_multiplier |
RttHistory_t | m_history |
Base class for all RTT Estimators.
Definition at line 61 of file ndn-rtt-estimator.h.
|
virtual |
Note that a particular ack sequence has been received.
ackSeq | the ack sequence number. |
Reimplemented in ns3::ndn::RttMeanDeviation.
Definition at line 195 of file ndn-rtt-estimator.cc.
References Measurement(), and ResetMultiplier().
Time ns3::ndn::RttEstimator::GetCurrentEstimate | ( | void | ) | const |
gets the current RTT estimate.
Definition at line 108 of file ndn-rtt-estimator.cc.
Time ns3::ndn::RttEstimator::GetMaxRto | ( | void | ) | const |
Get the Maximum RTO.
Definition at line 96 of file ndn-rtt-estimator.cc.
Time ns3::ndn::RttEstimator::GetMinRto | ( | void | ) | const |
Get the Minimum RTO.
Definition at line 84 of file ndn-rtt-estimator.cc.
|
pure virtual |
Add a new measurement to the estimator.
Pure virtual function.
t | the new RTT measure. |
Implemented in ns3::ndn::RttMeanDeviation.
Referenced by AckSeq().
|
pure virtual |
Returns the estimated RTO.
Pure virtual function.
Implemented in ns3::ndn::RttMeanDeviation.
|
virtual |
Note that a particular sequence has been sent.
seq | the packet sequence number. |
size | the packet size. |
Reimplemented in ns3::ndn::RttMeanDeviation.
Definition at line 167 of file ndn-rtt-estimator.cc.
void ns3::ndn::RttEstimator::SetCurrentEstimate | ( | Time | estimate | ) |
Sets the current RTT estimate (forcefully).
estimate | The current RTT estimate. |
Definition at line 102 of file ndn-rtt-estimator.cc.
void ns3::ndn::RttEstimator::SetMaxRto | ( | Time | maxRto | ) |
Sets the Maximum RTO.
minRto | The maximum RTO returned by the estimator. |
Definition at line 90 of file ndn-rtt-estimator.cc.
void ns3::ndn::RttEstimator::SetMinRto | ( | Time | minRto | ) |
Sets the Minimum RTO.
minRto | The minimum RTO returned by the estimator. |
Definition at line 78 of file ndn-rtt-estimator.cc.