30 #include "ns3/tcp-congestion-ops.h" 31 #include "ns3/tcp-recovery-ops.h" 91 virtual std::string
GetName ()
const;
139 uint32_t bytesInFlight);
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across socket.
Simulation virtual time values and global simulation resolution.
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get slow start threshold during Veno multiplicative-decrease phase.
TcpVeno(void)
Create an unbound tcp socket.
void DisableVeno()
Turn off Veno.
The NewReno implementation.
An implementation of TCP Veno.
bool m_inc
If true, cwnd needs to be incremented.
uint32_t m_beta
Threshold for congestion detection.
bool m_doingVenoNow
If true, do Veno for this RTT.
uint32_t m_diff
Difference between expected and actual throughput.
TcpCongState_t
Definition of the Congestion state machine.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t m_ackCnt
Number of received ACK.
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 Veno depending on the congestion state.
static TypeId GetTypeId(void)
Get the type ID.
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Perform RTT sampling needed to execute Veno algorithm.
Time m_baseRtt
Minimum of all RTT measurements seen during connection.
uint32_t m_cntRtt
Number of RTT measurements during last RTT.
virtual void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Adjust cwnd following Veno additive increase algorithm.
a unique identifier for an interface.
Time m_minRtt
Minimum of RTTs measured within last RTT.
void EnableVeno()
Enable Veno algorithm to start Veno sampling.