CCN Assignment 2
CCN Assignment 2
CCN Assignment 2
1. Suppose that the UDP receiver computes the Internet checksum for the received UDP
segment and finds that it matches the value carried in the checksum field. Can the receiver
be absolutely certain that no bit errors have occurred? Explain.
2. UDP and TCP use 1s complement for their checksums. Suppose you have the following
three 8-bit bytes: 01010011, 01100110, 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.) Show all work.
Why is it that UDP takes the 1s complement of the sum; that is, why not just use the sum?
With the 1s complement scheme, how does the receiver detect errors? Is it possible that a
1-bit error will go undetected?
17. Compare and contrast the advertisements used by RIP and OSPF.
19. Explain the IPv4 datagram format. Highlight on IP fragmentation and reassembly.
20. For the IP 192.168.1.0, Give the total no. of subnets, blocksize, first host and last host of
each subnet for a CIDR value of 28.
22. Explain the concepts CSMA with different persistent a) p-persistent b) Non-persistent c)
1-persistent.