Error
Error
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.
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::
1. Simple Parity Check
2. Two-dimensional Parity Check
3. Checksum
4. Cyclic Redundancy Check (CRC)
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.
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.
Checksum – Operation at Sender’s Side
Firstly, the data is divided into k segments each of m bits.
On the sender’s end, the segments are added using 1’s complement arithmetic to get the sum.
The sum is complemented to get the checksum.
The checksum segment is sent along with the data segments.
Checksum – Operation at Receiver’s Side
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.
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.
What is an Error?
Transmitted data can be corrupted during communication. It is likely to be affected by external
noise or other physical failures. In such a situation, the input data can’t be the same as the output
data. This mismatch is known as “Error.”
The data errors may result in the loss of important or secure data. Most of the data transfer in
digital systems will be in the form of ‘Bit transfer.’ Even a small bit of change can affect the
performance of the entire system. In a data sequence, if 1 is changed to 0 or 0 is changed to 1, it
is called “Bit error.”
Table of Content:
Types of Errors
There are mainly three types of a bit error that occur in data transmission from the sender to the
receiver.
This type of error mostly occurs in both serial and parallel type data communication networks.
Burst Errors
The change of the set of bits in data sequence is known as “Burst error”. This type of data error
is calculated in from the first-bit change to last bit change.
Error detection is a method of detecting the errors which are present in the data transmitted from
a transmitter to receiver in a data communication system.
Here, you can use redundancy codes to find these errors, by adding to the data when it is
transmitted from the source. These codes is called “Error detecting codes”.
Parity Checking
Cyclic Redundancy Check (CRC)
Longitudinal Redundancy Check (LRC)
Parity Checking
At the destination, the incoming data needs to be divided by the same number. In case if there is
no remainder, then the data unit is assumed to be correct and is accepted. Otherwise, it indicates
that the data unit is damaged in transmission, and hence it must be rejected.
Satellites
Computer Memory
Modems
PlasmaCAM
Open connectors
Shielding wire
Embedded Processor
When the above redundant bits are embedded within the message, it is sent to the user.
Total numbers of bits in the message is made even is called even parity.
The total number of bits in the message is made odd is called odd parity.
Here, all the redundant bit, p1, is must calculated as the parity. It should cover all the bit
positions whose binary representation should include a 1 in the 1st position excluding the
position of p1.
P1 is the parity bit for every data bits in positions whose binary representation includes a 1 in the
less important position not including 1 Like (3, 5, 7, 9, …. )
P2 is the parity bit for every data bits in positions whose binary representation include 1 in the
position 2 from right, not including 2 Like (3, 6, 7, 10, 11,…)
P3 is the parity bit for every bit in positions whose binary representation includes a 1 in the
position 3 from right not include 4 Like (5-7, 12-15,… )
Summary
Transmitted data can be corrupted during communication
Three types of Bit error are 1) Single Bit Errors 2) Multiple Bit Error 3) Burst Bit errors
The change made in one bit in the entire data sequence is known as “Single bit error.”
In data sequence, if there is a change in two or more bits of a data sequence of a
transmitter to receiver, it is known as “Multiple bit errors.”
The change of the set of bits in data sequence is known as “Burst error”.
Error detection is a method of detecting the errors which are present in the data
transmitted from a transmitter to receiver in a data communication system
Three types of error detection codes are 1) Parity Checking 2) Cyclic Redundancy Check
(CRC) 3) Longitudinal Redundancy Check (LRC)
Hamming code is a liner code that is useful for error detection up to two immediate bit
errors. It is capable of single-bit errors.
Hamming code is a technique build by R.W.Hamming to detect errors.
Common applications of using Hamming code are Satellites Computer Memory,
Modems, Embedded Processor, etc.
The biggest benefit of the hamming code method is effective on networks where the data
streams are given for the single-bit errors.
The biggest drawback of the hamming code method is that it can solve only single bits
issues.
We can perform the process of encrypting and decoding the message with the help of
hamming code.