A flow control method, device and medium thereof
By counting and thresholding the cached data amount of FIFO memory in data communication, the data loss and traffic instability caused by FIFO memory backvoltage are solved, and the stability and reliability of data transmission are achieved.
Patent Information
- Application Number
- CN202111591830.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In data communication, frequent backpressure phenomena lead to data loss and traffic instability when using FIFO memory.
By counting the data received and sent within the preset time period, the end threshold is obtained, and the upstream module is notified to reduce the transmission rate when the cached data amount reaches or exceeds the start threshold, and the original transmission rate is restored when the cached data amount is less than the end threshold.
It effectively avoids frequent backpressure phenomena, reduces the problems of data loss and traffic instability, and ensures the stability of data transmission.
Smart Images

Figure CN114296681B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data communication technologies, and in particular, to a traffic control method, apparatus, and medium thereof. Background Art
[0002] In data communication, to avoid data loss, it is required that the data sending rate of the sender does not exceed the data receiving rate of the receiver. When the receiver is unable to receive or process in time, corresponding measures need to be taken to control the data sending rate of the sender and store the data that the receiver is unable to receive or process.
[0003] Currently, in logic design, FIFO memories are mainly used to store the data stream of the data channel. Since the capacity of the FIFO memory is limited, when the downstream module is unable to process the data output by the upstream module in time for a long time, the FIFO memory will gradually be filled with data. When the FIFO detects that its capacity is full, it will notify the upstream module to reduce its data sending rate. Such a process is called backpressure.
[0004] FIFO: (First Input First Output) simply means first in first out. A FIFO memory is a first-in-first-out dual-port buffer, that is, the first data entering it is the first to be removed. One of them is the input port of the memory, and the other port is the output port of the memory. In system design, FIFO memories are widely used to increase the data transfer rate, process large amounts of data streams, and match systems with different transfer rates, so as to achieve the purpose of improving system performance.
[0005] However, when the data transmission structure is relatively complex and the link is relatively long, since the backpressure mechanism is a step-by-step backpressure with a relatively large delay, backpressure phenomena will frequently occur during burst large traffic, resulting in data loss, errors, or unstable traffic problems during data transmission.
[0006] Therefore, those skilled in the art now urgently need a traffic control method to solve the problem that frequent backpressure phenomena occur when using FIFO memories currently, resulting in data loss, errors, or unstable traffic. Summary of the Invention
[0007] The purpose of the present application is to provide a traffic control method, apparatus, and medium thereof.
[0008] To solve the above technical problems, the present application provides a traffic control method, including:
[0009] Count the data received and sent within a preset duration, and record them as the received data volume and the sent data volume respectively;
[0010] Obtain an end threshold according to the relationship between the received data volume and the transmitted data volume;
[0011] When the cached data volume is greater than the start threshold, notify the upstream module to reduce the rate of data transmission; wherein, the start threshold is greater than the end threshold and less than the capacity of the FIFO memory;
[0012] When the cached data volume is less than the end threshold, notify the upstream module to resume the original data transmission rate.
[0013] Preferably, obtaining the end threshold according to the relationship between the received data volume and the transmitted data volume includes:
[0014] When the received data volume is greater than four times the transmitted data volume, obtain a first end threshold, otherwise proceed to the next step;
[0015] When the received data volume is greater than twice the transmitted data volume, obtain a second end threshold, otherwise proceed to the next step;
[0016] When the received data volume is greater than the transmitted data volume, obtain a third end threshold, otherwise end this method; wherein, the first end threshold is less than the second end threshold, and the second end threshold is less than the third end threshold.
[0017] Preferably, the start threshold is determined by the capacity of the current FIFO memory, the clock cycle, and the number of intervening beats between the FIFO memory and the upstream module.
[0018] Preferably, the first end threshold is determined by the depth of the FIFO memory.
[0019] Preferably, the second end threshold and the third end threshold are determined by the start threshold.
[0020] Preferably, obtaining the end threshold according to the relationship between the received data volume and the transmitted data volume includes: re-obtaining the end threshold every preset duration.
[0021] Preferably, it further includes: stopping receiving data when it is detected that the storage space is full; stopping transmitting data when it is detected that there is no cached data in the storage space.
[0022] To solve the above technical problems, the present application also provides a traffic control device, including:
[0023] A counting module, configured to count the data received and transmitted within a preset duration, and record them as the received data volume and the transmitted data volume respectively;
[0024] An obtaining module, configured to obtain an end threshold according to the relationship between the received data volume and the transmitted data volume;
[0025] A reducing module, configured to notify the upstream module to reduce the rate of data transmission when the cached data volume is greater than the start threshold;
[0026] The recovery module is used to notify the upstream module to restore the original data sending rate when the amount of cached data is less than the end threshold.
[0027] Preferably, it also includes a detection module, which is used to stop receiving data when it is detected that the storage space is full; and stop sending data when it is detected that there is no cached data in the storage space.
[0028] In order to solve the above technical problems, the present application also provides a flow control device, comprising:
[0029] Memory for storing computer programs;
[0030] A processor is used to implement the steps of a flow control method as described above when executing a computer program.
[0031] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a flow control method as described above are implemented.
[0032] The present application provides a flow control method. First, the data received and sent within a preset time length is counted. According to the relationship between the amount of received data and the amount of sent data, it can be known whether the downstream module of the current FIFO memory cannot process the data sent by the upstream module in time. When the downstream module cannot process in time, the data sent by the upstream module will be cached in the FIFO memory first. When the amount of cached data exceeds the starting threshold, the upstream module is notified to reduce the sending data rate. Since the ending threshold is less than the starting threshold, when the cached data is less than the ending threshold, it means that the data cached in the FIFO memory is decreasing, that is, the speed of processing data by the downstream module can keep up with the speed of sending data by the upstream module. At this time, the upstream module is notified to restore the original sending data rate, thereby avoiding the problem of data loss caused by the downstream module not having time to process the data sent by the upstream module. At the same time, since the sending data of the upstream module is controlled when the amount of data cached in the FIFO memory is greater than the starting threshold, and the starting threshold is less than the capacity of the FIFO memory, when it is necessary to control the sending data rate of the upstream module, the FIFO memory still has storage space to store data, and will not cause back pressure, thereby avoiding data loss, error, or unstable flow caused by frequent back pressure.
[0033] The present application provides a flow control device and a computer-readable storage medium, which correspond to the above method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0035] Figure 1 It is a flowchart of a traffic control method provided by the present invention;
[0036] Figure 2 It is a structural diagram of a traffic control device provided by the present invention;
[0037] Figure 3 It is a structural diagram of another traffic control device provided by the present invention. Detailed implementation manners
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.
[0039] The core of the present application is to provide a traffic control method, device and its medium.
[0040] To enable those in the technical field of the present application to better understand the solutions of the present application, the following will further elaborate on the present application in conjunction with the drawings and specific implementation manners.
[0041] In actual data communication, the rate at which the upstream module sends data and the rate at which the downstream module receives and processes data are not always the same. Moreover, the downstream module needs to perform more operations on the data. Generally, the rate at which the upstream module sends data is greater than the rate at which the downstream module receives and processes data. When the above situation occurs, it means that the data cannot be received and processed in time, which easily causes data loss or errors. Currently, in logic design, FIFOs are often used to store the data stream in the data channel to achieve that when data cannot be received and processed in time, it can be stored in the FIFO memory first. Since the data that enters the FIFO memory first is also output first, the order of data processing will not be affected and the impact on data timeliness will be reduced. When the rate at which the downstream module receives and processes data resumes or increases, the accumulated data in the FIFO memory will be received and processed again.
[0042] However, the capacity of the FIFO memory is limited. When the storage space of the FIFO memory is full, it will send a signal to the upstream module to slow down the data transmission rate. This process is called backpressure. However, in many application scenarios, the data transmission link is relatively long, and backpressure appears gradually. When there is a sudden large traffic, backpressure will occur successively between levels of the data transmission link, resulting in problems such as data loss, errors, or unstable traffic. Therefore, as Figure 1 shown, this application provides a traffic control method, including:
[0043] S101: Count the data received and sent within a preset duration, and record them as the received data volume and the sent data volume respectively.
[0044] S102: Obtain an end threshold according to the relationship between the received data volume and the sent data volume.
[0045] S103: When the buffered data is greater than the start threshold, notify the upstream module to reduce the data transmission rate; where the start threshold is greater than the end threshold and less than the capacity of the FIFO memory.
[0046] S104: When the buffered data is less than the end threshold, notify the upstream module to resume the original data transmission rate.
[0047] In a data transmission, if the data transmission rate is less than or equal to the data reception rate, the data will flow into the downstream module through the FIFO memory, which is equivalent to the FIFO memory not storing data but only acting as a transfer station. In this case, no backpressure will occur.
[0048] When the data transmission rate is greater than the data reception rate, the data that cannot be processed in time will be buffered in the FIFO memory first. After the downstream module processes a part of it, the earliest received data will be retrieved and sent to the downstream module. At this time, if the data reception rate is always less than the data transmission rate, the data buffered in the FIFO memory will become more and more. When the buffered data exceeds the start threshold, the upstream module will be notified to slow down the data transmission rate. At this time, because the start threshold is less than the capacity of the FIFO memory, there is still remaining space in the FIFO memory to store data. So when the FIFO memory sends a signal to the upstream module and the upstream module slows down the data transmission rate, the data sent can still be buffered, reducing the generation of backpressure.
[0049] When the data reception rate of the downstream module increases, or the upstream module slows down the data transmission rate due to the above situation, the data transmission rate is less than the data reception rate at this time, so that the storage space of the FIFO memory is slowly released. When it is detected that the amount of data cached in the storage space is less than the end threshold, it can be considered that the FIFO memory has sufficient remaining space, and then the upstream module is notified to resume or increase the data transmission rate to ensure the data transmission rate to the greatest extent.
[0050] It should be noted that the preset duration mentioned in this embodiment does not limit the specific value, and can be freely selected according to actual needs. Its main purpose is to obtain the data transmission rate and the data reception rate, and then further compare the two to determine the end threshold. The start threshold and the end threshold mentioned in this embodiment also do not limit the specific value. Under the condition that the start threshold is less than the capacity of the FIFO memory and greater than the end threshold, it can be determined according to actual needs. Generally speaking, the start threshold can be determined by any combination of several parameters such as the capacity of the FIFO memory, the clock cycle, and the number of clock cycles between the FIFO memory and the upstream module, while the end threshold can be determined by any combination of the start threshold, the capacity of the FIFO memory, the clock cycle, and the number of clock cycles between the FIFO memory and the upstream module.
[0051] At the same time, the end threshold obtained according to the relationship between the received data volume and the transmitted data volume can be unique or there can be multiple. One of them is obtained according to the relationship between the received data volume and the transmitted data volume. This embodiment does not limit this, but it is easy to understand that when there are multiple end thresholds, there should be different conditions corresponding to different relationships between the received data volume and the transmitted data volume to determine the corresponding end threshold.
[0052] In addition, it is easy to understand that when the storage space of the FIFO memory is full, in order to avoid data errors or losses, data reception from the upstream module should be stopped at this time, and when there is no cached data in the storage space of the FIFO memory, data transmission to the downstream module should also be stopped.
[0053] As can be seen from the above, a flow control method provided by the present application can timely notify the upstream module to limit the speed according to the usage of the storage space of the current FIFO memory when the downstream module is too late to process the received data. In this way, even if there is a delay in the signal from the FIFO memory to the upstream module, a delay in the upstream module's speed adjustment, and there is still a large amount of data to be received in the data channel after the speed adjustment, it can be stored in the FIFO memory with remaining space, thus avoiding the problem of too frequent backpressure, and further avoiding data errors, losses, and unstable traffic.
[0054] To further illustrate a traffic control method provided by the present application, this embodiment provides a preferred solution where there are multiple end thresholds and how to select corresponding end thresholds according to the relationship between the received data volume and the transmitted data volume, including:
[0055] S201: When the received data volume is greater than four times the transmitted data volume, obtain the first end threshold; otherwise, proceed to the next step.
[0056] S202: When the received data volume is greater than twice the transmitted data volume, obtain the second end threshold; otherwise, proceed to the next step.
[0057] S203: When the received data volume is greater than the transmitted data volume, obtain the third end threshold; otherwise, end this method; where the first end threshold is less than the second end threshold, and the second end threshold is less than the third end threshold.
[0058] The advantage of this embodiment over the above embodiment is that, as described in the above embodiment, when it is detected that the buffered data volume is less than the end threshold, it is considered that the FIFO memory has sufficient remaining space, so the data transmission rate is increased. However, the greater the difference between the data transmission rate and the data reception rate, the faster the FIFO memory with the same remaining space will be filled, and the more serious the backpressure phenomenon will be. In this embodiment, the relationship between the received data volume and the transmitted data volume is more finely divided and corresponds to different end thresholds respectively, so that when the data reception rate cannot keep up with the data transmission rate, a more appropriate end threshold can be selected according to the degree, so as to ensure that no matter how much the difference between the data transmission rate and the data reception rate is, there will be sufficient time to notify the upstream module to slow down the data transmission rate, thereby further reducing the generation of data backpressure.
[0059] In addition, this embodiment also provides a preferred implementation to describe in more detail a traffic control method provided by the present application. On the basis of the above embodiment, this embodiment provides a method for determining the first end threshold, the second end threshold, the third end threshold, and the start threshold, including:
[0060] The start threshold is determined by the capacity of the current FIFO memory, the clock cycle, and the number of clock cycles between the FIFO memory and the upstream module.
[0061] The first end threshold is determined by the depth of the FIFO memory.
[0062] The second end threshold and the third end threshold are determined by the start threshold.
[0063] For example, in an actual data transmission environment, the capacity of the FIFO memory is 32 * 512 bits, where 32 is the bit width and 512 is the depth; the number of clock cycles between the upstream module and the FIFO memory is 3; it takes 2 clock cycles for the FIFO memory to send a signal to the upstream module.
[0064] Then the start threshold should satisfy the following conditions:
[0065] threshold ≤ 512 - (3 + 2) = 507
[0066] Where threshold is the start threshold, 512 is the depth of the FIFO memory capacity, 3 is the number of clock cycles between the upstream module and the FIFO memory, and 2 is the number of clock cycles required for the FIFO memory to send a signal to the upstream module. In practical applications, the start threshold can be taken as 500.
[0067] The first end threshold can be taken as half of the depth 512, that is, 256, and this is called half full at this time.
[0068] The second end threshold should be smaller than the start threshold and larger than the first end threshold, and can be taken as the value obtained by subtracting 64 from the start threshold, that is, 436; the third end threshold should be smaller than the start threshold and larger than the second end threshold, and can be taken as the value obtained by subtracting 32 from the start threshold, that is, 468.
[0069] It should be noted that the units of the above start threshold and each end threshold are not bits, and their units are the same as the unit of the depth of the FIFO memory capacity. Therefore, when converting the unit to bits, the above values need to be multiplied by the bit width, that is, the start threshold in this embodiment is 500 * 32 bits; the first end threshold is 256 * 32 bits; the second end threshold is 436 * 32 bits; the third end threshold is 468 * 32 bits.
[0070] Therefore, the advantage of this embodiment compared with the above embodiment is that by determining the appropriate start threshold and each end threshold according to different FIFO memories and the number of clock cycles, etc., when the FIFO memory performs the steps of the above method according to the relationship between the cached data volume and the above start threshold and each end threshold, the occurrence of backpressure can be further avoided, and the impact on the data transmission rate can be reduced.
[0071] As can be seen from the above embodiment, a flow control method provided by the present application is a continuous process, and it is necessary to monitor the data transmission situation in real time to control the slowdown or recovery of the data transmission rate of the upstream module. Therefore, on the basis of the above embodiment, this embodiment also provides a preferred implementation scheme, including: re - obtaining the end threshold every preset time duration.
[0072] It should be noted that the end threshold re-obtained every preset duration in this embodiment should be determined according to the relationship between the received data volume and the sent data volume during the preset duration. Also, since the data received and sent during the preset duration are counted in step S101, this embodiment is equivalent to re-performing a traffic control method provided by this application every preset duration.
[0073] In addition, the preset duration in this embodiment being the same as that in step S101 above is only a preferred implementation to reduce parameters or variables in actual applications. In fact, the preset duration in step S101 is only used to calculate the sending data rate and the receiving data rate, and the value taken does not affect the implementation of this method.
[0074] The preferred solution provided in this embodiment re-evaluates the end threshold at regular intervals, ensuring that the selected end threshold is always the most suitable for the current data transmission situation, thereby further avoiding backpressure and reducing the impact on the data transmission rate.
[0075] In the above embodiment, a traffic control method is described in detail. This application also provides an embodiment corresponding to a traffic control device. It should be noted that this application describes the embodiment of the device part from two perspectives, one is from the perspective of functional modules, and the other is from the perspective of hardware.
[0076] From the perspective of functional modules, this embodiment provides a preferred solution corresponding to a traffic control device, as Figure 2 shown, including:
[0077] A counting module 11 for counting the data received and sent within a preset duration, denoted as the received data volume and the sent data volume respectively;
[0078] An obtaining module 12 for obtaining an end threshold according to the relationship between the received data volume and the sent data volume;
[0079] A reducing module 13 for notifying the upstream module to reduce the data sending rate when the cached data is greater than the start threshold;
[0080] A restoring module 14 for notifying the upstream module to restore the original data sending rate when the cached data is less than the end threshold.
[0081] In addition, preferably, it further includes a detecting module 15 for stopping receiving data when it detects that the storage space is full; and stopping sending data when it detects that there is no cached data in the storage space.
[0082] Since the embodiments in the apparatus part correspond to those in the method part, please refer to the description of the embodiments in the method part for the embodiments in the apparatus part, which will not be elaborated here.
[0083] Figure 3 The structural diagram of a flow control device provided in another embodiment of this application is as Figure 3 shown. A flow control device includes: a memory 20 for storing computer programs;
[0084] a processor 21 for implementing the steps of a flow control method as described in the above embodiment when executing the computer program.
[0085] The flow control device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, etc.
[0086] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.
[0087] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201. After the computer program is loaded and executed by the processor 21, the relevant steps of a traffic control method disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be transient storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, a traffic control method, etc.
[0088] In some embodiments, a traffic control device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0089] Those skilled in the art can understand that Figure 3 the structure shown in does not constitute a limitation on a traffic control device, and may include more or fewer components than shown in the figure.
[0090] A traffic control device provided by an embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, the following method can be implemented: A traffic control method.
[0091] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps recorded in the foregoing method embodiment are implemented.
[0092] It can be understood that if the method in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and executes all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0093] The above has provided a detailed introduction to a traffic control method, device, and its medium of the present application. The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section. It should be noted that for those of ordinary skill in the art of the present technology, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
[0094] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article, or device including the said element.
Claims
1. A flow control method, characterized in that, including: Count the data received and sent within a preset duration, and record them as the received data volume and the sent data volume respectively; Obtain an end threshold according to the relationship between the received data volume and the sent data volume; When the cached data volume is greater than the start threshold, notify the upstream module to reduce the data sending rate; wherein, the start threshold is greater than the end threshold and less than the capacity of the FIFO memory; and the start threshold is determined by the capacity of the current FIFO memory, the clock cycle, and the number of clock cycles between the FIFO memory and the upstream module; When the cached data volume is less than the end threshold, notify the upstream module to resume the original data sending rate.
2. The flow control method according to claim 1, wherein The obtaining the end threshold according to the relationship between the received data volume and the sent data volume includes: When the received data volume is greater than four times the sent data volume, obtain a first end threshold, otherwise proceed to the next step; When the received data volume is greater than twice the sent data volume, obtain a second end threshold, otherwise proceed to the next step; When the received data volume is greater than the sent data volume, obtain a third end threshold, otherwise end this method; wherein, the first end threshold is less than the second end threshold, and the second end threshold is less than the third end threshold.
3. The flow control method according to claim 2, wherein The first end threshold is determined by the depth of the FIFO memory.
4. The flow control method according to claim 2, characterized in that, The second end threshold and the third end threshold are determined by the start threshold.
5. The flow control method according to any one of claims 1 to 4, characterized in that, The obtaining the end threshold according to the relationship between the received data volume and the sent data volume includes: Re-obtain the end threshold every time the preset duration passes.
6. The flow control method according to claim 5, wherein It also includes: Stop receiving data when it is detected that the storage space is full; Stop sending data when it is detected that there is no cached data in the storage space.
7. A flow control device, characterized in that, including: A counting module for counting the data received and sent within a preset duration, and recording them as the received data volume and the sent data volume respectively; An obtaining module for obtaining an end threshold according to the relationship between the received data volume and the sent data volume; A reducing module for notifying the upstream module to reduce the data sending rate when the cached data volume is greater than the start threshold; wherein, the start threshold is greater than the end threshold and less than the capacity of the FIFO memory; and the start threshold is determined by the capacity of the current FIFO memory, the clock cycle, and the number of clock cycles between the FIFO memory and the upstream module; A resuming module for notifying the upstream module to resume the original data sending rate when the cached data volume is less than the end threshold.
8. A flow control device, characterized in that, including: A memory for storing computer programs; A processor for implementing the steps of a traffic control method as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps of a traffic control method as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Threshold configuration method of first-in first-out memory, device and first-in first-out memory
CN101034344A
Flow control method and device, electronic equipment and storage medium
CN112328202A