Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1054739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:27:10+00:00 2026-05-16T17:27:10+00:00

This is going probably be a general question regarding checksum used for error detection.

  • 0

This is going probably be a general question regarding checksum used for error detection.
I got a lab assignment where we are going to recreate a protocol similar to how RDT2.0 works. And I’m stuck in how to use checksum to detect errors.

The functions are there already what I need is to implement the functionality.
What I don’t understand is how you can know that a pack is corrupted.

E.g.
I’m going to send over a text file. So I have some function which will take a number of bytes and store it in an object where I’ll also attach a header with the checksum.

So if this package will be corrupted now I have no where to tell it has happent since the checksum will also be changed right?

So can anyone tell me how I should use the checksum?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:27:11+00:00Added an answer on May 16, 2026 at 5:27 pm

    The checksum might have been changed, but the chances of it being changed to match the checksum of the changed content are slim.

    So, when you read the package, you calculate a new checksum for the content and compare it to the checksum stored in the package. If they match, there is no corruption, if not, something was changed (either the content, the checksum, or both).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This probably sounds like a stupid question, but I'm going to give it a
This is probably going to language dependent, but in general, what is the performance
New to programming in general, so I'm probably going about this the wrong way.
this is probably going to seem like a daft question but please bear with
This question is probably going to illustrate a lack of knowledge on my part
This is probably going to sound like a sci-fi request, though – is there
This is probably going to be a really simple fix... I just can't figure
This is probably going to be an easy thing but I am having a
You can probably see where I am going with this - but is there
This is going to be a stupid question but I have spent an inordinate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.