What Is OSI Model - 7 Layers Explained
What Is OSI Model - 7 Layers Explained
CoursesTutorialsJobsPracticeContests
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 1/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 2/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
1. Physical Layer
2. Data Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
Note:
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 3/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
The packet received from the Network layer is further divided into frames
depending on the frame size of the NIC(Network Interface Card). DLL also
encapsulates Sender and Receiver’s MAC address in the header.
Framing: Framing is a function of the data link layer. It provides a way for
a sender to transmit a set of bits that are meaningful to the receiver. This
can be accomplished by attaching special bit patterns to the beginning
and end of the frame.
Physical addressing: After creating frames, the Data link layer adds
physical addresses (MAC addresses) of the sender and/or receiver in the
header of each frame.
Error control: The data link layer provides the mechanism of error control
in which it detects and retransmits damaged or lost frames.
Flow Control: The data rate must be constant on both sides else the data
may get corrupted thus, flow control coordinates the amount of data that
can be sent before receiving an acknowledgment.
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 4/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
Note:
addresses are placed in the header by the network layer. Such an address
distinguishes each device uniquely and universally.
Note:
At the sender’s side: The transport layer receives the formatted data from
the upper layers, performs Segmentation, and also implements Flow and
error control to ensure proper data transmission. It also adds Source and
Destination port numbers in its header and forwards the segmented data to
the Network Layer.
Note: The sender needs to know the port number associated with the
receiver’s application.
At the receiver’s side: Transport Layer reads the port number from its
header and forwards the Data which it has received to the respective
application. It also performs sequencing and reassembling of the
segmented data.
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 6/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
Segmentation and Reassembly: This layer accepts the message from the
(session) layer, and breaks the message into smaller units. Each of the
segments produced has a header associated with it. The transport layer
at the destination station reassembles the message.
Service Point Addressing: To deliver the message to the correct process,
the transport layer header includes a type of address called service point
address or port address. Thus by specifying this address, the transport
layer makes sure that the message is delivered to the correct process.
Connection Establishment
Data Transfer
Termination/disconnection
Note:
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 7/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
Note:
For example:-
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 8/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 9/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
Aptitude Engineering Mathematics Discrete Mathematics Operating System DBMS Computer Networks
Step 1: Luffy interacts with e-mail application like Gmail, outlook, etc.
Writes his email to send. (This happens in Layer 7: Application layer)
Step 2: Mail application prepares for data transmission like encrypting data
and formatting it for transmission. (This happens in Layer 6: Presentation
Layer)
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 10/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
Step 5: Addressing of packets is done in order to find the best route for
transfer. (This happens in Layer 3: Network Layer)
Step 6: Data packets are encapsulated into frames, then MAC address is
added for local devices and then it checks for error using error detection.
(This happens in Layer 2: Data Link Layer)
After the email reaches the receiver i.e. Zoro, the process will reverse and
decrypt the e-mail content. At last, the email will be shown on Zoro’s email
client.
7 Helps in
identifying the
Application
client and Message SMTP
Layer
synchronizing
communication.
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 11/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
layer is
extracted and
manipulated in
the required
format for
transmission.
5 Establishes
Connection,
Maintenance, Message (or
Session Layer Ensures encrypted Gateway
Authentication message)
and Ensures
security.
4 Take Service
from Network
Transport Layer and
Segment Firewall
Layer provide it to the
Application
Layer.
3 Transmission of
data from one
Network host to another,
Packet Router
Layer located in
different
networks.
2 Node to Node
Data Link Switch,
Delivery of Frame
Layer Bridge
Message.
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 12/18
06/06/2024, 10:52 What is OSI Model | 7 Layers Explained
1 Establishing
Hub,
Physical
Physical Repeater,
Connections Bits
Layer Modem,
between
Cables
Devices.
1. TCP/IP model consists of 4 layers but OSI model has 7 layers. Layers
5,6,7 of the OSI model are combined into the Application Layer of
TCP/IP model and OSI layers 1 and 2 are combined into Network
Access Layers of TCP/IP protocol.
2. The TCP/IP model is older than the OSI model, hence it is a foundational
protocol that defines how should data be transferred online.
3. Compared to the OSI model, the TCP/IP model has less strict layer
boundaries.
4. All layers of the TCP/IP model are needed for data transmission but in the
OSI model, some applications can skip certain layers. Only layers 1,2 and
3 of the OSI model are necessary for data transmission.
We have discussed about What is OSI model?, What are layers of OSI
model, How data flows in the 7 layers of OSI model, and the differences
between TCP/IP protocol and OSI protocol.
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/ 13/18