Docsity

Data Communication: Parity Check and Cyclic Redundancy Check, Exams of Computer Networks

Partial preview of the text

Download Data Communication: Parity Check and Cyclic Redundancy Check and more Exams Computer Networks in PDF only on Docsity!

Single Bit Parity (Slide 5) Data: 0111000110101011 If you use even parity: 01110001101010111 If you use odd parity: 01110001101010110

Two-dimensional Parity (Slide 5) Data: 101011111001110 Letโ€™s say, you use even parity: 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 1 0 1 0 0 1 0 1 Letโ€™s say, there is a single bit error: 1 0 1 0 1 1 1 0 1 1 0 0 0 1 1 1 0 1 0 0 1 0 1 You can detect error bit at the intersection.

Tutorial Question 2 Without errors: 0 0 0 0 0 1 1 1 1 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 With errors: 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0

Cyclic Redundancy Check (Slide 6) At sender, Data = 101110 G = 1001 r = 3 1 0 1 0 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 0 1 1 So, sender sends 101110011 to receiver

If error occurs at receiver, 1 0 1 1 1 1 1 0 0 1 1 0 1 0 1 0 0 1 1 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 0 1 1 1 0 1 1 0 0 1 1 0 0 Error detected! Remainder is 100.

Tutorial Question 3 At sender, Data = 1010101010 G = 10011 r = 4 1 0 1 1 0 1 1 1 0 0 1 0 0 1 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 0 1 1 1 1 0 0 1 1 0 0 1 1 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 0 1 0 0 So, sender sends 10101010100100 to receiver

Tutorial Question 5 5a. Probability A success in a slot = p (1 - p) 3 Probability A fail in a slot = 1 โ€“ [p (1 - p) 3 ] Probability A fails in first four slots, and success in fifth slot = (1 โ€“ [ p ( 1 โ€“ p ) 3 ] ) 4 p(1 - p) 3 5b. Probability a node success in a slot = p (1 โ€“ p ) 3 Probability that either one node success in a slot = p (1 โ€“ p ) 3

  • p (1 โ€“ p ) 3
  • p (1 โ€“ p ) 3
  • p (1 โ€“ p ) 3 = 4 p (1 โ€“ p ) 3 5c. Probability that first success occurs in slot 3 = ( 1 โ€“ [ 4 p (1 โ€“ p ) 3 ] ) 2 p (1 โ€“ p ) 3 5d. Probability a node success in a slot = 4 p (1 โ€“ p ) 3