ISO-OSI
ISO-International Standards Organisation
Multinational body dedicated to worldwide agreement
on international standards
An ISO standard that covers all aspects of network
communication is the OSI
OSI-Open System Interconnection
OSI is a model and not a protocol
Vendor specific protocols close off communication
between unrelated systems
OSI model is to open communication between different
systems without requiring changes to the logic of the
underlying hardware and software
Layered Communication
Person-A ← I like rabbits Person-B
(English) → J’aime les lapins (French)
Translator-A
← Ik hou van konijnen Translator-B
(English-Dutch) (French-Dutch)
→ Ik hou van konijnen
Secretary-A
← Ik hou van konijnen Secretary-A
(FAX) (FAX)
→ Ik hou van konijnen
FAX
Layered Communication
Each layer has a distinct identity and a specific set
of functions so that any change in the
implementation does not affect other layers.
Each layer has an active element to carry out the
layer functions
Each layer provides certain services to the next
higher layer which uses these services to carry out
its assigned functions.
Layers must follow some meaningful sequence
Number of layers should be minimum as the each
added layer adds to the cost and delay
OSI Layers
The OSI model is built of seven ordered
layers:
Layer-1: Physical
Application
Layer-2: Data Link Presentation
Layer-3: Network Session
Transport
Layer-4: Transport Network
Layer-5: Session Data Link
Layer-6: Presentation Physical
Layer-7: Application
OSI Layers
The seven layers can be thought of as
belonging to three sub groups
Network Support Layers (Layers 1-3)
Deal with the physical aspects of moving data from
one device to another
User Support Layers (Layers 5-7)
Allow interoperability among unrelated software
systems
Layer-4 ensures end to end reliable data
transmission
OSI Layers
End System
Application
User Support Layers Presentation
Session Network Support Layers
Transport
Network Network Network Network
Data Link Data Link Data Link Data Link
Physical Physical Physical Physical
Hierarchical
(N)-ICI
(N+1)-Layer (N)-IDU
(N+1)-PCI (N+1)-SDU (N)-ICI
(N)-Layer
(N)-ICI
(N)-SDU
(N+1)-PCI (N+1)-SDU
(N)-PCI
(N)-PDU
(N)-PCI (N+1)-PCI (N+1)-SDU
Data Units
Protocol Control Information (PCI)
(N)-PCI is the protocol control information
exchanged between the (N)-entities to
coordinate their functions
Service Data Units (SDU)
(N)-SDU is the data unit transferred between
the ends of a (N)-connection whose identity is
preserved during the transfer
Protocol Data Unit (PDU)
(N)-PDU is the combination of (N)-PCI and
(N)-SDU
Data Units
Interface Control Information (ICI)
(N)-ICI is the information exchanged between
(N+1)-entity and (N)-entity to coordinate their
functions
Interface Data Unit (IDU)
(N)-IDU is the total data unit transferred across
the SAP between (N+1)-entity and (N)-entity
OSI Layers
7-Application 7-Application
Link Intermediate Link
7-6 Interface 7-6 Interface
Node
6-Presentation 6-Presentation
6-5 Interface 6-5 Interface
5-Session 5-Session
5-4 Interface 5-4 Interface
4-Transport 4-Transport
4-3 Interface 4-3 Interface
Transmission Medium
Layer-2 (Data Link)
Second of three network support layers
Divides the bit stream received from network
A layer into manageable data units called frames
P Transforms the physical layer to a reliable link
S by adding mechanism to detect and retransmit
T damaged frames
N Responsible for physical addressing of the
D devices
P
Responsible for link-by-link flow control and
error free delivery of data
Responsible for Media Access Control
Layer-2 (Data Link)
From Network Layer To Network Layer
L3 Data L3 Data
T2 H2 Data Link T2 H2
Layer
L4 Data L4 Data
H3 Network Layer H3
L3 Data L3 Data
To Data Link Layer From Data Link Layer
Layer-4 (Transport)
Responsible for Source-to-Destination
delivery of the entire message
A Uses service-point address (port address)
P for end-to-end delivery
S Network layer gets each packet to correct
T computer, transport layer gets the entire
N message to the correct process
D Responsible for segmenting a message
P into transmittable segments
At the destination the message is correctly
reassembled
Segmentation and Reassembly
From Session Layer To Session Layer
L5 Data L5 Data
H4 H4 Transport Layer H4 H4
L3Data L3Data
L3Data L3Data
To Network Layer From Network Layer
Layer-4 (Transport)
Utilises network layer to ensure reliable,
sequenced data exchange
A Transport layer can be connectionless or
P connection oriented
S A connectionless transport layer treats each
T segment as an independent packet
A connection oriented transport layer makes
N
a connection with the transport layer at the
D destination machine before delivering the
P packets
After all the data is transmitted, the
connection is terminated
Layer-4 (Transport)
Responsible for end-to-end flow control
of data
A
Responsible for end-to-end error control
P
of data
S
Error correction is usually achieved through
T
retransmission
N
D
P
Layer-5(Session)
First of the three user support layers
It is the network dialog controller
A It establishes, maintains, and synchronises
P the interaction between communicating
S systems
T It allows the communication between two
N processes to take place either in half-
D duplex or full-duplex
P Allows a process to add checkpoints
(synchronisation points) into a stream of
data
Layer-5(Session)
From Presentation Layer To Presentation Layer
L6 Data L6 Data
Session
H5 Layer H5
SYN
L5 Data L5 Data
To Transport Layer From Transport Layer
Layer-6 (Presentation)
Second of the three user support layers
Concerned with the syntax and semantics
A
of the information exchanged between
P
two systems
S At sender end, changes the information
T from sender dependent format into a
N common format
D At the receiving end, changes the
P information from common format into its
receiver dependent format
Layer-6 (Presentation)
Responsible for encryption and decryption
A of sensitive information
P
Responsible for data compression of the
S data to be transmitted
T
N
D
P
Layer-6(Presentation)
From Application Layer To Application Layer
H6 Presentation H6
Layer
L6 Data L6 Data
To Session Layer Decoded, Decrypted and From Session Layer
Decompressed data
Layer-7(Application)
Top of the three user support layers
A
Enables the user, human or software, to
P
access the network
S
It provides user interfaces and support for
T services e.g. electronic mail, remote file
N access and transfer, shared database
D management and other types of distributed
P information services
No headers or trailers are added by this
layer
MTP:MESSAGE TRANSFER PART:
• RESPONSIBLE FOR TRANFERING MESSAGE
• TAKING MESSAGE FROM ONE NETWORK TO ANOTHER NETWORK
• CONSIST OF THREE LAYERS
P-6 L6-Data H6
S-5 L5-Data H5
T-4 L4-Data H4
N-3 L3-Data H3
D-2 T4 L2-Data H2
P-1 0100011110001001000111111000011101010
An exchange using OSI model
L7-Data A-7
L6-Data H6 P-6
L5-Data H5 S-5
L4-Data H4 T-4
L3-Data H3 N-3
T4 L2-Data H2 D-2
0100011110001001000111111000011101010 P-1
Summary of OSI Layers Functions
Allow access to network
Application resources
7-6 Interface
Translate, encrypt and
Presentation
compress data
6-5 Interface
Establish, manage and
Session
terminate sessions
5-4 Interface
Reliable end to end delivery Transport
& error recovery 4-3 Interface
Movement of packets;
Network
Provide internetworking
3-2 Interface
Organise bits into streams;
Data Link
Node to node delivery
2-1 Interface
Transmit bits; Mechanical
Physical
and electrical specifications