The Layers of the OSI Model Illustrated

Each layer explained

The Open Systems Interconnection (OSI) model defines a networking framework to implement protocols in layers, with control passed from one layer to the next. It is primarily used today as a teaching tool. It conceptually divides computer network architecture into 7 layers in a logical progression.

The lower layers deal with electrical signals, chunks of binary data, and routing of these data across networks. Higher levels cover network requests and responses, representation of data, and network protocols as seen from a user's point of view. 

Illustration of the Layers of the OSI model
Lifewire / Colleen Tighe​

The OSI model was originally conceived as a standard architecture for building network systems and indeed, many popular network technologies today reflect the layered design of OSI.

  1. Physical Layer

    Illustration of Physical Layer, showing repeaters, ethernet cables and hubs, and token ring networks
     Lifewire / Colleen Tighe

    At Layer 1, the Physical layer of the OSI model is responsible for ultimate transmission of digital data bits from the Physical layer of the sending (source) device over network communications media to the Physical layer of the receiving (destination) device. Examples of layer 1 technologies include Ethernet cables and hubs. Additionally, hubs and other repeaters are standard network devices that function at the Physical layer, as are cable connectors.

    At the Physical layer, data are transmitted using the type of signaling supported by the physical medium: electric voltages, radio frequencies, or pulses of infrared or ordinary light.

  2. Data Link Layer

    Illustration of Data Link Layer with destination and source address, media access control, and frame footer
    Lifewire / Colleen Tighe

    When obtaining data from the Physical layer, the Data Link layer checks for physical transmission errors and packages bits into data "frames". The Data Link layer also manages physical addressing schemes such as MAC addresses for Ethernet networks, controlling access of any various network devices to the physical medium. Because the Data Link layer is the single most complex layer in the OSI model, it is often divided into two parts, the Media Access Control sub-layer and the Logical Link Control sub-layer.

  3. Network Layer

    Illustration of Network Layer
    Lifewire / Colleen Tighe 

    The Network layer adds the concept of routing above the Data Link layer. When data arrives at the Network layer, the source and destination addresses contained inside each frame are examined to determine if the data has reached its final destination. If the data has reached the final destination, this layer 3 formats the data into packets delivered up to the Transport layer. Otherwise, the Network layer updates the destination address and pushes the frame back down to the lower layers.

    To support routing, the Network layer maintains logical addresses such as IP addresses for devices on the network. The Network layer also manages the mapping between these logical addresses and physical addresses. In IP networking, this mapping is accomplished through the Address Resolution Protocol (ARP).

  4. Transport Layer

    Illustration of Transport Layer showing a distribution metaphor for shipping
    Lifewire / Colleen Tighe  

    The Transport Layer delivers data across network connections. TCP is the most common example of a Transport Layer 4 network protocol. Different transport protocols may support a range of optional capabilities including error recovery, flow control, and support for re-transmission.

  5. Session Layer

    Illustration of session layer showing a series of highway overpasses
    Lifewire / Colleen Tighe  

    The Session Layer manages the sequence and flow of events that initiate and tear down network connections. At layer 5, it is built to support multiple types of connections that can be created dynamically and run over individual networks.

  6. Presentation Layer

    Illustration of the presentation layer, which looks like a movie projector
    Lifewire / Colleen Tighe  

    The Presentation layer is the simplest in function of any piece of the OSI model. At layer 6, it handles syntax processing of message data such as format conversions and encryption/decryption needed to support the Application layer above it.

  7. Application Layer

    Illustration of the Application Layer as a picture of a cat on a person's computer
    Lifewire / Colleen Tighe  

The Application layer supplies network services to end-user applications. Network services are typically protocols that work with user's data. For example, in a web browser application, the Application layer protocol HTTP packages the data needed to send and receive webpage content. This layer 7 provides data to (and obtains data from) the Presentation layer.