1.2Error Detection in Computer Networks
1.2Error Detection in Computer Networks
Error is a condition when the receiver’s information does not match the sender’s information.
During transmission, digital signals suffer from noise that can introduce errors in the binary bits
traveling from sender to receiver. That means a 0 bit may change to 1 or a 1 bit may change to 0.
Data (Implemented either at the Data link layer or Transport Layer of the OSI Model) may get
scrambled by noise or get corrupted whenever a message is transmitted. To prevent such errors,
error-detection codes are added as extra data to digital messages. This helps in detecting any errors
that may have occurred during message transmission.
Types of Errors
Single-Bit Error
A single-bit error refers to a type of data transmission error that occurs when one bit (i.e., a single
binary digit) of a transmitted data unit is altered during transmission, resulting in an incorrect or
corrupted data unit.
Single-Bit Error
Multiple-Bit Error
A multiple-bit error is an error type that arises when more than one bit in a data transmission is
affected. Although multiple-bit errors are relatively rare when compared to single-bit errors, they
can still occur, particularly in high-noise or high-interference digital environments.
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 1/7
6/6/24, 11:27 AM Error Detection in Computer Networks
Multiple-Bit Error
Burst Error
When several consecutive bits are flipped mistakenly in digital transmission, it creates a burst error.
This error causes a sequence of consecutive incorrect values.
Burst Error
To detect errors, a common technique is to introduce redundancy bits that provide additional
information. Various techniques for error detection include::
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 2/7
6/6/24, 11:27 AM Error Detection in Computer Networks
Simple-bit parity is a simple error detection method that involves adding an extra bit to a
data transmission. It works as:
This scheme makes the total number of 1’s even, that is why it is called even parity checking.
Disadvantages
Single Parity check is not able to detect even no. of bit error.
For example, the Data to be transmitted is 101010. Codeword transmitted to the
receiver is 1010101 (we have used even parity).
Let’s assume that during transmission, two of the bits of code word flipped to 1111101.
On receiving the code word, the receiver finds the no. of ones to be even and hence no
error, which is a wrong assumption.
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 3/7
6/6/24, 11:27 AM Error Detection in Computer Networks
Checksum
Checksum error detection is a method used to identify errors in transmitted data. The process
involves dividing the data into equally sized segments and using a 1’s complement to calculate the
sum of these segments. The calculated sum is then sent along with the data to the receiver. At the
receiver’s end, the same process is repeated and if all zeroes are obtained in the sum, it means that
the data is correct.
At the receiver’s end, all received segments are added using 1’s complement arithmetic
to get the sum. The sum is complemented.
If the result is zero, the received data is accepted; otherwise discarded.
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 4/7
6/6/24, 11:27 AM Error Detection in Computer Networks
Disadvantages
If one or more bits of a segment are damaged and the corresponding bit or bits of
opposite value in a second segment are also damaged.
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 5/7
6/6/24, 11:27 AM Error Detection in Computer Networks
Example: Previous year GATE questions based on error detection: GATE CS 2009 Question 48
GATE CS 2007 Question 68. This article has been contributed by Vikash Kumar.
Advantages:
Increased Data Reliability: Error detection ensures that the data transmitted over the network is
reliable, accurate, and free from errors. This ensures that the recipient receives the same data that
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 6/7
6/6/24, 11:27 AM Error Detection in Computer Networks
Improved Network Performance: Error detection mechanisms can help to identify and isolate
network issues that are causing errors. This can help to improve the overall performance of the
network and reduce downtime.
Enhanced Data Security: Error detection can also help to ensure that the data transmitted over the
network is secure and has not been tampered with.
Disadvantages:
Overhead: Error detection requires additional resources and processing power, which can lead to
increased overhead on the network. This can result in slower network performance and increased
latency.
False Positives: Error detection mechanisms can sometimes generate false positives, which can
result in unnecessary retransmission of data. This can further increase the overhead on the network.
Limited Error Correction: Error detection can only identify errors but cannot correct them. This
means that the recipient must rely on the sender to retransmit the data, which can lead to further
delays and increased network overhead.
"GeeksforGeeks helped me ace the GATE exam! Whenever I had any doubt regarding any topic,
GFG always helped me and made my concepts quiet clear." - Anshika Modi | AIR 21
Choose GeeksforGeeks as your perfect GATE 2025 Preparation partner with these newly launched
programs
GATE CS & IT
GATE DS & AI
GATE Offline (Delhi/NCR)
Over 125,000+ students already trust us to be their GATE Exam guide. Join them & let us help you
in opening the GATE to top-tech IITs & NITs!
read://https_www.geeksforgeeks.org/?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.geeksforgeeks.org%2Ferror-detection-in-computer-networks%2F 7/7