Saturday, October 29, 2022

[SOLVED] Counting TCP retransmissions

Issue

I would like to know if there is a way to count the number of TCP retransmissions that occurred in a flow, in LINUX. Either on the client side or the server side.


Solution

You can see TCP retransmissions for a single TCP flow using Wireshark. The "follow TCP stream" filter will allow you to see a single TCP stream. And the tcp.analysis.retransmission one will show retransmissions.

For more details, this serverfault question may be useful: https://serverfault.com/questions/318909/how-passively-monitor-for-tcp-packet-loss-linux



Answered By - Christian Hudon
Answer Checked By - Pedro (WPSolving Volunteer)