UNIT-2
Data Link Layer and Medium Access Sub Layer:
Error Detection and Error Correction - Fundamentals,
Flow Control and Error control protocols –
Multiple access protocols –
Error Detection and Error Correction - Fundamentals,�
Types of Errors:
1.Single bit error
2. Burst error
3. Multiple bits error
1.Single bit error�
2.Burst error
3. Multiple bits error�
Error Detection Methods�
To detect errors, a common technique is to introduce redundancy bits that provide additional information.
Various techniques for error detection include:
1.Single Parity Check�
It works as:
2.Two-Dimensional Parity Check�
3.Cyclic Redundancy Check (CRC)�
CRC Working:
We have given data word of length n and divisor of length k.
4. Checksum�
Checksum – Operation at Sender’s Side
Checksum – Operation at Receiver’s Side
Example
Error Correction
Following are the two ways through which error correction can be handled:
Backward Error Correction:
Forward Error Correction:
Error Correction Techniques�
Block coding
Flow Control and Error control protocols
Simplest Protocol
Simple Protocol
Stop and Wait
Stop and Wait
Working of Stop and Wait protocol�
1. Lost Data
2. Lost Acknowledgement�
3. Delayed Acknowledgement/Data�
Sliding Window Protocol�
Types of Sliding Window Protocol�
Go-Back-N ARQ�
Working of Go-Back-N ARQ Protocol:
1. Data packets are divided into multiple frames. Each frame contains information about the destination address, the error control mechanism it follows, etc. These multiple frames are numbered so that they can be distinguished from each other.
4. The receiver sends the acknowledgment of frame 1. Then the sliding window moves by one and frame 3 is sent
Characteristics of Go-Back-N ARQ�
Given below are the characteristics of the Go-Back-N ARQ protocol.
Selective Repeat ARQ�
The steps of data transmission can be: