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

Answer questions a through d A- Add these two 8 bit integers together and provid

ID: 3695878 • Letter: A

Question

Answer questions a through d

A- Add these two 8 bit integers together and provide their sum in both binary and decimal:

0011 0111

0101 0011

B- What is the 1’ complement of the binary number: 0000 1111 ?

C- Compute the checksum for the UDP segment with these 8 bit values:

0101 0111 Src port

0111 0001 Dst port

0001 1000 length

D- A receiver examines a UDP segment with the following 8 bit values. Will the receiver drop this packet?

0101 1000 Src port

0001 1100 Dst port

1100 1101 length

1011 1101 chksum

D- Validate your answer by showing your work.

Explanation / Answer

Answer:

   0011 0111

+ 0101 0011

--------------------

1000 1010

= 0111 1010

Convert it in decimal = 122

B 0000 1111

1;s complement is convert 1's into zeros and zeros into 1's

Therefore 1's complement of 0000 1111 = 1111 0000

C- 0101 0111 = 37

     0111 0001 = 113

     0001 1000 = + 24

                        -------

                       224

                    --------------

Therefore checksum = 0001 1111

D- sum of all should be 1111 1111

                        if its 1111 1111 then accept else reject.

                        The sum of all byte must always be equal to 1111 1111 to be correct. Reason is that the         checksum is included in the packet header to make the sum 1111 1111.