Question

In: Computer Science

Problem 1. Checksum Calculation (10 pt.) Calculate a 16-bit checksum for the following data D1 and...

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

Solutions

Expert Solution

Here is the solution. Please do upvote thank you.

​​​​​​


Related Solutions

16. Calculate the Y-intercept, a, of the regression equation using the following information: (1 pt) Mean...
16. Calculate the Y-intercept, a, of the regression equation using the following information: (1 pt) Mean number of years of schooling: 12 Mean monthly income: $6,600 Slope, b, of the regression equation: $420 17.Consider the following linear regression prediction equation: Y = 8 + -1x. If x = 6, what is the predicted value of, Y, for this observation (1 pt)? 18. Consider the following linear regression prediction equation: Y = 8 + -1x. If the predicted value of, Y,...
Suppose a microprocessor has a 16-bit address bus and a 16-bit data bus, and the addressable...
Suppose a microprocessor has a 16-bit address bus and a 16-bit data bus, and the addressable unit is a byte. A. If the memory of this microprocessor is 16-bit memory (memory that can input and output data at a time of 16 bits), what is the maximum amount of memory space that the processor can directly access? B. If the memory of this microprocessor is 8-bit memory (memory that can input and output data 8 bits at a time), what...
Suppose that A equals 10. What are the values for (d1+) and (d1-) in the following...
Suppose that A equals 10. What are the values for (d1+) and (d1-) in the following constraint? A + (d1-) - (d1+) = 7 Group of answer choices (d1-) =0, (d1+) =3 (d1-) =3, (d1+) =0 (d1-) =7, (d1+) =0 (d1-) =0, (d1+) =7 (d1-) =10, (d1+) =3 2. The optimal solution is to select only two of the alternatives. Suppose you wished to add a constraint that stipulated that alternative 2 could only be selected if alternative 1 is...
Perform the following arithmetic in Binary assuming 16 bit registers (67)10 + (-89)10 List the values...
Perform the following arithmetic in Binary assuming 16 bit registers (67)10 + (-89)10 List the values of the status bits: C, V, N and Z
These questions concern the following 16-bit floating point representation: The first bit is the sign of...
These questions concern the following 16-bit floating point representation: The first bit is the sign of the number (0 = +, 1 = -), the next nine bits are the mantissa, the next bit is the sign of the exponent, and the last five bits are the magnitude of the exponent. All numbers are normalized, i.e. the first bit of the mantissa is one, except for zero which is all zeros. a) What is the largest number? (in both 16-bit...
Concern the following 16-bit floating point representation: The first bit is the sign of the number...
Concern the following 16-bit floating point representation: The first bit is the sign of the number (0 = +, 1 = -), the next nine bits are the mantissa, the next bit is the sign of the exponent, and the last five bits are the magnitude of the exponent. All numbers are normalized, i.e. the first bit of the mantissa is one, except for zero which is all zeros. 1. What's the smallest difference between two consecutive or adjacent numbers?...
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit...
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit signed arithmetic (convert to 8-bit binary sequences) and use two’s complement for the negative number, give the result as both an 8-bit binary sequence and in base 10: 127 – 74. 3. What does shifting a binary sequence to left by 3 places correspond to (from the arithmetic standpoint)
VHDL Code: Design a 16-bit 4-to-1 multiplexer using data-flow implementation style. Data inputs and output should...
VHDL Code: Design a 16-bit 4-to-1 multiplexer using data-flow implementation style. Data inputs and output should be 16-bit vectors. In your test bench, you should include enough number of test cases to show the correctness of your design.
The unsigned decimal value (1,036)10 is to be stored as a 16-bit word in memory. Show...
The unsigned decimal value (1,036)10 is to be stored as a 16-bit word in memory. Show the 16-bit unsigned binary representation of (1,036)10. Show the 4-digit unsigned hexadecimal representation of (1,036)10. The unsigned binary value of part (a) should be stored using two bytes of a byte-addressable memory at locations 400 and 401. Specify the hexadecimal value in each byte for a “big endian” instruction set architecture. Give your answer by showing a table like the one below.                                                                                               ...
16. The following data are from an experiment comparing two treatments: Treatment 1 Treatment 2 10...
16. The following data are from an experiment comparing two treatments: Treatment 1 Treatment 2 10 11 2 5 1 2 15 18 7 9 M = 7 M = 9 SS = 134 SS = 150 Assume that the data are from a repeated-measures experiment using the same sample of n = 5 subjects in both treatments. Calculate the difference score (D) for each subject and use the sample of difference scores to determine whether there is a significant...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT