Lecture - Error Control in Communication
Lecture - Error Control in Communication
System Architecture
Sensor Nodes
2
Error and Flow Control in Communications
Communication Protocol
▪ The combination of framing, flow control, and error
control to achieve the delivery of data from one node to
another.
3
Error and Flow Control in Communications
Classification of Protocols
4
Error and Flow Control in Communications
NOISELESS CHANNELS
▪ No frames are lost, duplicated, or corrupted
5
Error and Flow Control in Communications
Simplest Protocol
▪ Unidirectional protocol: data frames are traveling in
only one direction-from the sender to receiver.
6
Error and Flow Control in Communications
7
Error and Flow Control in Communications
Implementation
8
Error and Flow Control in Communications
Example
Propagation delay
10
Error and Flow Control in Communications
11
Error and Flow Control in Communications
Example
▪ The sender sends one frame and waits for feedback from the
receiver before sending the next frame
NOISY CHANNELS
▪ Although the Stop-and-Wait Protocol gives us an idea of
how to add flow control to its predecessor, noiseless
channels are nonexistent.
13
Error and Flow Control in Communications
14
Error and Flow Control in Communications
15
Error and Flow Control in Communications
Example
▪ Frame is lost
▪ ACK is lost
▫ Duplicate reception at the receiver
16
Error and Flow Control in Communications
▪ Protocol principles:
▫ Several frames are sent before receiving ACKs
▫ A copy of these frames are kept until the ACKs arrive
17
Error and Flow Control in Communications
18
Error and Flow Control in Communications
Definitions
▪ Sf: the sequence number of the first (oldest) outstanding
frame
▪ Sn: the sequence number that will be assigned to the
next frame to be sent.
▪ Ssize: the size of the window, which is fixed in our
protocol.
19
Error and Flow Control in Communications
20
Error and Flow Control in Communications
Go Back N Design
21
Error and Flow Control in Communications
22
Error and Flow Control in Communications
23
Error and Flow Control in Communications
24
Error and Flow Control in Communications
m-1
Received Windows (size 2 )
▪ Many frames can be arrived out of order and be kept
until there is a set of in-order frames to be delivered
to the network layer
▪ All the frames in the send frame can arrive out of order
and be stored until they can be delivered.
25
Error and Flow Control in Communications
26