Content-Length: 3177484 | pFad | https://www.scribd.com/presentation/54925277/#
th: 3027261Data Link Layer
Data Link Layer
Data Link Layer
Single-Bit Error
Burst Error
Note:
Redundancy
Parity Check
Checksum
Note:
11100111
11011101
00111001
10101001
10101010
When the receiver checks the parity bits, some of the bits
do not follow the even-parity rule and the whole block is
Note:
k bits n bits
Associate bits with coefficients of a
polynomial
1 0 1 1 0 1 1
1x6+0x5+1x4+1x3+0x2+1x+1
= x6+x4+x3+x+1
10.8 Binary division in a CRC generator
10.9 Binary division in CRC checker
10.10 A polynomial
10.11 A polynomial representing a divisor
Table 10.1 Standard polynomials
Name Polynomial Application
x12 + x11 + x3 + x + 1
which has a degree of 12, will detect all burst errors
affecting an odd number of bits, will detect all burst
errors with a length less than or equal to 12, and will
detect, 99.97 percent of the time, burst errors with a
length of 12 or more.
Properties of CRC
Example:
CRC-12 = x12+x11+x3+x2+x+1
CRC-16 = x16+x15+x2+1
CRC-CCITT = x16+x12+x5+1
CRC-16 and CRC-CCITT catch all
Single and double errors
Odd number of bit errors
Bursts of length 16 or less
99.997% of 17-bit error bursts
99.998% of 18-bit and longer error bursts
10.12 Checksum
10.13 Data unit and checksum
Note:
•All sections are added using one’s complement to get the sum.
•All sections are added using one’s complement to get the sum.
•If the result is zero, the data are accepted: otherwise, rejected.
Example 7
Suppose the following block of 16 bits is to be sent using a
checksum of 8 bits.
10101001 00111001
The numbers are added using one’s complement
10101001
00111001
------------
Sum 11100010
Checksum 00011101
The pattern sent is 10101001 00111001 00011101
Example 8
Now suppose the receiver receives the pattern sent in Example 7
and there is no error.
10101001 00111001 00011101
When the receiver adds the three sections, it will get all 1s, which,
after complementing, is all 0s and shows that there is no error.
10101001
00111001
00011101
Sum 11111111
Complement 00000000 means that the pattern is OK.
Example 9
Now suppose there is a burst error of length 5 that affects 4 bits.
10101111 11111001 00011101
When the receiver adds the three sections, it gets
10101111
11111001
00011101
Partial Sum 1 11000101
Carry 1
Sum 11000110
Complement 00111001 the pattern is corrupted.
10.3 Correction
Retransmission
4 3 7
5 4 9
6 4 10
7 4 11
2r >= m+r+1
10.14 Positions of redundancy bits in Hamming code
10.15 Redundancy bits calculation
10.16 Example of redundancy bit calculation
10.17 Error detection using Hamming code
10.18 Burst error correction example
Fetched URL: https://www.scribd.com/presentation/54925277/#
Alternative Proxies: