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

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

1 Expert Approved Answer
Step: 1 Unlock

a We calculate R and L values in each iteration of the loop and th... 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!