23 #include "ns3/tcp-congestion-ops.h" 24 #include "ns3/tcp-socket-base.h" 82 virtual std::string
GetName ()
const;
void CubicReset(Ptr< const TcpSocketState > tcb)
Simulation virtual time values and global simulation resolution.
virtual void CongestionStateSet(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCongState_t newState)
Trigger events/calculations specific to a congestion state.
Time m_cubicDelta
Time to wait after recovery before update.
Time HystartDelayThresh(const Time &t) const
Clamp time value in a range.
Time m_epochStart
Beginning of an epoch.
void HystartReset(Ptr< const TcpSocketState > tcb)
Reset HyStart parameters.
int m_hystartDetect
Detect way for HyStart algorithm.
bool m_fastConvergence
Enable or disable fast convergence algorithm.
SequenceNumber32 m_endSeq
End sequence of the round.
Time m_hystartDelayMin
Minimum time for hystart algorithm.
uint32_t Update(Ptr< TcpSocketState > tcb)
Cubic window update after a new ack received.
uint32_t m_initialCwnd
Initial cWnd.
bool m_hystart
Enable or disable HyStart algorithm.
Time m_hystartAckDelta
Spacing between ack's indicating train.
Time m_currRtt
Current Rtt.
uint32_t m_hystartLowWindow
Lower bound cWnd for hybrid slow start (segments)
double m_beta
Beta for cubic multiplicative increase.
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get the slow start threshold after a loss event.
HybridSSDetectionMode
Values to detect the Slow Start mode of HyStart.
Time m_hystartDelayMax
Maximum time for hystart algorithm.
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Timing information on received ACK.
virtual std::string GetName() const
Get the name of the congestion control algorithm.
Detection by delay value.
bool m_found
The exit point is found?
uint8_t m_cntClamp
Modulo of the (avoided) float division for cWnd.
TcpCongState_t
Definition of the Congestion state machine.
double m_c
Cubic Scaling factor.
uint32_t m_lastMaxCwnd
Last maximum cWnd.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Congestion control abstract class.
double m_bicK
Time to origin point from the beginning.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t m_cWndCnt
cWnd integer-to-float counter
uint8_t m_hystartMinSamples
Number of delay samples for detecting the increase of delay.
The Cubic Congestion Control Algorithm.
Time m_delayMin
Min delay.
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
Time m_lastAck
Last time when the ACK spacing is close.
uint32_t m_bicOriginPoint
Origin point of bic function.
Detection by trains of packet.
void HystartUpdate(Ptr< TcpSocketState > tcb, const Time &delay)
Update HyStart parameters.
Time m_roundStart
Beginning of each round.
virtual void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance algorithm implementation.
a unique identifier for an interface.
uint32_t m_sampleCnt
Count of samples for HyStart.