From 11e9e351046d8f4ab61b8aaf975046215fba7c5d Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 13 Nov 2019 19:09:47 -0800 Subject: 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 --- src/vnet/session/transport_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/session/transport_types.h') 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 -- cgit 1.2.3-korg