A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
tcp-linux-reno.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2019 NITK Surathkal
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Apoorva Bharagava <apoorvabhargava13@gmail.com>
19
* Mohit P. Tahiliani <tahiliani@nitk.edu.in>
20
*
21
*/
22
23
#ifndef TCPLINUXRENO_H
24
#define TCPLINUXRENO_H
25
26
#include "ns3/tcp-congestion-ops.h"
27
#include "ns3/tcp-socket-state.h"
28
29
namespace
ns3
{
30
39
class
TcpLinuxReno
:
public
TcpCongestionOps
40
{
41
public
:
46
static
TypeId
GetTypeId
(
void
);
47
48
TcpLinuxReno
();
49
54
TcpLinuxReno
(
const
TcpLinuxReno
& sock);
55
56
~TcpLinuxReno
();
57
58
std::string
GetName
()
const
;
59
60
virtual
void
IncreaseWindow
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
61
virtual
uint32_t
GetSsThresh
(
Ptr<const TcpSocketState>
tcb,
62
uint32_t bytesInFlight);
63
virtual
Ptr<TcpCongestionOps>
Fork
();
64
65
protected
:
72
virtual
uint32_t
SlowStart
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
78
virtual
void
CongestionAvoidance
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
79
80
private
:
81
uint32_t
m_cWndCnt
{0};
82
};
83
84
}
// namespace ns3
85
86
#endif
// TCPLINUXRENO_H
ns3::Ptr< TcpSocketState >
ns3::TcpCongestionOps
Congestion control abstract class.
Definition:
tcp-congestion-ops.h:52
ns3::TcpLinuxReno
Reno congestion control algorithm.
Definition:
tcp-linux-reno.h:40
ns3::TcpLinuxReno::~TcpLinuxReno
~TcpLinuxReno()
Definition:
tcp-linux-reno.cc:54
ns3::TcpLinuxReno::IncreaseWindow
virtual void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance algorithm implementation.
Definition:
tcp-linux-reno.cc:109
ns3::TcpLinuxReno::GetSsThresh
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get the slow start threshold after a loss event.
Definition:
tcp-linux-reno.cc:133
ns3::TcpLinuxReno::GetName
std::string GetName() const
Get the name of the congestion control algorithm.
Definition:
tcp-linux-reno.cc:127
ns3::TcpLinuxReno::TcpLinuxReno
TcpLinuxReno()
Definition:
tcp-linux-reno.cc:43
ns3::TcpLinuxReno::SlowStart
virtual uint32_t SlowStart(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Slow start phase handler.
Definition:
tcp-linux-reno.cc:59
ns3::TcpLinuxReno::CongestionAvoidance
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance phase handler.
Definition:
tcp-linux-reno.cc:75
ns3::TcpLinuxReno::m_cWndCnt
uint32_t m_cWndCnt
Linear increase counter.
Definition:
tcp-linux-reno.h:81
ns3::TcpLinuxReno::Fork
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
Definition:
tcp-linux-reno.cc:143
ns3::TcpLinuxReno::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-linux-reno.cc:33
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
tcp-linux-reno.h
Generated on Tue Feb 6 2024 19:21:20 for ns-3 by
1.9.1