Show TCP conversation stats
Rank TCP conversations by bytes and packets to find the top talkers in a capture
tshark -r cap.pcap -q -z conv,tcp
- tool
- tshark4 commands
More tshark commands
-
tshark -i any -q -z io,stat,1,'COUNT(tcp.analysis.retransmission)tcp.analysis.retransmission'Retransmissions per second on live traffic. Helps match packet loss with app latency spikes
-
tshark -r cap.pcap -Y http.request -T fields -e ip.src -e http.host -e http.request.uri -E header=yPrint chosen fields as a table with a header. Easy to pipe into awk or CSV tools
-
tshark -r cap.pcap -q -z follow,tcp,ascii,0Rebuild stream 0 as readable ASCII. On servers, tshark is easier to use than Wireshark