How TCP Works: The Protocol That Runs The Web
An accessible technical guide to the Transmission Control Protocol, exploring the three-way handshake, packet sequencing, and guaranteed delivery.
Guaranteed Delivery
When you download a file, load a webpage, or send an email, your computer relies on the Transmission Control Protocol (TCP). The internet is inherently chaotic; data travels across dozens of different routers, and sometimes packets are dropped or take different routes and arrive out of order.
TCP is designed to bring order to this chaos. It provides a guaranteed, reliable connection between two computers. If a packet gets lost in transit, TCP detects the missing piece and automatically requests the sender to retransmit it. It also reassembles packets in the correct sequence before handing the complete file to your web browser.
The Three-Way Handshake: Client: "SYN" (Hello, can we talk?) Server: "SYN-ACK" (Yes, I hear you, can you hear me?) Client: "ACK" (Yes, I hear you too. Let's begin.)
The Cost of Reliability
This strict reliability comes at a cost. Before any data can be transferred, TCP requires a three-way handshake to establish the connection. This means your computer and the server must send empty messages back and forth just to say hello. Furthermore, TCP requires the receiver to send acknowledgment messages for the data it receives. If the sender does not get an acknowledgment, it halts the transfer and waits.
Why This Affects Your Speed Test
Our download and upload speed tests run entirely over TCP. Because TCP aggressively scales back its transmission speed if it detects packet loss, your speed test results can plummet drastically on an unstable Wi-Fi connection. Even if your router has the bandwidth capacity, TCP will intentionally slow down the file transfer to ensure every single packet arrives safely without overwhelming the unstable connection.