2.2 Error Checking Flashcards
why do we need error checking
with the complexity of computers and vast amount of 1s and 0s being transmitted, there is always room for error, data corruptions or loss
how can errors occur in data transmission
electrical interference such as electrical fields or waves can cause data to be corrupted, ie 1s become 0s or lost
packet switching can be incorrect and packets can be lost enroute or corrupted or gained
what are the reasons for transmission errors
, imperfections in the wire, or electricl fields or intereference with the wire, can be stopped with insulating outer material
what are the common methods of error checking
parity checks
parity block checks
checksums
echo checks
check digits
ARQ
what is a parity check
a error detection method that stores the most significant bit (MSB = the biggest bit) as a parity bit to show the amount of 1s in a byte as odd or even
example 10001001 using odd parity
the 1 at the start, MSB, means that the amount of 1s are odd, there are 3 ones in that byte so there is no error according to the parity check
pros and cons of parity check
simple errors can be found however the exact corrupted bit cannot be identified as the computer recognises if its odd or even, so any bit can be changed
how can you advance parity checks to detect the exact bit and correct it
parity block checks
what are parity block checks
when a whole block of bytes has been sent, parity checks can be used horizontally an vertically to identify the exact bit corrupted and fix the error without asking for a retransmission
what is checksum
an error detection method where a set of bytes is sent along with an extra byte which is a checksum used to evaluate the data at the reciever
how does checksum works
an extra checksum byte is added, this checksum is calculated using a pre agreed algorithm and send along with the data, the reciever recalculated the checksum using the same preagreed algorith, generating another checksum, if both sender and reciever checksums match then the data is error free, otherwise not
what is an echo checkk
when the sender sends the data and reciever resends what it has recieved to the sender in order for it make sure what the sender has recieved is the same than what it has sent, if it does not match then the data is resent
what is a con of echo check (2)
you cannot tell wether the data has been corrupted while sending, or corrupted while being recieved
it also creates unessesary network traffic because 2-3 transmissions are send back and forth for one set of data
what are check digits
the last digit in a code calculated with an algorithm used the predescesing digits in order to check for errors
what are check digits used for
in order to detect errors during data entry normally caused by mistyping or scanning error ig barcode
what are check digits used IN
ISBN NUMERS
bank card numbers
VIN car numbers
how to calculate check digits using modulus 11
- from left to right, give the numbers a weighting of 10-2
- multiply the numbers with their weighting
- add all the sums up
- divide by 11 and the remainder will become the check digit
how to check a check digit
- from left to right, give the numbers their weighting INCLUDING the check digit
- multiply the numbers with their weight, INCLUDING the check digit
- add all the sums up
- divide by 11 and if the remainder is 0, the check digit is correct
what are some commen errors in data entry
incorrect digits entered
transposition errors, so 493 becomes 439
phonetic errors like 13 instead of 30
omitted extra digits, like 4567 instead of 456
what is ARQ
Automatic Repeat reQuest or Query
an error detection method
how does ARQ check errors
the sender sends a data packet along with an error detection code, usually a Cylic redundancy code or CRC, the reciever the checsk for errors, if there are no errors then it sends an acklowedgement signal either acknowledging it was error free or not, if it was error free then the sender does not resend the data, otherwise it does. the sender has a time limit of recieving an acknowledgement signal and if it doesnt not recieve anything before a timelimit, then it will keep resending the data unless there is a cap on the amount of times it will resend it
what is enryption
encoding a message so it can only be read by the sender and recipient
what is symmetric encryption
when one key is used to encrypt and decrypt data being sent
what are the drawbacks of symmetric encryption
very prone to data interception and can be encrypted with a key copy