The TCP/IP Model โ Revision Notes
The TCP/IP model is the practical counterpart to OSI and a common interview compare-and-contrast: "difference between OSI and TCP/IP" is asked frequently. TCP/IP is what the real internet runs on, so know its layers and how they map to OSI.
The four layers
| TCP/IP layer | Maps to OSI | Protocols |
|---|---|---|
| Application | App + Presentation + Session | HTTP, FTP, DNS, SMTP |
| Transport | Transport | TCP, UDP |
| Internet | Network | IP, ICMP, ARP |
| Network Access (Link) | Data Link + Physical | Ethernet, Wi-Fi |
OSI vs TCP/IP
- Layers: OSI has 7, TCP/IP has 4 (some models say 5).
- Origin: TCP/IP's protocols came first, then the model (practical/descriptive); OSI is a reference/theoretical model designed before its protocols.
- Usage: TCP/IP is what the actual internet uses; OSI is mainly a teaching/reference framework.
Exam Tricks & Tips
- ๐ฏ TCP/IP has 4 layers (Application, Transport, Internet, Network Access) vs OSI's 7 โ the headline difference.
- ๐ฏ TCP/IP's Application layer combines OSI's Application + Presentation + Session; its Network Access combines Data Link + Physical.
- ๐ฏ TCP/IP is protocol-first (practical); OSI is model-first (theoretical) โ a favourite comparison point.
- ๐ฏ The Internet layer (TCP/IP) corresponds to OSI's Network layer โ home of IP.
- ๐ฏ TCP/IP is the model the real internet actually runs on; OSI is a reference standard.
- ๐ฏ Both are layered with encapsulation โ each layer adds its own header as data descends.
- โ Common mistake: mapping TCP/IP's Application layer to only OSI's Application โ it also covers Presentation and Session.
Expected pattern
"OSI vs TCP/IP", "how many layers in TCP/IP?", "which OSI layers does the TCP/IP application layer cover?", "which model does the internet use?", and mapping a protocol to its TCP/IP layer.
Quick recap
TCP/IP has 4 layers: Application (=OSI app+presentation+session), Transport (TCP/UDP), Internet (IP/ICMP/ARP = OSI network), Network Access (=data link+physical). It's protocol-first and practical โ what the internet runs on โ versus OSI's 7-layer theoretical reference model.
The TCP/IP Model โ Flashcards
Cover the answer, recall, then check. 11 cards on the TCP/IP model.
Q1. How many layers does the TCP/IP model have?
A1. Four: Application, Transport, Internet, and Network Access (Link). Some texts split it into five.
Q2. Which OSI layers does the TCP/IP Application layer cover?
A2. OSI's Application, Presentation, and Session layers combined.
Q3. Which OSI layers does the TCP/IP Network Access layer cover?
A3. OSI's Data Link and Physical layers.
Q4. Which TCP/IP layer corresponds to OSI's Network layer?
A4. The Internet layer โ home of IP, ICMP, and ARP.
Q5. What protocols live at the TCP/IP Transport layer?
A5. TCP and UDP.
Q6. Key origin difference between OSI and TCP/IP?
A6. TCP/IP's protocols were built first and the model described them (practical); OSI is a model designed before its protocols (theoretical).
Q7. Which model does the real internet use?
A7. The TCP/IP model.
Q8. Name two Application-layer protocols in TCP/IP.
A8. HTTP, FTP, DNS, or SMTP (any two).
Q9. Which layer does IP belong to in TCP/IP?
A9. The Internet layer.
Q10. How many layers does OSI have compared to TCP/IP?
A10. OSI has 7; TCP/IP has 4 โ OSI is more granular.
Q11. What do both models share structurally?
A11. Both are layered and use encapsulation, with each layer adding a header as data moves down the stack.
The TCP/IP Model
The internet doesn't actually run on OSI โ it runs on TCP/IP, a leaner, practical model that predates OSI and became the real-world standard. Knowing how its layers map to OSI and which protocols live where is core networking knowledge.
Core idea: the TCP/IP model is the 4-layer (sometimes 5) architecture the internet is built on: Application, Transport, Internet, Network Access (Link). It's protocol-driven and practical โ built around the actual TCP and IP protocols โ rather than a purely conceptual reference like OSI.
How it works
Beginner โ the four layers
- Application โ end-user protocols: HTTP, FTP, DNS, SMTP (combines OSI's Application + Presentation + Session).
- Transport โ end-to-end delivery: TCP (reliable) and UDP (fast). Same role as OSI L4.
- Internet โ logical addressing and routing: IP, ICMP, ARP. Same role as OSI L3 (Network).
- Network Access / Link โ physical transmission + MAC (combines OSI's Data Link + Physical).
Intermediate โ mapping to OSI
| TCP/IP layer | OSI layer(s) | Key protocols |
|---|---|---|
| Application | 7 App + 6 Presentation + 5 Session | HTTP, DNS, SMTP, FTP |
| Transport | 4 Transport | TCP, UDP |
| Internet | 3 Network | IP, ICMP, ARP |
| Network Access | 2 Data Link + 1 Physical | Ethernet, Wi-Fi |
The Transport and Internet layers map one-to-one with OSI; the difference is at the top (TCP/IP merges three into one Application layer) and bottom (merges two into Network Access).
Advanced โ the hourglass and why TCP/IP won
TCP/IP has an "hourglass" shape: many protocols at the top (apps) and bottom (link technologies), all funnelling through the narrow waist of IP at the Internet layer. This is the key design insight โ "IP over everything, everything over IP": any application runs over any physical medium because they all agree on IP. TCP/IP beat OSI in practice because it was implemented and running (in Unix/ARPANET) while OSI was still being standardised โ working code over committee design.
Worked example โ placing protocols in the stack
Classify common protocols by TCP/IP layer:
HTTP,DNS,SMTP,DHCPโ Application.TCP,UDPโ Transport (TCP for reliable web/email, UDP for DNS queries/streaming).IP,ICMP(ping),ARPโ Internet.Ethernet,Wi-Fi (802.11)โ Network Access.
NoteDNSis an application-layer protocol even though it supports other applications, and it typically runs over UDP at the transport layer โ a favourite "which layer?" trap. Correctly slotting each protocol is the standard exam exercise.
Interview & exam relevance
Common asks: "TCP/IP vs OSI model" (4 vs 7 layers; which merge), "which TCP/IP layer does IP/TCP/HTTP belong to", "why did TCP/IP become the standard", and "what is the Internet layer's job" (routing via IP). The one-to-one mapping of Transport and Internet layers is worth stating explicitly.
Tricks & gotchas
- TCP/IP's Application layer = OSI layers 5+6+7; its Network Access = OSI layers 1+2.
- Transport and Internet map 1:1 with OSI's L4 and L3 โ the clean part of the mapping.
- TCP/IP is protocol-centric and actually deployed; OSI is the conceptual teaching reference.
- Mnemonic: "Application, Transport, Internet, Link" โ top to bottom.
Assuming TCP/IP and OSI layers correspond one-to-one across the board. Only the Transport and Internet layers map cleanly. TCP/IP's single Application layer covers OSI's Application, Presentation and Session; its Network Access layer covers OSI's Data Link and Physical. Forcing a 1:1 mapping misplaces protocols like TLS (OSI Presentation, but TCP/IP Application).
- โ- TCP/IP has 4 layers: Application, Transport, Internet, Network Access (Link).
- โ- Application = OSI 5/6/7; Transport = OSI 4; Internet = OSI 3; Network Access = OSI 1/2.
- โ- Key protocols: HTTP/DNS/SMTP (App), TCP/UDP (Transport), IP/ICMP/ARP (Internet), Ethernet/Wi-Fi (Link).
- โ- The "hourglass" narrows at IP โ everything runs over IP, IP over everything.
- โ- TCP/IP is the deployed internet standard; OSI is conceptual.
- โThe internet runs on the practical 4-layer TCP/IP model. Its Transport and Internet layers map one-to-one to OSI's L4/L3, while it merges OSI's upper three into one Application layer and lower two into Network Access. The narrow IP "waist" is what unifies all networks.
The TCP/IP Model โ Worked Example
Worked Example
Problem: Map each of these real protocols/actions to its TCP/IP model layer, and state how the 4-layer TCP/IP model corresponds to the 7-layer OSI model: (a) HTTP and DNS, (b) TCP and UDP, (c) IP and ICMP, (d) Ethernet and Wi-Fi.
Solution:
The TCP/IP (Internet) model has 4 layers: Application, Transport, Internet, Network Access (Link). It is the model the actual Internet runs on; OSI is the teaching reference.
Correspondence with OSI:
- TCP/IP Application layer = OSI layers 7 + 6 + 5 (Application + Presentation + Session) collapsed into one.
- TCP/IP Transport = OSI Transport (4).
- TCP/IP Internet = OSI Network (3).
- TCP/IP Network Access/Link = OSI layers 2 + 1 (Data Link + Physical) combined.
Placing the protocols:
(a) HTTP and DNS โ Application layer. These are the programs' own protocols (web, name resolution). Encoding and session handling that OSI splits out are folded into this single layer here.
(b) TCP and UDP โ Transport layer. They provide end-to-end delivery using ports: TCP reliable/connection-oriented, UDP fast/connectionless.
(c) IP and ICMP โ Internet layer. IP does logical addressing and routing across networks; ICMP carries control/error messages (ping, "destination unreachable") and rides within IP.
(d) Ethernet and Wi-Fi โ Network Access (Link) layer. These frame data with MAC addresses and transmit over the physical medium โ combining what OSI calls Data Link + Physical.
Key difference to state: OSI is a 7-layer conceptual reference developed as a standard; TCP/IP is the 4-layer practical stack that the Internet actually implements. TCP/IP merges OSI's top three into Application and bottom two into Link, but the middle (Transport, Network/Internet) lines up one-to-one.
Answer: (a) HTTP, DNS โ Application; (b) TCP, UDP โ Transport; (c) IP, ICMP โ Internet; (d) Ethernet, Wi-Fi โ Network Access/Link. TCP/IP's 4 layers map to OSI's 7 by collapsing OSI's top 3 into Application and bottom 2 into Link, with Transport and Network aligning directly.
- โ- TCP/IP has 4 layers (Application, Transport, Internet, Network Access) and is what the Internet actually runs.
- โ- OSI's top three layers collapse into TCP/IP Application; OSI's bottom two collapse into TCP/IP Link.
- โ- Transport (TCP/UDP) and Network/Internet (IP) correspond one-to-one between the two models.