tcp: Update DCTCP to inherit from LinuxReno

This commit is contained in:
Tom Henderson
2020-12-06 08:36:55 -08:00
parent a37e7fb06e
commit 031ef17c6d
2 changed files with 5 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ NS_OBJECT_ENSURE_REGISTERED (TcpDctcp);
TypeId TcpDctcp::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::TcpDctcp")
.SetParent<TcpNewReno> ()
.SetParent<TcpLinuxReno> ()
.AddConstructor<TcpDctcp> ()
.SetGroupName ("Internet")
.AddAttribute ("DctcpShiftG",
@@ -61,7 +61,7 @@ std::string TcpDctcp::GetName () const
}
TcpDctcp::TcpDctcp ()
: TcpNewReno ()
: TcpLinuxReno ()
{
NS_LOG_FUNCTION (this);
m_ackedBytesEcn = 0;
@@ -75,7 +75,7 @@ TcpDctcp::TcpDctcp ()
}
TcpDctcp::TcpDctcp (const TcpDctcp& sock)
: TcpNewReno (sock),
: TcpLinuxReno (sock),
m_ackedBytesEcn (sock.m_ackedBytesEcn),
m_ackedBytesTotal (sock.m_ackedBytesTotal),
m_priorRcvNxt (sock.m_priorRcvNxt),

View File

@@ -23,6 +23,7 @@
#define TCP_DCTCP_H
#include "ns3/tcp-congestion-ops.h"
#include "ns3/tcp-linux-reno.h"
namespace ns3 {
@@ -33,7 +34,7 @@ namespace ns3 {
* endpoint capabilities mentioned in the DCTCP SIGCOMM paper.
*/
class TcpDctcp : public TcpNewReno
class TcpDctcp : public TcpLinuxReno
{
public:
/**