by Dinesh Thakur Category: Communication Networks

The purpose of error control is to ensure that the information received by the receiver is exactly the information transmitted by the sender. As the communication channel is highly unreliable, the receiver must be able to deal with the received data, if it contains error. The term *error control *is defined as the process of identification or correction of error occurred in the transmitted data. There are two types of error control mechanisms. They are:

** Forward error control **Additional redundant information is transmitted along with the useful data. Hence, the receiver not only detects the error, but also determines the location of the error in the data. This method is not widely used, because of the number of additional redundant information.

** Feedback or (backward) error control **Along with each character, little additional information is added only for error detection. The receiver performs no error correction. If the received data contains error, then the entire data is retransmitted. Hence, the feedback techniques perform error detection and retransmission.

** Error detection **There are different error detection schemes used. The type of detection scheme depends on the type of error and the type of transmission (synchronous or asynchronous) also. There are random single bit errors in asynchronous or synchronous mode of transmission and burst error occurs in a group of continuous bits. The most widely used error-detecting codes are the parity, block sum check, and the cyclic redundancy check (CRC)

** Parity **The most common method of detecting the errors is the use of parity. With this method, the bits of a character to be transmitted are inspected and an extra bit is added before the transmission. This bit is known as the

At the receiving end, after the reception of the character, the parity bit is removed from the received character. The remaining bits are added using the modulo-2 addition and the result is checked with the received parity bit. If these two values differ, then the received character contains an error. Hence the use of parity bit is to detect single bit errors.

** Block error control **When a burst of characters is transmitted, there may be possibilities for single bit or multiple bit error that leads to retransmission of the whole block of characters. Hence, it is necessary to use error-detecting techniques to find out the occurrence of error in the block. The parity method discussed earlier can be extended to a block of data also. A block of character is called as

The main advantage of this scheme is the detection of two-bit error. As a simple parity bit can detect only single bit error. If two-bit changes occur in the transmitted data, the resultant parity bit is same as the parity of the transmitted character. In the above scheme, if a two-bit error occurs in a transmitted character, the received parity bit remains the same. But these two bit errors change the column parity at the receiver. Hence, the receiver can identify two-bit errors. But simultaneous occurrence of two-bit errors in two characters at the same column positions can be unnoticed by the receiver. Clearly, the probability of this occurring is much less than the probability of two-bit errors.

The simple parity and block sum check methods are well suited for applications in which random single bit errors are present. More precautionary measures; are to be taken to control continuous error burst. An error burst is defined as the number of bits between two successive error bits, including the two incorrect bits. The length of the error burst is determined from the number B, the difference between the last erroneous bit in a burst and the first erroneous bit of the next burst. In this case, B correct bits separate the two bursts. The following figure illustrates the error bursts that occur in the transmitted sequence of bits.

Parity or block sum check does not provide a reliable error detection scheme for burst error. A new technique called *polynomial codes *are used for the identification of errors. Along with each block of data transmitted, a single set of check-digits are also transmitted. The check - digits are generated based on a predefined method of computation. At the receiver, the same computation is again performed with the received set of data, and the results are compared with the received check digits. If both the computed and the received check digits match, then there is no error in the transmission. On the other hand, if they differ, then it is considered as an error in the transmission. The computed check digits are known as *frame check sequence *or *cyclic redundancy check *(CRC) digits. Following section gives details of CRC codes.

** Cyclic Redundancy Check (CRC) **CRC is the most widely used error - detecting method alternative to the simple parity check codes. Instead of adding the number of bits to obtain the desired parity, in CRC a sequence of 'extra' redundant bits are added at the end of data. These bits are known as

Step 1: A sequence of bit stream is formed by appending *n *'0' bits to the data at the end.

Step 2: A predetermined devisor of length n+ 1 bits is used to divide the sequence and the remainder is calculated. The remainder is known as *CRC.*

Step 3: The remainder replaces the extra bits added to the data at the beginning.

Step 4: The combined sequence of data plus CRC is transmitted by the sender.

At the receiving end the received data plus CRC is again divided by the same divisor as used at the sending side. If the remainder is zero then it is presumed that the data is error - free and the receiver accepts the data, on the other hand if the remainder is non-zero, the data is considered as corrupted and the received data is discarded. For example, consider the 6-bit data sequence "100110". Let us choose a 3-bit divisor 110at the sending side. As per the step 1, two 0s are added to the data sequence and the new sequence is "10011000". As per the second step, the new sequence is divided by 110 (Modulo-2 division is used), and produces a remainder of 10. This is the CRC. As stated in step 3, this CRC code is added to the data sequence to produce a sequence "10011010" and then transmitted.

At the receiver side, if the received sequence does not contain an error, the sequence "10011010" is again divided by the same divisor 110 and the remainder is 00. If an error is made in one or two bits (corrupted), then the remainder will not be a 00, hence, the receiver rejects the data.

** Checksum **Another method of error detection, often used in higher order layers is checksum.

Checksum is computed at the sending end using the following steps.

Step 1: The data sequence is divided into *'K' *words of same size *n *(8 or 16 bits).

Step 2: All words are added using l's complement addition and the sum is computed.

Step 3: The l's complement of the sum, known as *checksum *is transmitted with the data.

At the receiver side, the following steps are carried out after receiving the data with checksum

Step 1: The data sequence is divided into ‘*K+1’ *words of same size *'n' *(8 or 16 bits).

Step 2: All words are added using l's complement addition and the sum is computed.

Step 3: The sum is complemented, if it is 0, the data is error - free and is accepted; otherwise the received data is discarded.

** Error correcting codes **Techniques covered so far deal with error detection only. When error detecting techniques are used, and the receiver receives the data with error, the receiver discards the data and asks for retransmission. On the other hand, error-correcting codes are used to identify the error bits in the received data and correct them. The main problem with error-correcting codes is that they require more redundancy bits than the error-detecting codes. This leads to wastage of transmission bandwidth.

*Single-bit ***error correction **The key issue in error-correction is to identify the position of invalid error bit, in order to correct it. For example, when 7-bit ASCII code is transmitted, the error-correcting code must identify the position of the bit that contains an error. Hence, at least three redundant bits are used to identify the possibility of error in the seven positions in an ASCII character. However, if an error occurs at the redundant bits themselves, to identify it, additional bits are required. Hence the total number of bits in the transmitted data contains m+k bits. M is the number of message bits and K is the number of redundant bits.

The calculation of the total number of redundant bits for single bit error correction is straightforward. One bit is used for ensuring that the received data is error-free. Other bits are used to indicate one out of M message and K redundant bits that may contain an error. Hence, the value of K must be chosen such that 2K <: M*+K+ *1. For example to correct single bit error in 7-bit ASCII code, at least 4 redundant bits are needed. Hence, the transmitted data contains 11bits for each data units.

** Hamming codes **RW. Hamming illustrated the concept of hamming distance, which is useful in considering the properties of codes. Hamming distance is defined as the number of bit positions by which two states differ from each other. This parameter is very useful for error-detection and correction. Hamming introduced a code for single bit error correction by inserting multiple parity check bits at selected positions of data before transmission. The receiver recalculates the check - bits, compares it with the received check - bits, and determines the error bit. For 4~bitcode three check - bits are required for error-correction as shown in Figure.

Modulo-2 addition is used for the formation of the K redundant check bits. If any of the message bit is corrupt, then the received check bits may appear as incorrect. For example if the message bit M2 of the third message unit is incorrect (see the encircled bit of the third row), it appears as 0 instead of 1. In this case, the receiver calculates the check bits K1and K3as 0 and 0 respectively instead of 1, 1 as it is now. The position of the error bit is computed by simply adding the weights of K1 (1) and K3 (4) that is 4+1=5, hence, bit at position 5, that isM2 is the error bit. Similarly, if anyone of the check bit is invalid (see the encircled bit of the last row), its weight indicates the position of the error bit (4 in this case). Hence hamming codes can be much useful to perform single bit error correction. For double bit and 3-bit errors the number of redundant bits required is more than that of the message size.

Related Articles (You May Also Like)

About Dinesh Thakur

Dinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Search Content

Popular Article

#### What is transmission media ? Types of transmission media.

#### Transmission Media

#### What is Data Transmission? Types of Data Transmission.

#### ALOHA - What is ALOHA?

#### What is Congestion Control? Describe the Congestion Control Algorithm commonly used

#### Transmission Modes - What are the different Transmission Modes?

#### Data Communication - What is Data Communication?

#### Types of Routers

#### What is Error Correction and Detection?

#### OSI (Open Systems Interconnection) Reference Model

#### What is Difference between UTP and STP Cable?

#### MAC Layer - What is MAC Layer Protocols?

#### Cyclic Redundancy Check (CRC)

#### Twisted-Pair : What is Twisted-Pair Cable?

#### Coaxial Cable - Write Short Note on Coaxial Cable

#### Sliding Window Protocol

#### Bluetooth - What is Bluetooth?

#### Hamming Code

#### Stop & Wait Protocol

#### What is Hubs/Repeaters/Bridges/Router/Switches/ Transceivers/ Gateway

#### What is piggybacking?

#### IEEE 802.5 Token Ring

#### Data Link Layer

#### What is an Analog Signal? Characteristics of Analog Signal.

#### Bound transmission media - What is Bound transmission media ? Type of bound transmission media Explain

#### Optical Fibers: What is a Optical Fibers?

#### IEEE 802.11: WIRELESS LAN

#### Unbound transmission media - What is Unbound transmission media. Type of Unbound transmission media

#### Analog vs Digital - Difference and Comparison

#### What is a Digital Signal? Characteristics of Digital Signal

#### How Does a Single Bit Error Differs From Burst Error.

#### Asynchronous vs. Synchronous Transmission Modes

#### RS-232C - What is RS-232C?

#### Microwave Transmission – What is a Microwave Transmission?

#### Broadband versus Baseband

#### Encoding Techniques and Codec

#### Wireless Communication - What is Wireless Communication?

#### Gigabit Ethernet: 1000Base-SX, 1000Base-LX, 1000Base-CX, 1000 Base-T

#### Routers – What is Router? Characteristics of Routers. Router Protocols

#### ARPANET - What is ARPANET?

#### Fast Ethernet : 100 Base-TX, 100 Base-FX, 100 Base-T4

#### Ethernet Cables - What Is an Ethernet Cable?

#### Radio Wave – What is a Radio Wave Transmission?

#### Satellite Communication – What is a Satellite Communication?

#### Optical Fiber - Optical Transmission Modes Advantages and Disadvantages of Optical Fiber

#### Error Control in Communication Networks

#### Infrared Transmission– What is a Infrared Transmission?

#### Quality of Service (QOS)

#### Bridges – What is Bridges? Bridge Protocols

#### Media Access Control (MAC layer) - Definition

#### What are Transmission Errors?

#### What is Ethernet? - Definition

#### What is Hub | Definition of Hub | Meaning of Hub

#### ARCNet - What is ARCNet

#### Flooding – What is flooding?

#### What is NICs (Network Adapter)

#### What is Parity Check?

#### Gateways – What is Gateway? Characteristics of Gateways.

#### Virtual LAN (VLAN) – What is Virtual LAN? Characteristics of VLAN.

#### Data Communication

#### Tunneling – What is Tunneling?

#### Digital signal Transmission

#### Repeaters – What is Repeaters? Classification of Repeaters

#### Switching Hubs – What is Switching Hubs? Characteristics of Switching Hub.

#### Network Architectures

#### Optical Source

#### 10BASE T - What is 10BASET (Twisted Pair Ethernet) ?

#### 100Base T - What is 100Base T (Fast Ethernet)? Type of 100Base T

#### Data Communication Software

#### 10 Base 2 – What is 10Base2 (Thin Net/Black Ethernet)

#### Implementation of LAN Using Fiber-Optic Cable

#### Layering The Communications Process

#### Ethernet Expansion

#### 10 Base 5 - What is 10Base5 (Thick Net/Yellow Ethernet)?

#### BNC/T-connector

#### CDDI (Cable Distributed Data Interface)

#### Implementation of LAN Using Wireless Technology

#### Transmission System – What is an Transmission System?

#### Optical Connectors

#### What is Broadband ISDN?

#### What is transmission Baseband?

#### Transceiver - What is Transceiver?

#### What is Ethernet Frame?

#### 100VG-Any LAN

#### What is half duplex?

#### What is Parity bit?

#### What is AppleTalk?

#### What is Asynchronous?

#### What is the difference between Wi-Fi vs. Mobile Broadband

#### What is Communications?

#### What is Bit Error?

#### Functions of the MAC Layer

#### What is 802.15 (WPAN) ?

#### What is WiMAX (Worldwide Interoperability for Microwave Access)?

#### What is EtherTalk?

#### What is Transfer rate?

#### What is the difference between computer networks and network communications?

#### Features of the package level or network layer

#### what is network transmission?

#### How to Set Up a Wireless Router Installation & Configuration

#### Cable networks (CATV)

#### What is IEEE 802.11e?

#### How to Networking Your Devices

#### ISO Architecture

#### What is IEEE 802.11n?

#### Applications of Wifi

#### The Digitization of Signals

#### Infrared and Laser Transmission

#### Passive Optical Network

#### Ethernet Passive Optical Network (EPON)

#### Ethernet networks at 10 Mbit/s

Basic Courses

Advance Courses