UDP checksum

UDP uses 1's complement for its checksums. Suppose you have the following three 16-bit words0100010001000100, 0101010101010101, 0011001100110011. What is the 1's complement of the sum of these 16-bit words? Why is it that UDP takes 1's complement of the sum; that is why not just use the sum? With 1's complement scheme, how does the receiver detects the error? Is it possible that a one bit error will go undetected? How about a two bit error?

© SolutionLibrary Inc. solutionlibary.com 9836dcf9d7 https://solutionlibrary.com/computer-science/software-development/udp-checksum-3e8f