33 #ifndef TCP_WESTWOOD_H
34 #define TCP_WESTWOOD_H
37 #include "ns3/data-rate.h"
38 #include "ns3/tcp-recovery-ops.h"
39 #include "ns3/traced-value.h"
40 #include "ns3/event-id.h"
102 uint32_t bytesInFlight);
Class for representing data rates.
An identifier for simulation events.
Smart pointer class similar to boost::intrusive_ptr.
The NewReno implementation.
An implementation of TCP Westwood and Westwood+.
TracedValue< DataRate > m_currentBW
Current value of the estimated BW.
enum ProtocolType m_pType
0 for Westwood, 1 for Westwood+
enum FilterType m_fType
0 for none, 1 for Tustin
void UpdateAckedSegments(int acked)
Update the total number of acknowledged packets during the current RTT.
bool m_IsCount
Start keeping track of m_ackedSegments for Westwood+ if TRUE.
DataRate m_lastSampleBW
Last bandwidth sample.
void EstimateBW(const Time &rtt, Ptr< TcpSocketState > tcb)
Estimate the network's bandwidth.
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t packetsAcked, const Time &rtt)
Timing information on received ACK.
FilterType
Filter type (None or Tustin)
DataRate m_lastBW
Last bandwidth sample after being filtered.
virtual ~TcpWestwood(void)
Time m_lastAck
The last ACK time.
uint32_t m_ackedSegments
The number of segments ACKed between RTTs.
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get the slow start threshold after a loss event.
ProtocolType
Protocol variant (Westwood or Westwood+)
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
EventId m_bwEstimateEvent
The BW estimation event for Westwood+.
static TypeId GetTypeId(void)
Get the type ID.
Simulation virtual time values and global simulation resolution.
Trace classes with value semantics.
a unique identifier for an interface.
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Every class exported by the ns3 library is enclosed in the ns3 namespace.