Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

UDP and TCP use 1s complement for their checksums. Suppose you have the followin

ID: 3714610 • Letter: U

Question

UDP and TCP use 1s complement for their checksums. Suppose you have the following three 8- bit bytes: 01010011, 01100110, and 01110100. What is the 1s complement of the sum of these 8-bit bytes? (Note that although UDP and TCP use 16-bit words in computing the checksum, for this problem you are being asked to consider 8-bit sums.) a. b. Also, how does the receiver detect errors using the 1s complement checksum? c. Is it possib le that a 1-bit error will go undetected? How about a 2-bit error? Illustrate with an example to justify your answer.

Explanation / Answer

the sum of the 8 bit bytes is 01010011

                                               01100110

                                               01110100

                                           = 00101101

                              so the one's complement is 11010010=210

receiver again takes the one's complement and if it matches then there is no error else there is error

no none error can go undetected, the only problem with one's complement is the i cannot work for 0