Lecture No. - 40-42 - Data Link Layer
Lecture No. - 40-42 - Data Link Layer
Lecture No. - 40-42 - Data Link Layer
1. Types of Errors
2. Redundancy
3. Error Detection
4. Error Correction
Types of Errors
Errors are introduced into the binary data transmitted from the sender to the
receiver due to noise during transmission. The error can be a single-bit error, multi-
bit error, or burst error. Error detection methods are used to check whether the
receiver has received correct data or corrupted data. And error correction is used to
correct the detected errors during the transmission of data from sender to receiver.
■ Burst error :-
It means that two or more bits in the data unit has changed.
Single Bit Error
Networks must be able to transfer data from one device to another with complete
accuracy.
Data can be corrupted during transmission.
For reliable communication, errors must be detected and corrected.
Error detection and correction are implemented either at the data link layer or the
transport layer of the OSI model.
• Single bit errors are the least likely type of errors in serial data transmission
because the noise must have a very short duration which is very rare. However, this
kind of errors can happen in parallel transmission.
Example:
★ If data is sent at 1Mbps then each bit lasts only 1/1,000,000 sec. or 1μs.
★ For a single-bit error to occur, the noise must have a duration of only 1 μs, which is
very rare.
Burst Error
The term burst error means that two or more bits in the data unit have changed from 1
to 0 or from 0 to 1. Burst errors does not necessarily mean that the errors occur in
consecutive bits, the length of the burst is measured from the first corrupted bit to the
last corrupted bit.
Burst Error( cont..)
Burst error is most likely to happen in serial transmission since the duration of noise is
normally longer than the duration of a bit.
The number of bits affected depends on the data rate and duration of noise.
Example:
If data is sent at rate = 1Kbps then a noise of 1/100 sec can affect 10 bits.(1/100*1000)
If same data is sent at rate = 1Mbps then a noise of 1/100 sec can affect 10,000 bits.
(1/100*106)
Error detection
Error detection means to decide whether the received data is correct or not
without having a copy of the original message.
Error detection uses the concept of redundancy, which means adding extra
bits for detecting errors at the destination.
Redundancy
■ Instead of repeating the entire data stream, a shorter group of bits may be
appended to the end of each unit.
■ This technique is called Redundancy because the extra bit are redundant to the
information. They are discarded as soon as the accuracy of the transmission has
been determined.
1100001
Data
Checking function
Sender
Figure 6 Vertical Redundancy Check
Vertical Redundancy Check (VRC)
Note:
10101001
00111001
11011101
11100111
LRC 10101010
Note:
Note:
Retransmission
2. In this redundant bit called parity bit is added to each In this redundant row of bits is added to the
data unit. whole block.
3. VRC can detect single bit errors. LRC can detect burst errors.
4. It is also known as parity checker. It is also known as 2-D parity checker.
5. The advantage of using VRC is that it can checks all The advantage of using LRC over VRC is that it
single bit errors but can check odd parity only in the can check all the burst errors.
case of change of odd bits.
6. It is not capable of checking the burst error in case of If two bits in data unit is damaged and also in
change of bits is even. other data unit the same bits are damaged at
same position, then it is not capable of detecting
such kind of error.
Hamming Code
Data and redundancy bits
4 3 7
5 4 9
6 4 10
7 4 11
r
2 m r 1
Positions of redundancy bits in Hamming code
3 2 1 0
2 ,2 ,2 ,2
Redundancy bits calculation
• https://www.netacad.com/portal/learning
• https://pinoybix.org/2017/07/mcq-in-network-layer-internet-protocol-forouzan
.html
• https://edurev.in/course/quiz/attempt/-1_Test-Ipv4--IP-Packet/0decdb37-7206-
4824-afdd-d47013a5c4cd