Network Layers in a Request
This diagram shows how each layer of the network stack adds its own header to data as it travels from a client to a server.
The Five Layers
| Layer | Protocol | Adds |
|---|---|---|
| Application | HTTP, HTTPS | Method, path, headers |
| Transport | TCP, UDP | Port numbers, sequence numbers |
| Network | IP | Source/destination IP addresses |
| Link | Ethernet, WiFi | Source/destination MAC addresses |
| Physical | Cable, fiber, radio | Raw bits on the medium |
Encapsulation
The data grows at each layer as headers are added:
[ HTTP headers + body ]
[ TCP header + HTTP data ]
[ IP header + TCP data ]
[ Ethernet header + IP data ]
[ bits on wire ]Trace a packet through these layers · Read: IP Addresses and Routing