Skip to content

tcp: add 4 new stats

Wei Wang netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v14 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tcp: add a helper to calculate size of opt_statsnet/ipv4/tcp.c+24 -30 replies
2/5tcp: add data bytes sent statsinclude/linux/tcp.h include/uapi/linux/tcp.h net/ipv4/tcp.c +1 more+13 -10 replies
3/5tcp: add data bytes retransmitted statsinclude/linux/tcp.h include/uapi/linux/tcp.h net/ipv4/tcp.c +1 more+11 -00 replies
4/5tcp: add dsack blocks received statsinclude/linux/tcp.h include/uapi/linux/tcp.h net/ipv4/tcp.c +1 more+10 -00 replies
5/5tcp: add stat of data packet reordering eventsinclude/linux/tcp.h include/uapi/linux/tcp.h net/ipv4/tcp.c +2 more+11 -40 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchNeal CardwellSoheil Hassas YeganehYuchung Cheng
1/5A-b A-b A-b
2/5A-b A-b A-b
3/5A-b A-b A-b
4/5A-b A-b A-b
5/5A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/5] tcp: add 4 new stats

From: Wei Wang <[email protected]>

This patch series adds 3 RFC4898 stats:
1. tcpEStatsPerfHCDataOctetsOut
2. tcpEStatsPerfOctetsRetrans
3. tcpEStatsStackDSACKDups
and an addtional stat to record the number of data packet reordering events seen:
4. tcp_reord_seen

Together with the existing stats, application can use them to measure the retransmission rate in bytes, exclude spurious retransmissions reflected by DSACK, and keep track of the reordering events on live connections.
In particular the networks with different MTUs make bytes-based loss stats more useful. Google servers have been using these stats for many years to instrument transport and network performance.

Note: The first patch is a refactor to add a helper to calculate opt_stats size in order to make later changes cleaner.

Wei Wang (5):
tcp: add a helper to calculate size of opt_stats
tcp: add data bytes sent stats
tcp: add data bytes retransmitted stats
tcp: add dsack blocks received stats
tcp: add stat of data packet reordering events

 include/linux/tcp.h      | 13 ++++++++++--
 include/uapi/linux/tcp.h | 10 ++++++++-
 net/ipv4/tcp.c           | 46 +++++++++++++++++++++++++++++++++++++---
 net/ipv4/tcp_input.c     |  4 +++-
 net/ipv4/tcp_output.c    |  2 ++
 net/ipv4/tcp_recovery.c  |  2 +-
 6 files changed, 69 insertions(+), 8 deletions(-)
Signature · 1 line
2.18.0.345.g5c9ce644c3-goog