Network Security

OSI Model

The OSI model is a seven-layer conceptual framework that standardizes the functions of a networking system into distinct layers, from the physical transmission of bits up to application-level services, used to describe and reason about how network communication works.

In plain terms

The OSI model is a way of breaking networking into seven stacked layers, each with one job, from the cables at the bottom to the apps at the top. Nobody builds networks strictly to it, but almost everyone uses it as a shared map to describe where a problem or a control lives.

The OSI model, short for Open Systems Interconnection model, is a conceptual framework that divides the work of network communication into seven layers, each responsible for a specific set of functions and each building on the layer below it. Developed as an international standard, it was intended to guide interoperable networking, but its lasting value has been as a common reference model. Engineers, analysts, and security professionals use it to describe where a particular protocol, problem, or control operates, giving everyone a shared vocabulary for reasoning about networks.

The seven layers, from bottom to top, are physical, data link, network, transport, session, presentation, and application. The physical layer concerns the actual transmission of raw bits over a medium such as copper, fiber, or radio. The data link layer organizes bits into frames and handles addressing on a local network segment, where MAC addresses and switches operate. The network layer handles logical addressing and routing between networks, the domain of IP addresses and routers. The transport layer provides end-to-end delivery between applications, where TCP and UDP live. The session layer manages the establishment and coordination of dialogues between applications. The presentation layer deals with data representation, translation, and encryption formatting. The application layer is where network-aware applications and their protocols, such as HTTP, operate closest to the user.

A central idea of the model is encapsulation. As data moves down the layers on the sending side, each layer wraps the data from the layer above with its own header, and sometimes a trailer, adding the information that layer needs to do its job. On the receiving side, the process reverses, with each layer stripping its header and passing the contents up. This layered wrapping is why a single piece of application data ends up enclosed in transport, network, and link information by the time it crosses the wire, and why the receiving stack can peel it back apart in order.

The OSI model is often contrasted with the TCP/IP model, which is the framework the internet actually runs on and which uses fewer layers. The TCP/IP model collapses several OSI layers together and was defined by the protocols in use rather than as an idealized standard. In everyday practice the two are used together loosely: people speak in OSI layer numbers for precision, such as calling a switch a layer 2 device or a router a layer 3 device, while acknowledging that real protocols map onto the TCP/IP structure. The OSI model endures because its clean separation of concerns makes it an excellent teaching and diagnostic tool even though it is not the implemented architecture.

The model’s security relevance lies in how it organizes thinking about threats and controls. Attacks and defenses can be located at specific layers, which helps with both analysis and design. ARP spoofing and MAC flooding target the data link layer; IP spoofing and routing attacks target the network layer; SYN floods and port scanning concern the transport layer; and application-layer attacks such as injection target the top. Likewise, controls map to layers: switch port security at layer 2, firewalls and segmentation at layers 3 and 4, and web application firewalls and content inspection at layer 7. Talking about defense in depth often means deliberately placing controls at multiple layers so that a weakness at one does not leave the whole stack exposed.

The phrase layer 8 has entered informal use to refer to the human or organizational factors above the technical stack, a joking acknowledgement that many problems are not technical at all. While not part of the formal model, it captures the reality that people, policy, and process sit above even the application layer and are frequently where security succeeds or fails. This shows how the layered metaphor extends naturally into how practitioners think about systems beyond the wire.

In practice, the OSI model is less a blueprint for building networks than a shared map for understanding them. Its seven layers let people pinpoint where a protocol runs, where a failure occurs, and where a control belongs, and its concept of encapsulation explains how data is packaged for transmission. Even though the internet runs on the TCP/IP model, the OSI framework remains one of the most useful mental tools in networking and network security for organizing an otherwise tangled subject into clear, addressable layers.

Learn more in Network Security

Related terms