NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
tcpcubic.h
Go to the documentation of this file.
1
#ifndef NDNDPDK_FETCH_TCPCUBIC_H
2
#define NDNDPDK_FETCH_TCPCUBIC_H
3
5
6
#include "
../dpdk/tsc.h
"
7
12
typedef
struct
TcpCubic
{
13
TscTime
t0
;
14
double
cwnd
;
15
double
wMax
;
16
double
k
;
17
double
ssthresh
;
18
}
TcpCubic
;
19
20
__attribute__((nonnull))
void
21
TcpCubic_Init
(
TcpCubic
* ca);
22
23
__attribute__((nonnull))
static
inline
uint32_t
24
TcpCubic_GetCwnd(
TcpCubic
* ca) {
25
return
RTE_MAX((uint32_t)ca->
cwnd
, 1);
26
}
27
29
__attribute__((nonnull))
void
30
TcpCubic_Increase
(
TcpCubic
* ca,
TscTime
now,
double
sRtt);
31
37
__attribute__((nonnull))
void
38
TcpCubic_Decrease
(
TcpCubic
* ca,
TscTime
now);
39
40
#endif
// NDNDPDK_FETCH_TCPCUBIC_H
TcpCubic
TCP CUBIC algorithm.
Definition
tcpcubic.h:12
TcpCubic::cwnd
double cwnd
Definition
tcpcubic.h:14
TcpCubic::t0
TscTime t0
Definition
tcpcubic.h:13
TcpCubic::ssthresh
double ssthresh
Definition
tcpcubic.h:17
TcpCubic::k
double k
Definition
tcpcubic.h:16
TcpCubic::wMax
double wMax
Definition
tcpcubic.h:15
TcpCubic_Decrease
void TcpCubic_Decrease(TcpCubic *ca, TscTime now)
Window decrease.
Definition
tcpcubic.c:54
TcpCubic_Init
void TcpCubic_Init(TcpCubic *ca)
Definition
tcpcubic.c:8
TcpCubic_Increase
void TcpCubic_Increase(TcpCubic *ca, TscTime now, double sRtt)
Window increase.
Definition
tcpcubic.c:29
tsc.h
TscTime
uint64_t TscTime
TSC clock time point.
Definition
tsc.h:9
csrc
fetch
tcpcubic.h
Generated by
1.15.0