Wireshark 101: TCP Retransmissions and Duplicates, HakTip 133
Hak5
@hak5About
TRUST YOUR TECHNOLUST It's a simple mantra proclaimed throughout hundreds of episodes. We live it. We breathe it. We invite you to share this simple love for technology. As the longest running show on YouTube, these award winning shows serve as a platform to share our passions. Welcome! Founded in 2005, Hak5's mission is to advance the InfoSec industry. We do this through our award winning podcasts, leading pentest gear, and inclusive community – where all hackers belong. Subscribe and join us on our educational life-long journey through cyber security.
Latest Posts
Video Description
Hak5 -- Cyber Security Education, Inspiration, News & Community since 2005: ____________________________________________ Today on HakTip, Shannon explains TCP Retransmissions and TCP Duplicate Acknowledgments in reference to Wireshark. Oftentimes you'll find yourself faced with a really slow network. You may have trouble connecting or a site takes WAY too long to load. When a network is running slow, the communication has something called "high latency". If the communication is fast, it's considered "low latency". Whenever there is high latency and packet loss, it can happen because of a router under heavy load or a service outage, etc. TCP detects these things and resends the packets, hence TCP retransmission. TCP will judge the need for a retransmission based on the RTO or the retransmission timeout. If the packet never receives an ACK in the time frame set, it's retransmitted. The time between the two packets is called the round-trip time. Every time a retransmit happens, the RTO for that packet doubles. Eventually, depending on the senders computer settings, it'll just stop resending. Windows defaults to 5 attemps, some Linux PC's to 15. Check out a book called Practical Packet Analysis by Chris Sanders. It does crazy in depth on all this so I highly suggest checking it out. The first one looks fine, but it never receives an ACK, so the second one is the retransmission. The second packet looks exactly the same except it shows an RTO time under the Expert Info down near the bottom. The RTO time changes for each packet after this too, because they are all retransmissions. Moving on to TCP Duplicates... specifically duplicate acknowledgements. This happens when the destination received out of order packets. All TCP connections start with an initial sequence number or an ISN, and each packet after that will go up by the size of it's data payload. So if my computer has an ISN of 1000, and I send a packet with 200 bytes of data, then my acknowledgement should be 1200. So my next ISN should be 1200 and so on so forth. So if my computer skips a packet and the ISN is off, the ACK packet sent back to me will be a duplicate of the last correct one. So if I have an ISN of 1000 and send a packet of 200, the ACK will be 1200. My new ISN will be 1200, but my computer skips a packet and sends a packet with an ISN of 1400. The destination says, 'oh, thats not right. Let's try that again', and sends me a duplicate ACK for 1200. It'll do this three times until I finally send my next ISN as 1200, not 1400, in a packet called a Fast Retransmission. Let me know what you think. Send me a comment below or email us at [email protected]. And be sure to check out our sister show, Hak5 for more great stuff just like this. I'll be there, reminding you to trust your technolust. -~-~~-~~~-~~-~- Please watch: "Bash Bunny Primer - Hak5 2225" https://www.youtube.com/watch?v=8j6hrjSrJaM -~-~~-~~~-~~-~- ____________________________________________ Founded in 2005, Hak5's mission is to advance the InfoSec industry. We do this through our award winning educational podcasts, leading pentest gear, and inclusive community – where all hackers belong.
You May Also Like
Elevate Your Network Analysis
AI-recommended products based on this video

TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

MeLE Quieter DL Mini PC Windows 11 Home, N100 4GB 128GB, 2.5G Dual LAN,IoT Industrial Desktop Computer Support Windows 10 11 Linux Ubuntu Debian 4K Triple Display, Dual HDMI, All-in-One USB-C

Wireless Print Server for USB Printer (NOT Plug&Play), 2 Port USB Print Server, Convert Wired Printer to Wireless WiFi Ethernet Networking - Windows Mac Linux Compliant - CR202








![Hacking Ford Key Fobs Pt. 1 - SDR Attacks with @TB69RR - Hak5 2523 [Cyber Security Education]](https://imgz.pc97.com/?width=500&fit=cover&image=https://i.ytimg.com/vi/k8rNQ3mBZQ4/hqdefault.jpg)
