</> MAANG.io
system design · 101

Foundations

Master system design interviews with scalable architecture patterns, distributed systems, and real-world design challenges.

0/81 solved 0% complete

OSI Model — Part 2: The Lower Layers (1–4)

What is this?

Back to our postal chain. In Part 1 we watched a gift get wrapped in nested envelopes — the letter, the box, the routing barcode, the truck. The bottom four OSI layers are the part of that chain that physically moves the package: the truck on the highway (Layer 1), the local delivery van that knows your street (Layer 2), the national logistics network that routes between cities (Layer 3), and the guarantee that your fragile gift arrives intact and in order (Layer 4).

These are the layers you almost never write code for — and exactly the layers that bite you at 3 a.m. when "the service is up but nobody can reach it." This is where bits become signals, where addresses get resolved, where packets find their way across the planet, and where the Internet decides whether to guarantee delivery or just fire and forget.

The one-line idea: Layers 1–4 are the plumbing — they move bits across a wire (L1), across a local link (L2), across the whole Internet (L3), and decide whether that journey is reliable (L4). Everything your app does rides on top of them.

Remember the encapsulation picture from Part 1: as data heads down, each of these layers slaps on its own envelope. Watch for it — by the end of this chapter you'll know exactly what each header carries and why.


Sign in to continue reading

The rest of this lesson is available with a free account. Signing in with Google or Microsoft is free.

Sign in to read the full lesson

Sign in to MAANG.io

Use your Google or Microsoft account — no password to remember.

Continue with Google Continue with Microsoft

Please accept the terms above to continue.