26 #ifndef NDN_RTT_ESTIMATOR_H 27 #define NDN_RTT_ESTIMATOR_H 30 #include "ns3/sequence-number.h" 31 #include "ns3/nstime.h" 32 #include "ns3/object.h" 45 RttHistory(SequenceNumber32 s, uint32_t c, Time t);
80 SentSeq(SequenceNumber32 seq, uint32_t size);
88 AckSeq(SequenceNumber32 ackSeq);
110 virtual Ptr<RttEstimator>
174 SequenceNumber32 m_next;
175 uint16_t m_maxMultiplier;
176 Time m_initialEstimatedRtt;
RttHistory(SequenceNumber32 s, uint32_t c, Time t)
virtual void SentSeq(SequenceNumber32 seq, uint32_t size)
Note that a particular sequence has been sent.
Copyright (c) 2011-2015 Regents of the University of California.
Time GetCurrentEstimate(void) const
gets the current RTT estimate.
static TypeId GetTypeId(void)
void SetMaxRto(Time maxRto)
Sets the Maximum RTO.
virtual Time RetransmitTimeout()=0
Returns the estimated RTO.
virtual void Measurement(Time t)=0
Add a new measurement to the estimator.
virtual Time AckSeq(SequenceNumber32 ackSeq)
Note that a particular ack sequence has been received.
virtual void Reset()
Resets the estimation to its initial state.
virtual void ClearSent()
Clear all history entries.
void SetMinRto(Time minRto)
Sets the Minimum RTO.
virtual Ptr< RttEstimator > Copy() const =0
void SetCurrentEstimate(Time estimate)
Sets the current RTT estimate (forcefully).
Time GetMaxRto(void) const
Get the Maximum RTO.
std::deque< RttHistory > RttHistory_t
virtual TypeId GetInstanceTypeId(void) const
virtual void IncreaseMultiplier()
Increase the estimation multiplier up to MaxMultiplier.
virtual void ResetMultiplier()
Resets the estimation multiplier to 1.
Copyright (c) 2011-2015 Regents of the University of California.
Base class for all RTT Estimators.
Helper class to store RTT measurements.
Time m_currentEstimatedRtt
Time GetMinRto(void) const
Get the Minimum RTO.