What it is
TCP (Transmission Control Protocol) is a transport protocol that provides reliable, ordered delivery between two endpoints. Applications write bytes to TCP and read bytes from TCP; TCP decides how to split that stream into segments, how to recover from loss, and how to present the data to the receiver in the correct order.
Key points
- Starts with a handshake that synchronizes state between two endpoints.
- Tracks sequence numbers so the receiver can reorder data and detect loss.
- Uses flow control and congestion control so it does not overwhelm networks or receivers.
Concrete example
You load a website. Your browser opens a TCP connection to the server, completes the handshake, then sends an HTTP request. If a packet is lost on the way, TCP retransmits it, and your browser still receives the full response in order without knowing a loss happened.