[go: up one dir, main page]

CN112328202B - A flow control method, device, electronic equipment, and storage medium - Google Patents

A flow control method, device, electronic equipment, and storage medium Download PDF

Info

Publication number
CN112328202B
CN112328202B CN202011352372.2A CN202011352372A CN112328202B CN 112328202 B CN112328202 B CN 112328202B CN 202011352372 A CN202011352372 A CN 202011352372A CN 112328202 B CN112328202 B CN 112328202B
Authority
CN
China
Prior art keywords
flow
count value
module
threshold
target data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011352372.2A
Other languages
Chinese (zh)
Other versions
CN112328202A (en
Inventor
夏超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Computer Technology Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202011352372.2A priority Critical patent/CN112328202B/en
Publication of CN112328202A publication Critical patent/CN112328202A/en
Application granted granted Critical
Publication of CN112328202B publication Critical patent/CN112328202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/10Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor having a sequence of storage locations each being individually accessible for both enqueue and dequeue operations, e.g. using random access memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The application discloses a flow control method, a flow control device, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: receiving first target data sent by an upstream module, and storing the first target data into a cache; the flow of the first target data is larger than the preset flow; when the flow count value is smaller than a first threshold value, accumulating the flow meter values in the cache under the back pressure action of a downstream module; when the flow count value is accumulated to a first threshold value, performing back pressure on the upstream module, stopping receiving the first target data, and under the condition that the back pressure of the downstream module is released, outputting the first target data in the cache to the downstream module, and reducing the flow meter value; when the flow count value is reduced to a second threshold value, the back pressure of the upstream module is released, and the first target data is continuously received; wherein the second threshold is less than the first threshold. Therefore, the flow control method provided by the application can improve the stability and the correctness of the flow transmission system.

Description

一种流量控制方法、装置及电子设备和存储介质A flow control method, device, electronic equipment, and storage medium

技术领域technical field

本申请涉及计算机技术领域,更具体地说,涉及一种流量控制方法、装置及一种电子设备和一种计算机可读存储介质。The present application relates to the field of computer technology, and more specifically, to a flow control method and device, an electronic device, and a computer-readable storage medium.

背景技术Background technique

在流量系统中,因为处理流程很长,为了简化设计,层次清晰,对系统进行分级,划分成不同模块处理。在模块与模块之间,以及模块内部的子模块之间,通常采用FIFO(中文全称:先进先出,英文全称:First Input First Output)进行隔离。在上下游模块以及模块内部子模块之间进行流量传输时,使用FIFO的空(empty)满(full)标识进行处理。在检测到上游模块的FIFO空标识为不空(empty==0),且本级FIFO满标识为不满(full=0),接收流量,做对应的流量处理后,缓存到本级FIFO。在上述方案中,大流量或者流量抖动较大时,下游模块或者子模块向上游模块或者子模块逐级反压,且反压会很频繁,流量不稳定。In the flow system, because the processing flow is very long, in order to simplify the design and clear the hierarchy, the system is classified and divided into different modules for processing. FIFO (full name in Chinese: First In First Out, full name in English: First Input First Output) is usually used for isolation between modules and sub-modules inside the module. When traffic is transmitted between upstream and downstream modules and sub-modules inside the module, the empty (empty) and full (full) flags of the FIFO are used for processing. After detecting that the FIFO empty flag of the upstream module is not empty (empty==0), and the FIFO full flag of the current level is not full (full=0), the traffic is received, and after corresponding traffic processing is performed, it is cached in the FIFO of the current level. In the above scheme, when the flow rate is large or the flow jitter is large, the downstream modules or sub-modules will back-pressure the upstream modules or sub-modules step by step, and the back-pressure will be frequent and the flow will be unstable.

因此,如何提高流量控制的稳定性是本领域技术人员需要解决的技术问题。Therefore, how to improve the stability of flow control is a technical problem to be solved by those skilled in the art.

申请内容application content

本申请的目的在于提供一种流量控制方法、装置及一种电子设备和一种计算机可读存储介质,提高了流量控制的稳定性。The purpose of the present application is to provide a flow control method and device, an electronic device and a computer-readable storage medium, which improve the stability of flow control.

为实现上述目的,本申请提供了一种流量控制方法,应用于目标模块,包括:In order to achieve the above purpose, this application provides a flow control method, which is applied to the target module, including:

接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;receiving the first target data sent by the upstream module, and storing the first target data in the cache; wherein, the flow of the first target data is greater than the preset flow;

当所述缓存中的流量计数值小于第一阈值时,在下游模块的反压作用下,所述流量计数值累加;When the flow count value in the cache is less than the first threshold, under the back pressure of the downstream module, the flow count value is accumulated;

当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;When the flow count value has accumulated to the first threshold, back pressure is applied to the upstream module, and the first target data is stopped to be received; when the back pressure of the downstream module is released, the The module outputs the first target data in the cache, and the traffic count value decreases;

当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值。When the flow count value decreases to a second threshold, the back pressure on the upstream module is released and continues to receive the first target data; wherein the second threshold is smaller than the first threshold.

其中,还包括:Among them, also include:

接收所述上游模块发送的第二目标数据,并将所述第二目标数据存入所述缓存,所述流量计数值累加;其中,所述第二目标数据的流量小于或等于所述预设流量;receiving the second target data sent by the upstream module, storing the second target data in the cache, and accumulating the traffic count value; wherein, the traffic of the second target data is less than or equal to the preset flow;

当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加;When the flow count value is less than or equal to the second threshold value, the flow count value is accumulated;

当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。When the flow count value is greater than the second threshold, the second target data in the cache is output to the downstream module, and when the flow output speed is greater than the flow input speed, the flow count value is decreased.

其中,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少之后,还包括:Wherein, when the flow output speed is greater than the flow input speed, after the flow count value is reduced, it also includes:

当所述流量计数值为零时,停止输出数据。When the flow count value is zero, stop outputting data.

其中,所述接收上游模块发送的第一目标数据之前,还包括:Wherein, before receiving the first target data sent by the upstream module, it also includes:

初始化第一流水线标识和第二流水线标识为第一预设值;Initializing the first pipeline identifier and the second pipeline identifier as a first preset value;

相应的,当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加,包括:Correspondingly, when the flow count value is less than the first threshold, under the back pressure of the downstream module, the flow count value in the cache is accumulated, including:

当所述流量计数值小于或等于所述第二阈值时,所述第一流水线标识和所述第二流水线标识均为所述第一预设值,在下游模块的反压作用下,所述缓存中的流量计数值累加;When the flow count value is less than or equal to the second threshold, the first pipeline identifier and the second pipeline identifier are both the first preset value, and under the back pressure of the downstream module, the The traffic count value in the cache is accumulated;

当所述流量计数值大于所述第二阈值且小于所述第一阈值时,所述第一流水线标识为所述第一预设值,所述第二流水线标识为第二预设值,所述流量计数值继续累加。When the flow count value is greater than the second threshold and less than the first threshold, the first pipeline is identified as the first preset value, and the second pipeline is identified as the second preset value, so The above flow counter value continues to accumulate.

其中,当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少,包括:Wherein, when the flow count value is accumulated to the first threshold, back pressure is applied to the upstream module to stop receiving the first target data, and when the back pressure of the downstream module is released, the The downstream module outputs the first target data in the cache, and the traffic count value decreases, including:

当所述流量计数值累加至所述第一阈值时,所述第一流水线标识和所述第二流水线标识均为所述第二预设值,对所述上游模块进行反压,停止接收所述第一目标数据;When the flow count value has accumulated to the first threshold, the first pipeline identifier and the second pipeline identifier are both the second preset value, and the upstream module is back-pressurized to stop receiving the the first target data;

在所述上游模块响应反压且所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少。When the upstream module responds to the back pressure and the back pressure of the downstream module is released, the first target data in the buffer is output to the downstream module, and the flow count value decreases.

其中,所述接收上游模块发送的第二目标数据之前,还包括:Wherein, before receiving the second target data sent by the upstream module, it also includes:

初始化第二流水线标识为第一预设值;Initialize the second pipeline identification as the first preset value;

当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加,包括:When the flow count value is less than or equal to the second threshold value, the flow count value is accumulated, including:

当所述流量计数值小于或等于所述第二阈值时,所述第二流水线标识为所述第一预设值,所述流量计数值累加;When the flow count value is less than or equal to the second threshold value, the second pipeline is identified as the first preset value, and the flow count value is accumulated;

当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少,包括:When the flow count value is greater than the second threshold, output the second target data in the cache to the downstream module, and when the flow output speed is greater than the flow input speed, the flow count value is reduced, including :

当所述流量计数值大于所述第二阈值时,所述第二流水线标识为所述第二预设值,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。When the flow count value is greater than the second threshold, the second pipeline is identified as the second preset value, and outputs the second target data in the cache to the downstream module, and when the flow output speed is greater than In case of flow input speed, the flow count value decreases.

为实现上述目的,本申请提供了一种流量控制装置,应用于目标模块,包括:In order to achieve the above purpose, the present application provides a flow control device, which is applied to the target module, including:

第一接收模块,用于接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;The first receiving module is configured to receive the first target data sent by the upstream module, and store the first target data in the cache; wherein, the flow of the first target data is greater than the preset flow;

第一累加模块,用于当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加;A first accumulation module, configured to accumulate the flow count value in the cache under the back pressure of the downstream module when the flow count value is less than the first threshold;

第一输出模块,用于当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;The first output module is configured to apply back pressure to the upstream module when the flow count value reaches the first threshold, stop receiving the first target data, and when the back pressure of the downstream module is released In this case, the first target data in the cache is output to the downstream module, and the traffic count value is reduced;

解除模块,用于当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值。A release module, configured to release the back pressure on the upstream module and continue to receive the first target data when the flow count value decreases to a second threshold; wherein the second threshold is smaller than the first threshold .

其中,还包括:Among them, also include:

第二接收模块,用于接收所述上游模块发送的第二目标数据,并将所述第二目标数据存入所述缓存,所述流量计数值累加;其中,所述第二目标数据的流量小于或等于所述预设流量;The second receiving module is configured to receive the second target data sent by the upstream module, store the second target data in the cache, and accumulate the traffic count value; wherein, the traffic of the second target data less than or equal to the preset flow rate;

第二累加模块,用于当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加;A second accumulation module, configured to accumulate the flow count value when the flow count value is less than or equal to the second threshold;

第二输出模块,用于当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。The second output module is configured to output the second target data in the cache to the downstream module when the flow count value is greater than the second threshold, and when the flow output speed is greater than the flow input speed, the The flow counter value decreases.

为实现上述目的,本申请提供了一种电子设备,包括:In order to achieve the above purpose, the application provides an electronic device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上述流量控制方法的步骤。A processor, configured to implement the steps of the above flow control method when executing the computer program.

为实现上述目的,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述流量控制方法的步骤。To achieve the above purpose, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the flow control method described above are implemented.

通过以上方案可知,本申请提供的一种流量控制方法,包括:接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加;当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值。It can be known from the above solutions that a flow control method provided by the present application includes: receiving the first target data sent by the upstream module, and storing the first target data in the cache; wherein, the flow rate of the first target data is greater than Preset flow rate; when the flow count value is less than the first threshold, under the back pressure of the downstream module, the flow count value in the cache is accumulated; when the flow count value is accumulated to the first threshold value, Putting back pressure on the upstream module, stopping receiving the first target data, and outputting the first target data in the cache to the downstream module when the back pressure of the downstream module is released, the traffic The count value decreases; when the flow count value decreases to a second threshold, the back pressure on the upstream module is released, and the first target data continues to be received; wherein, the second threshold is smaller than the first threshold.

在本申请中,采用FIFO高低水线方式的进行流量控制,即第一阈值为高流水线,第二阈值为低流水线。当缓存中的流量计数值小于第一阈值时,下游模块对目标模块进行反压,流量计数值累加。当流量计数值累加至第一阈值时,下游模块的反压解除,目标模块对上游模块进行反压,流量计数值减少。由此可见,本申请提供的流量控制方法,不会频繁进行反压,在反压解除时,可以至少缓存第一阈值与第二阈值的差值的数据,提升流量传输系统流量的稳定性和正确性。本申请还公开了一种流量控制装置及一种电子设备和一种计算机可读存储介质,同样能实现上述技术效果。In this application, flow control is performed in a FIFO high and low pipeline manner, that is, the first threshold is the high pipeline, and the second threshold is the low pipeline. When the flow count value in the buffer is smaller than the first threshold, the downstream module performs back pressure on the target module, and the flow count value is accumulated. When the flow count value reaches the first threshold value, the back pressure of the downstream module is released, the target module exerts back pressure on the upstream module, and the flow count value decreases. It can be seen that the flow control method provided by the present application does not frequently perform back pressure. When the back pressure is released, it can at least cache the data of the difference between the first threshold and the second threshold, thereby improving the stability and stability of the flow of the flow transmission system. correctness. The application also discloses a flow control device, an electronic device and a computer-readable storage medium, which can also achieve the above-mentioned technical effects.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the application.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work. The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the description, together with the following specific embodiments, are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the attached picture:

图1为根据一示例性实施例示出的一种流量控制方法的流程图;Fig. 1 is a flow chart showing a flow control method according to an exemplary embodiment;

图2为根据一示例性实施例示出的一种大流量输入示意图;Fig. 2 is a schematic diagram of a large flow input according to an exemplary embodiment;

图3为相关技术中采用FIFO空满标识方式的大流量输入示意图;FIG. 3 is a schematic diagram of a large flow input using the FIFO empty and full marking method in the related art;

图4为根据一示例性实施例示出的另一种流量控制方法的流程图;Fig. 4 is a flow chart showing another flow control method according to an exemplary embodiment;

图5为根据一示例性实施例示出的一种小流量输入示意图;Fig. 5 is a schematic diagram of a small flow input according to an exemplary embodiment;

图6为相关技术中采用FIFO空满标识方式的小流量输入示意图;Fig. 6 is a schematic diagram of small flow input using the FIFO empty and full marking method in the related art;

图7为根据一示例性实施例示出的一种流量控制装置的结构图;Fig. 7 is a structural diagram of a flow control device according to an exemplary embodiment;

图8为根据一示例性实施例示出的一种电子设备的结构图。Fig. 8 is a structural diagram of an electronic device according to an exemplary embodiment.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。另外,在本申请实施例中,“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application. In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.

本申请实施例公开了一种流量控制方法,提高了流量控制的稳定性。The embodiment of the present application discloses a flow control method, which improves the stability of the flow control.

参见图1,根据一示例性实施例示出的一种流量控制方法的流程图,如图1所示,包括:Referring to FIG. 1, a flow chart of a flow control method shown according to an exemplary embodiment, as shown in FIG. 1, includes:

S101:接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;S101: Receive the first target data sent by the upstream module, and store the first target data in the cache; wherein, the traffic of the first target data is greater than the preset traffic;

本实施例的执行主体为目标模块,目的为实现大流量控制,此处的大流量指流量大于预设流量的第一目标数据。在具体实施中,上游模块向目标模块发送第一目标数据,目标模块将其存入缓存,例如FIFO,目标模块向下游模块发送第一目标数据。The execution subject of this embodiment is the target module, and the purpose is to realize large flow control, where the large flow refers to the first target data whose flow rate is greater than the preset flow rate. In a specific implementation, the upstream module sends the first target data to the target module, the target module stores it in a cache, such as FIFO, and the target module sends the first target data to the downstream module.

S102:当所述缓存中的流量计数值小于第一阈值时,在下游模块的反压作用下,所述流量计数值累加;S102: When the flow count value in the buffer is smaller than the first threshold, under the back pressure of the downstream module, the flow count value is accumulated;

在本步骤中,缓存中的流量计数值从零开始累加,在小于第一阈值的情况下,下游模块对目标模块进行反压,目标模块未对上游模块进行反压,因此流量计数值持续累加。In this step, the traffic count value in the buffer starts to accumulate from zero. If it is less than the first threshold, the downstream module backpressures the target module, and the target module does not backpressure the upstream module, so the traffic count value continues to accumulate .

在本实施例中,可以以高低流水线标识替代相关技术中的空满标识,即利用第一流水线标识替代相关技术中的满标识(full),利用第二流水线标识替代相关技术中的空标识(empty)。具体的,所述接收上游模块发送的第一目标数据之前,还包括:初始化第一流水线标识和第二流水线标识为第一预设值;相应的,当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加,包括:当所述流量计数值小于或等于所述第二阈值时,所述第一流水线标识和所述第二流水线标识均为所述第一预设值,在下游模块的反压作用下,所述缓存中的流量计数值累加;当所述流量计数值大于所述第二阈值且小于所述第一阈值时,所述第一流水线标识为所述第一预设值,所述第二流水线标识为第二预设值,所述流量计数值继续累加。In this embodiment, the empty and full flags in the related art can be replaced with the high and low pipeline flags, that is, the first pipeline flag is used to replace the full flag (full) in the related technology, and the second pipeline flag is used to replace the empty flag ( empty). Specifically, before receiving the first target data sent by the upstream module, it also includes: initializing the first pipeline identification and the second pipeline identification to the first preset value; correspondingly, when the flow count value is less than the first threshold , under the back pressure of the downstream module, the traffic count value in the cache is accumulated, including: when the traffic count value is less than or equal to the second threshold, the first pipeline identifier and the second pipeline The flags are all the first preset value, and under the back pressure of the downstream module, the flow count value in the buffer is accumulated; when the flow count value is greater than the second threshold and less than the first threshold , the first pipeline is identified as the first preset value, the second pipeline is identified as the second preset value, and the flow count value continues to accumulate.

上述第一预设值可以为0,第二预设值可以为1。可以理解的是,缓存的队列深度(FIFO_DEPTH)≥第一阈值(high_wl_cfg)≥第二阈值(low_wl_cfg)≥0。在具体实施中,流量计数值(counter)≥high_wl_cfg时,第一流水线标识(high_wl_flag)=1,直到counter≤第二流水线标识(low_wl_cfg)时,high_wl_flag=0。当counter>low_wl_cfg时,第二流水线标识(low_wl_flag)=1,直到counter=0时,low_wl_flag=0。The above-mentioned first preset value may be 0, and the second preset value may be 1. It can be understood that the cached queue depth (FIFO_DEPTH)≥the first threshold (high_wl_cfg)≥the second threshold (low_wl_cfg)≥0. In a specific implementation, when the flow count value (counter) ≥ high_wl_cfg, the first pipeline flag (high_wl_flag) = 1, until counter ≤ the second pipeline flag (low_wl_cfg), high_wl_flag = 0. When counter>low_wl_cfg, the second pipeline flag (low_wl_flag)=1, until counter=0, low_wl_flag=0.

S103:当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;S103: When the flow count value has accumulated to the first threshold, apply back pressure to the upstream module, stop receiving the first target data, and send to the downstream module when the back pressure of the downstream module is released The downstream module outputs the first target data in the cache, and the traffic count value decreases;

在本步骤中,流量计数值累加至第一阈值,目标模块对上游模块进行反压,下游模块对目标模块解除反压,即目标模块停止从上游模块接收第一目标数据,开始向下游模块发送缓存中的第一目标数据。In this step, the flow count value is accumulated to the first threshold, the target module exerts back pressure on the upstream module, and the downstream module releases the back pressure on the target module, that is, the target module stops receiving the first target data from the upstream module and starts sending to the downstream module The first target data in the cache.

进一步的,考虑到上游模块需要对目标模块的反压进行响应,存在响应时间,即当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少,包括:当所述流量计数值累加至所述第一阈值时,所述第一流水线标识和所述第二流水线标识均为所述第二预设值,对所述上游模块进行反压,停止接收所述第一目标数据;在所述上游模块响应反压且所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少。Further, considering that the upstream module needs to respond to the back pressure of the target module, there is a response time, that is, when the flow count value has accumulated to the first threshold, the upstream module will be back pressured and stop receiving the For the first target data, when the back pressure of the downstream module is released, output the first target data in the cache to the downstream module, and the flow count value decreases, including: when the flow count value is accumulated When the first threshold is reached, the first pipeline identifier and the second pipeline identifier are both the second preset value, and the upstream module is back pressured to stop receiving the first target data; When the upstream module responds to the back pressure and the back pressure of the downstream module is released, output the first target data in the cache to the downstream module, and the flow count value decreases.

S104:当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值。S104: When the flow count value decreases to a second threshold, release the back pressure on the upstream module, and continue to receive the first target data; wherein, the second threshold is smaller than the first threshold.

在本步骤中,流量计数值减少至第二阈值,解除对上游模块的反压,继续从上游模块接收第一目标数据。可以理解的是,在下游模块立刻对目标模块进行持续反压的极端情况下,上游模块还可以持续向目标模块输入第一阈值与第二阈值的差值的数据才会收到反压信号。In this step, the flow count value decreases to the second threshold, the back pressure on the upstream module is released, and the first target data is continued to be received from the upstream module. It can be understood that, in the extreme case where the downstream module immediately continues to backpressure the target module, the upstream module can also continuously input the data of the difference between the first threshold and the second threshold to the target module before receiving the backpressure signal.

下面以FIFO_DEPTH=16,high_wl_cfg=12,low_wl_cfg=4进行说明,本实施例提供的技术方案可以包括以下步骤:In the following, FIFO_DEPTH=16, high_wl_cfg=12, low_wl_cfg=4 will be described, and the technical solution provided by this embodiment may include the following steps:

步骤A:counter=0。上游模块有大流量输入缓存进FIFO,下游模块对FIFO反压。counter计数值累加;Step A: counter=0. The upstream module has a large flow input buffer into the FIFO, and the downstream module backpressures the FIFO. The counter count value is accumulated;

步骤B:counter=5,counter>low_wl_cfg,所以low_wl_flag=1;上游模块有大流量输入缓存进FIFO,counter计数值继续累加;Step B: counter=5, counter>low_wl_cfg, so low_wl_flag=1; the upstream module has a large flow input buffer into the FIFO, and the counter count value continues to accumulate;

步骤C:counter=12,counter>high_wl_cfg,所以high_wl_flag=1;本模块对上游模块进行反压,上游模块对反压处理不及时,流量输出1个后响应反压,停止输出,counter=13;Step C: counter=12, counter>high_wl_cfg, so high_wl_flag=1; this module performs back pressure on the upstream module, the upstream module does not deal with the back pressure in time, responds to the back pressure after outputting 1 flow, stops the output, counter=13;

步骤D:下游模块对本级模块的反压间歇性解除,本级模块向下游模块输出流量,counter计数值变小,counter=10,counter<high_wl_cfg,但是high_wl_flag=1,保持对上游模块的反压;Step D: The back pressure of the downstream module on the current module is released intermittently, the current module outputs flow to the downstream module, the counter count value becomes smaller, counter=10, counter<high_wl_cfg, but high_wl_flag=1, maintain the back pressure on the upstream module ;

步骤E:下游模块对本级模块的反压间歇性解除,本级模块向下游模块输出流量,counter计数值变小,counter=4,counter<=low_wl_cfg,high_wl_flag=0,对上游模块的反压解除,上游流量可以向本级模块输出;在下游模块立马对本级模块进行持续反压的极端情况下,上游模块可以持续输入8个流量才会收到反压信号,停止输出;Step E: The back pressure of the downstream module on the current module is intermittently released, the current module outputs flow to the downstream module, the counter count value becomes smaller, counter=4, counter<=low_wl_cfg, high_wl_flag=0, the back pressure on the upstream module is released , the upstream flow can be output to the current module; in the extreme case where the downstream module immediately exerts continuous back pressure on the current module, the upstream module can continuously input 8 flows before receiving the back pressure signal and stopping the output;

步骤F:重复步骤B到步骤E。如果过程中,counter=0,则重复步骤A到步骤E。Step F: Repeat Step B to Step E. If counter=0 during the process, repeat steps A to E.

在大流量出口存在反压的情况下,上述采用FIFO高低水线方式的流量输入示意图如图2所示,相关技术中采用FIFO空满标识方式的流量输入示意图如图3所示。可见,采用FIFO空满标识方式,对上游模块反压频繁,流量输入通断频繁切换,且每次只能输入少量流量;采用FIFO高低水线方式,不会频繁的反压,反压解除时,可以至少缓存high_wl_cfg-low_wl_cfg的流量,且至少能缓存FIFO_DEPTH-high_wl_cfg反压响应不及时流量。保证流量稳定性的同时,还可以提供一定的流量系统正确性。需要说明的是,上述为单级缓存带来的有益效果,而在流量处理系统中,缓存级数是比较多,累积的有益效果会更加明显。In the case of back pressure at the large flow outlet, the flow input schematic diagram using the FIFO high and low waterline method is shown in Figure 2, and the flow input schematic diagram using the FIFO empty and full mark method in the related technology is shown in Figure 3. It can be seen that the FIFO empty and full mark method is adopted, the upstream module is frequently back-pressed, the flow input is frequently switched on and off, and only a small amount of flow can be input each time; the FIFO high and low waterline method is adopted, and there is no frequent back-pressure, when the back-pressure is released , at least high_wl_cfg-low_wl_cfg traffic can be cached, and at least FIFO_DEPTH-high_wl_cfg backpressure response untimely traffic can be cached. While ensuring flow stability, it can also provide certain flow system correctness. It should be noted that the beneficial effect brought by the above-mentioned single-level cache, but in the traffic processing system, the number of cache levels is relatively large, and the cumulative beneficial effect will be more obvious.

在本申请实施例中,采用FIFO高低水线方式的进行流量控制,即第一阈值为高流水线,第二阈值为低流水线。当缓存中的流量计数值小于第一阈值时,下游模块对目标模块进行反压,流量计数值累加。当流量计数值累加至第一阈值时,下游模块的反压解除,目标模块对上游模块进行反压,流量计数值减少。由此可见,本申请实施例提供的流量控制方法,不会频繁进行反压,在反压解除时,可以至少缓存第一阈值与第二阈值的差值的数据,提升流量传输系统流量的稳定性和正确性。In the embodiment of the present application, the FIFO high and low pipeline method is adopted for flow control, that is, the first threshold is the high pipeline, and the second threshold is the low pipeline. When the flow count value in the buffer is smaller than the first threshold, the downstream module performs back pressure on the target module, and the flow count value is accumulated. When the flow count value reaches the first threshold value, the back pressure of the downstream module is released, the target module exerts back pressure on the upstream module, and the flow count value decreases. It can be seen that the flow control method provided by the embodiment of the present application does not perform frequent back pressure. When the back pressure is released, at least the data of the difference between the first threshold and the second threshold can be cached to improve the stability of the flow of the flow transmission system. sex and correctness.

下面介绍小流量控制的技术方案,具体的:The technical solution for small flow control is introduced below, specifically:

参见图4,根据一示例性实施例示出的另一种流量控制方法的流程图,如图4所示,包括:Referring to FIG. 4 , a flow chart of another flow control method shown according to an exemplary embodiment, as shown in FIG. 4 , includes:

S201:接收所述上游模块发送的第二目标数据,并将所述第二目标数据存入所述缓存,所述流量计数值累加;其中,所述第二目标数据的流量小于或等于所述预设流量;S201: Receive the second target data sent by the upstream module, store the second target data in the cache, and accumulate the traffic count value; wherein, the traffic of the second target data is less than or equal to the preset traffic;

本实施例的执行主体为目标模块,目的为实现小流量控制,此处的大流量指流量小于或等于预设流量的第二目标数据。在具体实施中,上游模块向目标模块发送第二目标数据,目标模块将其存入缓存,目标模块向下游模块发送第二目标数据。The execution subject of this embodiment is the target module, and the purpose is to realize the small flow control, and the large flow here refers to the second target data whose flow rate is less than or equal to the preset flow rate. In a specific implementation, the upstream module sends the second target data to the target module, the target module stores it in the cache, and the target module sends the second target data to the downstream module.

S202:当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加;S202: When the flow count value is less than or equal to the second threshold, accumulate the flow count value;

在本步骤中,缓存中的流量计数值从零开始累加,在小于第一阈值的情况下,流量计数值持续累加。In this step, the traffic count value in the buffer starts to accumulate from zero, and if the traffic count value is less than the first threshold, the traffic count value continues to accumulate.

S203:当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。S203: When the flow count value is greater than the second threshold, output the second target data in the cache to the downstream module, and decrease the flow count value when the flow output speed is greater than the flow input speed .

在本步骤中,流量计数值大于第二阈值,目标模块开始向下游模块发送缓存中的第二目标数据。由于流量输出速度大于流量输入速度,流量计数值减少。当所述流量计数值为零时,停止输出数据。In this step, the flow count value is greater than the second threshold, and the target module starts to send the second target data in the cache to the downstream module. Since the flow output speed is greater than the flow input speed, the flow count value decreases. When the flow count value is zero, stop outputting data.

优选的,所述接收上游模块发送的第二目标数据之前,还包括:初始化第二流水线标识为第一预设值;当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加,包括:当所述流量计数值小于或等于所述第二阈值时,所述第二流水线标识为所述第一预设值,所述流量计数值累加;当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少,包括:当所述流量计数值大于所述第二阈值时,所述第二流水线标识为所述第二预设值,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。Preferably, before receiving the second target data sent by the upstream module, it further includes: initializing the second pipeline identification as the first preset value; when the flow count value is less than or equal to the second threshold, the flow Count value accumulation, including: when the flow count value is less than or equal to the second threshold value, the second pipeline is identified as the first preset value, and the flow count value is accumulated; when the flow count value When it is greater than the second threshold, output the second target data in the cache to the downstream module, and when the flow output speed is greater than the flow input speed, the flow count value is reduced, including: when the flow count When the value is greater than the second threshold, the second pipeline is identified as the second preset value, and the second target data in the cache is output to the downstream module, and when the flow output speed is greater than the flow input speed Down, the flow count value decreases.

下面以FIFO_DEPTH=16,high_wl_cfg=12,low_wl_cfg=4进行说明,本实施例提供的技术方案可以包括以下步骤:In the following, FIFO_DEPTH=16, high_wl_cfg=12, low_wl_cfg=4 will be described, and the technical solution provided by this embodiment may include the following steps:

步骤A:counter=0。上游模块有小流量输入缓存进FIFO,counter计数值累加;Step A: counter=0. The upstream module has a small flow input buffer into the FIFO, and the counter count value is accumulated;

步骤B:counter=5,counter>low_wl_cfg,所以low_wl_flag=1;本模块输出流量到下游模块,输出速率>输入速率,counter计数值减小;Step B: counter=5, counter>low_wl_cfg, so low_wl_flag=1; this module outputs traffic to the downstream module, the output rate>input rate, and the counter count value decreases;

步骤C:counter=0,low_wl_flag=0;本模块停止流量输出;Step C: counter=0, low_wl_flag=0; this module stops flow output;

步骤D:重复步骤A到步骤C。Step D: Repeat Step A to Step C.

在大流量出口存在反压的情况下,上述采用FIFO高低水线方式的流量输入示意图如图5所示,相关技术中采用FIFO空满标识方式的流量输入示意图如图6所示。可见,采用FIFO空满标识方式,对下游模块,流量输出通断频繁切换,且每次只能输出少量流量;采用FIFO高低水线方式,不会频繁的输出,且每次可以至少输出low_wl_cfg的流量,保证流量稳定性。需要说明的是,上述为单级缓存带来的有益效果,而在流量处理系统中,缓存级数是比较多,累积的有益效果会更加明显。In the case of back pressure at the large flow outlet, the flow input schematic diagram using the FIFO high and low waterline method is shown in Figure 5, and the flow input schematic diagram using the FIFO empty and full mark method in the related technology is shown in Figure 6. It can be seen that with the FIFO empty and full mark method, the flow output is frequently switched on and off for the downstream module, and only a small amount of flow can be output each time; the FIFO high and low watermark method is used, and the output will not be frequent, and at least low_wl_cfg can be output each time Flow, to ensure flow stability. It should be noted that the beneficial effect brought by the above-mentioned single-level cache, but in the traffic processing system, the number of cache levels is relatively large, and the cumulative beneficial effect will be more obvious.

下面对本申请实施例提供的一种流量控制装置进行介绍,下文描述的一种流量控制装置与上文描述的一种流量控制方法可以相互参照。A flow control device provided in an embodiment of the present application is introduced below, and a flow control device described below and a flow control method described above may refer to each other.

参见图7,根据一示例性实施例示出的一种流量控制装置的结构图,如图7所示,包括:Referring to FIG. 7 , a structural diagram of a flow control device according to an exemplary embodiment, as shown in FIG. 7 , includes:

第一接收模块701,用于接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;The first receiving module 701 is configured to receive the first target data sent by the upstream module, and store the first target data in the cache; wherein, the traffic of the first target data is greater than the preset traffic;

第一累加模块702,用于当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加;The first accumulation module 702 is configured to accumulate the flow count value in the cache under the back pressure of the downstream module when the flow count value is less than the first threshold;

第一输出模块703,用于当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;The first output module 703 is configured to apply back pressure to the upstream module when the flow count value reaches the first threshold, stop receiving the first target data, and release the back pressure on the downstream module In the case of , output the first target data in the cache to the downstream module, and the traffic count value decreases;

解除模块704,用于当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值。The release module 704 is configured to release the back pressure on the upstream module and continue to receive the first target data when the flow count value decreases to a second threshold; wherein the second threshold is smaller than the first threshold.

在本申请实施例中,采用FIFO高低水线方式的进行流量控制,即第一阈值为高流水线,第二阈值为低流水线。当缓存中的流量计数值小于第一阈值时,下游模块对目标模块进行反压,流量计数值累加。当流量计数值累加至第一阈值时,下游模块的反压解除,目标模块对上游模块进行反压,流量计数值减少。由此可见,本申请实施例提供的流量控制装置,不会频繁进行反压,在反压解除时,可以至少缓存第一阈值与第二阈值的差值的数据,提升流量传输系统流量的稳定性和正确性。In the embodiment of the present application, the FIFO high and low pipeline method is adopted for flow control, that is, the first threshold is the high pipeline, and the second threshold is the low pipeline. When the flow count value in the buffer is smaller than the first threshold, the downstream module performs back pressure on the target module, and the flow count value is accumulated. When the flow count value is accumulated to the first threshold, the back pressure of the downstream module is released, the target module exerts back pressure on the upstream module, and the flow count value decreases. It can be seen that the flow control device provided by the embodiment of the present application does not perform frequent back pressure, and can at least buffer the data of the difference between the first threshold and the second threshold when the back pressure is released, improving the stability of the flow of the flow transmission system sex and correctness.

在上述实施例的基础上,作为一种优选实施方式,还包括:On the basis of the foregoing embodiments, as a preferred implementation manner, it also includes:

第二接收模块,用于接收所述上游模块发送的第二目标数据,并将所述第二目标数据存入所述缓存,所述流量计数值累加;其中,所述第二目标数据的流量小于或等于所述预设流量;The second receiving module is configured to receive the second target data sent by the upstream module, store the second target data in the cache, and accumulate the traffic count value; wherein, the traffic of the second target data less than or equal to the preset flow rate;

第二累加模块,用于当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加;A second accumulation module, configured to accumulate the flow count value when the flow count value is less than or equal to the second threshold;

第二输出模块,用于当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。The second output module is configured to output the second target data in the cache to the downstream module when the flow count value is greater than the second threshold, and when the flow output speed is greater than the flow input speed, the The flow counter value decreases.

在上述实施例的基础上,作为一种优选实施方式,还包括:On the basis of the foregoing embodiments, as a preferred implementation manner, it also includes:

停止模块,用于当所述流量计数值为零时,停止输出数据。A stop module, configured to stop outputting data when the flow count value is zero.

在上述实施例的基础上,作为一种优选实施方式,还包括:On the basis of the foregoing embodiments, as a preferred implementation manner, it also includes:

第一初始化模块,用于初始化第一流水线标识和第二流水线标识为第一预设值;The first initialization module is used to initialize the first pipeline identifier and the second pipeline identifier to a first preset value;

相应的,所述第一累加模块702包括:Correspondingly, the first accumulation module 702 includes:

第一累加单元,用于当所述流量计数值小于或等于所述第二阈值时,所述第一流水线标识和所述第二流水线标识均为所述第一预设值,在下游模块的反压作用下,所述缓存中的流量计数值累加;The first accumulating unit is configured to: when the flow count value is less than or equal to the second threshold value, the first pipeline identifier and the second pipeline identifier are both the first preset value, and in the downstream module Under the action of back pressure, the traffic count value in the cache is accumulated;

第二累加单元,用于当所述流量计数值大于所述第二阈值且小于所述第一阈值时,所述第一流水线标识为所述第一预设值,所述第二流水线标识为第二预设值,所述流量计数值继续累加。The second accumulating unit is configured to, when the flow count value is greater than the second threshold and less than the first threshold, identify the first pipeline as the first preset value, and identify the second pipeline as The second preset value, the flow count value continues to accumulate.

在上述实施例的基础上,作为一种优选实施方式,所述第一输出模块703包括:On the basis of the above embodiments, as a preferred implementation manner, the first output module 703 includes:

停止单元,用于当所述流量计数值累加至所述第一阈值时,所述第一流水线标识和所述第二流水线标识均为所述第二预设值,对所述上游模块进行反压,停止接收所述第一目标数据;a stop unit, configured to react to the upstream module when the flow count value has accumulated to the first threshold, and the first pipeline identifier and the second pipeline identifier are both the second preset value. press, stop receiving the first target data;

输出单元,用于在所述上游模块响应反压且所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少。An output unit, configured to output the first target data in the cache to the downstream module when the upstream module responds to the back pressure and the back pressure of the downstream module is released, and the flow count value decreases.

在上述实施例的基础上,作为一种优选实施方式,还包括:On the basis of the foregoing embodiments, as a preferred implementation manner, it also includes:

第二初始化模块,用于初始化第二流水线标识为第一预设值;The second initialization module is used to initialize the second pipeline identification as the first preset value;

所述第二累加模块具体为当所述流量计数值小于或等于所述第二阈值时,所述第二流水线标识为所述第一预设值,所述流量计数值累加的模块;The second accumulation module is specifically a module for accumulating the flow count value when the flow count value is less than or equal to the second threshold, the second pipeline is identified as the first preset value;

所述第二输出模块具体为当所述流量计数值大于所述第二阈值时,所述第二流水线标识为所述第二预设值,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少的模块。The second output module is specifically that when the flow count value is greater than the second threshold, the second pipeline is identified as the second preset value, and outputs the second value in the cache to the downstream module. Target data, when the flow output speed is greater than the flow input speed, the flow count value is reduced by the module.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备,图8为根据一示例性实施例示出的一种电子设备的结构图,如图8所示,电子设备包括:Based on the hardware implementation of the above-mentioned program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device. FIG. 8 is a structural diagram of an electronic device according to an exemplary embodiment, as shown in As shown in Figure 8, the electronic equipment includes:

通信接口1,能够与其它设备比如网络设备等进行信息交互;Communication interface 1, which can exchange information with other devices such as network devices;

处理器2,与通信接口1连接,以实现与其它设备进行信息交互,用于运行计算机程序时,执行上述一个或多个技术方案提供的流量控制方法。而所述计算机程序存储在存储器3上。The processor 2 is connected to the communication interface 1 to realize information exchange with other devices, and is used to execute the flow control method provided by one or more of the above technical solutions when running a computer program. Instead, the computer program is stored on the memory 3 .

当然,实际应用时,电子设备中的各个组件通过总线系统4耦合在一起。可理解,总线系统4用于实现这些组件之间的连接通信。总线系统4除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8中将各种总线都标为总线系统4。Of course, in actual application, various components in the electronic device are coupled together through the bus system 4 . It can be understood that the bus system 4 is used to realize connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the various buses are labeled as bus system 4 in FIG. 8 .

本申请实施例中的存储器3用于存储各种类型的数据以支持电子设备的操作。这些数据的示例包括:用于在电子设备上操作的任何计算机程序。The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on an electronic device.

可以理解,存储器3可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器2旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 3 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Wherein, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory), Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (CD-ROM, Compact Disc Read-Only Memory); the magnetic surface storage can be disk storage or tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) . The memory 2 described in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.

上述本申请实施例揭示的方法可以应用于处理器2中,或者由处理器2实现。处理器2可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器2可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器3,处理器2读取存储器3中的程序,结合其硬件完成前述方法的步骤。The methods disclosed in the foregoing embodiments of the present application may be applied to the processor 2 or implemented by the processor 2 . Processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 2 or instructions in the form of software. The aforementioned processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 2 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in the storage medium, and the storage medium is located in the memory 3, and the processor 2 reads the program in the memory 3, and completes the steps of the foregoing method in combination with its hardware.

处理器2执行所述程序时实现本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present application are implemented, and details are not repeated here for the sake of brevity.

在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器3,上述计算机程序可由处理器2执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory 3 storing a computer program, and the above-mentioned computer program can be executed by the processor 2, To complete the steps described in the aforementioned method. The computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: various media that can store program codes such as removable storage devices, ROM, RAM, magnetic disks or optical disks.

或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for Make an electronic device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media capable of storing program codes such as removable storage devices, ROM, RAM, magnetic disks or optical disks.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (9)

1.一种流量控制方法,其特征在于,应用于目标模块,包括:1. A flow control method, characterized in that being applied to a target module, comprising: 接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;receiving the first target data sent by the upstream module, and storing the first target data in the cache; wherein, the flow of the first target data is greater than the preset flow; 当所述缓存中的流量计数值小于第一阈值时,在下游模块的反压作用下,所述流量计数值累加;When the flow count value in the cache is less than the first threshold, under the back pressure of the downstream module, the flow count value is accumulated; 当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;When the flow count value has accumulated to the first threshold, back pressure is applied to the upstream module, and the first target data is stopped to be received; when the back pressure of the downstream module is released, the The module outputs the first target data in the cache, and the traffic count value decreases; 当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值;When the flow count value decreases to a second threshold, the back pressure on the upstream module is released, and the first target data continues to be received; wherein, the second threshold is smaller than the first threshold; 所述接收上游模块发送的第一目标数据之前,还包括:Before receiving the first target data sent by the upstream module, it also includes: 初始化第一流水线标识和第二流水线标识为第一预设值;Initializing the first pipeline identifier and the second pipeline identifier as a first preset value; 相应的,当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加,包括:Correspondingly, when the flow count value is less than the first threshold, under the back pressure of the downstream module, the flow count value in the cache is accumulated, including: 当所述流量计数值小于或等于所述第二阈值时,所述第一流水线标识和所述第二流水线标识均为所述第一预设值,在下游模块的反压作用下,所述缓存中的流量计数值累加;When the flow count value is less than or equal to the second threshold, the first pipeline identifier and the second pipeline identifier are both the first preset value, and under the back pressure of the downstream module, the The traffic count value in the cache is accumulated; 当所述流量计数值大于所述第二阈值且小于所述第一阈值时,所述第一流水线标识为所述第一预设值,所述第二流水线标识为第二预设值,所述流量计数值继续累加。When the flow count value is greater than the second threshold and less than the first threshold, the first pipeline is identified as the first preset value, and the second pipeline is identified as the second preset value, so The above flow counter value continues to accumulate. 2.根据权利要求1所述流量控制方法,其特征在于,还包括:2. The flow control method according to claim 1, further comprising: 接收所述上游模块发送的第二目标数据,并将所述第二目标数据存入所述缓存,所述流量计数值累加;其中,所述第二目标数据的流量小于或等于所述预设流量;receiving the second target data sent by the upstream module, storing the second target data in the cache, and accumulating the traffic count value; wherein, the traffic of the second target data is less than or equal to the preset flow; 当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加;When the flow count value is less than or equal to the second threshold value, the flow count value is accumulated; 当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。When the flow count value is greater than the second threshold, the second target data in the cache is output to the downstream module, and when the flow output speed is greater than the flow input speed, the flow count value is decreased. 3.根据权利要求1所述流量控制方法,其特征在于,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少之后,还包括:3. The flow control method according to claim 1, wherein, when the flow output speed is greater than the flow input speed, after the flow count value is reduced, further comprising: 当所述流量计数值为零时,停止输出数据。When the flow count value is zero, stop outputting data. 4.根据权利要求1所述流量控制方法,其特征在于,当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少,包括:4. The flow control method according to claim 1, wherein when the flow count value reaches the first threshold value, back pressure is applied to the upstream module, and the receiving of the first target data is stopped. When the back pressure of the downstream module is released, the first target data in the cache is output to the downstream module, and the flow count value is reduced, including: 当所述流量计数值累加至所述第一阈值时,所述第一流水线标识和所述第二流水线标识均为所述第二预设值,对所述上游模块进行反压,停止接收所述第一目标数据;When the flow count value has accumulated to the first threshold, the first pipeline identifier and the second pipeline identifier are both the second preset value, and the upstream module is back-pressurized to stop receiving the the first target data; 在所述上游模块响应反压且所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少。When the upstream module responds to the back pressure and the back pressure of the downstream module is released, the first target data in the buffer is output to the downstream module, and the flow count value decreases. 5.根据权利要求2所述流量控制方法,其特征在于,所述接收上游模块发送的第二目标数据之前,还包括:5. The flow control method according to claim 2, wherein, before receiving the second target data sent by the upstream module, further comprising: 初始化第二流水线标识为第一预设值;Initialize the second pipeline identification as the first preset value; 当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加,包括:When the flow count value is less than or equal to the second threshold value, the flow count value is accumulated, including: 当所述流量计数值小于或等于所述第二阈值时,所述第二流水线标识为所述第一预设值,所述流量计数值累加;When the flow count value is less than or equal to the second threshold value, the second pipeline is identified as the first preset value, and the flow count value is accumulated; 当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少,包括:When the flow count value is greater than the second threshold, output the second target data in the cache to the downstream module, and when the flow output speed is greater than the flow input speed, the flow count value is reduced, including : 当所述流量计数值大于所述第二阈值时,所述第二流水线标识为所述第二预设值,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。When the flow count value is greater than the second threshold, the second pipeline is identified as the second preset value, and outputs the second target data in the cache to the downstream module, and when the flow output speed is greater than In case of flow input speed, the flow count value decreases. 6.一种流量控制装置,其特征在于,应用于目标模块,包括:6. A flow control device, characterized in that it is applied to a target module, comprising: 第一接收模块,用于接收上游模块发送的第一目标数据,并将所述第一目标数据存入缓存;其中,所述第一目标数据的流量大于预设流量;The first receiving module is configured to receive the first target data sent by the upstream module, and store the first target data in the cache; wherein, the flow of the first target data is greater than the preset flow; 第一累加模块,用于当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加;A first accumulation module, configured to accumulate the flow count value in the cache under the back pressure of the downstream module when the flow count value is less than the first threshold; 第一输出模块,用于当所述流量计数值累加至所述第一阈值时,对所述上游模块进行反压,停止接收所述第一目标数据,在所述下游模块的反压解除的情况下,向所述下游模块输出所述缓存中的第一目标数据,所述流量计数值减少;The first output module is configured to apply back pressure to the upstream module when the flow count value reaches the first threshold, stop receiving the first target data, and when the back pressure of the downstream module is released In this case, the first target data in the cache is output to the downstream module, and the traffic count value is reduced; 解除模块,用于当所述流量计数值减少至第二阈值时,对所述上游模块的反压解除,继续接收所述第一目标数据;其中,所述第二阈值小于所述第一阈值;A release module, configured to release the back pressure on the upstream module and continue to receive the first target data when the flow count value decreases to a second threshold; wherein the second threshold is smaller than the first threshold ; 所述接收上游模块发送的第一目标数据之前,还包括:Before receiving the first target data sent by the upstream module, it also includes: 初始化第一流水线标识和第二流水线标识为第一预设值;Initializing the first pipeline identifier and the second pipeline identifier as a first preset value; 相应的,当所述流量计数值小于第一阈值时,在下游模块的反压作用下,所述缓存中的流量计数值累加,包括:Correspondingly, when the flow count value is less than the first threshold, under the back pressure of the downstream module, the flow count value in the cache is accumulated, including: 当所述流量计数值小于或等于所述第二阈值时,所述第一流水线标识和所述第二流水线标识均为所述第一预设值,在下游模块的反压作用下,所述缓存中的流量计数值累加;When the flow count value is less than or equal to the second threshold, the first pipeline identifier and the second pipeline identifier are both the first preset value, and under the back pressure of the downstream module, the The traffic count value in the cache is accumulated; 当所述流量计数值大于所述第二阈值且小于所述第一阈值时,所述第一流水线标识为所述第一预设值,所述第二流水线标识为第二预设值,所述流量计数值继续累加。When the flow count value is greater than the second threshold and less than the first threshold, the first pipeline is identified as the first preset value, and the second pipeline is identified as the second preset value, so The above flow counter value continues to accumulate. 7.根据权利要求6所述流量控制装置,其特征在于,还包括:7. The flow control device according to claim 6, further comprising: 第二接收模块,用于接收所述上游模块发送的第二目标数据,并将所述第二目标数据存入所述缓存,所述流量计数值累加;其中,所述第二目标数据的流量小于或等于所述预设流量;The second receiving module is configured to receive the second target data sent by the upstream module, store the second target data in the cache, and accumulate the traffic count value; wherein, the traffic of the second target data less than or equal to the preset flow rate; 第二累加模块,用于当所述流量计数值小于或等于所述第二阈值时,所述流量计数值累加;A second accumulation module, configured to accumulate the flow count value when the flow count value is less than or equal to the second threshold; 第二输出模块,用于当所述流量计数值大于所述第二阈值时,向所述下游模块输出所述缓存中的第二目标数据,在流量输出速度大于流量输入速度的情况下,所述流量计数值减少。The second output module is configured to output the second target data in the cache to the downstream module when the flow count value is greater than the second threshold, and when the flow output speed is greater than the flow input speed, the The flow counter value decreases. 8.一种电子设备,其特征在于,包括:8. An electronic device, characterized in that it comprises: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述流量控制方法的步骤。A processor, configured to implement the steps of the flow control method according to any one of claims 1 to 5 when executing the computer program. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述流量控制方法的步骤。9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the flow control according to any one of claims 1 to 5 is realized method steps.
CN202011352372.2A 2020-11-26 2020-11-26 A flow control method, device, electronic equipment, and storage medium Active CN112328202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011352372.2A CN112328202B (en) 2020-11-26 2020-11-26 A flow control method, device, electronic equipment, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011352372.2A CN112328202B (en) 2020-11-26 2020-11-26 A flow control method, device, electronic equipment, and storage medium

Publications (2)

Publication Number Publication Date
CN112328202A CN112328202A (en) 2021-02-05
CN112328202B true CN112328202B (en) 2023-02-28

Family

ID=74308039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011352372.2A Active CN112328202B (en) 2020-11-26 2020-11-26 A flow control method, device, electronic equipment, and storage medium

Country Status (1)

Country Link
CN (1) CN112328202B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113378194B (en) * 2021-06-09 2023-02-28 罗克佳华(重庆)科技有限公司 Encryption and decryption operation acceleration method, system and storage medium
CN114296681B (en) * 2021-12-23 2025-07-25 山东云海国创云计算装备产业创新中心有限公司 Flow control method, device and medium thereof
CN114338564B (en) * 2021-12-29 2023-11-10 苏州盛科通信股份有限公司 Flow transmission control method and device, storage medium and electronic device
CN115022243B (en) * 2022-06-28 2023-05-26 绿盟科技集团股份有限公司 Data flow control method, device and system, electronic equipment and storage medium
CN118540282B (en) * 2024-07-26 2025-04-29 济南浪潮数据技术有限公司 Network traffic control method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5305463A (en) * 1991-05-17 1994-04-19 Theseus Research Null convention logic system
CN103225074A (en) * 2012-01-25 2013-07-31 东京毅力科创株式会社 Processing apparatus and process status checking method
CN104917688A (en) * 2014-03-12 2015-09-16 中国科学院声学研究所 Code rate control method of streaming media gateway
CN107342947A (en) * 2016-04-28 2017-11-10 华为技术有限公司 Flow shaping method, controller, the network equipment and traffic shaping system
CN110958989A (en) * 2017-07-19 2020-04-03 气体运输技术公司 Device for producing and distributing nitrogen, in particular for a liquefied gas vessel

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060013135A1 (en) * 2004-06-21 2006-01-19 Schmidt Steven G Flow control in a switch
US7613848B2 (en) * 2006-06-13 2009-11-03 International Business Machines Corporation Dynamic stabilization for a stream processing system
JP5341623B2 (en) * 2009-06-08 2013-11-13 キヤノン株式会社 Data processing apparatus, data processing method and program
US11323337B2 (en) * 2011-09-27 2022-05-03 Comcast Cable Communications, Llc Resource measurement and management
US8611355B1 (en) * 2013-09-03 2013-12-17 tw telecom holdings inc. Buffer-less virtual routing
AU2016202813A1 (en) * 2015-08-21 2017-03-09 Wisetech Global Limited Methods and systems for task time estimate re-asssessment in a task scheduling system
CN105841753B (en) * 2016-05-26 2019-01-15 中国水利水电科学研究院 A kind of acquisition methods of canal capacity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5305463A (en) * 1991-05-17 1994-04-19 Theseus Research Null convention logic system
CN103225074A (en) * 2012-01-25 2013-07-31 东京毅力科创株式会社 Processing apparatus and process status checking method
CN104917688A (en) * 2014-03-12 2015-09-16 中国科学院声学研究所 Code rate control method of streaming media gateway
CN107342947A (en) * 2016-04-28 2017-11-10 华为技术有限公司 Flow shaping method, controller, the network equipment and traffic shaping system
CN110958989A (en) * 2017-07-19 2020-04-03 气体运输技术公司 Device for producing and distributing nitrogen, in particular for a liquefied gas vessel

Also Published As

Publication number Publication date
CN112328202A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN112328202B (en) A flow control method, device, electronic equipment, and storage medium
CN111742291B (en) Method and system for user space storage I/O stack with user space flash translation layer
CN106371807B (en) A kind of method and device of extensible processor instruction set
CN105912307B (en) A kind of Flash controller datas processing method and processing device
CN113190405B (en) Node health detection method and device, electronic equipment and storage medium
WO2021135272A1 (en) Memory anomaly processing method and system, electronic device, and storage medium
CN109997117B (en) Technique for incorporating doorbell in request message
CN104205078A (en) Remote direct memory access with reduced latency
CN116431099B (en) Data processing method, multiple input-output queue circuit and storage medium
CN116633886A (en) Data transmission method, network card of data receiving end, electronic equipment and storage medium
CN109983749B (en) Computing device and method for increasing data transfer speed
CN115712394A (en) Data reading and writing method and device, computer equipment and readable storage medium
CN112506827A (en) Data transmission method, device and equipment based on ADMA controller
CN112286454B (en) A bitmap synchronization method, device, electronic device and storage medium
CN112181641B (en) Thread processing method, device, equipment and storage medium
US9377966B2 (en) Method and apparatus for efficiently processing storage commands
CN113900743B (en) A method and device for accessing Java objects
CN101261611A (en) Data transmission device and method between peripheral equipment
US20070079015A1 (en) Methods and arrangements to interface a data storage device
CN107589911A (en) A kind of I O process method and device of SSD cachings
CN116680142B (en) Memory resource monitoring method, electronic device, program product and medium
TWI814655B (en) Memory device, flash memory controller and control method thereof
CN111459474A (en) Templated data processing method and device
CN113067581B (en) Decoding system, decoding method, electronic device, and storage medium
CN105868092B (en) A kind of processing method and processing device of journal file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240702

Address after: 2324, Building 1, Aosheng Building, No. 1166 Xinluo Street, High tech Zone, Jinan City, Shandong Province, 250000

Patentee after: Inspur Computer Technology Co.,Ltd.

Country or region after: China

Address before: 35th floor, S01 building, Inspur science and Technology Park, 1036 Inspur Road, Jinan area, Jinan pilot Free Trade Zone, Jinan City, Shandong Province

Patentee before: Shandong Yunhai guochuang cloud computing equipment industry innovation center Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right