← Module 01 · Networking Fundamentals

OSI Model vs TCP/IP Model

Two different ways of slicing up "everything involved in getting data from A to B" into layers. You'll hear both used interchangeably in the real world, so you need to be fluent in both.

Why layer anything at all?

A single web request touches dozens of separate concerns: what the user asked for, how the data is encoded, whether the connection is encrypted, how it's split into packets, which path those packets take across the internet, and how electrical signals move across a physical cable. No single piece of software could sanely handle all of that at once. So networking splits the problem into layers, each one solving exactly one concern and trusting that the layer below it already solved its own.

A food delivery app works the same way. The app itself only cares about what you ordered. It doesn't think about how your payment gets encrypted, which delivery zone your address falls into, or which street the rider takes to get there. Those are separate systems, each doing one job. OSI and TCP/IP are just two different ways of drawing the lines between those jobs for a network connection. We'll use this same delivery app the whole way down, one layer at a time, so the mapping actually sticks.

The OSI Model (7 layers)

OSI (Open Systems Interconnection) is the academic, 7-layer version. Almost nothing implements it exactly as written, but its vocabulary is what engineers actually say out loud: "that's a Layer 2 problem," "we're seeing Layer 7 errors." You need the terms even though the real internet doesn't run on this model directly.

The TCP/IP Model (4 layers)

TCP/IP is the model the real internet is actually built on. It's more practical than OSI because it merges layers that, in practice, get handled by the same piece of software anyway.

OSI MODEL TCP/IP MODEL 7 · Application 6 · Presentation 5 · Session 4 · Transport 3 · Network 2 · Data Link 1 · Physical Application Transport Internet Network Access
OSI's Application, Presentation, and Session layers all collapse into one TCP/IP Application layer; Data Link and Physical collapse into Network Access.

Side by side

OSI LayerTCP/IP LayerDelivery-app equivalentExamples
7 Application, 6 Presentation, 5 SessionApplicationPlacing the order, encrypting payment, keeping the order thread openHTTP, DNS, TLS, SSH, RPC
4 TransportTransportTracked order updates vs. a fire-and-forget notificationTCP, UDP
3 NetworkInternetDispatch routing the order across the cityIP, ICMP (Internet Control Message Protocol), routers
2 Data Link, 1 PhysicalNetwork AccessThe rider finding your door, and the road they rode in onEthernet, MAC addresses, Wi-Fi, fiber, copper
WHY YOU NEED BOTH

Engineers talk in OSI terms because it's precise and it's what everyone was taught: "that's a Layer 3 issue," "we're doing Layer 2 troubleshooting." But the packets actually on the wire are structured according to TCP/IP's four layers. Expect to use OSI vocabulary in conversation and TCP/IP's real header structures when you're reading a packet capture.