2.2 - error detection methods ๐Ÿ” Flashcards

1
Q

what can cause data transmission errors to occur?

A

electrical interference, data packet switching problems, and skewed bits of data

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

how do parity checks work?

A

they check for the number of bits in bytes of data based on either even (an even number of 1s in the byte) or odd (an odd number of 1s in the byte) parity with one of the bits reserved as the parity bit

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

what should the parity bit be for a byte with even parity?

A

0 as thereโ€™s already an even number of 1s in the byte

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

what should the parity bit be for a byte with odd parity?

A

1 as it results in an even number of 1s in the byte

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

when are bytes flagged for parity errors at the receiving end?

A

if they either gain or lose additional 1s on the way (eg. a byte using odd parity in the form of 11001010 at the sending end would be flagged if itโ€™d become corrupted into something like 11000010 by the receiving end)

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

how can parity errors be detected in a certain set of data?

A

by checking the data that arrives at the receiving end with a parity block where thereโ€™s a parity byte appended to the other bytes of data (that is, first check horizontally then vertically to find out where thereโ€™s been a parity error)

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

how do checksums work?

A

theyโ€™re calculated from data blocks using a certain algorithm to then be appended to them and transmitted together - theyโ€™re then recalculated upon arrival at the receiving end

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

when do data blocks with checksums need to be sent again?

A

if the checksums at the sending end arenโ€™t the same as those at the receiving end

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

how are check digits calculated and what are some examples of their usage in real life?

A

theyโ€™re calculated from all the other digits in a block of data - ISBN 13, Modulo-11, and UPC all use check digits IRL

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

what data errors can be detected with check digit calculations?

A

incorrect digit entries, phonetic errors, incorrect transpositions, digit omissions, and extra digit additions

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

how do echo checks work?

A

they send copies of received data back to the sending side, compare that data against what was initially sent, and determine if there are enough differences between the two to count as being sent w/ error (not really reliable btw (๏ฟฃm๏ฟฃ๏ผ‰)

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

how do ARQs (often used to keep mobile networks reliable) work?

A

they use acknowledgements (negative for incorrect data receipts and positive for the polar opposite) and timeouts (how long before acknowledgments must be received) to request the sending side to resend the data until the receipt of a positive acknowledgment or a predetermined number of retransmissions (whichever comes first)

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

(C1) find the check digit of this ISBN-13 code: 393976894689_

A

(3+9+3+9+7+9+9)+(6+8+4+6+8)=(12+12+16+9)+(18+14)=(24+25)+(18+14)=49+(32*3)=49+96=145/10=14R5 so check digit=10-5=5 and full ISBN-13 code=3939768946895

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

(C2) recalculate the check digit of the full ISBN-13 code from question C1 (3939768946895)

A

(49+5)+96=54+96=150/10=15R0 so the check digit from question C1 was correct

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