The "Mean--Deviation" RTT estimator, as discussed by Van Jacobson. More...
#include <rtt-estimator.h>
Public Member Functions | |
RttMeanDeviation () | |
RttMeanDeviation (const RttMeanDeviation &r) | |
Copy constructor. More... | |
Ptr< RttEstimator > | Copy () const |
Copy object. More... | |
void | Gain (double g) |
Sets the estimator Gain. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
void | Measurement (Time measure) |
Add a new measurement to the estimator. More... | |
void | Reset () |
Resets the estimator. More... | |
Time | RetransmitTimeout () |
Returns the estimated RTO. More... | |
Public Member Functions inherited from ns3::RttEstimator | |
RttEstimator () | |
RttEstimator (const RttEstimator &r) | |
Copy constructor. More... | |
virtual | ~RttEstimator () |
virtual Time | AckSeq (SequenceNumber32 ackSeq) |
Note that a particular ack sequence has been received. More... | |
virtual void | ClearSent () |
Clear all history entries. More... | |
Time | GetCurrentEstimate (void) const |
gets the current RTT estimate. More... | |
Time | GetMinRto (void) const |
Get the Minimum RTO. More... | |
virtual void | IncreaseMultiplier () |
Increase the estimation multiplier up to MaxMultiplier. More... | |
virtual void | ResetMultiplier () |
Resets the estimation multiplier to 1. More... | |
virtual void | SentSeq (SequenceNumber32 seq, uint32_t size) |
Note that a particular sequence has been sent. More... | |
void | SetCurrentEstimate (Time estimate) |
Sets the current RTT estimate (forcefully). More... | |
void | SetMinRto (Time minRto) |
Sets the Minimum RTO. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
Run the DoDispose methods of this object and all the objects aggregated to it. More... | |
AggregateIterator | GetAggregateIterator (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Initialize (void) |
This method calls the virtual DoInitialize method on all the objects aggregated to this object. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
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) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::RttEstimator | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
static void | Cleanup (void) |
Noop. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
double | m_gain |
Filter gain. More... | |
Time | m_variance |
Current variance. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
virtual void | DoDispose (void) |
This method is called by Object::Dispose or by the object's destructor, whichever comes first. More... | |
virtual void | DoInitialize (void) |
This method is called only once by Object::Initialize. More... | |
virtual void | NotifyNewAggregate (void) |
This method is invoked whenever two sets of objects are aggregated together. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
Protected Attributes inherited from ns3::RttEstimator | |
Time | m_currentEstimatedRtt |
Current estimate. More... | |
Time | m_minRto |
minimum value of the timeout More... | |
uint16_t | m_multiplier |
RTO Multiplier. More... | |
uint32_t | m_nSamples |
Number of samples. More... | |
The "Mean--Deviation" RTT estimator, as discussed by Van Jacobson.
Doxygen introspection did not find any typical Config paths.
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
No TraceSources are defined for this type.
Definition at line 187 of file rtt-estimator.h.
ns3::RttMeanDeviation::RttMeanDeviation | ( | ) |
Definition at line 253 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
ns3::RttMeanDeviation::RttMeanDeviation | ( | const RttMeanDeviation & | r | ) |
Copy constructor.
r | the object to copy |
Definition at line 259 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
|
virtual |
Copy object.
Implements ns3::RttEstimator.
Definition at line 309 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 322 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 266 of file rtt-estimator.cc.
References GetTypeId().
|
static |
Get the type ID.
Definition at line 239 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 271 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 the estimator.
Reimplemented from ns3::RttEstimator.
Definition at line 315 of file rtt-estimator.cc.
References m_variance, NS_LOG_FUNCTION, and ns3::RttEstimator::Reset().
|
virtual |
Returns the estimated RTO.
Implements ns3::RttEstimator.
Definition at line 293 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 |
Filter gain.
Definition at line 231 of file rtt-estimator.h.
Referenced by Gain(), GetTypeId(), and Measurement().
|
private |
Current variance.
Definition at line 232 of file rtt-estimator.h.
Referenced by Measurement(), Reset(), and RetransmitTimeout().