P2 T1 L9 - Error checking and correction Flashcards
Why is error checking and correction needed?
2 points
1.Problems may occur when data is transmitted so a system is needed to check for errors:
E.g. Electrical interference
2.This may happen during processing or transmission
Define parity checks
2 points
- A system to detect errors and request retransmission if there is an error
- If the ‘wrong’ number of 1s turn up then the character is sent again
What are the 2 of the parity checking types?
Each of these work the same way
It just depends on whether the system is checking for __s or __s
- Even parity
- Odd parity
0s or 1s
Describe the process of even parity
4 steps
- Sender examines bits to be sent
- The point is to maintain an even number of 1s
- If it has an even number of 1s a 0 is added at the left side
- If it has an odd number of 1s a 1 is added
e.g.
A wants to transmit: 1001
A computes parity bit value: 1001 = 1
A adds parity bit and sends: 11001
B receives: 01001
B computes overall parity: 1001 = 1
B reports incorrect transmission after observing result.
Requests retransmission
Describe the process of odd parity
4 steps
- Sender examines bits to be sent
- The point is to maintain an odd number of 1s
- If it has an even number of 1s a 1 is added
- If it has an odd number of 1s a 0 is added
e.g. A wants to transmit: 1001 A computes parity bit value: 1001 = 1 A adds parity bit and sends: 11001 B receives: 11001 B computes overall parity: 1001 = 1 B reports correct transmission after observing expected odd result.
Explain majority voting
3 points
- Another method used to identify errors in transmitted data
- Each bit is sent 3 times e.g. 1001 = 111000000111
- The idea is that when you receive the data, you expect the same value 3 times, where there is a discrepancy, you can see which bit occurs the most frequently.
What is a check digit?
1 point
- It is a value which is added to the end of a number to try and ensure the number has not been corrupted.