contador javascript Skip to content
Contact : alejandrasalcedo0288@gmail.com

Difference between flow control and error control


Flow control and error control are the control mechanism in the data link layer and the transport layer. When the user sends the data to the receiver, these two mechanisms help the correct delivery of reliable data to the receiver. The main difference between flow control and error control is that the flow control observes the correct flow of data from sender to receiver; on the other hand, the error control Note that the data delivered to the receiver is error free and reliable. Let's study the difference between flow control and error control with a comparison chart.

Comparative graph

Basis for comparison Flow control Error control
BASIC The flow control is intended for the correct transmission of the data from the sender to the receiver. Error control is intended to deliver the data without errors to the receiver.
Focus Flow control based on feedback and flow control based on speed are the approaches to achieve proper flow control. The parity check, the Cyclic Redundancy Code (CRC) and the checksum are the methods to detect the error in the data. The Hamming code, the binary convolution codes, the Reed-Solomon code, the low density parity check codes are the methods to correct the error in the data.
Impact Avoid exceeding the receiver buffer and avoid data loss. Detects and corrects the error occurred in the data.

Flow Control Definition

Flow control is a design problem in the data link layer and the transport layer. A sender sends faster data frames than the receiver can accept. The reason may be that a sender is running on a powerful machine. In this case, even the data is received without any error; The receiver cannot receive the frame at this speed and lose some frames. There are two control methods to avoid frame loss: feedback-based flow control and speed-based flow control.

Feedback based control

In the feedback-based control, whenever the sender sends the data to the receiver, the receiver sends the information to the sender and allows him to send more data or inform the sender about the receiver's performance. The control protocols based on feedback are the sliding window protocol, the stop and wait protocol.

Rate based flow control

In speed-based flow control, when a transmitter transmits the fastest data to the receiver and the receiver cannot receive the data at that speed, then the mechanism incorporated in the protocol limits the speed at which the data is being transmitted. by the sender without any comment from the receiver.

Error Control Definition

Error control is the problem that occurs at the data link layer and also at the transport level. Error control is a mechanism to detect and correct the error occurred in the frames that are delivered from the sender to the receiver. The error occurred in the frame may be a single bit error or a burst error. The single-bit error is the error that occurs only in the one-bit data unit of the frame, where 1 is changed to 0 or 0 is changed to 1. In the burst error it is the case when changing more one bit in the frame; It also refers to the packet level error. In the burst error, the error such as packet loss, frame duplication, loss of acknowledgment packet, etc. may also occur. The methods for detecting the error in the frame are the parity verification, the cyclic redundancy code (CRC) and the checksum.

Parity Check

In the parity check, a single bit is added to the box indicating whether the number of bits '1' contained in the box is even or odd. During transmission, if a single bit is changed, the parity bit also receives a change that reflects the error in the frame. But the method of parity verification is unreliable, since if the even number of bits is changed, the parity bit does not reflect any errors in the frame. However, it is better for a single bit error.

Cyclic Redundancy Code (CRC)