DEV Community

Cover image for The OSI Model of Network Communication
M. Oly Mahmud
M. Oly Mahmud

Posted on

2 1

The OSI Model of Network Communication

The OSI model is a conceptual framework that describes how two systems communicate over a network. It breaks down the responsibility of data communication into seven layers.

The Seven Layers of the OSI Model

As I told you, the OSI model consists of 7 layers. Each layer takes data from the previous layer and encapsulates it to make its Protocol Data
Unit (PDU)
.

What is the PDU?

The PDU is used to describe the data at each layer. PDUs are also part of
TCP/IP.

Let's explore the layers in a top-down approach.

OSI Model

1. Application Layer

The Application layer is the top layer of the OSI model. It provides network services directly to user applications. When you read this article, you are on the application layer. The biggest interface of this layer is the HTTP.

Example: Web browsers using HTTP, Sending emails using SMTP, etc.

2. Presentation Layer

The Presentation layer acts as a translator between the application and the network. It is responsible for:

  • Data format translation (e.g., converting between ASCII and Unicode).

  • Encryption and decryption for secure communication.

  • Data compression to reduce transmission size.

Example: Secure Sockets Layer (SSL) and Transport Layer Security (TLS).

3. Session Layer

The Session layer is responsible for managing and controlling sessions between applications. Its main functions are:

  • Establishing, maintaining, and terminating sessions.

  • Synchronization and checkpointing during long data transfers.

  • Managing multiple sessions simultaneously.

Example: Session management in video conferencing apps, state synchronization in multiplayer online games.

4. Transport Layer

The Transport layer ensures end-to-end communication and reliable data transfer. It provides services such as:

  • Segmentation and reassembly of data.

  • Flow control and error correction.

  • Connection-oriented (TCP) or connectionless (UDP) communication.

Example: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).

5. Network Layer

The Network layer determines the best path for data transfer and handles logical addressing. The key responsibilities of this layer are:

  • Routing and forwarding data packets.

  • IP addressing (IPv4/IPv6).

  • Packet fragmentation and reassembly.

Example: The Internet Protocol (IP).

6. Data Link Layer

The Data Link layer ensures reliable data transfer between two physically connected devices. It is responsible for:

  • Framing and error detection/correction.

  • Media Access Control (MAC) addressing to identify devices.

  • Flow control mechanisms.

Example: Ethernet and Wi-Fi protocols.

7. Physical Layer

The Physical layer deals with the transmission and reception of raw bit streams over a physical medium. This layer is concerned with:

  • Hardware components like cables, switches, and network interface cards (NICs).

  • Signal modulation, voltage levels, and data rates.

  • Physical network topology and medium types (e.g., copper, fiber optics).

Example: Ethernet cables and fiber optic transmission.

Conclusion

The OSI model breaks down all the necessary functions to send a data packet over a network
between two hosts. Understanding this model is essential to learn data communication and networking.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay