Chapter 3
Chapter 3
M Layer 5
H M Layer 4
Where M : Message
H : Header
Peer to Peer Process
2) Representation of bits.
The Physical Layer data consists of a stream of bits
(i.e sequence of 0s or 1s).
3) Data Rate (Transmission Rate).
The transmission rate-the number of bits sent each
second-is also defined by the physical layer.
4) Synchronization of bits.
The sender and receiver not only must use the same
bit rate but also must be synchronized at the bit level.
In other words, the sender and the receiver clocks
must be synchronized.
Note
3) Flow Control
Flow Control deals with the speed of sender to match
that of the receiver.
4) Error Control
The data link layer adds reliability to the physical
layer by adding mechanisms to detect and
retransmit damaged or lost frames.
5) Access Control
Physical Physical
Link 1 Link 3 Link 5 Link 6
D2 H2
Frame
D2 ame
Fr
H2
D2 H2 D2 H2
Frame Frame
packet packet
discarded discarded
1 packet
87 10 Data accepted
87 10 Data
2 3
4
Network Layer
3) Network Layer
2) Routing
Routers or Switches are responsible for routing
packets to their final destination.
Note
Physical Physical
D3 H3
Datagram
D3 H3
Datagram
20 10 A P Data 20 10 A P Data 33 99 A P Data
Physical
addresses
changed
95 66 A P Data 95 66 A P Data
33 99 A P Data
Physical
addresses
changed
Transport Layer
From Session Layer To Session Layer
4) Transport Layer
5) Error Control
Error Control is performed end to end in this layer
to ensure that the complete message arrives at the
receiving transport layer without any error.
Error Correction is done through retransmission.
Note
Physical Physical
D4 H4
Segment
D4 H4
Segment
Session Layer
5) Session Layer
2) Synchronization
It helps in synchronization of data from sender and
receiver end.
It adds synchronization points or checkpoints in data
streams for long communications. This ensures that data
streams up to the checkpoints are successfully received
and acknowledged. In case of any failures, only the
streams after the checkpoints have to be re-transmitted.
Note
2) Encryption
The presentation layer performs data Encryption and
Decryption.
3) Compression
The presentation layer performs data Compression
before sending and decompression at the destination.
Note
Transport Transport
R1 R3 R4
Network Network
Physical Physical
D5 D5
Message
D5 D5
Message
Summary of OSI Layers
TCP / IP Model
Introduction
TCP/IP is a short form of Transmission
Control Protocol/Internet Protocol.
Internet IP
OSI refers to Open Systems Interconnection. TCP refers to Transmission Control Protocol.
In the OSI model, the data link layer and In TCP, physical and data link are both
physical are separate layers. combined as a single host-to-network layer.
Session and presentation layers are a part of There is no session and presentation layer in
the OSI model. the TCP model.
It is defined after the advent of the Internet. It is defined before the advent of the internet.