Error Detection in Computer Networks (original) (raw)

Last Updated : 22 Dec, 2025

Error detection is a technique used in computer networks to identify whether transmitted data has been corrupted during communication. The sender adds redundant bits to the data before transmission, and the receiver verifies the integrity of the received frame by checking these bits. If an error is detected, the corrupted frame is discarded, and retransmission may be requested through appropriate error control mechanisms.

Types of Errors

1. Single-Bit Error

A single-bit error occurs when **only one bit of the transmitted data unit is altered during transmission, resulting in corrupted data.

cn1

Single-Bit Error

2. Burst Error

A burst error occurs when two or more consecutive bits in a data unit are corrupted during transmission.

cn2

Burst Error

Error Detection Methods

To detect errors, a common technique is to introduce redundancy bits that provide additional information. Various techniques for error detection include:

1. Simple Parity Check

Simple bit parity is a basic error detection technique in which an extra bit, called a parity bit, is added to a data unit before transmission. This parity bit helps the receiver determine whether the transmitted data has been corrupted.

Parity bits are used to maintain a specific parity condition in the data. There are two types of parity:

sender

Simple Parity Check

This scheme makes the total number of 1’s even, that is why it is called even parity checking.

2. Two-Dimensional Parity Check

In two-dimensional parity check, parity bits are calculated for each row, similar to a simple parity check. In addition, parity bits are also computed for each column. These row and column parity bits are transmitted along with the data. At the receiver, parity bits are recalculated and compared with the received parity bits to detect errors.

original_data

2-D Parity Check

3. Checksum

Checksum is an error detection technique used to detect errors in transmitted data. In this method, the sender divides the data into fixed-size segments and computes a checksum using 1’s complement arithmetic. The computed checksum is transmitted along with the data. At the receiver, the same computation is performed to verify data integrity.

**Checksum - Operation at Sender's Side

**Checksum - Operation at Receiver's Side

reciever

Checksum at Receiver 's and Sender's Side

Read more about Checksum

4. Cyclic Redundancy Check (CRC)

divisor

CRC

**CRC Working

We have given dataword of length n and divisor of length k.

**Step 1: Append (k-1) zero's to the original message
**Step 2: Perform modulo 2 division
**Step 3: Remainder of division = CRC
**Step 4: Code word = Data with append k-1 zero's + CRC

**Note:

**Example: Let's data to be send is 1010000 and divisor in the form of polynomial is x3+1. CRC method discussed below.

original_message

CRC Working

To learn about CRC in detail, refer to: Cyclic Redundancy Check(CRC)