Error detection and correction Flashcards

1
Q

How do errors occur?

A

Errors will occur on links when a bit flips

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

What is the trade off with regards to error control?

A

There is a trade off between error control and link utilisation when there is limited link capacity.

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

What is the issue when there is no error control and an error occurs?

A

Every string of bits is an allowed message so the receiver doesn’t know there is an error and accepts any data.

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

What are some methods of error control?

A

Reduce the set of allowed messages

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

What is the benefit of reducing the number of allowed messages?

A

If a disallowed string is received then it will be discarded. This means that that not every string of bits is allowed.

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

What are allowed messages called?

A

Codewords

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

What are disallowed messages called?

A

Space

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

What is the problem with reducing the number of allowed messages?

A

It reduces the messages we can send and we want to send any message

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

What is two-repetition code?

A

> The transmitter repeats every bit once after each bit (e.g. 0011001111)
The receiver decodes the message (e.g. 01011)
If there is a single bit error then it can be detected and the message can be resent.
If there is a two bit error then we cannot detect it as the error has jumped over the space between code words.
[IMAGE]

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

What is hamming distance?

A

This is a measure of the minimum number of bit flips to change one codeword into another.

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

What is the hamming distance for two-repetition code?

A

2

00⇒01 or 10⇒11

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

What is the symbol for minimum hamming distance?

A

dmin

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

How many errors can we detect?

A

Errors = dmin - 1

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

How does a receiver decode error correcting codes?

A
  1. Match the received bits to code words

2. Map codeword to source bits

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

How can a receiver correct errors in error correcting codes?

A

A receiver choses the closest codeword to the received bits.

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

Explain how a receiver decides how to correct a three-repetition code

A

If there is an error detected. The receiver will correct the identified error with the codeword that shares the most bits as the error.
e.g. 001 ⇒ 000
e.g. 101 ⇒ 111
[IMAGE]

17
Q

How many bit flips can be corrected with three-repetition code?

A

1 bit flip

18
Q

What is the issue with repetition code bit flip correction?

A

We cannot correct across a decision boundary

19
Q

What is code rate?What is the equation?

A
It is a fraction between 0 and 1 and defines how much excess data an error detecting code produces.
R = k/n
R = Rate
k = Message length (k < n)
n = Codeword length
20
Q

What is the trade off with regards to code rate?

A

High-rate codes (R ⇒ 1) correct fewer errors but add less overhead
Lower-rate codes (R ⇒ 0) correct more errors bit add more overhead

21
Q

What is a parity bit?

A

This is an additional bit added to the end of a message that is equal to the XOR of the data bits:
P = D1⊕D2⊕D3⊕D4…

22
Q

What is even parity?

A

The parity bit is picked so that the total number of 1s in the code word (including the parity bit) is even.

23
Q

What is odd parity?

A

The parity bit is picked so that the total number of 1s in the code word (including the parity bit) is odd

24
Q

How does a receiver decide if there is an error when parity is used?

A

For even parity:
It counts the number of 1s received and if there is an odd number than an error is detected.
For odd parity:
It counts the number of 1s received and if there is an even number than an error is detected.

25
Q

What is the minimum hamming distance for parity? what does this mean about the number of bit errors and correcting errors

A

dmin = 2

Detects 1 bit error, Corrects 0

26
Q

What is two dimensional parity?

A

> Break the data into multiple rows
Add a parity bit to each row at the end.
Add a parity bit to each column
Add a parity bit for the row parity bits and add this to the end of the bottom row parities.
[IMAGE]

27
Q

What is the minimum hamming distance for 2D parity? How many errors can it detect?

A

dmin = 4

Detects ≤ 3 bit errors

28
Q

What happens in 2D parity when:

a. 1 bit flips
b. 2 bits flip
c. 3 bits flip
d. 4 bits flip

A

a. 1 bit flip = 3 parity bits flip
b. 2 bits flip = ≥2 parity bits flip
c. 3 bits flip = ≥ 3 parity bits flip
d. 4 bits flip = This can often be detected but it is not guaranteed.

29
Q

What is (n,k) block code?

A

This is when there are k data bits followed by n-k parity bits where the whole codeword is n bits

30
Q

What does UDP use to validate if a message has erros?

A

Uses checksum

31
Q

What happens if UDP detects an error?

A

It discards the transmitted message. It does not ask for it to be resent

32
Q

How is the UDP checksum calculated?

A

Split the message into bit-words (often 16 bits) and sum them.
Invert the total and this is the checksum

33
Q

How does the receiver calculate if the message has error when checksum is used.

A

Sum all of the bitwords including the checksum and the total should be all 1s