History

tcp: Add TCP_INFO counter for packets received out-of-order

For receive-heavy cases on the server-side, we want to track the connection quality for individual client IPs. This counter, similar to the existing system-wide TCPOFOQueue counter in /proc/net/netstat, tracks out-of-order packet reception. By providing this counter in TCP_INFO, it will allow understanding to what degree receive-heavy sockets are experiencing out-of-order delivery and packet drops indicating congestion. Please note that this is similar to the counter in NetBSD TCP_INFO, and has the same name. Also note that we avoid increasing the size of the tcp_sock struct by taking advantage of a hole.

Thomas Higdon committed 7 years ago

Commit f9af2db1 parent 40ba6a14 files · +7 −0Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/tcp.h+2−0
@@ -354,6 +354,8 @@ struct tcp_sock { · 353 unmodified lines
354354 #define BPF_SOCK_OPS_TEST_FLAG(TP, ARG) 0
355355 #endif
356356
357+ u32 rcv_ooopack; /* Received out-of-order packets, for tcpinfo */
358+
357359 /* Receiver side RTT estimation */
358360 u32 rcv_rtt_last_tsecr;
359361 struct {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t