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