How to filter out TCP retransmissions
asked Nov 17 '17
I have the tcp and ip header of some captured traffic as follow:
1510103571.963031 MAC1> MAC2, ethertype IPv4 (0x0800), length 74: (tos 0x0, ttl 64, id 39321, offset 0, flags [DF], proto TCP (6), length 60)
ip1.43020 > ip2.443: Flags [S], cksum 0x6d38 (incorrect -> 0x742d), seq 373163901, win 65535, options [mss 1460,sackOK,TS val 6528740 ecr 0,nop,wscale 6], length 0
How can I filter out tcp retransmissions packets?

The captured traffic isn't in the readable format of the Wireshark. I have just the header of the captured traffic as the sample above. How can I filter out TCP retransmission myself using the header information?
There is no direct flag transmitted on the wire in the tcp header saying it's a retransmission, it's inferred by sequence number analysis.
You'll have to do tcp reassembly and note when a sequence number is retransmitted.
could you help me with it? how should I check them myself?
Have a look at this SharkFest presentation from @User 96950 on tcp analysis.
Thanks @User 98587 - but better use the PPT instead, because it has the animations: https://sharkfest.wireshark.org/asset...