25                            .AddConstructor<TcpHighSpeed>()
 
   26                            .SetGroupName(
"Internet");
 
 
   39      m_ackCnt(sock.m_ackCnt)
 
 
   92    uint32_t segCwnd = tcb->GetCwndInSegments();
 
   95    if (segmentsAcked > 0)
 
  107    if (segCwnd != oldCwnd)
 
  109        tcb->m_cWnd = segCwnd * tcb->m_segmentSize;
 
  110        NS_LOG_INFO(
"In CongAvoid, updated to cwnd " << tcb->m_cWnd << 
" ssthresh " 
 
  118    return "TcpHighSpeed";
 
 
  134    uint32_t segCwnd = bytesInFlight / tcb->m_segmentSize;
 
  139    NS_LOG_DEBUG(
"Calculated b(w) = " << b << 
" resulting (in segment) ssThresh=" << ssThresh);
 
  141    return ssThresh * tcb->m_segmentSize;
 
 
friend Ptr< T > CopyObject(Ptr< T > object)
Copy an Object.
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.