The Internet: The TCP protocol
TCP means Transfer Control Protocol, and it’s the basis of the Web and other applications like Email. Defined in RFC 793 in 1981, TCP is one of the oldest pillars of the Internet. TCP sits on top of the Internet Protocol (IP). Upon it, other application-level protocols like HTTP, FTP, IMAP (and many others) operate. TCP, contrary to IP and UDP, is connection oriented. Before transmission can happen over TCP, a connection must be established. Data is sent, in form of little packets, and when the communication ends the connection is closed. When data is transmitted over TCP, there’s a relatively complex workflow called handshake that must happen. I will not go into the details here, but this handshake allows the end-to-end connection to happen, and this makes sure TCP can provide one of its peculiar features: reliability. Using TCP, we can always know if a packet the sender sent was received correctly by the receiver. If a packet gets lost, the protocol is able to handle it and the packe
By Flavio Copes Mar 16, 2020updated Aug 11, 2026 Learn how TCP works by building a small Node.js server and client, sending data between them, and watching the connection from your terminal. ~~~ Every time you open a website, a small conversation starts between your computer and a server. Your browser sends a request. The server sends back HTML, CSS, images, and other data. TCP is often the protocol carrying that conversation. Many application protocols are built on top of it. HTTP/1.1 and HTTP/2 use TCP for the web. SSH uses it for remote shells. SMTP and IMAP use it for email. FTP…
related reading
- TCP and UDP | Computer Securitytextbook.cs161.org
- RFC 761 - DoD standard Transmission Control Protocoldatatracker.ietf.org
- What is TCP/IP in Networking? | Fortinetfortinet.com
- The ultimate SO_LINGER page, or: why is my tcp not reliableblog.netherlabs.nl
- RFC 9293 - Transmission Control Protocol (TCP)datatracker.ietf.org
- How does the Internet Work? - cs.fyics.fyi
- Choose TCP or UDP — Networking Foundations Course | Flavio Copesthevalleyofcode.com
- The Internet explained from first principlesexplained-from-first-principles.com
- The Law of Leaky Abstractions – Joel on Softwarejoelonsoftware.com
- Reddit - Please wait for verificationreddit.com
- Why your website should be under 14kB in size | endtimes.devendtimes.dev
- Internet protocol suite - Wikipediaen.wikipedia.org