What is OSI Model
What is OSI Model
What is OSI Model
In this article, we will discuss the OSI Model and each layer of the OSI
Model in detail. We will also discuss the flow of data in the OSI Model and
how the OSI Model is different from the TCP/IP Model.
OSI Model
There are 7 layers in the OSI Model and each layer has its specific role in
handling data. All the layers are mentioned below:
Physical Layer
Network Layer
Transport Layer
Session Layer
Presentation Layer
Application Layer
The lowest layer of the OSI reference model is the Physical Layer. It is
responsible for the actual physical connection between the devices. The
physical layer contains information in the form of bits. Physical Layer is
responsible for transmitting individual bits from one node to the next.
When receiving data, this layer will get the signal received and convert it
into 0s and 1s and send them to the Data Link layer, which will put the
frame back together. Common physical layer devices
are Hub, Repeater, Modem, and Cables.
Physical Layer
Bit Rate Control: The Physical layer also defines the transmission
rate i.e. the number of bits sent per second.
Physical Topologies: Physical layer specifies how the different,
devices/nodes are arranged in a network i.e. bus topology, star
topology, or mesh topology.
Transmission Mode: Physical layer also defines how the data flows
between the two connected devices. The various transmission
modes possible are Simplex, half-duplex and full-duplex.
The data link layer is responsible for the node-to-node delivery of the
message. The main function of this layer is to make sure data transfer is
error-free from one node to another, over the physical layer. When a
packet arrives in a network, it is the responsibility of the DLL to transmit it
to the Host using its MAC address. Packet in the Data Link layer is referred
to as Frame. Switches and Bridges are common Data Link Layer devices.
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.
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.
Access Control: When a single communication channel is shared
by multiple devices, the MAC sub-layer of the data link layer helps to
determine which device has control over the channel at a given
time.
The network layer works for the transmission of data from one host to the
other located in different networks. It also takes care of packet routing i.e.
selection of the shortest path to transmit the packet, from the number of
routes available. The sender and receiver’s IP address are placed in the
header by the network layer. Segment in the Network layer is referred to
as Packet. Network layer is implemented by networking devices such
as routers and switches.
The transport layer provides services to the application layer and takes
services from the network layer. The data in the transport layer is referred
to as Segments. It is responsible for the end-to-end delivery of the
complete message. The transport layer also provides the acknowledgment
of the successful data transmission and re-transmits the data if an error is
found. Protocols used in Transport Layer are TCP, UDP NetBIOS, PPTP.
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 number in its header and
forwards the segmented data to the Network Layer.
Connection-Oriented Service
Connectionless Service
Example
The presentation layer is also called the Translation layer. The data from
the application layer is extracted here and manipulated as per the
required format to transmit over the network. Protocols used in the
Presentation Layer are JPEG, MPEG, GIF, TLS/SSL, etc.
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. This
layer also serves as a window for the application services to access the
network and for displaying the received information to the user. Protocols
used in the Application layer are SMTP, FTP, DNS, etc.
Application Layer
Data Link Layer: Packets are framed and sent to the next device.
We can understand how data flows through OSI Model with the help of an
example mentioned below.
Step 6: At Data Link Layer, data packets are encapsulated into frames,
then MAC address is added for local devices and then it checks for error
using error detection.
Step 7: At Physical Layer, Frames are transmitted in the form of
electrical/ optical signals over a physical network medium like ethernet
cable or WiFi.
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.
Protocol
Layer Working Data Unit Protocols
Establishing
1–
Physical USB, SONET/SDH,
Physical Bits
Connections etc.
Layer
between Devices.
Node to Node
2 – Data
Delivery of Frames Ethernet, PPP, etc.
Link Layer
Message.
Transmission of
3– data from one host
IP, ICMP, IGMP, OSPF
Network to another, located Packets
, etc.
Layer in different
networks.
Establishes
Connection,
5–
Maintenance, NetBIOS, RPC, PPTP,
Session Data
Ensures etc.
Layer
Authentication and
Ensures security.
Protocol
Layer Working Data Unit Protocols
Helps in identifying
7–
the client and FTP, SMTP, DNS, DH
Applicatio Data
synchronizing CP, etc.
n Layer
communication.
The OSI Model matters because it provides the user a clear structure of
“how the data moves in the network?”. As the OSI Model consists of 7
layers, each layer has its specific role, and due to which it helps in
understanding, identifying and solving the complex network problems
easily by focusing on one of the layers not the entire network.
As the modern Internet does not prefer the OSI Model, but still, the OSI
Model is still very helpful for solving network problems. It helps people
understanding network concepts very easily.
OSI vs TCP/IP
The OSI Model has seven layers, which can be complicated and hard
to understand for beginners.
Each layer in the OSI Model adds its own set of rules and operations,
which can make the process more time-consuming and less
efficient.
Conclusion
No, OSI layers do not work independently. Each layer depends on the
services provided by the layer below it and, in turn, provides services to
the layer above it. This layered approach ensures that data is transmitted
smoothly from the source to the destination.