Subject: Re: [PATCH net-next] tcp: add tcpi_segs_in and tcpi_segs_out to tcp_info

From: Rick Jones <[email-masked]>
Date: Wed, 20 May 2015 17:06:37 -0700

On 05/20/2015 04:35 PM, Eric Dumazet wrote:
> From: Marcelo Ricardo Leitner <[email-masked]>
>
> This patch tracks the total number of inbound and outbound segments on a
> TCP socket. One may use this number to have an idea on connection
> quality when compared against the retransmissions.
>
> RFC4898 named these : tcpEStatsPerfSegsIn and tcpEStatsPerfSegsOut
>
> These are a 32bit field each and can be fetched both from TCP_INFO
> getsockopt() if one has a handle on a TCP socket, or from inet_diag
> netlink facility (iproute2/ss patch will follow)

I suppose it is far-fetched, but is it a concern that at 100 Gbit/s and 
1500 byte MTU the 32 bit segment counter would wrap in something like 
500 seconds and change?

rick jones