Computer Networks: Chapter 10 - Error Detection and Correction
Computer Networks: Chapter 10 - Error Detection and Correction
Computer Networks: Chapter 10 - Error Detection and Correction
Single-bit error
The value of a single bit in a data unit is changed
Does not occur very often in serial data transmission
Burst error
The value of two or more bits in the data unit is
changed
Usual type of error in serial data transmission
0110100
1011010
Solution: 0110100 1
1011010 0
01101001011010001011011101011001011
Solution 0110100 1
1011010 0
0010110 1
1110101 1
1001011 0
1000110 1
01101001101101000010110111101011100101101000110
Spring 2006 Computer Networks 21
Checksum
To compute the check sum, the sender treats the
data unit as a sequence of a certain number of
blocks, all with the same number of bits.
The sender and receiver agree on how long are the
blocks (usually 16 bits)
The sender adds the blocks using one’s
complement arithmetic and creates an additional
block with the same size
The additional block is complemented and
appended to the data unit as redundancy bits
0 XOR 0 = 0 Examples:
0 XOR 1 = 1
1011 XOR 0101 = 1110
1 XOR 0 = 1
1 XOR 1 = 0 1001 XOR 1101 = 0100