35 .AddConstructor<TcpHighSpeed> ()
36 .SetGroupName (
"Internet")
50 m_ackCnt (sock.m_ackCnt)
63 return CopyObject<TcpHighSpeed> (
this);
104 uint32_t oldCwnd = segCwnd;
106 if (segmentsAcked > 0)
118 if (segCwnd != oldCwnd)
129 return "TcpHighSpeed";
142 uint32_t bytesInFlight)
146 uint32_t segCwnd = bytesInFlight / tcb->m_segmentSize;
149 uint32_t ssThresh =
static_cast<uint32_t
> (
std::max (2.0, segCwnd * b));
152 " resulting (in segment) ssThresh=" << ssThresh);
154 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)
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
static uint32_t TableLookupA(uint32_t w)
Lookup table for the coefficient a (from RFC 3649)
TcpHighSpeed(void)
Create an unbound tcp socket.
static TypeId GetTypeId(void)
Get the type ID.
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance of TcpHighSpeed.
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get slow start threshold following HighSpeed principles.
uint32_t m_ackCnt
Number of received ACK, corrected with the coefficient a.
virtual std::string GetName() const
Get the name of the congestion control algorithm.
virtual ~TcpHighSpeed(void)
The NewReno implementation.
uint32_t m_segmentSize
Segment size.
uint32_t GetCwndInSegments() const
Get cwnd in segments rather than bytes.
TracedValue< uint32_t > m_cWnd
Congestion window.
TracedValue< uint32_t > m_ssThresh
Slow start threshold.
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.