OSI Model·Lesson 12 of 12
OSI Model Interview Questions
How OSI Shows Up in Interviews
The OSI model is one of the most reliably asked networking topics, because it tests whether you understand how a network fits together as a whole. Interviewers rarely want a textbook recital — they want to see that you can place a concept, a device, or a problem at the right layer and explain why. This lesson collects the questions that come up again and again, with answers you can say out loud.
Answering strategy
When you're asked about a device, protocol, or problem, lead with the layer and one reason: "A switch is Layer 2 because it forwards by MAC address." Naming the layer first shows you're thinking in the model, which is exactly what's being tested.
Rapid-Fire Questions
Q:What is the OSI model, who created it, and why?
A: OSI (Open Systems Interconnection) is a conceptual seven-layer reference model created by the ISO (International Organization for Standardization) in 1984. Its purpose was to give the industry a common, vendor-neutral framework so that equipment and software from different makers could interoperate, and so engineers would share one vocabulary for designing and troubleshooting networks.
Q:Name the seven layers from top to bottom.
A: Application, Presentation, Session, Transport, Network, Data Link, Physical. A common memory aid is the sentence 'All People Seem To Need Data Processing', where each first letter maps to a layer from 7 down to 1.
Q:At which OSI layers do a hub, a switch, and a router operate?
A: A hub operates at Layer 1 (Physical) — it just repeats signals. A switch operates at Layer 2 (Data Link) — it forwards frames using MAC addresses. A router operates at Layer 3 (Network) — it forwards packets between networks using IP addresses. The higher the layer, the more the device understands about the data it moves.
Q:What's the difference between a MAC address and an IP address?
A: A MAC address is a physical, hardware address assigned by the manufacturer and used at Layer 2 for delivery within a local network. An IP address is a logical address assigned by the network and used at Layer 3 to route data across networks. In one trip, the destination IP stays the same end to end, while the MAC address changes at every hop.
Q:What is encapsulation in the OSI model?
A: Encapsulation is the process where, as data moves down the stack on the sender, each layer wraps it with its own header of control information (the Data Link layer also adds a trailer). By Layer 1 it's a stream of bits. On the receiver, each layer removes the header its peer added as the data moves back up — that reverse process is called decapsulation.
Q:Which layer provides reliable end-to-end delivery, and how?
A: The Transport layer (Layer 4). Using TCP, it makes delivery reliable by numbering segments, waiting for acknowledgements, and retransmitting anything lost, so data arrives complete and in order. Its alternative, UDP, skips those guarantees for speed. The Transport layer also uses port numbers to reach the correct program.
OSI vs TCP/IP — The Classic Comparison
A near-guaranteed question is how the OSI model compares with the model. The short version: OSI is the seven-layer teaching model, while TCP/IP is the practical four-layer model the internet actually runs on. TCP/IP merges OSI's top three layers into one Application layer. Here's the side-by-side:
| OSI model | TCP/IP model | |
|---|---|---|
| Number of layers | 7 | 4 |
| Nature | Conceptual / reference | Practical / implemented |
| Top layers | Separate Session, Presentation, Application | Combined into one Application layer |
| Main use | Teaching, design, troubleshooting | Runs the real internet |
| Developed by | ISO | ARPANET research (US DoD) |
Troubleshooting by Layer
A favourite practical question is to hand you a symptom and ask which layer it points to. The trick is to work from the bottom up — check the physical connection first, then addressing, then the app. Here are three worked examples:
A user's laptop has no network at all. You notice the Ethernet port has no link light and the cable is loose.
Which OSI layer is the problem, and why?
Answer: Layer 1, the Physical layer. No link light means the physical signal path is broken — a loose or faulty cable, port, or adapter. Always rule out Layer 1 first; there's no point debugging IP addresses if no signal is getting through.
A website loads fine when the user types its IP address directly, but fails when they type its domain name like example.com.
Which OSI layer is most likely at fault?
Answer: Layer 7, the Application layer — specifically DNS, the service that turns names into IP addresses. Since the raw IP works, the lower layers (physical, routing, transport) are all fine; only the name-to-IP lookup is failing.
A user can reach other devices on their own local network, but cannot reach anything on the internet.
Which OSI layer should you investigate?
Answer: Layer 3, the Network layer. Local delivery (Layer 2) clearly works since same-network devices are reachable, so the issue is routing off the local network — often a misconfigured default gateway or router, which are Layer 3 concerns.
“"Knowing the OSI model means memorizing the seven layer names."”
Quick Revision Cheat Sheet
Layers (7→1): Application, Presentation, Session, Transport, Network, Data Link, Physical
Devices: Hub = L1, Switch = L2, Router = L3
Addresses: Port = L4, IP = L3, MAC = L2
OSI vs TCP/IP: 7 conceptual layers vs 4 practical layers
Troubleshoot: Work bottom-up: check Physical first
Score higher: Name the layer AND the reason