The modified version of "Mean--Deviation" RTT estimator, as discussed by Van Jacobson that better suits NDN communication model. More...
#include <ndn-rtt-mean-deviation.hpp>
Public Member Functions | |
RttMeanDeviation () | |
RttMeanDeviation (const RttMeanDeviation &) | |
virtual TypeId | GetInstanceTypeId (void) const |
void | SentSeq (SequenceNumber32 seq, uint32_t size) |
Note that a particular sequence has been sent. More... | |
Time | AckSeq (SequenceNumber32 ackSeq) |
Note that a particular ack sequence has been received. More... | |
void | Measurement (Time measure) |
Add a new measurement to the estimator. More... | |
Time | RetransmitTimeout () |
Returns the estimated RTO. More... | |
Ptr< RttEstimator > | Copy () const |
void | Reset () |
Resets the estimation to its initial state. More... | |
void | Gain (double g) |
Public Member Functions inherited from ns3::ndn::RttEstimator | |
RttEstimator () | |
RttEstimator (const RttEstimator &) | |
virtual | ~RttEstimator () |
virtual void | ClearSent () |
Clear all history entries. More... | |
virtual void | IncreaseMultiplier () |
Increase the estimation multiplier up to MaxMultiplier. More... | |
virtual void | ResetMultiplier () |
Resets the estimation multiplier to 1. More... | |
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) |
Static Public Member Functions inherited from ns3::ndn::RttEstimator | |
static TypeId | GetTypeId (void) |
Additional Inherited Members | |
Protected Attributes inherited from ns3::ndn::RttEstimator | |
Time | m_currentEstimatedRtt |
Time | m_minRto |
Time | m_maxRto |
uint32_t | m_nSamples |
uint16_t | m_multiplier |
RttHistory_t | m_history |
The modified version of "Mean--Deviation" RTT estimator, as discussed by Van Jacobson that better suits NDN communication model.
This class implements the "Mean--Deviation" RTT estimator, as discussed by Van Jacobson and Michael J. Karels, in "Congestion Avoidance and Control", SIGCOMM 88, Appendix A
Introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Size of this type is 184 bytes (on a 64-bit architecture).
Definition at line 47 of file ndn-rtt-mean-deviation.hpp.
ns3::ndn::RttMeanDeviation::RttMeanDeviation | ( | ) |
Definition at line 61 of file ndn-rtt-mean-deviation.cpp.
ns3::ndn::RttMeanDeviation::RttMeanDeviation | ( | const RttMeanDeviation & | c | ) |
Definition at line 67 of file ndn-rtt-mean-deviation.cpp.
|
static |
Definition at line 46 of file ndn-rtt-mean-deviation.cpp.
Referenced by GetInstanceTypeId().
|
virtual |
Reimplemented from ns3::ndn::RttEstimator.
Definition at line 77 of file ndn-rtt-mean-deviation.cpp.
References GetTypeId().
|
virtual |
Note that a particular sequence has been sent.
seq | the packet sequence number. |
size | the packet size. |
Reimplemented from ns3::ndn::RttEstimator.
Definition at line 146 of file ndn-rtt-mean-deviation.cpp.
References ns3::ndn::RttEstimator::m_history.
|
virtual |
Note that a particular ack sequence has been received.
ackSeq | the ack sequence number. |
Reimplemented from ns3::ndn::RttEstimator.
Definition at line 164 of file ndn-rtt-mean-deviation.cpp.
References ns3::ndn::RttEstimator::m_history, Measurement(), and ns3::ndn::RttEstimator::ResetMultiplier().
|
virtual |
Add a new measurement to the estimator.
Pure virtual function.
t | the new RTT measure. |
Implements ns3::ndn::RttEstimator.
Definition at line 83 of file ndn-rtt-mean-deviation.cpp.
References ns3::ndn::RttEstimator::m_currentEstimatedRtt, and ns3::ndn::RttEstimator::m_nSamples.
Referenced by AckSeq().
|
virtual |
Returns the estimated RTO.
Pure virtual function.
Implements ns3::ndn::RttEstimator.
Definition at line 106 of file ndn-rtt-mean-deviation.cpp.
References ns3::ndn::RttEstimator::m_currentEstimatedRtt, ns3::ndn::RttEstimator::m_maxRto, ns3::ndn::RttEstimator::m_minRto, and ns3::ndn::RttEstimator::m_multiplier.
|
virtual |
Implements ns3::ndn::RttEstimator.
Definition at line 121 of file ndn-rtt-mean-deviation.cpp.
|
virtual |
Resets the estimation to its initial state.
Reimplemented from ns3::ndn::RttEstimator.
Definition at line 128 of file ndn-rtt-mean-deviation.cpp.
References ns3::ndn::RttEstimator::Reset().
void ns3::ndn::RttMeanDeviation::Gain | ( | double | g | ) |
Definition at line 137 of file ndn-rtt-mean-deviation.cpp.