What is Checksum? – Scaler Blog (2024)

We are here with one of the techniques used in data transmission for detecting an error. The name of that error detection algorithm is Checksum. It is essential to perform error detection in data transmission.

TheChecksumis anerror detectiontechnique that detects an error in a transmitted message by appending redundant bits in the message. So this article comprehensively provides all the information on the checksum error detection technique.

What is Checksum Error Detection?

  • Checksum is used for error detection.
  • Checksum is the redundant bits that are attached with actual data.
  • Sometimes, a Checksum is also considered as a hash sum or hash value.
  • On the sender’s side, this method uses a checksum generator to generate a Checksum. On the receiving end, a checksum checker is used to validate whether the correct data is received.
  • Checksum is an error detection algorithm that can be applied to any length message.
  • Checksum provides information to the receiver about the transmission to ensure that the full range of data is delivered successfully.

Note :
The Checksum is an error detection algorithm that appends redundant bits in a message for error detection and can work on any message length.

Types of Checksum Algorithms

Many cryptographic hash functions are used by programmers to generate checksum values.

Some of them are given below with a brief introduction:

  • SHA-0 :
    SHA-0was the first hash function of this type, but it was withdrawn briefly in19931993.
  • SHA-1 :
    SHA-1is a hash function that is not considered a secure hash function as of20102010.
  • SHA-2 (224, 256, 384, 512) :
    This includes some changes from its previous version,SHA-1. TheSHA-2family consists of a total of six hash functions with hash values that are224,256,384, or512bits.
  • MD5 :
    MD5is a hash function that generates a checksum value, but it is not required for each file to have a unique number. SoMD5is open to vulnerabilities if the hacker swaps the file with a checksum value.

Error Detection by Checksum

The Checksum is generated at the sender end, and on the receiver end, the Checksum is validated.

Refer to the image below to see the error detection process of Checksum.

What is Checksum? – Scaler Blog (1)

Checksum at Sender Side

The sender divides data into blocks of equal size and then adds the data of every block using1’scomplement arithmetic to get the sum. It then complements the sum to get the Checksum and sends it along with the data frames. At sender side steps of generation of the Checksum are given below :

  • Step 1 :
    First of all, break the given data into“k”an equal number of blocks, i.e.,“N”bits in all the“K”blocks of the message.
  • Step 2 :
    Perform addition of all the“k”divisions
  • Step 3 :
    If there is a carry bit, add it.
  • Step 4 :
    Now find the1’scomplement of the sum. For finding1’scomplement of any binary number, just replace every zero with one and replace everyone with zero(e.g.,10001–1’sComplement01110) This complemented sum is known asChecksum.
  • Step 5 :
    Checksum is appended to the message to be sent to the receiver.

Now the data appended with Checksum is ready to send.

Checksum at Receiver Side

Thereceiver receives data++Checksumand passes it to the checksum validator. The following steps are used to validate the Checksum at the receiver end.

  • Step 1 :
    Perform addition on all“K”data blocks
  • Step 2 :
    If there is a carry bit, add it.
  • Step 3 :
    Find the1’scomplement of the sum.
  • Step 4 :
    If we got a result that contains only0, thenACCEPTthe data, otherwise,REJECTthe data.

Example of Checksum Error Detection

Suppose that the data10011001111000100010010010000100is to be sent to the receiver.

Sender Side

  • Step 1 :
    Break the message into four equal size blocksBelow is an image to show the division of the message intokparts.What is Checksum? – Scaler Blog (2)
  • Step 2 :
    Perform addition on allkblocks.Below is an image to add data ofkparts.What is Checksum? – Scaler Blog (3)
  • Step 3 :
    If any carry is generated, simply add it in sum.Below is an image to add carry to the sum.What is Checksum? – Scaler Blog (4)
  • Step 4 :
    Find the1’scomplement of the result of the sum, this is known as Checksum.Below is an image to show the1’scomplement of the result.What is Checksum? – Scaler Blog (5)
  • Step 5 :
    Append Checksum in the message to send it to the receiver.

Receiver Side

  • Step 1 :
    Perform the addition on all the k’s-size blocks.Below is an image to show an addition of blocks on the receiver side.What is Checksum? – Scaler Blog (6)
  • Step 2 :
    If any carry is generated in performing an addition, then sum it with the step1result.Below is an image to show the addition of carrying to the sum.What is Checksum? – Scaler Blog (7)
  • Step 3 :
    Find the1’scomplement of a sum. If all bits are zero in the result, then simplyACCEPTthat message, otherwise,REJECTSthe data. Below is an image to show the1’scomplement of the sum.What is Checksum? – Scaler Blog (8)

In our example, we get all0’sin the answer after finding the1’scomplement of the sum, so the data isACCEPTED.

Conclusion

  • Checksum is an error detection technique that works with any length message.
  • Checksum uses checksum generator at sender side and checksum validator at the receiver end.
  • SHA,MD-5, etc., are some checksum error detection algorithms.
  • Checksum error detection detects both odd and even number of bits error.
What is Checksum? – Scaler Blog (2024)
Top Articles
What Is the Cost Basis of Inherited Stock?
25 Quotes that will change how you look at money
Belle Meade Barbershop | Uncle Classic Barbershop | Nashville Barbers
Usborne Links
Health Benefits of Guava
Grange Display Calculator
Eric Rohan Justin Obituary
Palace Pizza Joplin
Moe Gangat Age
Dusk
Summoners War Update Notes
Steamy Afternoon With Handsome Fernando
ARK: Survival Evolved Valguero Map Guide: Resource Locations, Bosses, & Dinos
How Much Is Tay Ks Bail
Craigslist Free Stuff Merced Ca
Jellyfin Ps5
Moving Sales Craigslist
Van Buren County Arrests.org
Nearest Walgreens Or Cvs Near Me
Att.com/Myatt.
A Man Called Otto Showtimes Near Cinemark University Mall
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
Panolian Batesville Ms Obituaries 2022
130Nm In Ft Lbs
Federal Express Drop Off Center Near Me
Vlacs Maestro Login
Craigslist Maryland Baltimore
P3P Orthrus With Dodge Slash
Edward Walk In Clinic Plainfield Il
Carespot Ocoee Photos
New York Rangers Hfboards
Domino's Delivery Pizza
Tds Wifi Outage
Honda Ruckus Fuse Box Diagram
About :: Town Of Saugerties
Adam Bartley Net Worth
Gifford Christmas Craft Show 2022
Callie Gullickson Eye Patches
Ladyva Is She Married
Smite Builds Season 9
Panolian Batesville Ms Obituaries 2022
Advance Auto.parts Near Me
412Doctors
Autozone Battery Hold Down
Killer Intelligence Center Download
My Gsu Portal
Large Pawn Shops Near Me
Samsung 9C8
Minecraft Enchantment Calculator - calculattor.com
Zalog Forum
Lorcin 380 10 Round Clip
Craigslist Farm And Garden Missoula
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 6353

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.