Error Detection Code Checksum (original) (raw)

Last Updated : 7 Oct, 2025

A checksum is an error detection method used by upper-layer protocols. It is considered to be more reliable than Longitudinal Redundancy Check (LRC), Vertical Redundancy Check (VRC), and Cyclic Redundancy Check (CRC).

How Checksum work?

Checksum works by summing all data segments using 1’s complement arithmetic, taking the complement of the result, appending it to the data, and verifying at the receiver by checking if the final complemented sum (including checksum) equals zero.

CheckSum-Process

**Sender Side:

Receiver Side:

Factors Inconsistent Checksum Number

Whenever checksum values doesn't matches, it seems that some disturbance happened in the data during transmission. There are several factors which can create disturbance are mentioned below:

**Example 1 - If the data unit to be transmitted is 10101001 00111001, the following procedure is used at Sender site and Receiver site.

**Sender Site:

10101001 subunit 1
00111001 subunit 2
11100010 sum (using 1s complement)
**00011101 checksum (complement of sum)

**Data transmitted to Receiver is:

Checksum - Example

Checksum - Example

**Receiver Site:

10101001 subunit 1
00111001 subunit 2
00011101 checksum 11111111 sum **00000000 sum's complement

**Result is zero, it means no error.

**Example 2 - If the data transmitted along with checksum is 10101001 00111001 00011101. But the data received at destination is **00101001 **10111001 00011101.

**Receiver Site:

**00101001 1st bit of subunit 1 is damaged **10111001 1st bit of subunit 2 is damaged 00011101 checksum 11111111 sum 00000000 Ok 1's complement

Although data is corrupted, the error is undetected. Because the changes in data 1 and data 2 offset each other, resulting in the same overall sum. This is a limitation of simple checksum – it cannot detect all types of errors, especially when multiple errors cancel each other out.