The Open System Interconnection (OSI) model defines a networking framework to implement protocols in seven layers. Use this handy guide to compare the different layers of the OSI model and understand how they interact with each other.
What is the OSI model?
The Open Systems Interconnection (OSI) model is a conceptual model
created by the International Organization for Standardization which enables
diverse communication systems to communicate using standard protocols.
The OSI model is based on the concept of splitting up a communication system into seven abstract layers, each one stacked upon the last.
Application Layer |
7 |
Human Computer interaction layer, where applications can access the network services |
Presentation Layer |
6 |
Assuring the Data is usable format and Data encryption occurs |
Session Layer |
5 |
Maintain the connections along with the appropriate controlling Ports and Sessions |
Transportation Layer |
4 |
Transmits Data using transmission protocols including TCP and UDP |
Network Layer |
3 |
Decides which physical path the data will be choose |
Data link Layer |
2 |
Validate the formats of Data with available Network |
Physical Layer |
1 |
Transmits raw but stream over the physical medium |
Why OSI model is required?
OSI model (it more closely follows the simpler Internet protocol suite),
the OSI model is still very useful for troubleshooting network problems.
Whether it’s one person who can’t get their laptop on the Internet, or a web
site being down for thousands of users, the OSI model can help to break down the
problem and isolate the source of the trouble. If the problem can be narrowed
down to one specific layer of the model, a lot of unnecessary work can be
avoided.
Seven Layers of OSI model
The seven
abstraction layers of the OSI model can be defined as follows, from top to
bottom:
- The Application Layer
This is the only layer that
directly interacts with data from the user.
Software applications like web browsers and email clients rely on the application layer to initiate communications. But it should be made clear that client software applications are not part of the application layer; rather the application layer is responsible for the protocols and data manipulation that the software relies on to present meaningful data to the user.
Example: HTTP, FTP, SNMP, NFS WWW Browsers
Software applications like web browsers and email clients rely on the application layer to initiate communications. But it should be made clear that client software applications are not part of the application layer; rather the application layer is responsible for the protocols and data manipulation that the software relies on to present meaningful data to the user.
Example: HTTP, FTP, SNMP, NFS WWW Browsers
- The Presentation Layer
This layer is primarily
responsible for preparing data so that it can be used by the application layer;
in other words, layer 6 makes the data presentable for applications to consume.
The presentation layer is responsible for translation, encryption and compression of data.
Two communicating devices
communicating may be using different encoding methods, so layer 6 is
responsible for translating incoming data into a syntax that the application
layer of the receiving device can understand.
If the devices are
communicating over an encrypted connection, layer 6 is responsible for adding
the encryption on the sender’s end as well as decoding the encryption on the receiver's
end so that it can present the application layer with unencrypted, readable
data.
The presentation layer is
also responsible for compressing data it receives from the application layer
before delivering it to layer 5. This helps improve the speed and efficiency of
communication by minimizing the amount of data that will be transferred.
Example: Include
encryption ASCII, GIF, JPEG etc.
- The Session Layer
This is the layer
responsible for opening and closing communication between the two devices. The
time between when the communication is opened and closed is known as the
session.
The session layer ensures that the session stays open long enough to transfer all the data being exchanged, and then promptly closes the session in order to avoid wasting resources.
- The Transport Layer
Layer 4 is responsible for
end-to-end communication between the two devices. This includes taking data
from the session layer and breaking it up into chunks called segments before
sending it to layer 3. The transport layer on the receiving device is
responsible for reassembling the segments into data the session layer can
consume.
The transport layer is also
responsible for flow control and error control. Flow control determines an
optimal speed of transmission to ensure that a sender with a fast connection
doesn’t overwhelm a receiver with a slow connection.
The transport layer performs error control on the receiving end by ensuring that the data received is complete, and requesting a re-transmission if it isn’t.
- The Network Layer
The network layer is
responsible for facilitating data transfer between two different networks. If
the two devices communicating are on the same network, then the network layer
is unnecessary.
The network layer breaks up segments from the transport layer into smaller units, called packets, on the sender’s device, and reassembling these packets on the receiving device. The network layer also finds the best physical path for the data to reach its destination; this is known as routing.
- The Data Link Layer
The data link layer is very
similar to the network layer, except the data link layer facilitates data
transfer between two devices on the SAME network.
The data link layer takes packets from the network layer and breaks them into smaller pieces called frames. Like the network layer, the data link layer is also responsible for flow control and error control in intra-network communication (The transport layer only does flow control and error control for inter-network communications).
- The Physical Layer
This layer includes the
physical equipment involved in the data transfer, such as the cables and
switches. This is also the layer where the data gets converted into a bit
stream, which is a string of 1s and 0s. The physical layer of both devices must
also agree on a signal convention so that the 1s can be distinguished from the
0s on both devices.
Comments