39 .AddConstructor<TcpPrrRecovery> ()
40 .SetGroupName (
"Internet")
41 .AddAttribute (
"ReductionBound",
"Type of Reduction Bound",
58 m_prrDelivered (recovery.m_prrDelivered),
59 m_prrOut (recovery.m_prrOut),
60 m_recoveryFlightSize (recovery.m_recoveryFlightSize),
61 m_reductionBoundMode (recovery.m_reductionBoundMode)
73 [[maybe_unused]] uint32_t dupAckCount,
74 uint32_t unAckDataCount, uint32_t deliveredBytes)
111 limit = deliveredBytes;
140 return CopyObject<TcpPrrRecovery> (
this);
146 return "PrrRecovery";
Hold variables of type enum.
The Classic recovery implementation.
An implementation of PRR.
ReductionBound_t m_reductionBoundMode
mode of Reduction Bound to be used
virtual void EnterRecovery(Ptr< TcpSocketState > tcb, uint32_t dupAckCount, uint32_t unAckDataCount, uint32_t deliveredBytes) override
Performs variable initialization at the start of recovery.
virtual ~TcpPrrRecovery(void) override
virtual void UpdateBytesSent(uint32_t bytesSent) override
Keeps track of bytes sent during recovery phase.
@ CRB
Conservative Reduction Bound.
@ SSRB
Slow Start Reduction Bound.
virtual void ExitRecovery(Ptr< TcpSocketState > tcb) override
Performs cwnd adjustments at the end of recovery.
std::string GetName() const override
Get the name of the recovery algorithm.
uint32_t m_prrOut
total bytes sent during recovery phase
uint32_t m_prrDelivered
total bytes delivered during recovery phase
TcpPrrRecovery(void)
Create an unbound tcp socket.
virtual Ptr< TcpRecoveryOps > Fork() override
Copy the recovery algorithm across socket.
virtual void DoRecovery(Ptr< TcpSocketState > tcb, uint32_t deliveredBytes) override
Performs recovery based on the recovery algorithm.
uint32_t m_recoveryFlightSize
value of bytesInFlight at the start of recovery phase
static TypeId GetTypeId(void)
Get the type ID.
uint32_t m_segmentSize
Segment size.
bool m_isRetransDataAcked
Retransmitted data is ACKed if true.
TracedValue< uint32_t > m_cWnd
Congestion window.
TracedValue< uint32_t > m_bytesInFlight
Bytes in flight.
TracedValue< uint32_t > m_cWndInfl
Inflated congestion window trace (used only for backward compatibility purpose)
TracedValue< uint32_t > m_ssThresh
Slow start threshold.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#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.
Ptr< const AttributeChecker > MakeEnumChecker(int v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name.