What are the layers of the TCP/IP model, and how does it differ from the OSI model?
EasyConceptOSI & TCP/IP Models
Answer
The TCP/IP model is the four-layer model the internet is actually built on: Application, Transport, Internet and Network Access (also called Link). It merges the top three OSI layers into a single Application layer and the bottom two into Network Access.
| OSI layers | TCP/IP layer | Protocols |
|---|---|---|
| Application, Presentation, Session | Application | HTTP, DNS, SMTP, TLS |
| Transport | Transport | TCP, UDP |
| Network | Internet | IP, ICMP |
| Data Link, Physical | Network Access | Ethernet, Wi-Fi |
- OSI was designed as a general reference before its protocols existed and is mainly used for teaching and troubleshooting. TCP/IP grew out of protocols that already worked, so it describes real implementations.
- In TCP/IP, jobs such as encryption and session handling are left to applications and libraries, for example TLS.
- Many textbooks use a five-layer hybrid model that keeps Physical and Data Link separate.
Example: When you load a web page, HTTP runs in the TCP/IP Application layer, TCP in Transport, IP in Internet and Wi-Fi in Network Access. Describing the same request in OSI terms simply splits the top and bottom layers more finely.