Join Us

Definition from TechTarget

Flow control is implemented in different ways, depending on how the sender and receiver handle messages and track data frames. There are two basic approaches to flow control: stop and wait and sliding window . The stop-and-wait approach is the simplest to implement, but it is not as efficient as sliding window, which delivers better network performance and utilizes network resources more effectively.

The purpose of flow control is to throttle the amount of data transmitted to avoid overwhelming the receiver's resources. This is accomplished through a series of messages that the receiver transmits to the sender to acknowledge if frames have been received. The sender uses these messages to determine when to transmit more data. If the sender does not receive an acknowledgement ( ACK ), it concludes that there has been a problem with the transmission and retransmits the data.

Flow control is a technique used to regulate data transfer between computers or other nodes in a network. Flow control ensures that the transmitting device does not send more data to the receiving device than it can handle. If a device receives more data than it can process or store in memory at any given time, the data is lost and needs to be retransmitted.

Stop and wait is simpler to implement than sliding window. It is also fairly reliable because the sender receives an ACK for each frame successfully transmitted to the receiver. These qualities, however, also make data communications much slower, which can be exacerbated by long distances and heavy traffic . The stop-and-wait approach also tends to underutilize network resources.

Stop and wait belongs to a category of error control mechanisms called automatic repeat requests (ARQs), which rely on the use of ACKs to determine if a data transmission was successful or if retransmission is needed. Other ARQs include Go-Back-N ARQ and Selective Repeat ARQ, both of which use the sliding window protocol.

After receiving ACK 0, the sender transmits Frame 1 and waits for ACK 1. When that arrives, the sender transmits Frame 2 and waits again. This time, however, the sender does not receive ACK 2 before the timeout occurs, so it retransmits Frame 2. The frame now arrives at its destination, so the receiver sends ACK 2. When the sender receives ACK 2, it transmits Frame 3, which is also acknowledged by the receiver.

Figure 1 illustrates how this exchange works. In this case, the sender starts by transmitting Frame 0 and then waiting for the ACK. When Frame 0 reaches its destination, the receiver sends ACK 0 to the sender.

In the stop-and-wait approach, the sender segments the data into frames and then transmits one frame at a time to the receiver, which responds to each frame with an ACK message. This process occurs through the following steps:

Sliding window flow control

The sliding window approach addresses many of the issues that come with stop and wait because the sender can transmit multiple frames at once without having to wait for an ACK for each frame. However, this approach also comes with additional complexity.

When first connecting, the sender and receiver establish a window that determines the maximum number of frames the sender can transmit at a time. During the transmission, the sender and receiver must carefully track which frames have been sent and received to ensure that all the data reaches its destination and is reassembled in the correct order.

Sliding window flow control can be implemented using one of two approaches: Go-Back-N and Selective Repeat. With the Go-Back-N approach, the sender can send one or more frames but never more frames than the window allows. As the receiver acknowledges the frames, the sender moves to the next batch, or window, of frames that can now be sent. If there is a problem with a transmitted frame, the sender retransmits all the frames in the current window.

Figure 2 shows an example of how Go-Back-N works. In this case, the window consists of only three frames -- initially, Frames 0 through 2. The sender begins by transmitting Frame 0 to the receiver. Upon receiving Frame 0, the receiver sends an ACK that specifies the next frame to send (Frame 1), rather than specifying the frame that has just been received.

Figure 2. How Go-Back-N type of sliding window flow control works

When the sender receives ACK 1, it moves the window over by one position, dropping Frame 0 and adding Frame 3. The sender then transmits Frames 1, 2 and 3, which represent the window's entire contents. The sender does not necessarily need to send Frame 0 first, followed by Frames 1 through 3. This is illustrated in Figure 2 to demonstrate how the process works.

Upon receiving the three frames, the receiver sends a cumulative ACK that specifies the next frame to send, which is Frame 4. The ACK indicates that the receiver now has all the preceding frames (0 through 3).

When the sender receives ACK 4, it adjusts the window so that it now includes Frames 4 through 6 and then transmits those frames. This time, however, Frame 4 gets lost in the transmission, while Frames 5 and 6 reach their destination. Upon receiving Frame 5, the receiver detects that Frame 4 is missing and sends a negative acknowledgement (NAK) that specifies Frame 4. At the same time, the receiver discards Frames 5 and 6.

When the sender receives the NAK, it retransmits Frames 4 through 6 and waits for the ACK. The frames arrive with no errors the second time around, so the receiver returns an ACK indicating that the sender can now transmit Frame 7. The sender adjusts the window accordingly and transmits the next set of frames, starting with Frame 7.

The Selective Repeat approach is similar to Go-Back-N. The primary difference is that Selective Repeat does not retransmit the entire window if there is an error, only the individual frame in dispute. Selective Repeat does not support cumulative ACK messages like Go-Back-N, so each ACK is specific to the frame that was just received, which is what enables the sender to identify the precise frame that needs to be retransmitted.

Figure 3 illustrates an example of the Selective Repeat process. After transmitting Frame 0, the sender receives an ACK, so it transmits Frames 1 through 3 and receives an ACK for each one. The sender then transmits Frames 4 through 6. When Frames 5 and 6 arrive at the receiver, but not Frame 4, the receiver sends ACK 5 and ACK 6, along with NAK 4. The sender responds to the NAK by retransmitting Frame 4. Upon receiving Frame 4, the receiver sends an ACK. The sender then adjusts the window and transmits the next three frames, starting with Frame 7.

Figure 3. How Selective Repeat sliding window flow control works

Related links:
Which Air Purifiers Use Photocatalyst Filters?
What is a Nipple Drinker and How Does It Work?
What Are Diaphragm Pumps Used For?
How does a hydraulic directional control valves work?
Key Questions and Answers About Auto Coil Springs
Crude Oil Extraction and Drilling Methods
The role of ball bearing lubrication and the method of oil lubrication

Both Selective Repeat and Go-Back-N are more efficient than the stop-and-wait approach, but there are important differences between the two sliding window approaches. The Go-Back-N approach can consume more bandwidth because all the frames in a window are retransmitted if an error occurs. However, it is not as complex to implement as Selective Repeat and does not require the same amount of system resources. Selective Repeat comes with greater management overhead because the frames must be tracked and sorted throughout the data transmission.

Learn about 12 common network protocols and their functions.

In simple terms, flow control is the term used to describe the regulation of the flow or pressure of liquid. Within fluid dynamics, flow control is a fundamental concept that involves regulating the rate of flow of fluids, most commonly liquids or gases, through a specific system. 

In this article, the expert team here at Fluid Controls has put together this helpful guide on what a flow control system does and how it functions within industrial fluid control systems. Keep reading to find out more!

What does flow control do?

As mentioned above, flow control involves regulating the rate of flow of fluids, such as liquids or gases. It is an extremely important concept that is applicable to a wide range of industries and applications, including manufacturing, chemical processing, energy production, and transportation.

What is the purpose of flow control?

The chief purpose of flow control is to ensure that fluids move through a system at the desired or intended rate in order to achieve optimal performance and efficiency. As with most applications, efficiency is key and flow control is vital to ensuring this efficiency. 

In many cases, the flow of fluids needs to be accurately controlled to maintain safety, product quality, and environmental or industrial standards. Not only this, but in order for various applications to maintain specific standards around consumption and efficiency, flow control can help to reduce energy consumption, increase the life of a system, and help to improve the overall productivity of a system.

What does a flow control valve do?

Now, this is where specific components come into play. One common method of controlling flow is using flow control valves. Valves are mechanical devices that are used to regulate liquids and gases. This is done through the opening or closing of a passage.
There are various different types of valves, including ball valves, globe valves, and flow control valves. Each type of valve has its own advantages and disadvantages, and these must be taken into consideration for the specific requirements of the application at hand.

Flow control valves & how they work

When looking in more detail at flow control valves, we have to consider what they are and how they work. A flow control valve works by controlling and adjusting the volume flow of air within a pneumatic system. Commonly referred to as mass flow controllers, there are a range of functions of a flow control valve.

Prevention of clogging

One great function of flow control valves is that they don’t obstruct the flow of fluid. As these valves are specifically designed in such a way, small particles do not clog the flow of the fluid, limiting the chances of clogging and disruption to the application or process.

They save water

With environmentalism at the forefront of many industries and applications, flow control valves are essential to saving water. With some of these valves being able to conserve up to 85% of the water they use, they don’t put unnecessary pressure on the water supply.

Cost efficient

When flow control valves are used within certain applications, they can help in water conservation. This, in turn, means that costs can be cut and money can be saved on a wider scale.

Why is flow control so important?

The importance of flow control within a range of industries cannot be overstated or simplified.

Take the chemical processing industry, for example. Precise flow control is crucial to ensure the correct measurement of chemicals is added to a process in order to achieve the desired reaction. 

Another real-life example is within the oil and gas industry. Here, flow control is crucial for preventing spillages and maintaining strict environmental standards. In the food and beverage industry, flow control is essential to ensuring that products and processes meet quality standards.

Flow control at Fluid Controls Ltd

As we’ve discussed, flow control is a crucial concept in fluid dynamics that involves the regulation of fluid flow through a system. Fluid Controls has been supplying high-quality flow control valves since 1988. 

We are committed to delivering the very best quality valves as we understand the importance of flow control within applications. Our vast range of valves comes from global leaders like Parker, Bürkert and Thompson Valves. 

As a fully accredited ISO 9001:2008 company, we provide installation options and service facility for certain products we supply. We also offer full pressure testing and repairs and in-house or on-site training to maximise your experience.For more information about any of our different types of flow control valves or to discuss your application requirements in more detail, please contact Fluid Controls today on +44 (0)118 970 2060 or email fluid@fluidcontrols.co.uk. Our engineers will be only too happy to provide expert support and advice.

Definition from TechTarget

The Purposes of Fluid Control

Related links:
How does a Dredger Pump Work?
What is custom insert molding?
Everything You Need to Know About Lamination
How Do I Know If My Truck Bearings Are Bad?
How do you identify a thrust bearing?
4 Types of Steel Sheet Metal & Their Uses
How To Choose The Right Alloy Steel?

137

0