In the TCP/IP model vs OSI model comparison, OSI’s seven layers suit learning and troubleshooting, while TCP/IP’s four layers describe how the internet actually runs, according to Lightyear. Learn both.
Readers working towards certification can pair this comparison with a guide on how to prepare for ccna. The 7 layers of the osi model guide walks through each OSI layer in turn.
Side-by-side comparison
The two models describe the same job, moving data between applications on different machines, but they differ in origin, size and purpose. The table puts them on common criteria and says what each difference means when choosing which one to reach for.
| Criterion | OSI model | TCP/IP model | Planning use |
|---|---|---|---|
| Number of layers | Seven | Four, with a five-layer version also commonly used | Check which count a course or exam question assumes before answering. |
| Developed by | ISO | The U.S. Department of Defense, alongside the internet | Explains why one is a standards-body framework and the other grew with real networks. |
| Character | Theoretical and prescriptive | Practical and descriptive | Use OSI to reason about concepts and TCP/IP to describe what is deployed. |
| Protocol dependence | Protocol-independent | Built around TCP and IP | OSI fits any protocol family; TCP/IP is tied to its own suite. |
| Transport behaviour | Transport layer supports connection-oriented communication only | Supports both connection-oriented (TCP) and connectionless (UDP) communication | Real-world transport questions are answered in TCP/IP terms. |
| Typical use | Reference and troubleshooting guide | Blueprint for the modern internet | Reach for OSI when diagnosing, TCP/IP when describing a live network. |
The comparison draws on Lightyear’s OSI versus TCP/IP breakdown and the layer-count note in a dev.to networking fundamentals post.
Layer-by-layer mapping
The four TCP/IP layers absorb the seven OSI layers by merging neighbours at the top and the bottom. The middle two layers, transport and network, line up directly.
| TCP/IP layer | OSI layers it covers | Data unit | Examples |
|---|---|---|---|
| Application | Application, Presentation and Session (layers 7, 6 and 5) | Not named in the supplied material | HTTP for web browsing, SMTP for email |
| Transport | Transport (layer 4) | Segment | TCP, UDP |
| Internet | Network (layer 3) | Packet | IP |
| Network Access (link layer) | Data Link and Physical (layers 2 and 1) | Frame at layer 2, bits at layer 1 | ARP, MAC addressing |
The mapping follows Lightyear’s layer descriptions, with data units taken from the dev.to networking fundamentals post.
In practice, the same dev.to post notes that presentation and session functions are handled within the application layer. That is why collapsing three OSI layers into one is not just a drawing convenience. Software such as a web browser or mail client usually does all three jobs at once.
Four layers or five?
Lightyear presents TCP/IP as a four-layer model with a combined Network Access layer. The dev.to post says the model has four layers but also notes that a five-layer version is commonly used.
The practical rule is to read the question, not memorise a number. If a course draws four layers, treat Network Access (the link layer) as OSI layers 1 and 2 together. If it draws five, expect the physical and data link functions to be separated, which sits comfortably with the dev.to remark that layers 1 to 4 are exactly the same in both models. Neither count changes how the top and middle layers map.
Where common protocols sit
Protocol placement is where the two models give the same answer in different words. Each protocol belongs to one TCP/IP layer and to a matching OSI layer, as set out by Lightyear and the dev.to post.
- HTTP and SMTP: both are application-layer protocols, HTTP for web browsing and SMTP for email. HTTP defines a number of headers at this level.
- TCP: a transport-layer protocol for connection-oriented communication. It performs a three-way handshake before any application data is sent.
- UDP: also at the transport layer, but connectionless. It is faster because it transmits data without verifying that it reaches the destination.
- IP: operates at the Internet layer, equivalent to OSI layer 3, where addressing and routing happen. For the addresses themselves, see ip addressing explained.
- ARP: a layer 2 protocol that maps IP addresses to MAC addresses, so it falls inside the TCP/IP link layer.
A useful habit is to attach a layer to each protocol the first time it appears in a study session. A protocol that you can place in both models is one you can also explain when a question uses either vocabulary.
Why the internet runs TCP/IP while courses teach OSI
The internet runs on TCP/IP because that protocol stack proved more practical, according to the dev.to post. It was developed by the U.S. Department of Defense alongside the internet, which is why Lightyear calls it the blueprint for the modern internet.

OSI came from ISO as a theoretical, prescriptive framework. Because it is protocol-independent, it works well as a neutral vocabulary, and the same dev.to post notes that educators primarily use it when explaining network concepts. The result is a split most learners meet early: textbooks and instructors speak OSI, while the traffic on the wire is TCP/IP.

That split is not a contradiction. Treat OSI as the teaching map and TCP/IP as the description of the territory. When the two disagree, such as on transport behaviour, the deployed TCP/IP suite is what real equipment implements.

Choosing a model for study, exams and troubleshooting
Use whichever model the task calls for, and expect to switch between them. Lightyear describes OSI as primarily a reference and troubleshooting guide, so it is the one to apply when isolating a fault by layer. TCP/IP is the one to apply when describing how a real connection is built.
Study and certification
For CCNA and Network+, learn both models and be able to translate between them. The material supplied here does not list exam objectives, so check the current official exam topics for exact wording. What the comparison does support is that OSI is the common teaching framework, which makes its layer names and numbers likely vocabulary in study material, while TCP/IP is what the protocols belong to.
- Memorise OSI layer names and numbers first. Engineers talk about the application layer as Layer 7 regardless of protocol stack, so the numbering travels well between models.
- Then learn the TCP/IP grouping. The mapping table above is the quickest way to see which OSI layers collapse together.
- Practise placing protocols. Being able to say where HTTP, TCP, UDP, IP and ARP sit in both models covers most comparison questions.
Troubleshooting and describing live networks
When something fails, work through OSI layers in order, from the hardware at the bottom upward, because the model gives each symptom a place to belong. When explaining how a connection actually works, switch to TCP/IP terms: an IP address for the Internet layer and TCP or UDP at the transport layer.
Be careful with one edge case. If a question says the transport layer supports both connection-oriented and connectionless service, it is using TCP/IP, because the OSI transport layer, per Lightyear, supports connection-oriented communication only. Reading for that cue avoids a common trap.
Frequently asked questions
Is the OSI model tied to specific protocols?
No. The OSI model is protocol-independent, while TCP/IP is built around TCP and IP.
What is the difference between IP addresses and MAC addresses?
IP addresses are used for end-to-end transmission, while MAC addresses are used for hop-to-hop transmission, according to the dev.to networking post.
What does the bottom layer include?
The Physical layer is the network hardware, including cables, switches and network interface cards. In TCP/IP it is combined with the Data Link layer into Network Access.
What do engineers mean by Layer 7?
They mean the application layer, and they call it Layer 7 regardless of the protocol stack in use.



