4.3.1 · D1Computer Networks

Foundations — OSI model — 7 layers, responsibilities, PDU names

1,950 words9 min readBack to topic

How to read this page

The parent note throws around words like header, frame, MAC address, port, and a scary-looking acronym PDU. If any of those are fuzzy, the whole 7-layer story collapses. Below, each term is built in strict order: earlier ones are the bricks for later ones. Nothing is used before it is defined.


0. The very bottom: a bit and a byte

The picture: eight boxes in a row, each holding a or .

Why the topic needs it: the parent's smallest data unit (at Layer 1) is literally called a Bit, and every larger data-bundle — Frame, Packet, Segment (all defined below) — is just a longer row of bytes. If you don't see data as "a stream of bytes," nothing above makes sense.

Recall Check yourself

How many distinct values can one byte hold? :::


1. Data / payload — the thing you actually want to send

The picture: a plain rectangle labelled "the message." Hold onto this rectangle — every step from here on wraps it.

Why the topic needs it: in the parent's data-unit table, Layers 7-6-5 all call their unit Data — because at those layers nothing has been wrapped yet; it's still pure payload.


2. Header and trailer — the labels stuck onto data

Why the topic needs it: the parent's whole "why does the data-unit name change?" story is headers (and one trailer). Each layer prepends its header → the bundle grows → we give the bigger bundle a new name.


3. Encapsulation — the wrapping process itself

Why the topic needs it: this is the engine behind everything else on the page. Headers and trailers are the parts; encapsulation is the assembly line that adds them in order. See Encapsulation and De-encapsulation for the full down-and-up journey.


4. Protocol — an agreed set of rules

The picture: two stick figures, a speech bubble between them labelled "same rulebook."

Why the topic needs it: the parent lists HTTP, FTP, DNS, TCP, UDP — these are all protocols. Each layer has its own rulebook, and a protocol is simply that rulebook made concrete.


5. PDU — the name of the bundle at each layer

Each layer's PDU has its own name. Here is what each one means and where it lives:

The parent's chain, built from the tools above:

Why the topic needs it: "PDU names" is literally half the parent's title. Now you can see why: Data → Segment → Packet → Frame → Bits is one payload gaining one wrapper (via encapsulation) at a time.


6. Three kinds of address

To deliver anything, you need to say where. The parent uses three different address types, each answering a different "where."

Why the topic needs it: the parent's "Address used" column is these three. Getting them straight is what separates a switch (MAC) from a router (IP).


7. Layer and stack — the organizing idea

Why the topic needs it: this is the parent's core "layered architecture." The TCP-IP Model — 4 vs 5 layers is the same stack idea with fewer slices; TCP vs UDP is a choice made inside one layer (Layer 4).


Prerequisite map

Bit and Byte

Payload = Data

Header and Trailer

Encapsulation = wrapping

PDU names

Protocol = rulebook

MAC address

Addressing

IP address

Port number

7 Layers and roles

OSI Model topic


Equipment checklist

Test yourself — you are ready for the parent note only if each reveal feels obvious.

What is a bit?
A single choice between two states, or
How many bits in a byte, and how many values?
8 bits, values
What is a payload?
The actual message you want to send, before any wrapping
What is a header?
Control bytes added to the front of a payload by a layer
What is a trailer, and which layer adds one?
Error-check bytes added at the back; Layer 2 (Data Link)
Why is final frame size = payload + all headers?
Encapsulation only adds bytes, never removes them, on the way down
What is encapsulation?
Each layer wrapping the data from above with its own header (and L2 trailer) as it goes down
What is a protocol?
A pre-agreed set of rules both machines follow to understand each other
What does PDU stand for and mean?
Protocol Data Unit — the name for the payload+header bundle at one layer
Which layer's PDU is a Segment?
Layer 4 (Transport) — a Datagram if UDP
Which layer's PDU is a Packet?
Layer 3 (Network)
Which layer's PDU is a Frame?
Layer 2 (Data Link)
Order of PDU names, bottom to top
Bit, Frame, Packet, Segment, Data
A MAC address answers which question?
Which physical device on this local wire?
An IP address answers which question?
Which machine, anywhere across many networks?
A port number answers which question?
Which program inside this machine?
What is a layer?
One horizontal slice of the job solving a single sub-problem