diff options
author | Florin Coras <fcoras@cisco.com> | 2019-11-13 19:09:47 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-11-20 18:34:07 +0000 |
commit | 11e9e351046d8f4ab61b8aaf975046215fba7c5d (patch) | |
tree | 950838b8740b5b7e56a5157df8ac748b3868c920 /src/vnet/session/transport_types.h | |
parent | d28437cdf2133533c9092b881ce0e4c243d6c1f6 (diff) |
session tcp: support pacer idle timeouts
Type: feature
To avoid excessive bursts, pacer must be provided with an estimated rtt
for the connection. That's used to compute an idle timeout, i.e., time
after which the bucket is reset to 1 mtu due to inactivity. For now,
idle timeout is computed as 5% of the rtt.
Change-Id: Ia0b752fe7b4ad0ce97b477fb886b0133a2321541
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/transport_types.h')
-rw-r--r-- | src/vnet/session/transport_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/session/transport_types.h b/src/vnet/session/transport_types.h index b39a07cd3de..214a6380d88 100644 --- a/src/vnet/session/transport_types.h +++ b/src/vnet/session/transport_types.h @@ -54,6 +54,7 @@ typedef struct _spacer u64 bucket; clib_us_time_t last_update; f32 tokens_per_period; + u32 idle_timeout_us; } spacer_t; #define TRANSPORT_CONN_ID_LEN 44 |