36 .AddConstructor<TcpHighSpeed>()
37 .SetGroupName(
"Internet");
50 m_ackCnt(sock.m_ackCnt)
63 return CopyObject<TcpHighSpeed>(
this);
103 uint32_t segCwnd = tcb->GetCwndInSegments();
106 if (segmentsAcked > 0)
118 if (segCwnd != oldCwnd)
120 tcb->m_cWnd = segCwnd * tcb->m_segmentSize;
121 NS_LOG_INFO(
"In CongAvoid, updated to cwnd " << tcb->m_cWnd <<
" ssthresh "
129 return "TcpHighSpeed";
145 uint32_t segCwnd = bytesInFlight / tcb->m_segmentSize;
150 NS_LOG_DEBUG(
"Calculated b(w) = " << b <<
" resulting (in segment) ssThresh=" << ssThresh);
152 return ssThresh * tcb->m_segmentSize;
Smart pointer class similar to boost::intrusive_ptr.
An implementation of TCP HighSpeed.
static double TableLookupB(uint32_t w)
Lookup table for the coefficient b (from RFC 3649)
static uint32_t TableLookupA(uint32_t w)
Lookup table for the coefficient a (from RFC 3649)
uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight) override
Get slow start threshold following HighSpeed principles.
void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked) override
Congestion avoidance of TcpHighSpeed.
std::string GetName() const override
Get the name of the congestion control algorithm.
static TypeId GetTypeId()
Get the type ID.
TcpHighSpeed()
Create an unbound tcp socket.
Ptr< TcpCongestionOps > Fork() override
Copy the congestion control algorithm across sockets.
uint32_t m_ackCnt
Number of received ACK, corrected with the coefficient a.
The NewReno implementation.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.