OSI Reference Model
OSI Reference Model
OSI Reference Model
Objectives
Data communication among
heterogeneous systems – difficulties and
solutions
The need for layered architecture
Design issues for the layers
The OSI model
2
Network complexities
Different types of hardware and software
Different operating systems
Different types of data to be transferred –
text, images, music, video, etc
Data must be transferred without errors
Many different paths may have to be taken
3
Network complexities
Data formats and data exchange
conventions vary between manufacturers
E.g.,ASCII, UNICODE, EBCDIC(Extended
Binary Coded Decimal Interchange Code),
etc.
4
Solution:
This can be resolved only if computers
follow certain common set of rules or
protocols
5
What is a protocol?
It is a formal description of message
formats and the rules that two computers
must follow in order to exchange
messages.
6
Why are protocols needed?
Protocols are needed for communication
between any two devices.
In what format will the messages be transmitted?
At what speed should messages be transmitted?
What to do if errors take place?
7
Protocols in daily life
How does conversation take place between
human beings
“Hello”
“Goodbye”
Handshake
Letters
“Dear Sir”
“Yours faithfully”
No splleing mistakes !
8
Network Model
Network model - A method of describing and
analyzing data communications networks by
breaking the aentire
process into numberset of
of layers.
communications
9
Open Systems Interconnect (OSI)
Model
Who made:
International Standards Organization (ISO)
A Model of How Protocols and Networking
Components Could be Made
“Open” means the concepts are non-
proprietary; can be used by anyone.
OSI is not a protocol. It is a model for
understanding and designing a network
architecture that is flexible and robust.
10
Open Systems Interconnect (OSI)
Model
The OSI model describes
how data flows from one
computer, through a network
to another computer
The OSI model divides the tasks involved with
moving information between networked computers
into 7 smaller, more manageable sub-task .
A task is then assigned to each of the seven OSI
layers.
Each layer is reasonably self-contained so that the
tasks assigned to each layer can be implemented
independently. 11
7-layer OSI model
Why so many layers?
Toreduce complexity, networks are organized
as a stack of layers, one below the other.
This
is similar to the concept of a function in
programming languages – function does a
specific task
13
Layered Approach
Peers
14
Layered Approach
The entities comprising the corresponding layers on
different machines are called peers
16
OSI model did not fully implemented.
TCP/IP was used and tested extensively
in the internet.
17
The Layers of the OSI Model
Application
Presentation
Session
Transport
Network
Data Link
Physical
18
The Layers of the OSI Model
Some Mnemonics
All Application Please
People Presentation Do
Seem Session Not
To Tell
Transport
Need Secret
Network
Data Passw
Data Link ords
Proces
sing Physical Anytime
19
Physical layer
Coordinates the functions required to carry
a bit stream over physical medium.
It deals with a electrical and mechanical
specifications of the interface and
transmission medium(type of medium).
It responsible for movements of individual
bits from one hop(node) to the next.
23
Physical layer
• Specifications for the physical
components of the network. Application
• Functions of Physical Layer:
• Bit representation – encode bits(0’s and 1’s)
into electrical or optical signals
Presentation
• Transmission rate – The number of bits sent
each second Session
• Physical characteristics of transmission
media Transpo
• Synchronizing the sender and receiver
clocks(both are not have same bit rate). rt
• Line Configuration The physical layer is
concerned with the connection of devices to
the media.(point-to-point (or) multipoint)
Network
Transmission mode – simplex, half-duplex,
•
full duplex Data Link
• Physical Topology – how devices are
Physical
connected – ring, star, mesh, bus topology
24
Physical Layer
25
Data Link Layer
Responsible for delivery of data between two
systems on the same network(hop to hop delivery)
Main functions of this layer are:
• Framing – divides the stream of bits Application
received from network layer into
manageable data units called frames.
• Physical Addressing – Add a header
Presentation
to the
frame to define the physical address
of the Session
•
source and the destination
machines(MAC). Transpor
Flow control – If the receiver is less than t
rate of at which data are produced in the
sender.[The flow control mechanism to
avoid overwhelming the receiver] Network
Data Link
Physical
26
Data Link Layer
• Error Control – Adds relaibility mechanisms
to detect and retransmit damaged or lost
frames. This is achieved by adding a trailer
to the end of a frame Application
Also, recognize duplicate frames.
Presentation
• Access Control –When two (or) more
devices connected to the same link, then
this layer protocol determine which devices Session
has control over the link at any given time.
Transpor
t
Network
Data Link
Physical
31
Data Link Layer
32
Data Link Layer
33
Network Layer
Application
Main functions of this layer are:
• Responsible for delivery of packets Presentation
across multiple(sou to des delivery)
networks[Note: if two systems are Session
connected to the same link there is
no need for a n/w layer] Transpor
• Logical Addressing:The physical t
Network
addressing implemented by the
data link layer handles the Data Link
addressing problem locally(MAC)
• When it passes the boundary the n/w Physical
layer adds a header to the packet(IP)
coming from the upper layer(include
logical address of sender and receiver) 34
Network Layer
Application
Main functions of this layer are:
Presentation
• Routing – Independent networks
(or) large n/w, the connecting Session
device(Router or switch)
• Router the packets to the final
Transpor
destrination. t
Network
• Network layer is responsible only
for delivery of individual packets Data Link
and it does not recognize any Physical
relationship between those
packets.
35
Network Layer
36
Network Layer
37
Transport Layer
• Responsible for source-to-
destination delivery of the entire Application
message.
Main functions of this layer are: Presentation
• Segmentation and reassembly –
divide message into smaller Session
segments, add sequence number Transport
them and transmit. Reassemble
these messages at the receiving Network
end.
• Error control – make sure that the Data Li
entire message arrives without nk
errors – else retransmit.
Physical 38
Transport Layer
Service point addressing:
Compuer often run several programs at a same
time.
Sou-to-des not only from one computer to next. Application
The transport layer header must therefore include
a address called service point address[port
address]
Presentation
Connection control:
Session
Connectionless- Each segment as a individual
& delivery to the destination. Transport
Connection oriented- Fist establish a
connection with the transport layer at the Network
destination before the packets send.
After all data packets delivered, then the Data Li
connection is terminated. nk
Physical 39
Transport Layer
A port is identified for each address and protocol by
a 16-bit number, commonly known as the port
number.
A port number is a 16-bit unsigned integer, thus
ranging from 1 to 65535 (port number 0 is
reserved and can't be used).
Transport Layer protocols, such as the
Transmission Control Protocol (TCP) and the
User Datagram Protocol (UDP), specify a source
and destination port number in their packet
headers.
40
Transport Layer
41
Transport Layer
42
Session Layer Application
H5 H5
49
Lyer 1-3-are the network support layer.
(they deal with the physical aspects of
moving data from one device to another)
Layer4- links the two subgroups
Layer 6-7-can be thought of as the user
support layers(Allow interoperability
among unrelated software system)
50