Data Transmission - Error Detection, Check Digits, Encryption Flashcards
when can data transmission errors occur and what is the consequence
- due to ** electrical interference**: data loss, data gain and data
change - alters pattern of the 0s and 1s –> affecting the integrity / correctness of the data
what are the most common reasons for data corruption
- interference - data changed
- packet switching - data lost or gained
describe the stages of a parity check
- computers can either use odd or even parity
- when sending data, the most significant ne bit is used as the parity bit
- parity bit = 1 OR 0 at the start of transmission –> makes the total number of 1s odd or even, depending on machine
- 1s are counted at the receiving end –> if wrong number of bits are ‘on’ or 1 –> error detected + data is resent
when is a parity block check used
- used when sending multiple bytes in one transmission block
- can locate the position of the error
when it is an even parity, what is the parity bit set to
0
describe the stages of error detecting using a parity block check
- each byte has its own parity bit
- a final parity bit is used for each column
- a horizontal parity check is performed on each byte –> identifies error in one of the bytes
- Vertical parity check performed on whole block
- error located + corrected without having to ask for data to be re-sent
when is a checksum used
to verify of data has become corrupt after a transmission
describe the staged of a checksum
- data sent in blocks with a checksum added at the end
- before data is transmitted, a checksum is calculated from the block of data based on a pre-agreed algorithm
- Data + checksum transmitted
- receiving device uses the same pre-agreed algorithm to recalculate the checksum
- recalculated checksum is compared to original checksum –> if two checksums are the same = no errors.
- Otherwise, request to re-send the original data is sent
describe how an echo check is performed
- data transmitted to destination device
- recipient device returns an exact copy of data back to the originator
- returned data is compared* with original data –> if *different = ** error occurred** + data resent –> same = data arrived without error
what does ARQ stand for
Automatic Repeat Query
what does it ensure
to verify that transmitted data has arrived unchanged, and error free
what is a positive acknowledgement in ARQs
message sent to the **sender **indicating that the data has been received correctly
what is a negative acknowledgement in ARQs
message sent to the sender indicating the data has not been received correctly + wants data resent
what is timeout
- feature used by the sending device
- when no acknowledgement has returned within a certain time period - timeout is registered and sending device automatically resends data
describe the stages of the ARQ
- destination device receives the data transmission along with a error detection code
- code used to determine if data contains any transmission error
- if no errors –> positive acknowledgement sent back
- if error detected –> negative acknowledgement: re-transmission request sent back to sending device
- if no acknowledgement is returned after a certain time period, a timeout is registered and the sending computer resends the packet
- process repeats until packet received is correct OR until ARQ limit is reached