31 #include "ns3/tcp-congestion-ops.h" 32 #include "ns3/tcp-recovery-ops.h" 128 virtual std::string
GetName ()
const;
139 uint32_t bytesInFlight);
252 #endif // TCPILLINOIS_H virtual std::string GetName() const
Get the name of the congestion control algorithm.
Time m_baseRtt
Minimum of all RTT measurements.
Simulation virtual time values and global simulation resolution.
double m_beta
Multiplicative decrease factor.
Smart pointer class similar to boost::intrusive_ptr.
void Reset(const SequenceNumber32 &nextTxSequence)
Reset Illinois parameters.
double m_betaMax
Maximum beta threshold.
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get slow start threshold after congestion event.
virtual void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Adjust cwnd following Illinois congestion avoidance algorithm.
uint32_t m_ackCnt
Number of received ACK.
bool m_rttAbove
True when da > d1.
void CalculateAlpha(double da, double dm)
Calculate additive increase factor alpha.
double m_alpha
Additive increase factor.
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across socket.
The NewReno implementation.
Time m_sumRtt
Sum of all RTT measurements during last RTT.
uint32_t m_theta
Number of RTTs required before setting alpha to its max.
double m_alphaBase
Base value of alpha for standard AIMD.
double m_alphaMin
Minimum alpha threshold.
double m_alphaMax
Maximum alpha threshold.
void CalculateBeta(double da, double dm)
Calculate multiplicative decrease factor beta.
Time m_maxRtt
Maximum of all RTT measurements.
TcpIllinois(void)
Create an unbound tcp socket.
Time CalculateMaxDelay() const
Calculate maximum queueing delay.
TcpCongState_t
Definition of the Congestion state machine.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual ~TcpIllinois(void)
virtual void CongestionStateSet(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCongState_t newState)
Reset Illinois parameters to default values upon a loss.
uint32_t m_cntRtt
Number of RTT measurements during last RTT.
SequenceNumber32 m_endSeq
Right edge of current RTT.
double m_betaMin
Minimum beta threshold.
double m_betaBase
Base value of beta for standard AIMD.
void RecalcParam(uint32_t cWnd)
Recalculate alpha and beta every RTT.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t m_winThresh
Window threshold for adaptive sizing.
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Measure RTT for each ACK Keep track of min and max RTT.
An implementation of TCP Illinois algorithm.
Time CalculateAvgDelay() const
Calculate average queueing delay.
a unique identifier for an interface.
uint8_t m_rttLow
Number of RTTs da has stayed below d1.