Base class for all RTT Estimators. More...
#include <rtt-estimator.h>
Public Member Functions | |
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... | |
virtual Ptr< RttEstimator > | Copy () const =0 |
Copy object. More... | |
Time | GetCurrentEstimate (void) const |
gets the current RTT estimate. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Time | GetMinRto (void) const |
Get the Minimum RTO. More... | |
virtual void | IncreaseMultiplier () |
Increase the estimation multiplier up to MaxMultiplier. More... | |
virtual void | Measurement (Time t)=0 |
Add a new measurement to the estimator. More... | |
virtual void | Reset () |
Resets the estimation to its initial state. More... | |
virtual void | ResetMultiplier () |
Resets the estimation multiplier to 1. More... | |
virtual Time | RetransmitTimeout ()=0 |
Returns the estimated RTO. 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... | |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
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 TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Protected Attributes | |
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... | |
Private Attributes | |
RttHistory_t | m_history |
List of sent packet. More... | |
Time | m_initialEstimatedRtt |
Initial RTT estimation. More... | |
uint16_t | m_maxMultiplier |
Maximum RTO Multiplier. More... | |
SequenceNumber32 | m_next |
Next expected sequence to be sent. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
Base class for all RTT Estimators.
Doxygen introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Definition at line 69 of file rtt-estimator.h.
ns3::RttEstimator::RttEstimator | ( | ) |
Definition at line 107 of file rtt-estimator.cc.
References ns3::ObjectBase::ConstructSelf(), ns3::Time::GetSeconds(), m_currentEstimatedRtt, m_initialEstimatedRtt, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
ns3::RttEstimator::RttEstimator | ( | const RttEstimator & | r | ) |
Copy constructor.
r | the object to copy |
Definition at line 122 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
|
virtual |
Definition at line 132 of file rtt-estimator.cc.
References NS_LOG_FUNCTION.
|
virtual |
Note that a particular ack sequence has been received.
ackSeq | the ack sequence number. |
Definition at line 171 of file rtt-estimator.cc.
References ns3::RttHistory::count, m_history, Measurement(), ns3::Simulator::Now(), NS_LOG_FUNCTION, ResetMultiplier(), ns3::RttHistory::retx, ns3::RttHistory::seq, and ns3::RttHistory::time.
|
virtual |
Clear all history entries.
Definition at line 196 of file rtt-estimator.cc.
References m_history, m_next, and NS_LOG_FUNCTION.
|
pure virtual |
Time ns3::RttEstimator::GetCurrentEstimate | ( | void | ) | const |
gets the current RTT estimate.
Definition at line 86 of file rtt-estimator.cc.
References m_currentEstimatedRtt.
Referenced by RttTestCase::DoRun().
|
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::Object.
Reimplemented in ns3::RttMeanDeviation.
Definition at line 138 of file rtt-estimator.cc.
References GetTypeId().
Time ns3::RttEstimator::GetMinRto | ( | void | ) | const |
Get the Minimum RTO.
Definition at line 75 of file rtt-estimator.cc.
References m_minRto.
Referenced by GetTypeId().
|
static |
Get the type ID.
Definition at line 44 of file rtt-estimator.cc.
References GetMinRto(), m_initialEstimatedRtt, m_maxMultiplier, ns3::MakeTimeChecker(), SetMinRto(), and ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
virtual |
Increase the estimation multiplier up to MaxMultiplier.
Definition at line 204 of file rtt-estimator.cc.
References m_maxMultiplier, m_multiplier, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
|
pure virtual |
Add a new measurement to the estimator.
Pure virtual function.
t | the new RTT measure. |
Implemented in ns3::RttMeanDeviation.
Referenced by AckSeq().
|
virtual |
Resets the estimation to its initial state.
Reimplemented in ns3::RttMeanDeviation.
Definition at line 217 of file rtt-estimator.cc.
References m_currentEstimatedRtt, m_history, m_initialEstimatedRtt, m_next, m_nSamples, NS_LOG_FUNCTION, and ResetMultiplier().
Referenced by ns3::RttMeanDeviation::Reset().
|
virtual |
Resets the estimation multiplier to 1.
Definition at line 211 of file rtt-estimator.cc.
References m_multiplier, and NS_LOG_FUNCTION.
Referenced by AckSeq(), and Reset().
|
pure virtual |
Returns the estimated RTO.
Pure virtual function.
Implemented in ns3::RttMeanDeviation.
|
virtual |
Note that a particular sequence has been sent.
seq | the packet sequence number. |
size | the packet size. |
Definition at line 143 of file rtt-estimator.cc.
References m_history, m_next, ns3::Simulator::Now(), and NS_LOG_FUNCTION.
void ns3::RttEstimator::SetCurrentEstimate | ( | Time | estimate | ) |
Sets the current RTT estimate (forcefully).
estimate | The current RTT estimate. |
Definition at line 80 of file rtt-estimator.cc.
References m_currentEstimatedRtt, and NS_LOG_FUNCTION.
void ns3::RttEstimator::SetMinRto | ( | Time | minRto | ) |
Sets the Minimum RTO.
minRto | The minimum RTO returned by the estimator. |
Definition at line 69 of file rtt-estimator.cc.
References m_minRto, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
protected |
Current estimate.
Definition at line 171 of file rtt-estimator.h.
Referenced by GetCurrentEstimate(), ns3::RttMeanDeviation::Measurement(), Reset(), ns3::RttMeanDeviation::RetransmitTimeout(), RttEstimator(), and SetCurrentEstimate().
|
private |
List of sent packet.
Definition at line 166 of file rtt-estimator.h.
Referenced by AckSeq(), ClearSent(), Reset(), and SentSeq().
|
private |
Initial RTT estimation.
Definition at line 168 of file rtt-estimator.h.
Referenced by GetTypeId(), Reset(), and RttEstimator().
|
private |
Maximum RTO Multiplier.
Definition at line 167 of file rtt-estimator.h.
Referenced by GetTypeId(), and IncreaseMultiplier().
|
protected |
minimum value of the timeout
Definition at line 172 of file rtt-estimator.h.
Referenced by GetMinRto(), ns3::RttMeanDeviation::RetransmitTimeout(), and SetMinRto().
|
protected |
RTO Multiplier.
Definition at line 174 of file rtt-estimator.h.
Referenced by IncreaseMultiplier(), ResetMultiplier(), and ns3::RttMeanDeviation::RetransmitTimeout().
|
private |
Next expected sequence to be sent.
Definition at line 165 of file rtt-estimator.h.
Referenced by ClearSent(), Reset(), and SentSeq().
|
protected |
Number of samples.
Definition at line 173 of file rtt-estimator.h.
Referenced by ns3::RttMeanDeviation::Measurement(), and Reset().