In: Computer Science
Problem 1. Checksum Calculation (10 pt.)
Calculate a 16-bit checksum for the following data D1 and D2, respectively.
a. D1 (6 bytes): 01001100 11101001 01101111 01101011 01101111 00000100
b. D2 (6 bytes): 11001100 11101001 01101111 01101011 01101111 00000100
Problem 2. UDP Checksum (10 pt.)
Calculate an UDP checksum based on the following assumption. Note that '0x' indicates a hexadecimal format. Refer to the UDP packet format in the textbook.
Assumption: ▪ Source port = 30001 (=0x7531)
▪ Destination port = 8080 (=0x1F90)
▪ Length = 12 (=0x000C)
▪ Payload = 0x2048 0x8378