Lec02 OSI Model
Lec02 OSI Model
COMPUTER COMMUNICATION
AND NETWORKS
3(3-0)
Syed Mushhad Gilani
Protocols
The OSI model
communication.
The layered functionality of the
published in 1980.
Network Protocols
• A communication protocol is a set of rules
that specify the format and meaning of
messages exchanged between computers
across a network.
• A set of related protocols that are designed
for compatibility are called protocol suite.
Human and Computer Protocols
Boarding Deplane
Takeoff Landing
Traveling
More on the air travel analogy…
Arrival Departure
Departing airport
Arriving airport
Check-in Baggage claim
Boarding Deplane
Takeoff Landing
Traveling
Layered Protocol Design
• Layering model is a solution to the problem of
complexity in network protocols
• The model divides the network protocols into
layers, each of which solves part of the
network communication problem
– Each layer has its own protocol!
• Each layer implements a service to the layer
above
– Relying on services provided by the layers
below.
Layers
Layers are the different components that
need to be designed/implemented when
designing/implementing networks.
Each layer responsible for a set of
functions.
Top layer relies on services provided by
bottom layer.
Layer makes it service available to higher
layer through an interface.
The OSI Model
OSI stands for Open Systems
Interconnection
It is a model that covers all aspects
of network communication
Purpose is to open communication
Layers
communicate and
interact with the
layers immediately
above and below
An Exchange Using the OSI Model
The OSI Model (cont.)
Application Message
Presentation Packets
Session Packets
Transport Datagram and segment
Network Datagram
Data Link Frames
Physical Bits
Functions of the layers
1:Physical Layer
• Coordinates the functions required to transmit a bit
stream over a physical medium.
• Deals with the mechanical and electrical specs of the
medium
• Defines the procedures that physical devices had to
perform for trans. to occur
Functions of the layers (cont.)
Physical layer concerns with the following;
• Physical characteristics of interfaces and media
• Representation of bits
• Data rate (the transmission rate)
• Synchronization of bits
• Line configuration
• Physical topology
• Transmission mode
Functions of the layers (cont.)
Data Link Layer
This layer breaks the input data into frames, transmits the frames
sequentially, and processes the acknowledged frames sent back by
the receiver. It adds a header and trailer to the frames it creates.
Addressing
The Data Link layer is responsible for the
physical addresses of devices on the network. Every device
on a network has a hard-coded address attached to it.
Example The address for Ethernet card would be
00-AA-00-59-65-71.
Contention Any device can transmit whenever
it needs to. It allows equal access to the network
media, but at the expense of possible collisions.
Collisions occur when two devices try to transmit
at the same time and disrupt each other’s
signaling. Devices listen for other signals on the
media before transmitting. Collisions are not
totally eliminated, but they are kept down to
manageable form. It is called CSMA (Carrier
Sense Multiple Access.
It has two types
CSMA/CD A stands for Carrier Sense Multiple
Access/Collision Detection.
CSMA/CA A stands for Carrier Sense Multiple
Access/Collision Avoidance
Deterministic
Unlike a contention-based network,
where devices are free to transmit
whenever they want, a deterministic
network
The two types of deterministic
• Routing
One of the functions of the network layer is to route
the packets to their final destination in an
internetwork environment.
Functions of the layers (cont.)
SWITCHING: Datagram switching describes how
data is forwarded across an inter network. There
are three main methods
Circuit Switching: In circuit switching, a
dedicated connection is made between the two
communicating devices. Two advantages of this
method are no congestion (because the link is
dedicated) and almost no channel-access delay.
The disadvantages are inefficient use of the media
and a possible long wait to establish a connection.
Network Layer
Message Switching: With message switching the
data is sent from device to device in whole across
the network. This is also known as store and
forward. Devices must store all the information as
it is sent in whole. The media is used more
efficiently with this method, and congestion can be
controlled.
Packet Switching: A combination of circuit
switching and message switching. With packet
switching, data is broken into small pieces and
routed from device to device. Devices that forward
the data only need to keep the information in
memory instead of in physical storage, because
data was split
Functions of the layers (cont.)
4:Transport Layer
• Responsible for the source to destination
delivery of the entire message.
• Ensures that whole message arrives in order.
Functions of the layers (cont.)
Transport layer responsibilities are;
• Service-point addressing
Not only from computer-to-computer connection, but
also from process to process, so it gets the entire
message to correct process(running program) on
that computers
• Segmentation and reassembly
Divided into transmittable segments with a unique
sequence number
• Connection control
Can be connectionless or connection oriented
• Flow control
• Error control
Transport Layer
Provide acknowledgment of successful
transmission
Flow control
• Partition data into packets and assign each
one a sequence number
• Provide service to assemble the received
packets back into their original order
• Error detection and correction
Lowest layer to which application
programs are typically written
Functions of the layers (cont.)
5:Session Layer
• Is the network dialog controller which
establishes, maintains and synchronizes the
interaction between communicating systems.
Functions of the layers (cont.)
Session layer responsibilities are;
• Manage who can transmit data at a certain
time and for how long
• Synchronization
Adds checkpoints into a stream of data.
Session Layer
Enable data exchange between
application to application
• Establishment
• Synchronization
• Re-establishment
Functions of the layers (cont.)
6:Presentation Layer
• Concerned with the syntax of the information
exchanged between two systems.
Functions of the layers (cont.)
Presentation layer responsibilities are;
• Translation
Changes information into a stream of bits which is a
common format for different systems.
• Encryption
The sender transforms the original information to
another form and receiver transforms the message to
its original form for privacy reasons.
• Compression
Data compression reduces the number of bits to be
retransmitted, it is important at the transmission of
multimedia data.
Functions of the layers (cont.)
7:Application Layer
• Enables the user whether human or software
to access the network and provides user
interfaces.
Functions of the layers (cont.)
Application layer responsibilities are;
• Network Virtual Terminal
Is a software version of the physical terminal and
allows a user to log on to a remote host.
• File transfer,access and management(FTAM)
Allows a user to access files in a remote computer
and to manage or control them.
• Mail services
Provides the basis for email forwarding and storage.
Application Layer
Dictate the semantics of how requests for
services are made, such as requesting a file or
checking for email.
The container for all applications and protocols
• Telnet, HTTP, POP, SMTP, Finger, FTP, etc.
Virtually all distributed systems are applications
In Java, almost all network software written will
be for the application.
OSI Layers
A typical message as it appears on the network.
2-2
Functions of the layers (cont.)
Layer Function Protocols Network
Components
Presentation Gateway
Translation Translates from application to network format and vice-versa Redirector
all different formats from all sources are made into a common uniform
format that the rest of the OSI model can understand
responsible for protocol conversion, character conversion,data encryption /
decryption, expanding graphics commands, data compression
sets standards for different systems to provide seamless communication from
multiple protocol stacks
not always implemented in a network protocol