Network Models: Dept. of Computer Engineering Faculty of Engineering
Network Models: Dept. of Computer Engineering Faculty of Engineering
1. Layered Tasks
2. Introduction to OSI Model
3. Introduction to TCP/IP Model
4. Data Encapsulation
Layered Tasks
We use the concept of layers in our daily life. As
an example, let us consider two friends who
communicate through postal mail The process of
sending a letter to a friend would be complex if
there were no services available from the post
office.
Standards: Probably the most important reason for using a layered model is
that it establishes a prescribed guideline for interoperability between the
various vendors developing products that perform different data
communications tasks.
Change: When changes are made to one layer, the impact on the other
layers is minimized. If the model consists of a single, all-encompassing
layer, any change affects the entire model.
Introduction to OSI Model
Data 6. Presentation
5. Session
Segments 4. Transport
Packet 3. Network
Bit 1. Physical
Application Layer
The application layer is the OSI layer closest to the end
user, which means that both the OSI application layer and
the user interact directly with the software application.
Some examples of application layer implementations
include
Hypertext Transfer Protocol (HTTP)
File Transfer Protocol (FTP)
Simple Mail Transfer Protocol (SMTP)
Presentation Layer
Before being transmitted, information in the form of
characters and numbers should be changed to bit streams.
The presentation layer is responsible for interoperability
between encoding methods as different computers use
different encoding methods. It translates data between the
formats the network requires and the format of the
computer.
This layer provides independence from differences in data
representation, such as – Encryption, Compression
Session Layer
Session layer provides mechanism for controlling the
dialogue between the two end systems. It defines how to
start, control and end conversations (called sessions)
between applications.
Any necessary log-on or password validation is also
handled by this layer.
Session layer is also responsible for terminating the
connection.
Transport Layer
Purpose of this layer is to provide a reliable mechanism
for the exchange of data between two processes in
different computers.
Ensures that the data units are delivered error free.
Ensures that data units are delivered in sequence.
Ensures that there is no loss or duplication of data units.
Provides connectionless or connection-oriented service.
Provides for the connection management.
Multiplex multiple connection over a single channel.
Network Layer
Routing: The network layer protocols determine which route is
suitable from source to destination. This function of network
layer is known as routing.
Logical Addressing: In order to identify each device on
internetwork uniquely, network layer defines an addressing
scheme. The sender & receiver’s IP address are placed in the
header by network layer. Such an address distinguishes each
device uniquely and universally.
Data Link Layer
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. The data link layer is divided into two sub-layers -
1. Media Access Control (MAC)
2. Logical Link Control (LLC).
Mac is lower sub-layer, and it defines the way about the media
access transfer, such as CSMA / CD /CA (Carrier Sense Multiple
Access /Collision Detection /Collision Avoidance)
LLC controls the synchronization, flow control, and error checking
functions of the data link layer
Services of Data-Link Layer
Framing: The data link layer divides the stream of bits
received from the network layer into manageable data units
called frames.
Physical addressing: The Data Link layer adds a header to
the frame in order to define physical address of the sender or
receiver of the frame.
Flow control: If the rate at which the data are absorbed by
the receiver is less than the rate at which data are produced
in the sender, the data link layer imposes a flow control
mechanism to avoid overwhelming the receiver.
Services of Data-Link Layer
Contd.
Error control: The data link layer adds reliability to the
physical layer by adding mechanisms to detect and
retransmit damaged or lost frames. It also uses a
mechanism to recognize duplicate frames. Error control is
normally achieved through a trailer added to the end of the
frame.
Access control: When two or more devices are connected
to the same link, data link layer protocols are necessary to
determine which device has control over the link at any
given time.
Data Link Layer - Frame