3.5.5.3 Error Checking and Correction. Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define a parity bit.

A

A parity bit is a single bit added to transmission that can be used to check for errors in the transmitted data.

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

How is the value of the parity bit calculated?

A

Based on the transmitted data itself.

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

Outline the two types of parity bits.

A

Even parity.

Odd parity.

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

Define an even parity bit.

A

The value of the parity bit is chosen as to make the total number of 1’s in the transmitted data even.

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

Example of an even parity bit:

A

If the data 01101110 were to be transmitted, the parity bit would be set to 1, so that the total number of one’s is even.

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

Define an odd parity bit

A

The value of the parity is chosen as to make the total number of 1’s in the transmitted data odd.

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

Example of an odd parity bit

A

If the data 011011101 were to be transmitted, the parity bit would be set to 1, so that the total number of one’s is odd.

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

Outline a parity check.

A

Occurs when data is received. If the value of the received parity bit conforms to the type of parity (odd or even) in use, then the received data is treated as correct.

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

What if the parity check comes back with an error?

A

Then the received parity bit does not conform to the type of parity in use and the computer will request that the user re-transmits the data.

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

What is an issue with parity bits?

A

Whether using an odd or even parity, if an even number of bits are changed during transmission, the error is not detected.

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

Outline majority voting.

A

When using majority voting, each bit of the data is transmitted multiple times. When the data is received, the most commonly occurring value is to be taken as correct.

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

Example of majority voting?

A

Data to send: 0110
Each bit is transmitted five times:

00000

111111

11111

00000

Data received majority vote
01000 0

011111 1

11111 1

01010 0

Data received after majority vote: 0110

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

What is the primary disadvantage of majority voting?

A

The volume of data being transmitted is increased with the repetition of bits. In the example, the data transmitted is five times the larger than the original data. This would significantly increase the time taken to transmit data.

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

Define a checksum.

A

As with parity bits, checksums involve adding a value, determined by the data itself, to the transmitted data.

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

How is a checksum value determined?

A

By an algorithm, based on the data being transmitted. There is no agreed algorithm and different systems will use their own solutions.

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

Provide an example algorithm which could be used to determine a checksums value.

A

The modulo function, which returns the remainder after a division. The value of the checksum will be appended to the original data in binary before being transmitted.

17
Q

Example of the modulo checksum algorithm:

A

Data to send:

46 = 10111

Calculate value of checksum:

46 MOD 8 = 6 = 110

Data transmitted:

101110110

18
Q

Outline what happens after the checksum has being applied and data has been sent and received.

A

The recipient can remove the checksum and apply the same algorithm as was used when sending the data to ensure that the checksum matches the transmitted data.

19
Q

What happens if the checksum does not match the transmitted data?

A

Then the recipient cannot correct the error itself so it must request that the sender re-transmits the data.

20
Q

Define a check digit.

A

A type of checksum in which only a single digit is added to the transmitted data. This reduces the number of different algorithms that could be used to calculate the value of the check digit and so reduces the variety of errors that the method can detect.

21
Q

Can a parity bit detect errors in transmission?

A

Yes but only if an odd number of bits are changed.

22
Q

Can a parity bit correct errors in transmission?

A

No.

23
Q

Is a parity bit efficient?

A

Very efficient.

24
Q

Can a majority vote detect errors in transmission?

A

Yes.

25
Q

Can a majority vote correct errors in transmission?

A

Yes as long as the majority of bits remain unchanged.

26
Q

Is a majority vote efficient?

A

It is inefficient as each bit is sent multiple times.

27
Q

Can a checksum detect errors in transmission?

A

Yes.

28
Q

Can a checksum correct errors in transmission?

A

No.

29
Q

Is a checksum efficient?

A

Mostly efficient as a complex algorithm could make the process less efficient.

30
Q

Can a check digit detect errors in transmission?

A

Yes.

31
Q

Can a check digit correct errors in transmission?

A

No.

32
Q

Is a check digit efficient?

A

Efficient as the algorithms used to calculate the check digit are limited in complexity.