The OSI Model
A 7-layer reference model for how data moves across a network. The top four layers run as software on the two hosts; the bottom three move the actual bits across the wire. As data is sent it travels down the stack, each layer wrapping it in a header, then up the stack on the far side.
1 · The seven layers
Grouped the standard way: host layers (software on your computer) versus media layers (the network hardware that carries the signal). Blue chips are protocols; bordered chips are the hardware or software that lives at that layer.
Host / Softwareruns on the computer: apps + OS kernel
Media / Hardwarecarries bits across the network: routers, switches, cables
The split is a useful approximation: the host OS also implements layers 3–4, while dedicated hardware (routers at L3, switches at L2) lives in the media layers.
2 · How data actually flows
Going down, every layer treats what it received as opaque payload and prepends its own header (the frame also adds a trailer, FCS, for error checking). A switch unwraps only to the frame (L2) to forward it; a router unwraps to the packet (L3) to route it, then both re-wrap and pass it on. The software layers (L4–L7) are only ever processed at the two endpoints.
Top to bottom (7 → 1): All People Seem To Need Data Processing.