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