Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
1
Frame Error Detection
รศ.ดร.อนันต์ ผลเพิ่ม
Asso. Prof. Anan Phonphoem, [email protected]
http://www.cpe.ku.ac.th/~anan
Computer Engineering Department
Kasetsart University, Bangkok, Thailand
2
Outline
Transmission Errors
Error Detection Mechanism
3
Transmission Errors
``
Attenuation
Interference
Distortion
4
Single-bit error
5
Burst error (Multiple-bit error)
6
How do we know that data is corrupted (errors occur)?
How to detect the error?
Does not know at the signal level
Comparison…
Redundancy 2 copies of everything (slow, high overhead)
Extra info.
7
Redundancy
8
Parity Check
9
Example
Suppose the sender wants to send the word “world”.
In ASCII the five characters are coded as
1110111 1101111 1110010 1101100 1100100
w o r l d
The following shows the actual bits sent
11101110 11011110 11100100 11011000 11001001
10
Notes:•Segment•Add using one’s complement•Sum is complementedChecksum
11
16-bit checksum example
12
Cannot detect (all) errors
13
Cyclic Redundancy Check (CRC)
14
Binary Division in a CRC generator
15
Binary Division in a CRC checker
16
Polynomial
17
Polynomial and Divisor
18
Choosing the polynomial
• Cannot choose x (binary 10) or x2 + x (binary 110)
• Because both are divisible by x.
• Can choose x + 1 (binary 11)
• Because it is not divisible by x, but is divisible by x + 1.
• Also choose x2 + 1 (binary 101)
• Because it is divisible by x + 1 (binary division).
2 properties• Should not divisible by x• Should be divisible by (x+1)
Example
19
Standard Polynomials
Name Polynomial Application
CRC-8 x8 + x2 + x + 1 ATM header
CRC-10 x10 + x9 + x5 + x4 + x 2 + 1 ATM AAL
ITU-16 x16 + x12 + x5 + 1 HDLC
ITU-32
x32 + x26 + x23 + x22 + x16 + x12 +
x11 + x10 + x8 + x7 + x5 + x4 + x2 +
x + 1
LANs
20
CRC
Very effective detection method
Can detect all burst of length < degree of polynomial
Detect other errors high prob.
21
CRC implementation
Ex-OR
Shift Register
22
16-bit CRC Hardware Implementation
23
Data Frame
CRCDataHeader
CRC Data Header
24
Summary
Transmission Errors
Error Detection Mechanism
Parity
Checksum
CRC