OSI vs TCP/IP
“What is the difference between the OSI model and the TCP/IP model, and does the difference matter in practice?”
What this tests
- Whether the candidate treats layer models as vocabulary rather than as the protocol
- Mapping real protocols to layers without dogmatism
- Knowing what a layer boundary buys: independence and encapsulation
Answers by level
Read the beginner answer first and notice what is missing.
OSI is a reference model from the ISO in the 1980s with seven layers; TCP/IP is the protocol suite the internet runs, usually described with four or five layers (link, internet/IP, transport, application — with physical sometimes split out). The internet protocols were designed and deployed before OSI was finished, so the seven layers never described them exactly: there is no separate session or presentation protocol in the stack; TLS sits awkwardly between transport and application, and HTTP does its own "presentation" (content types, encodings).
What both models get right is encapsulation: each layer adds a header, treats everything above it as opaque payload, and offers a service to the layer above without exposing how. IP moves packets between hosts without caring whether TCP or UDP is inside; TCP gives an ordered byte stream without caring whether HTTP or SSH is inside. That independence is why a new application protocol needs no router changes, and why routers can be replaced without applications noticing.
In practice the numbers survive as vocabulary: an "L2 switch" forwards by MAC, an "L3 router" by IP, an "L4 load balancer" by IP and port, an "L7 proxy" by HTTP content. Engineers say "layer 7" and "layer 4" daily and never say "layer 5 or 6". So the difference matters as language, not as architecture — and the layer boundaries are where you debug: which layer produced this failure, and what tool observes that layer?
Green flags · Red flags
- Calls OSI a reference model and TCP/IP the deployed suite
- Maps L2/L3/L4/L7 to switch/router/LB/proxy naturally
- Explains encapsulation and independence as the point of layering
- Points out where real protocols do not fit (TLS, ICMP, QUIC)
- Recites the seven layers with a mnemonic and stops
- Insists every protocol sits in exactly one layer
- Believes OSI is what the internet implements
- Cannot say what a layer boundary is for