Question: Manually simulate the Fletcher algorithm (Figure 10.18) to calculate the checksum of the following bytes: (2B) 16 , (3F) 16 , (6A) 16 , and
Manually simulate the Fletcher algorithm (Figure 10.18) to calculate the checksum of the following bytes: (2B)16, (3F)16, (6A)16, and (AF)16. Also show that the result is a weighted checksum.
Figure 10.18
![Figure 10.18 Algorithm to calculate an 8-bit Fletcher checksum Notes Start L:Left 8-bit checksum R: Right 8-bit checksum D;: Next 8-bit data item R=L=0 More data? Iyes] L= (L+ R) mod 256 R= (R + D;) mod 256 Ino] 16-bit L checksum Checksum = Lx 256 +R R Stop](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1607/3/4/6/2855fce286d6ff331607346284215.jpg)
Figure 10.18 Algorithm to calculate an 8-bit Fletcher checksum Notes Start L:Left 8-bit checksum R: Right 8-bit checksum D;: Next 8-bit data item R=L=0 More data? Iyes] L= (L+ R) mod 256 R= (R + D;) mod 256 Ino] 16-bit L checksum Checksum = Lx 256 +R R Stop
Step by Step Solution
3.38 Rating (157 Votes )
There are 3 Steps involved in it
a We calculate R and L values in each iteration of the loop and th... View full answer
Get step-by-step solutions from verified subject matter experts
