The "Mean–Deviation" RTT estimator, as discussed by Van Jacobson. More...
#include <rtt-estimator.h>
Public Member Functions | |
RttMeanDeviation () | |
RttMeanDeviation (const RttMeanDeviation &) | |
Ptr< RttEstimator > | Copy () const |
void | Gain (double g) |
Sets the estimator Gain. | |
virtual TypeId | GetInstanceTypeId (void) const |
void | Measurement (Time measure) |
Add a new measurement to the estimator. | |
void | Reset () |
Resets sthe estimator. | |
Time | RetransmitTimeout () |
Returns the estimated RTO. | |
![]() | |
RttEstimator () | |
RttEstimator (const RttEstimator &) | |
virtual | ~RttEstimator () |
virtual Time | AckSeq (SequenceNumber32 ackSeq) |
Note that a particular ack sequence has been received. | |
virtual void | ClearSent () |
Clear all history entries. | |
Time | GetCurrentEstimate (void) const |
gets the current RTT estimate. | |
Time | GetMinRto (void) const |
Get the Minimum RTO. | |
virtual void | IncreaseMultiplier () |
Increase the estimation multiplier up to MaxMultiplier. | |
virtual void | ResetMultiplier () |
Resets the estimation multiplier to 1. | |
virtual void | SentSeq (SequenceNumber32 seq, uint32_t size) |
Note that a particular sequence has been sent. | |
void | SetCurrentEstimate (Time estimate) |
Sets the current RTT estimate (forcefully). | |
void | SetMinRto (Time minRto) |
Sets the Minimum RTO. | |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
AggregateIterator | GetAggregateIterator (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Initialize (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Private Attributes | |
double | m_gain |
Time | m_variance |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoDispose (void) |
virtual void | DoInitialize (void) |
virtual void | NotifyNewAggregate (void) |
![]() | |
Time | m_currentEstimatedRtt |
Time | m_minRto |
uint16_t | m_multiplier |
uint32_t | m_nSamples |
The "Mean–Deviation" RTT estimator, as discussed by Van Jacobson.
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
Doxygen introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Definition at line 164 of file rtt-estimator.h.
ns3::RttMeanDeviation::RttMeanDeviation | ( | ) |
Definition at line 251 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
ns3::RttMeanDeviation::RttMeanDeviation | ( | const RttMeanDeviation & | c | ) |
Definition at line 257 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RttEstimator.
Definition at line 307 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
void ns3::RttMeanDeviation::Gain | ( | double | g | ) |
Sets the estimator Gain.
g | the gain, where 0 < g < 1. |
Definition at line 320 of file rtt-estimator.cc.
References m_gain, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
|
virtual |
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Reimplemented from ns3::RttEstimator.
Definition at line 264 of file rtt-estimator.cc.
References GetTypeId().
|
static |
Reimplemented from ns3::RttEstimator.
Definition at line 237 of file rtt-estimator.cc.
References m_gain, and ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId(), and ns3::TcpL4Protocol::GetTypeId().
|
virtual |
Add a new measurement to the estimator.
measure | the new RTT measure. |
Implements ns3::RttEstimator.
Definition at line 269 of file rtt-estimator.cc.
References ns3::Abs(), ns3::Time::FromDouble(), ns3::RttEstimator::m_currentEstimatedRtt, m_gain, ns3::RttEstimator::m_nSamples, m_variance, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Time::S, and ns3::Time::ToDouble().
Referenced by RttTestCase::DoRun().
|
virtual |
Resets sthe estimator.
Reimplemented from ns3::RttEstimator.
Definition at line 313 of file rtt-estimator.cc.
References m_variance, NS_LOG_FUNCTION, and ns3::Seconds().
|
virtual |
Returns the estimated RTO.
Implements ns3::RttEstimator.
Definition at line 291 of file rtt-estimator.cc.
References ns3::Time::FromInteger(), ns3::Time::GetSeconds(), ns3::RttEstimator::m_currentEstimatedRtt, ns3::RttEstimator::m_minRto, ns3::RttEstimator::m_multiplier, m_variance, ns3::Time::MS, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::Time::ToInteger().
Referenced by RttTestCase::DoRun().
|
private |
Definition at line 200 of file rtt-estimator.h.
Referenced by Gain(), GetTypeId(), and Measurement().
|
private |
Definition at line 201 of file rtt-estimator.h.
Referenced by Measurement(), Reset(), and RetransmitTimeout().