Question: Assume a packet is made only of four 16-bit words (A7A2) 16 , (CABF) 16 , (903A) 16 , and (A123) 16 . Manually simulate

Assume a packet is made only of four 16-bit words (A7A2)16, (CABF)16, (903A)16, and (A123)16. Manually simulate the algorithm in Figure 10.17 to find the checksum.

Figure 10.17

Figure 10.17 Algorithm to calculate a traditional checksum Start Sum = 0 More words? Iyes] Sum = Sum + Next Word Ino] Left(sum) is nonzero? Įyes] Sum = Left(Sum) + Right(Sum) Notes: Ino] a. Word and Checksum are each Checksum = Complement (Sum) 16 bits, but Sum is 32 bits.

Figure 10.17 Algorithm to calculate a traditional checksum Start Sum = 0 More words? Iyes] Sum = Sum + Next Word Ino] Left(sum) is nonzero? yes] Sum = Left(Sum) + Right(Sum) Notes: Ino] a. Word and Checksum are each Checksum = Complement (Sum) 16 bits, but Sum is 32 bits. b. Left(Sum) can be found by shifting Sum 16 bits to the right. c. Right(Sum) can be found by ANDing Sum with (0000FFFF. d. After Checksum is found, truncate Checksum = truncate (Checksum) 16 Stop it to 16 bits.

Step by Step Solution

3.34 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The following shows the steps a We first add the numbers to get 0002A3BE 16 This corresponds ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Networking Questions!