A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
tcp-bic.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014 Natale Patriciello <natale.patriciello@gmail.com>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
*/
18
19
#ifndef TCPBIC_H
20
#define TCPBIC_H
21
22
#include "
tcp-congestion-ops.h
"
23
#include "
tcp-recovery-ops.h
"
24
25
class
TcpBicIncrementTest
;
26
class
TcpBicDecrementTest
;
27
28
namespace
ns3
29
{
30
81
class
TcpBic
:
public
TcpCongestionOps
82
{
83
public
:
88
static
TypeId
GetTypeId
();
89
93
TcpBic
();
94
99
TcpBic
(
const
TcpBic
& sock);
100
101
std::string
GetName
()
const override
;
102
void
IncreaseWindow
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked)
override
;
103
uint32_t
GetSsThresh
(
Ptr<const TcpSocketState>
tcb, uint32_t bytesInFlight)
override
;
104
105
Ptr<TcpCongestionOps>
Fork
()
override
;
106
107
protected
:
113
virtual
uint32_t
Update
(
Ptr<TcpSocketState>
tcb);
114
115
private
:
120
friend
class ::TcpBicIncrementTest;
125
friend
class ::TcpBicDecrementTest;
126
127
// User parameters
128
bool
m_fastConvergence
;
129
double
m_beta
;
130
uint32_t
m_maxIncr
;
131
uint32_t
m_lowWnd
;
132
uint32_t
m_smoothPart
;
133
134
// Bic parameters
135
uint32_t
m_cWndCnt
;
136
uint32_t
m_lastMaxCwnd
;
137
uint32_t
m_lastCwnd
;
138
Time
m_epochStart
;
139
uint8_t
m_b
;
140
};
141
142
}
// namespace ns3
143
#endif
// TCPBIC_H
TcpBicDecrementTest
Testing the congestion avoidance decrement on TcpBic.
Definition:
tcp-bic-test.cc:197
TcpBicIncrementTest
Testing the congestion avoidance increment on TcpBic.
Definition:
tcp-bic-test.cc:35
ns3::Ptr< TcpSocketState >
ns3::TcpBic
BIC congestion control algorithm.
Definition:
tcp-bic.h:82
ns3::TcpBic::m_fastConvergence
bool m_fastConvergence
Enable or disable fast convergence algorithm.
Definition:
tcp-bic.h:128
ns3::TcpBic::m_lastMaxCwnd
uint32_t m_lastMaxCwnd
Last maximum cWnd.
Definition:
tcp-bic.h:136
ns3::TcpBic::m_lowWnd
uint32_t m_lowWnd
Lower bound on congestion window.
Definition:
tcp-bic.h:131
ns3::TcpBic::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
tcp-bic.cc:30
ns3::TcpBic::GetSsThresh
uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight) override
Get the slow start threshold after a loss event.
Definition:
tcp-bic.cc:243
ns3::TcpBic::m_b
uint8_t m_b
Binary search coefficient.
Definition:
tcp-bic.h:139
ns3::TcpBic::m_lastCwnd
uint32_t m_lastCwnd
Last cWnd.
Definition:
tcp-bic.h:137
ns3::TcpBic::m_maxIncr
uint32_t m_maxIncr
Maximum window increment.
Definition:
tcp-bic.h:130
ns3::TcpBic::m_beta
double m_beta
Beta for cubic multiplicative increase.
Definition:
tcp-bic.h:129
ns3::TcpBic::Update
virtual uint32_t Update(Ptr< TcpSocketState > tcb)
Bic window update after a new ack received.
Definition:
tcp-bic.cc:140
ns3::TcpBic::TcpBic
TcpBic()
Constructor.
Definition:
tcp-bic.cc:74
ns3::TcpBic::m_smoothPart
uint32_t m_smoothPart
Number of RTT needed to reach Wmax from Wmax-B.
Definition:
tcp-bic.h:132
ns3::TcpBic::IncreaseWindow
void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked) override
Congestion avoidance algorithm implementation.
Definition:
tcp-bic.cc:101
ns3::TcpBic::m_epochStart
Time m_epochStart
Beginning of an epoch.
Definition:
tcp-bic.h:138
ns3::TcpBic::m_cWndCnt
uint32_t m_cWndCnt
cWnd integer-to-float counter
Definition:
tcp-bic.h:135
ns3::TcpBic::Fork
Ptr< TcpCongestionOps > Fork() override
Copy the congestion control algorithm across sockets.
Definition:
tcp-bic.cc:280
ns3::TcpBic::GetName
std::string GetName() const override
Get the name of the congestion control algorithm.
Definition:
tcp-bic.cc:237
ns3::TcpCongestionOps
Congestion control abstract class.
Definition:
tcp-congestion-ops.h:52
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
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.
tcp-congestion-ops.h
tcp-recovery-ops.h
src
internet
model
tcp-bic.h
Generated on Sun Mar 3 2024 17:10:59 for ns-3 by
1.9.1