L14 - Data communication, Error detection, Hamming Flashcards

1
Q

Define Error Correction Coding…

A

Adding redundancy to data to improve reliability during transmission.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Codeword in ECC?

A

An element of a standardised protocol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Forward Error Correction? When is it used?

A

A technique used by the transmitter when transmitting a message. It’s done to improve transmission reliability when channels are noisy and unreliable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Repetition Code process? Why is it used? What is an issue with it? What is the solution to this issue?

A

The process of repeatedly transmitting data in order to compensate for data error caused by noise.

Issue -> Poor code rate: Each data bit gets encoded into multiple transmitted bits, causing redundancy.

Solution -> Hamming Code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What type of algorithm is Hamming Code? What algorithmic theory is it based on?

A

An error correction algorithm based on block coding.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the bit-size of the standard Hamming Code? What are the associated input data bit and output parity bit sizes?

A

Hamming Code is 7-bits.
Input Bits are 4 bits.
Parity Bits are 3 bits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In Hamming Coding, what is the Input and Output?

A

Input -> 4 data bits
Output -> 3 parity bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the problem definition for a 7-bit Hamming Code?

A

Input -> Series of 4 data bits.
Output -> Series of 3 parity bits combined with the 4 data bits.

Input-output relation -> The 3 parity bits can correct a 1 bit error of the input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give the process steps of sending data using Hamming Code of 7 bits…

A
  • Hamming Code is 7 bits, Input data is 4 bits, Parity is 3 bits
  • HC = [d7, d6, d5, p4, d3, p2, p1]
  • Input = [1,0,1,1]
  • Substitute Input data into Hamming Code
  • [ 1, 0, 1, p4, 1, p2, p1 ]
  • For p1, if we want even parity
    • p1 depends on d3, d5, d7
    • d3,d5,d7 = 1,1,1 -> Odd parity
    • Thus, p1 = 1 for even parity
    • p1,D3,D5,D7 = 1,1,1,1
  • For p2, if we want even parity
    • p2 depends on D3,D6,D7 -> [ 1, 0, 1 ]
    • P2 flips to 0 to sustain even parity
    • P2,D3,D6,D7 = [ 0,1,0,1 ]
  • p4 -> D5,D6,D7 -> [p4, 1,0,1] -> [0,1,0,1]
  • Thus, parity bits are
    • p1,p2,p3 = 1, 0, 0
  • Sub into Hamming Code to establish data to send….
    • [d7, d6, d5, p4, d3, p2, p1] = [1, 0, 1, 0, 1, 0, 1]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain how error detection using Hamming Code is used for the data 1010101 that due to noise during transmission has been converted to 1110101.

A
  • If noise has been added to the data stream such that it becomes -> 1110101
  • Check P1,P2,P4 in received data stream to ensure received parity of each matches the sending parity.
  • P1 depends on D3, D5, D7.
    • P1 = 1
    • D3,D5,D7 = 1, 1, 1
    • 1,1,1,1 -> Even parity as before. No error detected.
  • P2 depends on D3, D6, D7
    • P2 = 0
    • D3,D6,D7 = 1, 1, 1
    • P2, D3, D6, D7 = 0,1,1,1 -> Odd parity
    • Error has been detected since sending parity for P2 is different to receiving parity.
  • P4 depends on D5, D6, D7
    • P4 = 0
    • D5, D6, D7 = 111
    • = 0111 -> Odd Parity -> Error detected.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which data bits do the Parity-bits P1, P2, P4 depend on?

A

P1 -> D3,D5,D7
P2 -> D3,D6,D7
P4 -> D5,D6,D7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Write the Hamming Code of. Ignore parity bits.
HC = [d7, d6, d5, p4, d3, p2, p1]
Input = [1,0,1,1]

A

HC = [1,0,1,P4,1,P2,P1]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Given the Hamming Code [ 1, 0, 1, p4, 1, p2, p1 ], if we want even Parity, calculate P1, P2, P4.

A

P1 -> D3,D5,D7 -> 1,1,1 -> P1 = 1
P1,D3,D5,D7 = 1111

P2 -> D3,D6,D7 -> 101 -> P2 = 0
P2,D3,D6,D7 = 0101

P4 -> D5,D6,D7 = 0101

P1 = 1
P2 = 0
P4 = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When performing error detection using Hamming Code, how do we know if an error has occurred in the transmitted data?

A

If the parity of the corresponding
P1,D3,D5,D7
P2,D3,D6,D7
P4,D5,D6,D7
is different.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are issues with Hamming Code?

A

Can only correct 1 bit errors
Can detect 2 bit errors, but can’t correct them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly