Tuesday, October 20, 2026 Independent journalism
MediaChannel

technology

What is a TCP/IP stack and how does it move your data?

The TCP/IP stack is the invisible framework that every internet connection depends on, yet most Australians have never heard of it. Here's how it works and why it matters.

Fiber optical device with similar bright connectors with blue cables made of rubber with plastic pigtails on edges

Photo by Brett Sayles on Pexels

The TCP/IP stack sits at the heart of every internet connection you make. It doesn't matter whether you're streaming video, sending an email, or loading a news article: data moves because of the rules TCP/IP defines. Understanding the stack won't turn you into a network engineer, but it will explain something that touches every part of your digital life.

What TCP/IP actually is

TCP/IP stands for Transmission Control Protocol / Internet Protocol. It's not a single thing. It's a layered set of rules, each layer handling a different piece of the job of moving data from one device to another. The name refers to the two most important protocols in the stack, but the full model includes others working below and above them.

The internet runs on TCP/IP because it was designed to. The US Department of Defense's ARPANET project adopted the model in the early 1980s, and it has remained the global standard ever since. There are other networking models, but TCP/IP is the one the internet uses. That's not a technicality; it's why the entire system works.

The four layers and what each one does

The TCP/IP model is split into four layers. Each layer talks to the one directly above and below it, passing data down when sending and back up when receiving. Think of it as an assembly line running in both directions.

The application layer sits at the top and is the part your software interacts with. When your browser requests a web page, it uses HTTP or HTTPS at this layer. Email uses SMTP. File transfers use FTP. The application layer doesn't know anything about wires or radio signals. It just knows what the user is trying to do and formats the data accordingly.

The transport layer is where TCP lives. TCP takes the data from the application layer and breaks it into segments. It numbers each segment, so the receiving end knows the correct order. It also handles acknowledgements: if a segment goes missing, TCP asks for it again. This is what makes TCP "reliable." The alternative at this layer is UDP, which skips the acknowledgements for speed. Live video calls use UDP because a dropped frame is less disruptive than a noticeable delay.

The internet layer is where IP lives. IP assigns source and destination addresses (IP addresses) to each packet and decides the route. Routers operate at this layer. They read the destination IP address and forward the packet toward its target, one hop at a time. The internet layer doesn't guarantee delivery. That's TCP's job.

The network access layer (sometimes called the link layer) handles the physical transmission: the actual signals moving over cables, fibre, or wireless spectrum. Ethernet and Wi-Fi operate here. This layer translates digital packets into electrical signals, light pulses, or radio waves, depending on the medium.

How a single request travels through the stack

Here's what happens when you type a URL into your browser and press Enter.

Your browser (application layer) formats an HTTP request. The transport layer wraps that in a TCP segment, adding port numbers and sequence information. The internet layer wraps that in an IP packet, stamping it with your device's IP address and the server's IP address. The network access layer converts all of that into a signal and fires it down the wire or through the air.

At the other end, the process reverses. The server's network hardware receives the signal and strips the link-layer wrapping. The internet layer reads the IP address and confirms it's the intended recipient. The transport layer reassembles the TCP segments in order. The application layer reads the HTTP request and sends back the web page.

That whole exchange happens in milliseconds. Usually less than 100 of them.

What IP addresses and ports actually do

An IP address identifies a device on a network. A port number identifies a specific service on that device. Your laptop might have one IP address but dozens of active connections at once, each using a different port. Port 443 is HTTPS. Port 25 is SMTP (email). Port 53 is DNS.

When data arrives at your device, the operating system reads the port number and hands the data to whichever application is listening on that port. Without ports, a single IP address could only run one network service at a time. The port system is what allows a web server to serve websites, handle email, and run SSH simultaneously on the same machine.

For a deeper look at how the internet translates names to IP addresses before any of this begins, the DNS system is the piece that runs first. Every connection starts there.

TCP vs UDP: when reliability isn't worth it

TCP's acknowledgement system adds overhead. For every group of segments sent, the receiver must confirm receipt before the sender continues. That back-and-forth costs time. For most applications, the cost is worth it: you don't want a corrupted file or a garbled email.

But real-time applications can't afford it. A video call doesn't benefit from re-requesting a dropped packet from two seconds ago. By the time the packet arrives again, the moment has passed. UDP skips acknowledgements entirely and lets the application handle any errors itself. It's faster and leaner, and the right choice when speed matters more than perfect accuracy.

Online gaming, live broadcasts, and voice-over-IP all rely on UDP. File downloads, web browsing, and email all rely on TCP. Both protocols live at the transport layer and use the same IP infrastructure below them.

Where the stack connects to other security concepts

The TCP/IP model explains why so many security threats work the way they do. A DDoS attack floods the network and transport layers with traffic, overwhelming a server's ability to process legitimate requests. The attack doesn't need to break encryption or steal credentials. It just needs to exhaust resources at the packet level.

Firewalls inspect packets at the internet and transport layers, blocking traffic based on IP addresses and port numbers. A firewall rule that blocks port 22 stops SSH connections before they reach the application. The rule operates two layers below the application, which is why it can't see the content of what's being sent, only the addressing and port metadata.

The Internet Engineering Task Force (IETF) is the standards body that publishes and maintains the technical specifications for TCP, IP, UDP, and the protocols built on top of them. Every RFC (Request for Comments) document defining how these protocols behave is publicly available and freely readable.

Why this matters for everyday users

You don't need to configure TCP/IP to use the internet. Your operating system handles it automatically. But understanding the stack helps make sense of things that would otherwise be confusing. Why do some applications feel faster than others on the same connection? Often it's the transport protocol. Why does changing your DNS server sometimes speed up browsing? Because DNS sits at the application layer and resolves before any content loads.

The stack isn't abstract theory. It's the reason data arrives in the right order, at the right device, on the right application, every single time you click something.