TCP/IP and OSI Models


TCP/IP and OSI Models

Anna
You know, Michael, one of the first things network engineers learn is the TCP/IP model. You'll hear them say things like 'there's a problem at Layer 3' or 'that's a Layer 7 issue.' But what does that really mean? Today we're going to break down both the TCP/IP model and the OSI model so you can speak that language confidently.

Michael
And it's not just jargon—these models exist for a reason. Back in the day, every vendor had its own proprietary protocols and hardware. You couldn't plug a Cisco switch into a Netgear switch with the same cable, just like an old iPhone with a Lightning cable wouldn't work with a USB-C charger. The OSI model—Open Systems Interconnection—was created to standardize things.

Anna
Exactly! The goal was interoperability: standard interfaces, standard protocols, so devices from different vendors could talk to each other. For example, the RJ45 connector and Ethernet cables we use today are universal. You can plug that same cable into a Cisco switch, a UniFi switch, or a TP-Link router. That's standardization in action.

Michael
So models like OSI and TCP/IP define how networking should work. Let's start with the OSI model—seven layers. And there's a mnemonic: 'All People Sleeping Through Networking Don't Pass.' Each word corresponds to a layer from bottom to top: Physical, Data Link, Network, Transport, Session, Presentation, Application.

Anna
But here's the twist: the OSI model is a conceptual framework. In the real world, we actually use the TCP/IP model. And TCP/IP has been through some changes. Originally it had four layers: Link, Internet, Transport, and Application. But today, the CCNA and most networking courses teach a five-layer hybrid model that merges the OSI layers with TCP/IP.

Michael
Right—the five-layer TCP/IP model consists of Physical (Layer 1), Data Link (Layer 2), Network (Layer 3), Transport (Layer 4), and Application (Layer 5). So it takes the OSI's split of Physical and Data Link separately, but combines the OSI's Session and Presentation layers into Application.

Anna
And here's where it gets confusing: even though we only have five layers in TCP/IP, network engineers still refer to 'Layer 7' from the old OSI model. So if someone says 'Layer 7 problem,' they mean an application-layer issue. You need to be comfortable with both references—the five-layer model for the exam and the seven-layer lingo from real-world talk.

Michael
Let's dig into each layer. Layer 1—Physical—is the easiest. It's all about transmitting raw bits over some medium: electrical signals over copper, light pulses over fiber, or radio waves over Wi-Fi. So a CAT5e cable, a fiber optic cable, or a Starlink dish are all Layer 1 implementations.

Anna
Then Layer 2—Data Link—handles framing, error detection, and physical addressing using MAC addresses. But notice it's only between directly connected devices. For example, when your PC sends traffic to your router via Ethernet, the Layer 2 frame uses Ethernet encapsulation. But if the router then forwards that traffic over a serial link, the Layer 2 encapsulation changes—maybe to PPP or HDLC—because that link doesn't use MAC addresses.

Michael
Right—each hop in the network has its own Layer 2 encapsulation. That's why we call a Layer 2 unit a 'frame.' And the router strips off the original frame and builds a new one for the next link. Meanwhile, Layer 3—Network—is end-to-end. It uses IP addresses (logical addresses) that you can change, like when you connect to a different Wi-Fi network and get a new IP via DHCP.

Anna
Exactly. Layer 3 units are called 'packets.' And the network layer determines the best path to get from source to destination across multiple hops. That's where routing protocols like OSPF come in—they help routers decide which path is best based on metrics like bandwidth. And IP addressing allows us to group devices into subnets, like 192.168.1.0/24.

Michael
Then we have Layer 4—Transport—which provides communication between end devices. The big two protocols here are TCP and UDP. TCP is connection-oriented—like a phone call. It sets up a three-way handshake, sends data, and expects acknowledgments. UDP is more like a postcard: you send it and hope it arrives—no confirmation.

Anna
And at Layer 5—Application—we find the protocols we actually use: HTTP, HTTPS, FTP, TFTP, SSH, Telnet, and so on. These all operate at the top layer. But remember, in the OSI model, the application layer actually spans layers 5, 6, and 7 (Session, Presentation, Application). In TCP/IP, they're rolled into one.

Michael
Now, devices also fit into specific layers. A hub is a Layer 1 device—it just repeats electrical signals. A switch or bridge operates at Layer 2, forwarding frames based on MAC addresses. A router works at Layer 3, forwarding packets based on IP addresses. And firewalls or load balancers often inspect up to Layer 4 or even application layer.

Anna
One important thing: don't get too hung up on trying to fit every protocol neatly into a single layer. The models are simplifications. For example, sometimes application developers put protocols in weird places. But for the CCNA exam, we stick to the standard placement: IP at Layer 3, TCP/UDP at Layer 4, and so on.

Michael
And just to reinforce the terminology: at Layer 1 we talk about 'bits,' at Layer 2 'frames,' at Layer 3 'packets,' and at Layer 4 'segments.' So if someone says 'I see a frame issue,' you know it's a Layer 2 problem. If they say 'packet loss,' that's likely Layer 3.

Anna
To sum it up: the OSI model is a great theoretical tool, but the TCP/IP model—specifically the five-layer hybrid—is what we actually use. You'll need to know which protocols and devices live at each layer, and understand how encapsulation changes as data moves through the stack.

Michael
And when you start capturing traffic with tools like Wireshark, you'll see these layers in action. It might look overwhelming at first, but once you understand the model, you can pick apart any network problem. So for the exam: focus on the five-layer TCP/IP model and be ready to translate 'Layer 7' references back to the application layer.

Ask anything
We've read this whole study set, so questions about it get the best answers.