TCPDUMP – How to Calculate Packet Loss from a Binary TCPDUMP File

networkingtcptcpdump

Our connection to just one remote server on port 80 over the internet is not working properly. (From time to time it is working and sometimes not)

It must be some kind of packet loss, because from other clients there are no problems. It is just happening from one client to the remote server.

Usually, i messure packet loss with ping, but the remote server is blocking ICMP.

I made a binary TCPDUMP file. How can i see if there is packet loss?


capturing was done on the client. we do not have ssh access to the remote server.

Best Answer

You can measure packet retransmits from the client to the server by counting the number of duplicate sequence numbers.

Packet retransmits from the server to the client can be measured by counting duplicate Ack numbers.

Note that a retransmit is triggered by more than just total loss (= timeout); if the remote machine rejects the packet, or the packet is corrupted, the local machine must also retransmit.