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