14 - Error 1
14 - Error 1
and Correction-
Part 1
Contents
Basic Concepts
Types of Errors
Hamming Distance
Vertical Redundancy Check (VRC)
Longitudinal Redundancy Check (LRC)
Basic concepts
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.
Types of Errors
Types of
Errors
Burst
Single Bit Multi Bit
Error
Types of Errors
Single-bit error means that only 1 bit of a given data unit (such as a byte, character, or packet) is
changed from 1 to 0 or from 0 to 1.
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.
Types of Errors
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. Some bits in between may not
have been corrupted.
Types of Errors
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)
Types of Errors
Error detection
Error detection means to decide whether the received data is correct
or not without having a copy of the original message.
10.14
Coding
10.16
10-2 BLOCK CODING
10.18
Figure 10.6 Process of error detection in block coding
10.19
Example 10.2
Let us assume that k = 2 and n = 3. Table 10.1 shows the list of datawords and
codewords. Later, we will see how to derive a codeword from a dataword.
Assume the sender encodes the dataword 01 as 011 and sends it to the receiver.
Consider the following cases:
Y
1010101 N Reject
Even Data
Compute
Parity Bit Compute
Parity Bit
1010101 0
1010101 0
Transmission Media
Performance
• Detect single bit error
• It can detect burst error only if the number of error is odd.
• EG
• 11100001 10100001 (3) correctly Rejects
• 11100001 10100101 (4) erroneously accept(because burst error is even)
• Ques:
• 1110110
• 1101111
• 1110010
Longitudinal Redundancy
Check (LRC)
Organize data into a table(rows and columns) and create a
parity for each column
11100111 11011101 00111001 10101001
11100111
11011101
00111001
10101001
10101010
Ques
01110111
10101001
01110001
11111111