What Is the OSI Model?

On this page
  1. What are the seven layers?
  2. Why does the layered model matter?

The OSI (Open Systems Interconnection) model breaks networking into seven layers, giving engineers a shared language for describing exactly where something happens. It is more of a teaching and troubleshooting framework than the stack the internet literally runs — that is TCP/IP — but “that’s a layer 7 problem” is a sentence security people say for a reason.

What are the seven layers?#

#LayerConcerned withSecurity example
7ApplicationUser-facing protocolsWAF, app exploits
6PresentationEncoding, encryptionTLS
5SessionConnection managementSession hijacking
4TransportTCP/UDP deliverySYN flood
3NetworkIP, routingIP spoofing
2Data LinkMAC, switchingARP spoofing
1PhysicalCables, signalsWiretaps, jamming

A common mnemonic bottom-to-top: “Please Do Not Throw Sausage Pizza Away.”

Why does the layered model matter?#

Because it makes attacks and defenses locatable. Saying an attack is “layer 3” versus “layer 7” immediately narrows what it can do and what stops it. It also clarifies otherwise-confusing terms — a “layer 7 DDoS” attacks the application, while a “layer 3/4 DDoS” floods the network, and the two need different mitigations.

The OSI model is the reference frame for this cluster. Continue at the Network Security hub.

Frequently asked questions#

What are the seven OSI layers?

From bottom to top: Physical (cables, signals), Data Link (MAC, switches), Network (IP, routing), Transport (TCP/UDP), Session (connections), Presentation (encoding, encryption), and Application (user-facing protocols). A common mnemonic is "Please Do Not Throw Sausage Pizza Away."

How does the OSI model differ from TCP/IP?

The OSI model is a seven-layer conceptual reference; the TCP/IP model is a four-layer practical model that the internet actually runs on. OSI is more granular and used for teaching and troubleshooting, while TCP/IP describes the real protocol stack. They map onto each other closely.

Sources & further reading