CoursifyCoursify

OSI Model

OSI Model

Verified Sources
May 30, 2026

The OSI model is a conceptual reference framework created by the ISO to standardize how computer systems communicate across networks.2 It divides communication into seven layers, from the Physical layer at the bottom to the Application layer at the top, with each layer providing services to the one above it through defined interfaces. This layered design improves interoperability, simplifies system design, and makes troubleshooting more systematic because faults can often be isolated to a specific layer.2

A central idea in the model is encapsulation: as data moves downward through the stack, each layer adds its own control information, such as headers and sometimes trailers, before transmission.2 At the receiving side, decapsulation reverses that process so the destination application receives usable data.2 Although modern Internet communication is implemented mainly with the TCP/IP suite rather than OSI itself, the OSI model remains foundational for education, architecture discussions, protocol placement, and structured troubleshooting.2

Footnotes

  1. The OSI Model: Understanding the Layered Approach to Network Communication - Explains the seven-layer framework, encapsulation, and the model's role in troubleshooting and design. 2 3

  2. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure. 2

  3. Troubleshooting Methods for Cisco IP Networks - Describes OSI-based troubleshooting approaches such as top-down analysis.

  4. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication. 2

  5. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols. 2

  6. What Is the OSI Model? - Compares OSI with TCP/IP and explains the model's conceptual and operational significance.

Understanding the OSI Model

Why the OSI Model Still Matters

Even though real-world networks primarily use TCP/IP, the OSI model remains essential for learning protocol roles, comparing technologies, and diagnosing faults layer by layer.2

Footnotes

  1. The OSI Model: Understanding the Layered Approach to Network Communication - Explains the seven-layer framework, encapsulation, and the model's role in troubleshooting and design.

  2. What Is the OSI Model? - Compares OSI with TCP/IP and explains the model's conceptual and operational significance.

Layer-by-layer structure

The OSI framework separates networking into seven functional layers.2 The lower layers focus more on media access, addressing, and transmission, while the upper layers focus more on application interaction, representation, and communication control. A common mapping of PDU names is: bits at Layer 1, frames at Layer 2, packets at Layer 3, and segments or datagrams at Layer 4.

LayerNameCore responsibilityTypical examples
7ApplicationNetwork services for user applicationsHTTP, SMTP, DNS
6PresentationTranslation, encryption, compressionTLS/SSL functions, encoding formats2
5SessionSession establishment, maintenance, teardownRPC, NetBIOS-style session functions
4TransportEnd-to-end delivery, reliability, segmentation, portsTCP, UDP2
3NetworkLogical addressing and routingIP, ICMP, OSPF
2Data LinkFraming, MAC addressing, local delivery, error detectionEthernet, PPP2
1PhysicalBit transmission over physical mediaCopper, fiber, radio, NIC signaling

A useful mental model is that Layers 1-3 move data across links and networks, Layer 4 manages end-to-end transport, and Layers 5-7 support application-facing communication semantics.2

Footnotes

  1. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure. 2 3

  2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols. 2 3 4 5 6 7 8 9 10

  3. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication. 2 3

How Data Moves Through the OSI Model

  1. 1
    Step 1

    A user action, such as opening a webpage or sending an email, generates application data and selects an appropriate application protocol such as HTTP or SMTP.2

    Footnotes

    1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

    2. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission.

  2. 2
    Step 2

    The data may be translated into a common syntax, compressed for efficiency, or encrypted for confidentiality so the receiving system can interpret it correctly.2

    Footnotes

    1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

    2. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission.

  3. 3
    Step 3

    A communication session is established and managed so the two endpoints can synchronize and maintain the exchange.2

    Footnotes

    1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

    2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

  4. 4
    Step 4

    The message is divided into smaller units for transport, and reliability, flow control, sequencing, or port-based multiplexing may be applied depending on the protocol used.2

    Footnotes

    1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

    2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

  5. 5
    Step 5

    Logical source and destination addresses are added so the data can traverse multiple networks along an appropriate route.2

    Footnotes

    1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

    2. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission.

  6. 6
    Step 6

    The packet is placed into frames for local-network transmission using physical addressing such as MAC addresses, along with link-level error detection.2

    Footnotes

    1. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure.

    2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

  7. 7
    Step 7

    The frame is converted into electrical, optical, or radio signals and transmitted as raw bits across the medium.2

    Footnotes

    1. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure.

    2. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission.

  8. 8
    Step 8

    The destination system reverses the process layer by layer until the original application data is delivered to the intended software.2

    Footnotes

    1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

    2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

Memory Aid

A common mnemonic from Layer 7 to Layer 1 is: All People Seem To Need Data Processing. Use it only as a recall aid; understanding each layer's function is more important than memorization.

Footnotes

  1. The OSI Model: Understanding the Layered Approach to Network Communication - Explains the seven-layer framework, encapsulation, and the model's role in troubleshooting and design.

The seven layers in depth

Layer 1: Physical

The Physical layer defines how raw bits are transmitted through a medium, including electrical, optical, mechanical, and functional characteristics. It includes cables, connectors, signal timing, modulation details, radio frequencies, and the signaling behavior of hardware such as NICs. This layer does not interpret meaning; it only carries signals for higher layers.

The Data Link layer provides node-to-node delivery on the same link or LAN segment.2 It organizes bits into frames, uses MAC addresses, and performs link-level error detection.2 IEEE commonly divides this layer into MAC and LLC sublayers.

Layer 3: Network

The Network layer handles logical addressing and routing between networks.2 Protocols such as IP provide source and destination addresses, while routing protocols and routers determine how traffic traverses interconnected networks. The key PDU here is the packet.

Layer 4: Transport

The Transport layer provides end-to-end communication services between hosts or processes.2 It performs segmentation, may ensure reliable ordered delivery with retransmissions and sequence control in TCP, or offer lightweight best-effort delivery in UDP.2 It also uses ports to direct traffic to the correct application process.

Layer 5: Session

The Session layer establishes, manages, and terminates communication sessions between applications.2 It can coordinate dialog control, synchronization points, and recovery behavior in some architectures. While many modern stacks fold these functions into application frameworks, the OSI distinction remains useful analytically.

Layer 6: Presentation

The Presentation layer ensures that data is represented in a form the receiving application can understand.2 It handles syntax translation, character encoding, serialization, compression, and encryption/decryption. Functions commonly associated with TLS, data formatting, and representation fit conceptually here.2

Layer 7: Application

The Application layer provides network services directly to application software. It includes protocols that user-facing or system-facing programs use, such as HTTP for web traffic, SMTP for email transfer, and DNS for name resolution. Importantly, this layer is not the application itself; it is the network-facing service boundary supporting it.2

Footnotes

  1. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure. 2 3 4 5 6 7

  2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols. 2 3 4 5 6 7 8 9 10 11 12

  3. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission. 2

  4. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication. 2 3 4 5 6 7

  5. What Is the OSI Model? - Compares OSI with TCP/IP and explains the model's conceptual and operational significance. 2

LayerFocus
7User-facing network services
6Data representation
5Session coordination
4End-to-end transport
3Routing and logical addressing
2Framing and MAC delivery
1Signals and media

This fine-grained separation improves conceptual clarity and fault isolation.2

Footnotes

  1. The OSI Model: Understanding the Layered Approach to Network Communication - Explains the seven-layer framework, encapsulation, and the model's role in troubleshooting and design.

  2. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure.

Encapsulation, addressing, and protocol roles

A message does not traverse the network as a single undifferentiated object. Instead, each layer appends control information appropriate to its role.2 In simplified form:

Transmitted Unit=Payload+Headern+Optional Trailern\text{Transmitted Unit} = \text{Payload} + \text{Header}_{n} + \text{Optional Trailer}_{n}

At Layer 4, transport headers may include ports, sequencing, or reliability metadata. At Layer 3, network headers add logical addresses for inter-network delivery. At Layer 2, link-layer framing adds local addressing and link-level error detection.2 The result is a layered data structure that can move from an application process on one host to the correct process on another host.

This separation also explains why different addresses coexist: a port number identifies a process, an IP address identifies a host interface in a routed network, and a MAC address identifies a local link-layer endpoint.2

Footnotes

  1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication. 2

  2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols. 2 3 4 5

  3. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure. 2

OSI Model Layer Grouping by Practical Focus

Illustrative comparison of conceptual emphasis across the seven layers.

Typical Lifecycle of a Network Transaction Through OSI

User action

1

A browser request, email send, or API call creates application-layer data.2"

Footnotes

  1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

  2. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission.

Formatting and session setup

2

Data is represented appropriately, protected if needed, and associated with an active communication session."

Footnotes

  1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

Transport preparation

3

The data is segmented and assigned transport metadata such as ports and, for TCP, sequencing and reliability controls."

Footnotes

  1. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

Routing across networks

4

Packets are addressed with IP information and forwarded through routers toward the destination.2"

Footnotes

  1. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

  2. What Is The OSI Model? - Provides a practical example of data moving through the layers using email transmission.

Local link transmission

5

Frames travel across each local link using MAC addressing and error-detection mechanisms.2"

Footnotes

  1. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure.

  2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

Signal propagation

6

Bits are transmitted as electrical, optical, or radio signals over physical media."

Footnotes

  1. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure.

Decapsulation and delivery

7

The destination host reverses the process upward through the stack until the application receives the original data.2"

Footnotes

  1. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication.

  2. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols.

Common Questions and Troubleshooting Insights

Common Misconception

The OSI model is not the same as the Internet itself. It is a teaching and design framework. Real deployments often combine functions differently, especially in TCP/IP-based systems.2

Footnotes

  1. What Is the OSI Model? - Compares OSI with TCP/IP and explains the model's conceptual and operational significance.

  2. OSI vs TCP/IP: Where Do These Networking Models Differ? - Explains structural and conceptual differences between OSI and TCP/IP models.

OSI versus TCP/IP

The OSI model has seven layers, whereas the TCP/IP model is usually expressed in four or five layers.2 TCP/IP is considered more practical because it is directly tied to the protocol suite underlying the Internet, while OSI is more granular and function-oriented.2 In particular, the OSI Presentation layer and Session layer are often merged into the TCP/IP Application layer, while OSI Physical and Data Link are commonly grouped as Network Access in TCP/IP.2

OSITCP/IP equivalent
Application, Presentation, SessionApplication
TransportTransport
NetworkInternet
Data Link, PhysicalNetwork Access

This difference does not make OSI obsolete. Rather, the two models answer different questions: TCP/IP describes the protocol architecture used operationally, while OSI provides a precise vocabulary for discussing function boundaries, interoperability, and troubleshooting.2

Footnotes

  1. What Is the OSI Model? - Compares OSI with TCP/IP and explains the model's conceptual and operational significance. 2 3 4

  2. OSI vs TCP/IP: Where Do These Networking Models Differ? - Explains structural and conceptual differences between OSI and TCP/IP models. 2 3

  3. The OSI Model: Understanding the Layered Approach to Network Communication - Explains the seven-layer framework, encapsulation, and the model's role in troubleshooting and design.

Practical examples by layer

Consider loading a secure webpage:

  • At the Application layer, the browser uses HTTP semantics, often via HTTPS, to request content.
  • At the Presentation layer, encryption and representation functions make the payload intelligible and protected.
  • At the Session layer, the communication context between endpoints is maintained.
  • At the Transport layer, TCP can provide reliable ordered delivery to the web service port.
  • At the Network layer, IP routes packets through multiple networks toward the server.
  • At the Data Link layer, Ethernet or Wi-Fi frames deliver data hop by hop on each local segment.2
  • At the Physical layer, the data becomes electrical, optical, or radio signals.

For troubleshooting this same workflow, an engineer might check DNS or HTTP first for a top-down analysis, then inspect TCP connectivity, IP routing, switch behavior, and finally physical connectivity if needed. This layered reasoning is one of the major enduring strengths of the model.2

Footnotes

  1. Layers of OSI Model - Summarizes layer responsibilities, PDUs, and representative protocols. 2 3 4

  2. What is OSI Model | 7 Layers Explained - Details layer behavior, including presentation, session, transport, and example end-to-end communication. 2

  3. Windows network architecture and the OSI model - Microsoft overview of OSI layer responsibilities, especially the lower layers and MAC/LLC structure. 2

  4. Troubleshooting Methods for Cisco IP Networks - Describes OSI-based troubleshooting approaches such as top-down analysis. 2

  5. The OSI Model: Understanding the Layered Approach to Network Communication - Explains the seven-layer framework, encapsulation, and the model's role in troubleshooting and design.

Knowledge Check

Question 1 of 4
Q1Single choice

Which OSI layer is primarily responsible for logical addressing and routing packets between networks?

Explore Related Topics

1

Process Life Cycle States and Transition Diagram in Operating Systems

The process life‑cycle in an operating system is modeled by a five‑state diagram (New, Ready, Running, Waiting/Blocked, Terminated) that shows how specific events move a process between states, with optional suspended states for swapped‑out processes.

  • Transitions are triggered by admission, dispatch, preemption, I/O wait, event completion, or exit.
  • A running process may return to Ready (preemption) or go to Waiting (I/O), and after an event it moves back to Ready before Running again.
  • Only one process can be Running on a single‑core CPU, while many can be Ready or Waiting.
  • Extended models add Ready Suspend and Blocked Suspend to represent swapping.
  • A typical life‑cycle can be expressed as NewReady(RunningWaitingReady)kTerminated\text{New} \rightarrow \text{Ready} \rightarrow (\text{Running} \leftrightarrow \text{Waiting} \leftrightarrow \text{Ready})^k \rightarrow \text{Terminated}.
2

Fundamentals of Computer Networks: Data Representation, Data Flow, Topologies, Protocols, OSI Model, and Transmission Media

Computer networking fundamentals are presented, covering how data is encoded, moved, and structured across layered protocols, topologies, and physical media.

  • Binary representation (00s and 11s) and encapsulation transform user data into segments, packets, frames, and bits.
  • Data flow modes (simplex, half‑duplex, full‑duplex) and link configurations (point‑to‑point vs. multipoint) affect throughput and latency.
  • Common topologies (bus, star, ring, mesh, tree, hybrid) with mesh link count n(n1)2\frac{n(n-1)}{2} dictate reliability and cost.
  • The OSI 7‑layer model defines PDUs (data, segment, packet, frame, bits) and isolates troubleshooting per layer.
  • Transmission media are split into guided (twisted pair, coaxial, fiber‑optic) and unguided (radio, microwave, infrared) options, chosen based on bandwidth, distance, EMI resistance, and expense.
3

Packets

Packets are the fundamental data units used in network communication, operating at the OSI Network layer and enabling packet‑switching across diverse paths.

  • A packet consists of a header (source/destination IP, TTL, etc.), payload (user data), and often a trailer for error checking (e.g., CRC).
  • Encapsulation adds headers at each OSI layer (segment → packet → frame) and decapsulation removes them at the receiver.
  • Packets are routed by IP addresses via routers’ routing tables, while frames use MAC addresses for local hop‑to‑hop delivery.
  • Exceeding the MTU causes fragmentation, and tools like Wireshark can sniff packets for debugging.
Chat with Kiro