Unit 6 · The Internet & Computing Systems · Lesson 6.2

Protocols and the Layer Idea

Two strangers can have a phone call only if they agree on the language, the greeting, and who talks first. Computers are the same. The agreement is called a protocol — and the internet stacks them in layers.

Big Idea 4 — Computer Systems & NetworksCED 4.1 · abstraction, fifth visit

Before this lesson — read on Runestone

Ten minutes. Read it before class; we start from it. Enrolled in our Runestone course? Open it from there so your progress counts.

1

Where We Are

People→ Bits→ Programs→ Internet→ Security→ Big Data→ Impact

Internet. Yesterday: many owners, no boss. Today: the rules they all agreed on, and why stacking those rules in layers lets the internet grow.

2

The Hook

A phone call with no rules. Two volunteers. Neither may agree in advance on language, greeting, or who speaks first. Try to set up a meeting time. Now do it again with three rules agreed first.

The second call worked because of the rules, not the phones. Those rules are a protocol.

3

The Idea

A protocol is an agreed-upon set of rules that says how a system behaves — what a message looks like, what order things happen in, what to do when something goes wrong. The internet’s protocols are open: anyone can read them and build a device that follows them.

The internet doesn’t use one giant protocol. It uses a stack, and each layer has one job:

LayerExampleIts one jobWhat it ignores
ApplicationHTTPWhat the message means — “send me this web page”how the bits get there
TransportTCPSplit into packets, number them, make sure all arrivewhat the content means
InternetIPAddress each packet and move it toward its destinationwhether it arrives
PhysicalWi-Fi, fiber, 5GMove bits as signals: radio, light, electricityeverything above
This is abstraction again — its cleanest example. Each layer trusts the one below it and ignores how it works. So when 5G or faster fiber is invented, only the bottom layer changes. The web, email, and every app above keep working without being rewritten. That’s why the internet is scalable: it can grow and add new technology without starting over.
4

Try It — Swap the Bottom Layer

Click a layer to see its job. Then swap the physical connection and watch what changes above it.

physical connection:
5

Vocabulary

protocol Internet
An agreed-upon set of rules that specify the behavior of a system — for the internet, how data is formatted and sent.
abstraction layer Internet
One level of a system that hides the details of the level below it. Each internet protocol layer relies on the one beneath without knowing how it works.
scalability Internet
The capacity of a system to change in size and scale to meet new demands. The internet’s open, layered protocols are why it scales.
6

Check

Five questions. The “why is it scalable?” stem is a regular — know the answer cold.

0 of 5 answered
7

Impact Check

Open rules, open door

Because the protocols are public, a teenager with a laptop can build a website that works on every device on Earth, without asking anyone. Closed, private rules would have meant one company deciding who gets to build on the internet.

8

Connections

Came from 1.7 — the abstraction ladder. Same move: hide the details below, build on top.
Came from 3.10 — procedural abstraction — you call a procedure without knowing how it works. Layers call the layer below the same way.
Next in 6.3 — IP’s job is addressing. What does an address look like, and why don’t you ever type one?
Returns in 6.11 — the whole stack in one trace: URL to rendered page.
← 6.1 What the Internet Actually Is