92 std::string
GetName()
const override;
The NewReno implementation.
TcpCongState_t
Definition of the Congestion state machine.
An implementation of TCP Veno.
std::string GetName() const override
Get the name of the congestion control algorithm.
bool m_inc
If true, cwnd needs to be incremented.
void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt) override
Perform RTT sampling needed to execute Veno algorithm.
uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight) override
Get slow start threshold during Veno multiplicative-decrease phase.
uint32_t m_cntRtt
Number of RTT measurements during last RTT.
static TypeId GetTypeId()
Get the type ID.
void EnableVeno()
Enable Veno algorithm to start Veno sampling.
void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked) override
Adjust cwnd following Veno additive increase algorithm.
Time m_minRtt
Minimum of RTTs measured within last RTT.
bool m_doingVenoNow
If true, do Veno for this RTT.
uint32_t m_ackCnt
Number of received ACK.
uint32_t m_beta
Threshold for congestion detection.
void DisableVeno()
Turn off Veno.
void CongestionStateSet(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCongState_t newState) override
Enable/disable Veno depending on the congestion state.
TcpVeno()
Create an unbound tcp socket.
uint32_t m_diff
Difference between expected and actual throughput.
Ptr< TcpCongestionOps > Fork() override
Copy the congestion control algorithm across sockets.
Time m_baseRtt
Minimum of all RTT measurements seen during connection.
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.