The OSI Model

#networking #cybersecurity

From geeksforgeeks

The OSI Model is a conceptual framework created by the International Organization for Standardization (ISO) to describe how data is transmitted across a network using a structured seven-layer architecture.

An easy way to remember the layers is to recite the following Mnemonic:

See below:
Pasted image 20260414132336.png

Layer 1: Physical Layer

This is the lowest layer of the OSI reference model and responsible for the actual physical connection between the devices.

Functions


TheĀ data link layerĀ is responsible for the node-to-node delivery of the message and make sure data transfer is error-free from one node to another, over the physical layer.

Functions


Layer 3: Network Layer

TheĀ Network LayerĀ works for the transmission of data from one host to the other located in different networks and also takes care of packet routing.

Functions


Layer 4: Transport Layer

This layer is responsible for end-to-end delivery of the message andĀ Transport LayerĀ provides services to the application layer and takes services from the network layer.

Functions

Services


Layer 5: Session Layer

Session LayerĀ is responsible for the establishment of connections, management of connections, terminations of sessions between two devices and provides authentication and security.

Functions

Example

Let us consider a scenario where a user wants to send a message through some Messenger application running in their browser. The ā€œMessengerā€ here acts as the application layer which provides the user with an interface to create the data. This message or so-called Data is compressed, optionally encrypted (if the data is sensitive), and converted into bits (0’s and 1’s) so that it can be transmitted.2.webp


Layer 6: Presentation Layer

TheĀ Presentation LayerĀ is also called the Translation layer and data from the application layer is extracted here and manipulated as per the required format to transmit over the network.

Functions


Layer 7: Application Layer

At the very top of the OSI Reference Model stack of layers, we find theĀ Application LayerĀ which is implemented by the network applications. These applications produce the data to be transferred over the network.

Functions


Data Flows in the OSI Model

When we transfer information from one device to another, it travels through 7 layers of OSI model. First data travels down through 7 layers from the sender's end and then climbs back 7 layers on the receiver's end. Data flows through the OSI model in a step-by-step process:

Each layer adds specific information to ensure the data reaches its destination correctly, and these steps are reversed upon arrival.

Example

We can understand how data flows through OSI Model with the help of an example mentioned below. Let us suppose, Person A sends an e-mail to his friend Person B.

After the email reaches the receiver i.e. Person B, the process will reverse and decrypt the e-mail content. At last, the email will be shown on Person B email client.

OSI-Model.gif

Electric Meatball's Digital Garden Home
TerminologyšŸ“–
The TCP IP Model