NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::RttMeanDeviation Class Reference

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.h>

Inheritance diagram for ns3::ndn::RttMeanDeviation:
Collaboration diagram for ns3::ndn::RttMeanDeviation:

Public Member Functions

 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< RttEstimatorCopy () const
 
void Reset ()
 Resets the estimation to its initial state.
 
void Gain (double g)
 
- Public Member Functions inherited from ns3::ndn::RttEstimator
 RttEstimator (const RttEstimator &)
 
virtual void ClearSent ()
 Clear all history entries.
 
virtual void IncreaseMultiplier ()
 Increase the estimation multiplier up to MaxMultiplier.
 
virtual void ResetMultiplier ()
 Resets the estimation multiplier to 1.
 
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
 

Detailed Description

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

Definition at line 47 of file ndn-rtt-mean-deviation.h.

Member Function Documentation

Time ns3::ndn::RttMeanDeviation::AckSeq ( SequenceNumber32  ackSeq)
virtual

Note that a particular ack sequence has been received.

Parameters
ackSeqthe ack sequence number.
Returns
The measured RTT for this ack.

Reimplemented from ns3::ndn::RttEstimator.

Definition at line 159 of file ndn-rtt-mean-deviation.cc.

References Measurement(), and ns3::ndn::RttEstimator::ResetMultiplier().

void ns3::ndn::RttMeanDeviation::Measurement ( Time  t)
virtual

Add a new measurement to the estimator.

Pure virtual function.

Parameters
tthe new RTT measure.

Implements ns3::ndn::RttEstimator.

Definition at line 83 of file ndn-rtt-mean-deviation.cc.

Referenced by AckSeq().

Time ns3::ndn::RttMeanDeviation::RetransmitTimeout ( )
virtual

Returns the estimated RTO.

Pure virtual function.

Returns
the estimated RTO.

Implements ns3::ndn::RttEstimator.

Definition at line 106 of file ndn-rtt-mean-deviation.cc.

void ns3::ndn::RttMeanDeviation::SentSeq ( SequenceNumber32  seq,
uint32_t  size 
)
virtual

Note that a particular sequence has been sent.

Parameters
seqthe packet sequence number.
sizethe packet size.

Reimplemented from ns3::ndn::RttEstimator.

Definition at line 140 of file ndn-rtt-mean-deviation.cc.


The documentation for this class was generated from the following files: