The OSI model
When someone says “L7 load balancer” or “L4 firewall”, they’re using the OSI model as a ruler: the layer tells you how far into the message the device can see.
Notes
- 1.OSI is an ISO reference model (ISO/IEC 7498-1) that splits network communication into seven layers. Each one solves part of the problem and uses the services of the layer below.
- 2.The internet runs on the simpler TCP/IP model, with four layers. But the OSI vocabulary stuck: “L4” and “L7” say at which level a device or service makes decisions.
- 3.L4 is the transport layer (TCP and UDP): it delivers data between processes using ports. An L4 device sees IP, port and protocol, but not the request content.
- 4.L7 is the application layer (HTTP, gRPC, DNS): that’s where the request itself lives. An L7 device reads path, headers and cookies, so it decides with more context at the cost of more processing.
- 5.The same reasoning applies beyond load balancers: a network firewall filters at L3/L4, a WAF filters at L7, and a reverse proxy that terminates TLS operates at L7.
When to use
Use the model as a shared language for debugging and designing systems: asking “at which layer does this happen?” separates a network problem (L3/L4) from an application problem (L7) and points to the right tool.
Trade-offs
OSI is a simplification: real protocols don’t always fit one layer (TLS is usually described somewhere between 4 and 7), and layers 5 and 6 rarely show up in practice. Treat it as a map, not a rule.
References
Sheet
03 / 03
Type
concept
Category
Networking & protocols
Level
Introductory
Tags
networking · osi · fundamentals
Published
[DATE]
Address
fabricioereche.dev/en/concepts/osi-model/