1 of 10 · Basics
What are the 7 layers of the OSI model?
Say this first
A 7-layer reference model, from the physical wire at the bottom to the application at the top. Each layer only talks to the one directly above and below it.
Picture it
| # | Layer | Does what |
|---|---|---|
| 7 | Application | What the user's app actually uses — HTTP, SMTP, FTP |
| 6 | Presentation | Formats/encrypts data — SSL/TLS, encoding |
| 5 | Session | Opens, manages and closes a connection |
| 4 | Transport | End-to-end delivery — TCP, UDP |
| 3 | Network | Routing between networks — IP, routers |
| 2 | Data Link | Node-to-node delivery on one network — MAC, switches |
| 1 | Physical | Actual bits on the wire/radio — cables, signals |
Mnemonic: "All People Seem To Need Data Processing" (7→1).
Try it
A router mainly operates at which layer?
Common trap
Reciting all 7 layers without being able to say what any of them actually do. Interviewers usually only care that you can place TCP/IP and HTTP correctly.
Say it like this
OSI is a 7-layer model from physical wires up to the application; each layer only talks to its direct neighbours.
