Protocol Layering
Protocol Layering
Protocol Layering
Outline
Part 1
Network problems, protocol and layering
concepts
Need for protocols and layering
Part 2
ISO/OSI and TCP/IP models
Comparison
Common points
Final remarks
3
Outline Part 1
Existing problems in communication
networks
Protocol -definition
The need for protocols
Set of protocols: Layering
What is Layering?
Why Layering?
3
Existing Problems in
Communication Networks
Hardware failure
Hosts, routers
Network congestion
Networks have finite capacity
Packet delay
Data corruption
Electric, magnetic interferences
HW failure
Data duplication
Complexity of networks
Networks are
complex !!!
Parts of a network:
Hosts
Routers
Media
Applications
Hardware
Software
Different OS
Different protocols
Is there a Solution?
Organize all the
elements under a
same agreement
Better yet, use a
divide and conquer
approach
Result: the concept of
a communications
protocol
Protocol
Agreement about communication
Specifies
Format of messages
Meaning of messages
Rules for exchange
Procedures for handling problems
Set of Protocols
Work together
Each protocol solves part of a
communication problem
Known as
Protocol suite
Protocol family
Designed in layers
3
What is layering?
A technique to organize a network
system into a succession of logically
distinct entities, such that the service
provided by one entity is solely
based on the service provided by the
previous entity.
Layer 2
Layer 1
The modules of
Protocol SW are
on each machine
stacked vertically
into layers
Network
3
Receiver
Layer n
Layer 2
Layer 1
Conceptual/Realistic view
Conceptual Layers
High Level
Protocol Layer
Software Organization
Protocol 1
Internet
Protocol Layer
Network
Interface Layer
Protocol 2
Protocol 3
IP Module
Interface 1
Interface 2
Interface3
Application
Transport
tcp, udp
Network: routing of a
datagram from source to
destination
Network
ip,routing protocols
Link
Physical
Message
Segment
H H
Datagram
H H H
Frame
Transport
Network
Link
Physical
3
Why layering?
Dealing with complex systems:
Explicit structure allows identification of
complex systems pieces
Modularization eases developing,
maintenance, updating of system
Change of implementation of layers service
transparent to rest of system
Example: No layering
Application
Transmission
Media
FTP
Telnet
HTTP
Coaxial cable
Packet radio
Fiber optic
Application
Telnet
FTP
HTTP
Transport
& Network
Transmission
Media
Coaxial cable
Fiber optic
Packet radio
Layer 7
Application
Message Passing
Layer 6
Presentation
Encoding
Layer 5
Session
Authentication &
Encryption
Layer 4
Transport
Streams &
Segments
Layer 3
Network
Datagrams
Layer 2
Data Link
Layer 1
Physical
Hardware
Conceptual Layer
Application
Transport
Internet
Network Interface
Physical
3
Objects Passed
Between Layers
Messages or Streams
Transport Protocol Packets
IP Datagrams
Network-Specific Frames
Layer 4: Transport
Provides reliable delivery of data
Layer 3: Internet
Defines uniform format of packets forwarded across
networks of different technologies and rules for
forwarding packets in routers
Layer 2: Network
Defines formats for carrying packets in hardware frames
Layer 1: Physical
Application
Telnet, FTP,
e-mail, etc.
Transport
TCP, UDP
Internet
Network Interface
Physical
3
Protocol layering
Host A
Host B
Application
Application
Transport
Internet
Network Interface
Identical
message
Identical
packet
Identical
datagram
Identical
Frame
Physical net
3
Transport
Internet
Network Interface
Conceptual Layers
Transport
Software Organization
Protocol 1
Internet
Network
Interface
Intranet
3
Protocol 2
Protocol 3
IP Module
Interface 1
Interface 2
Point-To-Point
(Intranet)
Interface3
Multiplexing and
Demultiplexing
ARP Module
IP Module
RARP Module
Demultiplexing
Based on Frame type
Frame arrives
3
More Demultiplexing
UDP Protocol
ICMP Protocol
TCP Protocol
IP Module
Datagram arrives
3