86 std::string
GetName()
const override;
The NewReno implementation.
TcpCongState_t
Definition of the Congestion state machine.
An implementation of TCP Vegas.
uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight) override
Get slow start threshold following Vegas principle.
void DisableVegas()
Stop taking Vegas samples.
uint32_t m_cntRtt
Number of RTT measurements during last RTT.
std::string GetName() const override
Get the name of the congestion control algorithm.
Ptr< TcpCongestionOps > Fork() override
Copy the congestion control algorithm across sockets.
uint32_t m_alpha
Alpha threshold, lower bound of packets in network.
uint32_t m_beta
Beta threshold, upper bound of packets in network.
void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked) override
Adjust cwnd following Vegas linear increase/decrease algorithm.
bool m_doingVegasNow
If true, do Vegas for this RTT.
void EnableVegas(Ptr< TcpSocketState > tcb)
Enable Vegas algorithm to start taking Vegas samples.
Time m_minRtt
Minimum of all RTT measurements within last RTT.
void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt) override
Compute RTTs needed to execute Vegas algorithm.
void CongestionStateSet(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCongState_t newState) override
Enable/disable Vegas algorithm depending on the congestion state.
TcpVegas()
Create an unbound tcp socket.
Time m_baseRtt
Minimum of all Vegas RTT measurements seen during connection.
uint32_t m_gamma
Gamma threshold, limit on increase.
static TypeId GetTypeId()
Get the type ID.
SequenceNumber32 m_begSndNxt
Right edge during last RTT.
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.