]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tcp: Make dsack stats available in netstat and also make sure its aware of TLP's.
authorRandall Stewart <rrs@FreeBSD.org>
Fri, 1 Oct 2021 14:32:30 +0000 (10:32 -0400)
committerRandall Stewart <rrs@FreeBSD.org>
Fri, 1 Oct 2021 14:36:27 +0000 (10:36 -0400)
commita36230f75e0ae5090e4ef47393536255b436cca6
tree679452e0fa26f10d6aa436d6fa0db1d50ed6e0a7
parent5b40c0aa73c57e51f07386835237debdea805418
tcp: Make dsack stats available in netstat and also make sure its aware of TLP's.

DSACK accounting has been for quite some time under a NETFLIX_STATS ifdef. Statistics
on DSACKs however are very useful in figuring out how much bad retransmissions you
are doing. This is further complicated, however, by stacks that do TLP. A TLP
when discovering a lost ack in the reverse path will cause the generation
of a DSACK. For this situation we introduce a new dsack-tlp-bytes as well
as the more traditional dsack-bytes and dsack-packets. These will now
all display in netstat -p tcp -s. This also updates all stacks that
are currently built to keep track of these stats.

Reviewed by: tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D32158
sys/netinet/tcp_sack.c
sys/netinet/tcp_stacks/bbr.c
sys/netinet/tcp_stacks/rack.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_var.h
usr.bin/netstat/inet.c