14
1 Error-Detection Error Detection & Correction 2 Error-Detection Error Detection Encode in.data.frame k bits out.data.frame n bits n>k r = n -k =redundant bits added to detect errors

Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

  • Upload
    ledung

  • View
    254

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

1Error-Detection

Error Detection&

Correction

2Error-Detection

Error Detection

Encodein.data.frame

k bits

out.data.frame

n bitsn>k

r = n -k =redundant bits added todetect errors

Page 2: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

3Error-Detection

Error Detection

Example: n=2k– Repeat the bits– k redundant bits

4Error-Detection

Error Detection

Example: Simple Parity Check Even Parity number of ‘1’ per block is even

Odd Paritynumber of ‘1’ per block is odd

Redundancy ratio = k+1/k

Page 3: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

5Error-Detection

Error Detection

Performance criteria for error detection codes is the probability of an undetected error,

6Error-Detection

Error Detection

Example: Find the time between undetectederrors for:

n = 1000p = 1 in millionRate = 100 Mb/s

For simple parity check:

Page 4: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

7Error-Detection

Block CodesRepresentation and manipulation of message blocks

8Error-Detection

Block Codes

Error Control Coding: Map k-bit message into n-bit code word

Page 5: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

9Error-Detection

Block Codes

One ExampleMapping

10Error-Detection

Block codes: Example c1= d1

c2= d2

c3= d3

c4= d1 + d3

c5= d2 + d3

c6= d1 + d2

Let d= (0, 0, 1)

C = (0, 0, 1, 1, 1, 0)Number of valid code words=2k

Here k=3 so 8 valid code words

Page 6: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

11Error-Detection

Block Codes

12Error-Detection

Block Codes

G Defines a Linear Systematic (n,k) Code

k Message Bits

r Code Bits

Code Word of n bits

Page 7: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

13Error-Detection

Block Codes: Example

14Error-Detection

Block Codes

Problem: given a received message determine if an error has occurred.

e = (001010)Errors in:bit 3 & 5

Page 8: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

15Error-Detection

Block Codes

Define a Parity Check Matrix H

16Error-Detection

Block codes

Page 9: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

17Error-Detection

Block Codes: Example

18Error-Detection

Hamming DistanceA Geometric Interpretation ofError correcting Codes

Hamming distance between two code words is defined as the number of differing

bit positions.

Page 10: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

19Error-Detection

20Error-Detection

Binary Cyclic Codes

A subclass of linear block codes are the binary cyclic codes.

If ck is a code word in a binary cyclic code then a lateral (or cyclic) shift of it is also a code word.

Page 11: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

21Error-Detection

Binary Cyclic Codes

Advantages: Ease of syndrome calculation Simple and efficient coding/decoding

structure

Cyclic codes restrict the form of the G matrix

The cyclic nature of these codes indicates that there is a underlying pattern.

22Error-Detection

Binary Cyclic Codes

gi = 0, 1

Page 12: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

23Error-Detection

Binary Cyclic Codes: Construction of G from g(x)

1) Use g(x) to form the kth row of G. 2) Use kth row to form (k-1) row by a shift left,

or xg(x). 3) If (k-1) row in not in standard form then

add kth row to shifted row, i.e.., (k-1) row becomes xg(x) + g(x).

4) Continue to form rows from the row below.

5) If the (k-j) row not in standard form the add g(x) to the shifted row.

24Error-Detection

Page 13: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

25Error-Detection

Binary Cyclic Codes

26Error-Detection

Binary Cyclic Codes:Standard generator polynomials

Page 14: Error Detection Correction - KU ITTCfrost/EECS_562/Error-Detection_EECS_562_Sp_2017.pdf · Error Detection & Correction Error-Detection 2 Error Detection ... –k redundant bits Error-Detection

27Error-Detection

Interleaving

Write into Memory

Read outof Memory

28Error-Detection

Interleaving

Converts burst errors to random errors

Impacts delayUsed in CD playersSpecifications: correct 90 ms of errorsat 44 kb/s & 16 bits/sample

– 4000 consecutive bit errors