Loading…
Loading…
Charting your lesson…
Opening your lesson…
The OSI Reference Model
Lesson 1 of 3
6 steps•about 12 min•12 flashcards
Step 1/ 61 min
The OSI model is networking's master map: seven layers that break "send data across a network" into manageable, independent problems. Even though real networks run TCP/IP, OSI remains the vocabulary engineers use — and a certain exam question.
Core idea: the OSI (Open Systems Interconnection) model is a 7-layer conceptual framework where each layer handles one aspect of communication and provides services to the layer above, hiding the details below. Layering lets each layer change independently as long as its interface stays fixed.
Step 2/ 61 min
As data descends the sending stack, each layer wraps it with its own header (and the data-link layer adds a trailer): the PDU (Protocol Data Unit) is named per layer:
Application data -> Segment (L4, +TCP header) -> Packet (L3, +IP header)
-> Frame (L2, +MAC header/trailer) -> Bits (L1)
The receiver reverses this (de-encapsulation), each layer stripping its header. Each layer talks logically to its peer layer on the other host.
Layers map to real devices: hubs (L1), switches/bridges (L2, MAC-based), routers (L3, IP-based), and gateways/firewalls operate up to L4–L7. Key responsibilities to keep straight:
Step 3/ 61 min
You type a URL and hit Enter:
Step 4/ 61 min
Guaranteed: "name the 7 OSI layers in order", "which layer does X (router/switch/IP/TCP/HTTP) operate at", "what is encapsulation", and "OSI vs TCP/IP model". Matching a protocol or PDU to its layer is the most common question format.
Step 5/ 61 min
Mixing up the Data Link and Network layers — especially assigning IP addresses to L2 or MAC addresses to L3. MAC addresses and switches are Layer 2 (node-to-node on a link); IP addresses, routing and routers are Layer 3 (host-to-host across networks). This layer/address mapping is the single most common OSI exam error.
Step 6/ 6· Worked examples2 min
Problem
When you click a link and a browser sends an HTTP request over Wi-Fi, trace which OSI layer performs each of these actions and name one protocol/PDU for each: (1) formatting the GET request, (2) splitting into segments with port numbers, (3) adding source/destination IP addresses, (4) adding MAC addresses for the next hop, (5) turning bits into radio signals.
Try it on paper first.
Recall
Keep this
The OSI model is the single most-asked networking interview question — "name the 7 layers" and "which layer does X belong to?" are guaranteed. It's the conceptual map for all networking, so memorise the layers, their order, and their functions.
| # | Layer | Function | PDU |
|---|---|---|---|
| 7 | Application | user-facing protocols (HTTP, FTP, DNS) | data |
| 6 | Presentation | translation, encryption, compression | data |
| 5 | Session | session setup/management, dialog control | data |
| 4 | Transport | end-to-end, segmentation, flow control, ports | segment |
| 3 | Network | routing, logical (IP) addressing | packet |
| 2 | Data Link | framing, MAC addressing, error detection | frame |
| 1 | Physical | raw bits over the medium | bits |
Bottom-up: "Please Do Not Throw Sausage Pizza Away" (Physical→Application). The PDU (protocol data unit) changes per layer: bits → frames → packets → segments → data.
"Name the 7 OSI layers in order", "which layer does a router/switch/encryption operate at?", "what is the PDU at layer X?", "MAC vs IP layer", and "function of the transport layer".
7 layers top-down: Application, Presentation, Session, Transport, Network, Data Link, Physical ("Please Do Not Throw Sausage Pizza Away" bottom-up). PDUs: bits/frames/packets/segments/data. Devices: hub=L1, switch=L2, router=L3. IP=L3, MAC=L2, encryption=L6, ports=L4.
You've read 0 of 6 steps
Now lock it in — questions straight after reading are what make it stick.