Lecture-7 OSI Model
Lecture-7 OSI Model
(OSI)
OSI Model
Before the OSI model, most networking equipment were proprietary.
This meant users had to buy their PCs, network interfaces, network connecting
medium and other components from the same vendor.
Mixed equipment from different vendors caused a lot of troubles & there was a
good chance that network wouldn't work.
The objective for creating the OSI model was to design a standardized network
communications model to create consistency within the industry.
The OSI model describes how the communication takes place (how data is sent
and received over a network).
The OSI model provides the standard for communication so that different
manufacturers' computers can be used on the same network.
Advantages of OSI Model
Provides a common language and reference point for network professionals.
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.
• The Physical layer also defines the transmission rate i.e. the number of
bits sent per second.
Functions of Physical Layer
Physical topologies:
• Physical layer specifies the way in which the different, devices/nodes are
arranged in a network i.e. bus, star or mesh topology.
Transmission mode:
• Physical layer also defines the way in which the data flows between the
two connected devices.
Note: Packet in Data Link layer is referred as Frame. Data Link layer is handled by the NIC
(Network Interface Card) and device drivers of host machines.
*** Switch & Bridge are Data Link Layer devices
Functions of Data Link Layer
Framing:
• It provides a way for a sender to transmit a set of bits that are meaningful
to the receiver.
Physical addressing:
• After creating frames, Data link layer adds physical addresses (MAC
address) of sender and/or receiver in the header of each frame.
Functions of Data Link Layer
Error control:
• 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 that amount of data that can be
sent before receiving acknowledgement.
Access control:
• When a single communication channel is shared by multiple devices, MAC
sub-layer of data link layer helps to determine which device has control over
the channel at a given time.
Network Layer
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 & receiver’s IP address are placed in the header by the network layer.
Logical Addressing:
• In order to identify each device on internetwork uniquely, network
layer defines an addressing scheme.
It provides services to application layer and takes services from network layer.
The transport layer also provides the acknowledgement of the successful data
transmission and re-transmits the data if an error is found.
Functions of Transport Layer
Segmentation and Reassembly:
• This layer accepts the message from the (session) layer , breaks the
message into smaller units.
• By specifying this address, transport layer makes sure that the message is
delivered to the correct process.
Transport Layer Protocols
The two transport layer protocols include:
In this protocol, firstly the connection is established between the two hosts of
the remote end, only then the data is sent over the network for communication.
Once data is transmitted between two hosts, the receiver host doesn’t send
any acknowledgment of receiving the data packets.
Thus the sender will keep on sending data without waiting for an
acknowledgment.
This type of protocol is widely used in video streaming, online games, video
calls, voice over IP where when some data packets of video are lost then it
doesn’t have much significance,
Session Layer
The Session layer manages the sessions in which data are transferred.
Synchronization :
• This layer allows a process to add checkpoints which are considered
as synchronization points into the data.
Dialog Controller :
• The session layer allows two systems to start communication with
each other in half-duplex or full-duplex.
Presentation Layer
Presentation layer is also called the Translation layer.
The Presentation layer formats (presents) data in a form compatible for receipt
by the Application layer or the destination system.
Encryption/ Decryption :
• Data encryption translates the data into another form or code.
• The encrypted data is known as the cipher text and the decrypted data is
known as plain text.
Compression:
Reduces the number of bits that need to be transmitted on the network.
Application Layer
At the very top of the OSI Reference Model stack of layers, we find Application
layer which is implemented by the network applications.
This layer also serves as a window for the application services to access the
network and for displaying the received information to the user.
Application Layer is also called as Desktop Layer where the users work such as
browsing network, using e-mails services, uploading & downloading files (FTP),
etc.
Application Layer
The Application layer integrates network functionality into the host operating
system and enables communication between network clients and services.