Ask Question
29 July, 12:32

Suppose that one byte in a buffer covered by the Internet checksum algorithm needs to be decremented (e. g., a header hop count field). Give an algorithm to compute the revised checksum without rescanning the entire buffer. Your algorithm should consider whether the byte in question is low order or high order

+5
Answers (1)
  1. 29 July, 16:12
    0
    The algorithm required for the question is given below.

    Explanation:

    Step 1: The data is shown below for the algorithm.

    Original checksum. Byte location is decrementable. Price to decrease by what bit.

    Step 2: Get a checksum compliment from one.

    Step 3: Whether byte is of lesser importance to still be decremented by x.

    Subtract x from those bytes.

    Step 4: Whether byte is of higher importance to still be decremented by x.

    Subtract 2⁸*x from those bytes.

    Step 5: Start taking one's outcome compliment to get amended iterator checksum.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Suppose that one byte in a buffer covered by the Internet checksum algorithm needs to be decremented (e. g., a header hop count field). ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers