Flow control method and device

Through the method of dynamic queue allocation and fine-grained flow division, the problems of low queue utilization and queue head blocking in the WAN are solved, and network performance and resource utilization are improved.

CN118740752APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310353328.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology wastes computing resources due to low queue utilization in wide area network traffic transmission, and packets of different priorities have a large impact on each other, easily causing head-of-queue blocking problems.

Method used

Through the dynamic queue allocation method, the queue allocation strategy is dynamically adjusted according to the flow identity information and weight of the packet, avoiding static reservation of queues, improving queue utilization, and reducing the interaction between packets of different priorities through fine-grained flow division. .

Benefits of technology

It improves the utilization of the queue, reduces the waste of computing resources, reduces the occurrence of queue head blocking, and enhances the overall performance and reliability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740752A_ABST
    Figure CN118740752A_ABST
Patent Text Reader

Abstract

The invention provides a flow control method and device, and relates to the technical field of networks, and the method comprises the steps that a first forwarding node updates a first relation table to obtain a second relation table when determining that the number of messages or the number of bytes in a first queue is smaller than or equal to a first threshold value, the first forwarding node is one of a plurality of forwarding nodes of an overlay network, the first relation table comprises first distribution information, the first distribution information is used for indicating that a message of a target flow is distributed to the first queue, and the second relation table does not comprise the first distribution information. The forwarding node may "unbind" the first queue with the target stream when the number of messages or the number of bytes in the first queue is less than or equal to a first threshold. In this way, the first queue may be used by other streams without statically "reserving" for the target stream. Therefore, according to the method provided by the embodiment of the invention, the queue allocation can be dynamically performed, and the utilization rate of the queue is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and more specifically, to a flow control method, apparatus, computing device, computer program product, and computer-readable storage medium. Background Art

[0002] The growth of network services has brought tremendous pressure to WAN traffic transmission, and traffic control technology is needed to alleviate network congestion. Traffic transmission based on WAN can be carried out in the form of overlay network, which is to build a logical network on the physical network for traffic transmission.

[0003] The related technical solution uses software-based forwarding nodes to control traffic, for example, a certain number of queues are set in the forwarding nodes, and these queues are used to forward messages. Messages carrying the same flow identity information belong to one flow. Since the messages of a flow have similar attributes, it is more convenient to assign the messages of a flow to one queue for processing. However, the queue utilization rate of the related technical solution is low, resulting in a waste of computing resources. Summary of the invention

[0004] The present application provides a flow control method and device, which can dynamically allocate queues and improve queue utilization.

[0005] In a first aspect, a flow control method is provided, comprising: when determining that the number of messages or the number of bytes in a first queue is less than or equal to a first threshold, a first forwarding node updates a first relationship table to obtain a second relationship table, wherein the first forwarding node is one of a plurality of forwarding nodes of an overlay network, the first relationship table includes first allocation information, the first allocation information is used to indicate that the message of the target flow is allocated to the first queue, the second relationship table does not include the first allocation information, the first queue is one of N queues included in the first forwarding node, N is a positive integer; if the first forwarding node receives a message of the target flow while the second relationship table exists, second allocation information is determined, wherein the second allocation information is used to indicate that the message of the target flow is allocated to a second queue, the second queue is one of the N queues included in the first forwarding node; the first forwarding node updates the second relationship table to obtain a third relationship table, the third relationship table includes the second allocation information; the first forwarding node allocates the message of the target flow to the second queue according to the third relationship table.

[0006] In an embodiment of the present application, when the number of messages or bytes in the first queue for forwarding the target flow is less than or equal to the first threshold, the forwarding node can "unbind" the first queue from the target flow. In this way, the first queue can be used by other flows, and will not be statically "reserved" for the target flow. Therefore, the method provided in the embodiment of the present application can dynamically allocate queues, thereby improving the utilization rate of queues.

[0007] In combination with the first aspect, in certain implementations of the first aspect, the source forwarding node of any two messages of the target flow is the same, and the source forwarding node is the first forwarding node among the multiple forwarding nodes to receive the message of the target flow; and / or the destination forwarding node of any two messages of the target flow is the same, and the destination forwarding node is the last forwarding node among the multiple forwarding nodes to receive the message of the target flow.

[0008] In an embodiment of the present application, the source forwarding nodes and the destination forwarding nodes of the same flow are the same. Compared with the related technical solutions that use quintuples or flow labels to divide the flow, the flow granularity divided by the embodiment of the present application is finer, and the mutual influence between the messages is smaller. If the related technical solutions are adopted, the messages with the same quintuple or flow label will be assigned to the same forwarding queue and then sent to the next hop forwarding node. When the next hop forwarding node sends a back pressure signal, all the messages in the forwarding queue will be suspended. The method provided in the embodiment of the present application can divide the messages from different source forwarding nodes and going to different destination forwarding nodes into different flows. Even if the quintuple or flow label of the message is consistent, it may be divided into multiple flows. These flows can be assigned to different queues. If a flow in a queue is instructed to suspend sending, it will not affect the sending of other flows by other queues.

[0009] In combination with the first aspect, in certain implementations of the first aspect, the service types of any two messages of the target flow are the same.

[0010] In the embodiment of the present application, the service type of the same flow is the same. Compared with the related technical solutions that use quintuples or flow labels to divide the flow, the flow granularity divided by the embodiment of the present application is finer, and the mutual influence between the messages of the same flow is smaller. For example, when the next-hop forwarding node of a low-priority message in a queue sends a back pressure signal, if a high-priority message also belongs to this queue, the high-priority message cannot be sent. Therefore, the method provided in the embodiment of the present application can reduce the mutual influence between messages of different priorities, thereby avoiding head-of-line blocking.

[0011] In combination with the first aspect, in certain implementations of the first aspect, any two packets of the target flow carry the same flow identity information, wherein the flow identity information is determined by an identifier (ID) of the source forwarding node, an ID of the destination forwarding node, and a service type.

[0012] In the embodiment of the present application, the source forwarding node, destination forwarding node and service type of the same flow are the same. Compared with the related technical solutions that use quintuples or flow labels to divide the flow, the flow granularity divided by the embodiment of the present application is finer, and the mutual influence between the messages of the same flow is smaller, thus avoiding head-of-line blocking.

[0013] In combination with the first aspect, in some implementations of the first aspect, the flow identity information is carried in a flow identity field of a message of the target flow.

[0014] The flow identity information in the embodiment of the present application can be carried in the flow identity field of the message of the target flow. The forwarding node can identify different flows according to the information in the flow identity field, thereby increasing the efficiency of the forwarding node in allocating queues.

[0015] In combination with the first aspect, in certain implementations of the first aspect, the first allocation information includes a pointer to the first queue, wherein the first forwarding node updates the first relationship table to obtain the second relationship table when determining that the number of messages or the number of bytes in the first queue is less than or equal to the first threshold, including: the first forwarding node changes the pointer to a null pointer to obtain the second relationship table when determining that the number of messages or the number of bytes in the first queue is less than or equal to the first threshold.

[0016] In the embodiment of the present application, when updating the first relation table, the pointer pointing to the first queue can be changed to a null pointer. In this way, the obtained second relation table still contains the information of the target flow. If the first forwarding node receives the message of the target flow again later, it is not necessary to reset the information of the target flow, and steps such as determining the queue allocation can be performed. The method provided by the embodiment of the present application can avoid repeated operations, thereby improving the efficiency of message forwarding.

[0017] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: the first forwarding node determines the weight of the i-th queue according to the weight of the flow to which the message in the i-th queue among the N queues belongs, wherein i=1,...,N; the first forwarding node determines the second threshold of the second queue according to the weights of the N queues; the first forwarding node determines that the number of messages or the number of bytes in the second queue is greater than or equal to the second threshold, wherein the messages in the second queue come from at least one second forwarding node, and the at least one second forwarding node is the previous hop forwarding node of the first forwarding node; the first forwarding node sends a back pressure signal to the at least one second forwarding node, wherein the back pressure signal is used to instruct the at least one second forwarding node to suspend sending the flow to which the message in the second queue belongs to to the first forwarding node.

[0018] The embodiment of the present application can determine the second threshold value according to the weights of the N queues, where the weights of the N queues are dynamically changed. Therefore, the second threshold value is also dynamically changed. Compared with the solution of fixed threshold value or manually adjusting threshold value, the flow control method provided by the embodiment of the present application is more accurate. When the flow in the queue changes, the back pressure threshold value can be adjusted in time, thereby improving the effect of flow control.

[0019] In combination with the first aspect, in certain implementations of the first aspect, the first forwarding node determines the second threshold of the second queue based on the weights of the N queues, including: the first forwarding node determines the delay information between the at least one second forwarding node and the first forwarding node; the first forwarding node determines the second threshold of the second queue based on the weights of the N queues and the delay information.

[0020] The method provided in the embodiment of the present application can determine the second threshold value based on the delay information, and the second threshold value changes dynamically as the delay information changes. When the delay changes, the number of in-flight messages that the network can carry also changes, and these in-flight messages can be regarded as an extension of the queue. When the delay increases, the queue is equivalent to growth, and when the delay decreases, the queue is equivalent to shortening; and a fixed threshold value cannot reflect this change, which will lead to waste of network resources or head-of-line blocking. Therefore, the embodiment of the present application can adaptively adjust the threshold value for triggering the back pressure signal, so as to more accurately implement flow control and increase network utilization.

[0021] In combination with the first aspect, in some implementations of the first aspect, the first forwarding node determines the second threshold of the second queue according to the weights of the N queues and the delay information, including: determining the second threshold of the second queue according to the following formula:

[0022]

[0023] Wherein, Φ2 is the second threshold of the second queue, C is the outbound port capacity of the first forwarding node, HRTT is the single-hop round-trip delay between the first forwarding node and the at least one second forwarding node, and w i is the weight of the i-th queue.

[0024] In the embodiment of the present application, the second threshold value changes dynamically with the change of HRTT and the queue weight ratio, so that the forwarding node can adaptively adjust the threshold value for triggering the back pressure signal. On the other hand, the embodiment of the present application takes the outbound port capacity into consideration in the process of determining the second threshold value, and can accurately implement flow control according to the carrying capacity of the physical port.

[0025] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: when the first forwarding node determines that the number of messages or the number of bytes in the first queue is greater than a first threshold, the first allocation information in the first relationship table allocates the messages of the target flow to the first queue.

[0026] In a second aspect, an embodiment of the present application provides a flow control device, which includes a module for implementing the first aspect or any possible implementation method of the first aspect.

[0027] In a third aspect, a computing device is provided, including a processor and a memory, wherein the processor is used to execute instructions stored in the memory so that the computing device executes the flow control method of the first aspect or any possible implementation of the first aspect.

[0028] In a fourth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device, the computing device executes the flow control method of the first aspect or any possible implementation of the first aspect.

[0029] In a fifth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device, the computing device executes the flow control method of the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of a network architecture.

[0031] Figure 2 It is a schematic flow chart of a flow control method.

[0032] Figure 3 It is a schematic flow chart of a flow control method provided in an embodiment of the present application.

[0033] Figure 4 It is a schematic diagram of a flow control method provided in an embodiment of the present application.

[0034] Figure 5 It is a schematic flow chart of another flow control method provided in an embodiment of the present application.

[0035] Figure 6 It is a schematic block diagram of a flow control device provided in an embodiment of the present application.

[0036] Figure 7 An architectural diagram of a computing device provided in an embodiment of the application.

[0037] Figure 8It is a schematic block diagram of another flow control device provided in an embodiment of the present application.

[0038] Fig. 9 It is a schematic diagram of PHB information provided by an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0040] The present application will present various aspects, embodiments or features around a system that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0041] In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0042] In the embodiments of the present application, sometimes a subscript such as W1 may be mistakenly written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are consistent.

[0043] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0044] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0045] For ease of understanding, the terms involved in this application are first introduced below.

[0046] Backpressure: In a network, if the speed at which a node's upstream generates data is faster than the node's data processing speed, the network can detect that the node is blocked and adaptively reduce the speed at which the upstream or source sends data.

[0047] Per-hop backpressure (PHB): backpressure between two adjacent forwarding nodes.

[0048] Figure 1 A network architecture is shown.

[0049] The network architecture may include a gateway node (GW) 110 located at the edge of the network 120, a plurality of forwarding nodes 121 located inside the network 120, and a controller 130. The gateway node 110 may send a message to the network 120, and the first forwarding node 121 to receive the message may be referred to as the source forwarding node of the message. The message is then transmitted between the forwarding nodes 121, and the forwarding node 121 that finally receives the message may be referred to as the destination forwarding node of the message. The destination forwarding node forwards the message to another gateway node 110. The controller 130 may implement network topology management.

[0050] It should be noted that Figure 1 For example, the network 120 may include more forwarding nodes, more forwarding nodes may form more forwarding paths, and each forwarding path may also intersect at a forwarding node 121, that is, a forwarding node 121 may belong to multiple forwarding paths.

[0051] Network 120 may be referred to as an overlay network. An overlay network is a network relative to an underlying underlay network. For example, an underlay network may be a physical network formed by interconnecting multiple types of devices, responsible for the transmission of data packets or messages between networks. An overlay network is a logical network built on an underlay network. An overlay network may use network virtualization technology to construct one or more virtual logical networks on the same underlay network. For example, an overlay network may connect network edge sites in different geographical locations, and provide guarantees for efficient mutual access and specific access requirements between these edge sites. For example, an overlay network may be applied to a wide area network (WAN).

[0052] Figure 1The forwarding node 121 in the illustrated network architecture may be configured, for example, by using a data plane development kit (DPDK). For example, the forwarding node 121 may be configured using a controller 130 .

[0053] The DPDK suite can process data packets quickly and has a collection of function libraries and drivers that can improve data processing performance and throughput and increase the efficiency of data plane applications.

[0054] For example, the DPDK suite can be used to configure the number of queues in a forwarding node 121, and each queue corresponds to a virtual outbound port. When the forwarding node 121 receives a message, the message can be assigned to a queue for forwarding, and the forwarding of messages in the same queue can be based on the first-in first-out (FIFO) rule. However, the embodiments of the present application can also use other methods to configure the forwarding node.

[0055] In network traffic, a flow is a group of messages that contain the same flow identity information. For Internet Protocol version 4 (IPv4) messages, the flow identity information of IPv4 messages can be a five-tuple, namely the source IP address, destination IP address, source port, destination port and protocol type carried in the message header; the flow identity information of IPv4 messages can also be the source IP address and destination IP address; the flow identity information of IPv4 messages can also be the source IP address, destination IP address, source port and destination port. For Internet Protocol version 6 (IPv6) messages, the flow identity information of IPv6 messages can be a flow label; in addition to the flow label, the flow identity information of IPv6 messages can also include the source IP address and destination IP address. In addition, the flow identity information can also be defined by other information.

[0056] For example, packets in different queues can belong to different flows, that is, different flows are assigned to different queues. In this way, different flows do not affect each other. For example, when congestion occurs in the process of forwarding packets of a flow to the next-hop node, the congestion of the flow will not affect other flows. On the contrary, if there are other flows in the queue where the flow is located, other flows will also be congested because the packets of the flow have not been sent.

[0057] Therefore, in an overlay network, more queues can be configured for a forwarding node and different flows can be assigned to different queues.

[0058] Figure 2 A flow control method 200 is shown.

[0059] S210: A first forwarding node receives a message of a target flow.

[0060] The first forwarding node is a forwarding node in the overlay network. The target flow is one of multiple flows received by the first forwarding node, and the packets of the target flow have the same flow identity information.

[0061] S220: Allocate the packets of the target flow to the first queue according to the first relationship table, wherein the first relationship table includes first allocation information, and the first allocation information is used to indicate that the packets of the target flow are allocated to the first queue.

[0062] For example, the first relational table may be a hash table or other types of tables.

[0063] The first relationship table may include first allocation information. For example, the key of the first allocation information includes the flow identity information of the target flow, and the value of the first allocation information includes the identity information such as the index or identification of the first queue.

[0064] Figure 2 The flow control method 200 shown can allocate packets of the same flow to the same queue. The first allocation information in the first relationship table can also be understood as the target flow corresponding to the first queue.

[0065] When receiving the target flow, the first forwarding node often does not receive all the messages of the target flow at once, but first receives a part of the messages and then receives another part of the messages. In this case, the message of the target flow received first has been sent out, and the subsequent message of the target flow has not been received. At this time, there is no message in the first queue. However, although the first queue is already an empty queue, since the first allocation information has "occupied" or "reserved" the first queue for the target flow, in order to avoid conflicts, the messages of other flows are also not allocated to the first queue as much as possible, so that the first queue is "idle".

[0066] On the other hand, if the first forwarding node receives all the messages of the target flow at one time and sends all the messages out, there will be no message in the first queue at this time. However, since the first forwarding node cannot know whether there are subsequent messages of the target flow sent to the first forwarding node, the first allocation information in the first relationship table will not age immediately, but will be retained for a period of time. During this period of time, the first queue is "idle".

[0067] Therefore, the queue utilization rate of method 200 is low, and computing resources are wasted. Furthermore, since some queues cannot be used, when the number of flows does not exceed the number of queues, some flows have to be allocated to queues that are already "occupied" by flows. That is, while some queues are idle, other queues may have multiple flows, and flows in the same queue may affect each other, which may cause network congestion.

[0068] Figure 3 A flow control method 300 provided in an embodiment of the present application can improve the dynamic allocation of queues and improve the utilization of queues. For example, the method 300 can be composed of Figure 1 One forwarding node 121 is shown executing.

[0069] S310, when determining that the number of packets or the number of bytes in the first queue is less than or equal to the first threshold, the first forwarding node updates the first relationship table to obtain a second relationship table, wherein the first forwarding node is one of multiple forwarding nodes of the overlay network, the first relationship table includes first allocation information, and the first allocation information is used to indicate that the packets of the target flow are allocated to the first queue, the second relationship table does not include the first allocation information, and the first queue is one of N queues included in the first forwarding node, and N is a positive integer.

[0070] Exemplarily, the first forwarding node may be Figure 1 A forwarding node 121 in the first forwarding node. The first queue is one of the N queues configured in the first forwarding node.

[0071] For example, the first threshold may be 0, or may be set as required. It is understood that when the first threshold is 0, the first forwarding node updates the first relationship table to obtain the second relationship table when determining that the number of messages or bytes in the first queue is equal to the first threshold.

[0072] For example, when the first forwarding node determines that the number of messages or bytes in the first queue is 0, the first relationship table is updated to obtain the second relationship table. In other words, when the first forwarding node determines that the first queue is an empty queue, the first relationship table is updated to obtain the second relationship table. It can be understood that the first threshold value can also be a value greater than 0.

[0073] The first forwarding node may update the first relationship table to obtain the second relationship table. In some embodiments, the first forwarding node deletes the first allocation information in the first relationship table to obtain the second relationship table.

[0074] In other embodiments, the first forwarding node may also modify the first allocation information to "unbind" the target flow and the first queue. For example, the pointer pointing to the first queue is modified so that the second relationship table does not include the first allocation information indicating that the packets of the target flow are allocated to the first queue.

[0075] Optionally, when determining that the number of packets or the number of bytes in the first queue is greater than a first threshold, the first forwarding node allocates the packets of the target flow to the first queue according to the first allocation information in the first relationship table.

[0076] For example, the first threshold may be 0, or may be set as required.

[0077] It can be understood that the first allocation information is used to indicate that the packets of the target flow are allocated to the first queue. Therefore, according to the first allocation information, the packets of the target flow can be allocated to the first queue.

[0078] Optionally, the source forwarding node of any two messages of the target flow is the same, and the source forwarding node is the first forwarding node among the multiple forwarding nodes to receive the message of the target flow; and / or the destination forwarding node of any two messages of the target flow is the same, and the destination forwarding node is the last forwarding node among the multiple forwarding nodes to receive the message of the target flow.

[0079] See also Figure 1 The forwarding process of the target flow message can be understood as a process of forwarding from one gateway device 110 to another gateway device 110 via multiple forwarding nodes 121 of the overlay network. Among them, the first forwarding node 121 in the overlay network that receives the target flow message can be called a source forwarding node.

[0080] When the source forwarding node receives the message of the target flow, it will send the message to other forwarding nodes 121 according to the characteristics of the overlay network. In detail, the source forwarding node sends the message to the next-hop forwarding node 121, and the next-hop forwarding node 121 sends the message to the next-hop forwarding node 121, until the last-hop forwarding node 121 (that is, the destination forwarding node) receives the message. Subsequently, the destination forwarding node sends the message to another gateway device 110. Thus, the message is forwarded through the overlay network.

[0081] The source forwarding nodes of the target flow's messages are the same, and the destination forwarding nodes of the target flow's messages are the same. It can be understood that the flow is divided according to the source forwarding node and the destination forwarding node. In other words, the messages from the same source forwarding node and destined for the same destination forwarding node are divided into the messages of the same flow.

[0082] See for example Figure 4, the second forwarding node 410 sends the message of the target flow to the first forwarding node 420, assuming that the message of the target flow is sent from queue 411 to queue 421. If the flow is divided according to the source forwarding node and the destination forwarding node, the message with different source forwarding nodes and destination forwarding nodes will be allocated to other queues, for example, it may be sent from queue 412 to queue 422. However, if the flow is divided according to the five-tuple or flow label, the message with different source forwarding nodes and destination forwarding nodes may also be allocated to queue 411 and sent from queue 411 to queue 421. In this way, if the message with different source forwarding nodes and destination forwarding nodes from the target flow is blocked, the sending of the target flow will also be affected.

[0083] In an embodiment of the present application, the source forwarding nodes and the destination forwarding nodes of the same flow are the same. Compared with the related technical solutions that use quintuples or flow labels to divide the flow, the flow granularity divided by the embodiment of the present application is finer, and the mutual influence between the messages is smaller. If the related technical solutions are adopted, the messages with the same quintuple or flow label will be assigned to the same forwarding queue and then sent to the next hop forwarding node. When the next hop forwarding node sends a back pressure signal, all the messages in the forwarding queue will be suspended. The method provided in the embodiment of the present application can divide the messages from different source forwarding nodes and going to different destination forwarding nodes into different flows. Even if the quintuple or flow label of the message is consistent, it may be divided into multiple flows. These flows can be assigned to different queues. If a flow in a queue is instructed to suspend sending, it will not affect the sending of other flows by other queues.

[0084] Optionally, any two messages of the target flow have the same service type.

[0085] The type of service (ToS) can distinguish the priorities of different messages. For example, the high 6 bits of the differentiated services code point (DSCP) field in the message can be used to indicate the service type of the message, which can be divided into 64 levels.

[0086] In the embodiment of the present application, the service type of the same flow is the same. Compared with the related technical solutions that use quintuples or flow labels to divide the flow, the flow granularity divided by the embodiment of the present application is finer, and the mutual influence between the messages of the same flow is smaller. For example, when the next-hop forwarding node of a low-priority message in a queue sends a back pressure signal, if a high-priority message also belongs to this queue, the high-priority message cannot be sent. Therefore, the method provided in the embodiment of the present application can reduce the mutual influence between messages of different priorities, thereby avoiding head-of-line blocking.

[0087] Optionally, any two messages of the target flow carry the same flow identity information, wherein the flow identity information is determined by an identifier (ID) of the source forwarding node, an ID of the destination forwarding node, and a service type.

[0088] For example, a hash operation may be performed on the ID of a source forwarding node, the ID of a destination forwarding node, and the service type of a flow to determine a hash value, and the hash value is the flow identity information of the flow.

[0089] In the embodiment of the present application, the source forwarding node, destination forwarding node and service type of the same flow are the same. Compared with the related technical solutions that use quintuples or flow labels to divide the flow, the flow granularity divided by the embodiment of the present application is finer, and the mutual influence between the messages of the same flow is smaller, thus avoiding head-of-line blocking.

[0090] Optionally, the flow identity information is carried in a flow identity field of a message of the target flow.

[0091] For example, the flow identity field may be 16 bits, and the flow identity field may be located in a payload field of a user datagram protocol (UDP) message.

[0092] The flow identity information in the embodiment of the present application can be carried in the flow identity field of the message of the target flow. The forwarding node can identify different flows according to the information in the flow identity field, thereby increasing the efficiency of the forwarding node in allocating queues.

[0093] Optionally, the first allocation information includes a pointer to the first queue, wherein the first forwarding node updates the first relationship table to obtain the second relationship table when it is determined that the number of messages or the number of bytes in the first queue is less than or equal to the first threshold, including: the first forwarding node changes the pointer to a null pointer to obtain the second relationship table when it is determined that the number of messages or the number of bytes in the first queue is less than or equal to the first threshold.

[0094] For example, the first allocation information may include a pointer pointing to the first queue. When updating the first relationship table, the first forwarding node may change the pointer to a null pointer, thereby obtaining a second relationship table that does not include the first allocation information.

[0095] In the embodiment of the present application, when updating the first relation table, the pointer pointing to the first queue can be changed to a null pointer. In this way, the obtained second relation table still contains the information of the target flow. If the first forwarding node receives the message of the target flow again later, it is not necessary to reset the information of the target flow, and steps such as determining the queue allocation can be performed. The method provided by the embodiment of the present application can avoid repeated operations, thereby improving the efficiency of message forwarding.

[0096] S320, if the first forwarding node receives the message of the target flow while the second relationship table exists, determine second allocation information, wherein the second allocation information is used to indicate that the message of the target flow is allocated to a second queue, and the second queue is one of the N queues included in the first forwarding node.

[0097] The first forwarding node receives the message of the target flow when the second relationship table persists. "Persistence" refers to the persistence of the second relationship table that does not contain the first allocation information. In other words, it means that the relationship table based on which the first forwarding node performs queue allocation does not have a forwarding queue corresponding to the target flow.

[0098] The second allocation information may be used to indicate that the message of the target flow is allocated to the second queue. The second queue is a forwarding queue re-determined by the first forwarding node for the target flow. The second queue may be different from the first queue, or the second queue may be the same as the first queue. In other words, the re-determined forwarding queue may be different from the forwarding queue determined last time, or the same as the forwarding queue determined last time.

[0099] The second allocation information may be determined according to certain rules. For example, an empty queue may be preferentially allocated to the packets of the target flow, that is, when an empty queue exists in the first forwarding node, an empty queue is determined as the second queue.

[0100] For example, when there is no empty queue in the first forwarding node, a queue with the shortest queue length is determined as the second queue. The queue length here can be the number of messages included in the queue, or the total number of bytes of the messages included in the queue. For another example, when there is no empty queue in the first forwarding node, a queue is randomly determined as the second queue.

[0101] S330: The first forwarding node updates the second relationship table to obtain a third relationship table, where the third relationship table includes the second allocation information.

[0102] The third relationship table includes the second allocation information. In other words, the third relationship table includes information for indicating that the message of the target flow is allocated to the second queue. The second queue may be different from the first queue, or the second queue may be the same as the first queue. In other words, the re-determined forwarding queue may be different from the forwarding queue determined last time, or the same as the forwarding queue determined last time.

[0103] S340: The first forwarding node distributes the packets of the target flow to the second queue according to the third relationship table.

[0104] In an embodiment of the present application, when the number of messages or bytes in the first queue for forwarding the target flow is less than or equal to the first threshold, the forwarding node can "unbind" the first queue from the target flow. In this way, the first queue can be used by other flows, and will not be statically "reserved" for the target flow. Therefore, the method provided in the embodiment of the present application can dynamically allocate queues, thereby improving the utilization rate of queues.

[0105] Figure 5 Another flow control method 500 provided in an embodiment of the present application is shown. It should be noted that the method 500 or any embodiment of the method 500 can be combined with the method 300. The method 400 can be Figure 1 The forwarding node 121 in is executed.

[0106] S510: The first forwarding node determines a weight of an i-th queue among the N queues according to a weight of a flow to which a packet in the i-th queue belongs, where i=1,...,N.

[0107] For example, if the packets in the second queue belong only to the target flow, the weight of the second queue is the weight of the target flow. The weight of the flow may be preset. For example, the weight may be determined based on an Internet protocol (IP) precedence.

[0108] In some embodiments, the messages in the queue can be scheduled according to the weight of the queue to be sent to the next hop forwarding node. The present application does not limit the specific manner of scheduling.

[0109] For example, a weighted fair queuing (WFQ) strategy may be used to schedule packets. WFQ can provide fair services for different flows and provide more bandwidth for flows with high priorities (eg, flows with higher priorities indicated by the service type).

[0110] For another example, a priority queue (PQ) strategy can be used to schedule messages. PQ will prioritize high-priority queues, and when high-priority queues have finished sending, low-priority queues will be scheduled.

[0111] For another example, a round robin (RR) scheduling strategy may be used to schedule packets. The RR strategy allocates time slices of the same length to each queue in a certain order, and each queue schedules packets within the window of the allocated time slice.

[0112] In some embodiments, there is only one flow in the i-th queue, and the weight of the flow is determined to be the weight of the i-th queue.

[0113] In some other embodiments, the i-th queue has multiple flows, a weighted average is determined according to the weights of the multiple flows, and the weighted average is determined as the weight of the i-th queue.

[0114] For example, when the i-th queue has two flows, assuming that the first flow is flow A and the second flow is flow B, the weight of the i-th queue can be determined according to the following formula:

[0115]

[0116] The queue length of flow A is the number of packets or bytes of flow A in the i-th queue, and the queue length of flow B is the number of packets or bytes of flow B in the i-th queue.

[0117] It can be understood that queues are always limited, and when all queues are occupied, multiple flows may occupy one queue.

[0118] S520: The first forwarding node determines a second threshold of the second queue according to the weights of the N queues.

[0119] The second queue may be a queue for forwarding the target flow among the N queues of the first forwarding node. The second threshold may be a threshold for back pressure. For example, when the number of messages or bytes in the second queue exceeds the second threshold, back pressure needs to be applied to the upstream forwarding node of the target flow. The upstream forwarding node may be the previous hop forwarding node of the target flow or the source forwarding node of the target flow.

[0120] It can be understood that the weights of the N queues change dynamically because the weight of each queue in the N queues is determined according to the weight of the flow to which the packets in the queue belong. For example, when the weight of the flow to which the packets in a queue belong is high, the weight of this queue is often high. When this queue sends out the packets of the flow with a high weight, the weight of the flow to which the packets are assigned again is low, and the weight of this queue decreases accordingly. Therefore, the weights of the N queues change dynamically.

[0121] Optionally, the first forwarding node determines the second threshold of the second queue based on the weights of the N queues, including: the first forwarding node determines the delay information between at least one second forwarding node and the first forwarding node; the first forwarding node determines the second threshold of the second queue based on the weights of the N queues and the delay information.

[0122] The second forwarding node is the previous hop forwarding node of the message in the second queue. In the case that the second queue of the first forwarding node has only one flow, there is only one second forwarding node. In the case that there are multiple second queues, there are multiple second forwarding nodes.

[0123] When there is only one second forwarding node, the delay information is the delay information between the first forwarding node and the second forwarding node.

[0124] In the case where there are multiple second forwarding nodes, in some embodiments, the delay information is the average value of the round-trip delays between these second forwarding nodes and the first forwarding node. In other embodiments, the delay information is the maximum value of the round-trip delays between these second forwarding nodes and the first forwarding node. In still other embodiments, the delay information is the minimum value of the round-trip delays between these second forwarding nodes and the first forwarding node.

[0125] For example, the first forwarding node may send detection information to at least one second forwarding node to obtain delay information between the first forwarding node and the at least one second forwarding node.

[0126] In addition to the weights of the N queues, the embodiment of the present application further introduces delay information. For example, the delay information can be a round trip time (RTT). RTT can be the time from when a message is sent or the last bit of the message is pushed to the data link to when the confirmation information is received.

[0127] For example, the delay information may represent the RTT between the target flow in the second queue and the source forwarding node of the target flow. For example, the larger the RTT, the longer it takes for the message of the target flow to be sent from the source forwarding node to the first forwarding node, which can also be understood as the number of inflight messages that the network can carry increases, so the second threshold of the second queue can be set to be larger.

[0128] The method provided in the embodiment of the present application can determine the second threshold value based on the delay information, and the second threshold value changes dynamically as the delay information changes. When the delay changes, the number of in-flight messages that the network can carry also changes, and these in-flight messages can be regarded as an extension of the queue. When the delay increases, the queue is equivalent to growth, and when the delay decreases, the queue is equivalent to shortening; and a fixed threshold value cannot reflect this change, which will lead to waste of network resources or head-of-line blocking. Therefore, the embodiment of the present application can adaptively adjust the threshold value for triggering the back pressure signal, so as to more accurately implement flow control and increase network utilization.

[0129] Optionally, the first forwarding node determines the second threshold of the second queue according to the weights of the N queues and the delay information, including: determining the second threshold of the second queue according to the following formula:

[0130]

[0131] Wherein, Φ2 is the second threshold of the second queue, C is the outbound port capacity of the first forwarding node, HRTT is the single-hop round-trip delay between the first forwarding node and the at least one second forwarding node, and w i is the weight of the i-th queue.

[0132] The egress port capacity of the first forwarding node is the capacity of the physical port that the first forwarding node can call. The egress port capacity is usually a constant. The egress port capacity can also be called backplane bandwidth or switching bandwidth.

[0133] Hop round trip time (HRTT) is the round trip delay between the first forwarding node and the previous hop forwarding node. It can be understood that HRTT changes dynamically.

[0134] When there is only one second forwarding node, HRTT is the round-trip delay between the first forwarding node and the second forwarding node.

[0135] In the case where there are multiple second forwarding nodes, in some embodiments, HRTT is the average value of the single-hop round-trip delays between these second forwarding nodes and the first forwarding node. In other embodiments, HRTT is the maximum value of the single-hop round-trip delays between these second forwarding nodes and the first forwarding node. In still other embodiments, HRTT is the minimum value of the single-hop round-trip delays between these second forwarding nodes and the first forwarding node.

[0136] For example, assuming that the outbound port capacity of the first forwarding node is 100 Mbps, the HRTT is 0.1 seconds, and the weight of the second queue accounts for one tenth of the weights of the N queues, the second threshold is 125 KB. For another example, the number of packets can be calculated based on the average number of bytes of packets in the target flow. For example, if the average number of bytes of packets is 25 KB, the second threshold is 5.

[0137] In the embodiment of the present application, the second threshold value changes dynamically with the change of HRTT and the queue weight ratio, so that the forwarding node can adaptively adjust the threshold value for triggering the back pressure signal. On the other hand, the embodiment of the present application takes the outbound port capacity into consideration in the process of determining the second threshold value, and can accurately implement flow control according to the carrying capacity of the physical port.

[0138] S530, the first forwarding node determines that the number or the number of bytes of the messages in the second queue is greater than or equal to the second threshold, wherein the messages in the second queue come from at least one second forwarding node, and the at least one second forwarding node is the previous hop forwarding node of the first forwarding node.

[0139] For example, the second threshold is 125 KB, and when the number of bytes of the message in the second queue is greater than or equal to 125 KB, S540 may be executed.

[0140] S540: The first forwarding node sends a back pressure signal to the at least one second forwarding node, wherein the back pressure signal is used to instruct the at least one second forwarding node to suspend sending the flow to which the message in the second queue belongs to to the first forwarding node.

[0141] For example, the back pressure signal may include queue information corresponding to the flow to which the second queue belongs in the second forwarding node. In this way, when the second forwarding node receives the back pressure signal, it may suspend the corresponding queue from sending messages according to the back pressure signal, thereby achieving hop-by-hop back pressure.

[0142] The embodiment of the present application can determine the second threshold value according to the weights of the N queues, where the weights of the N queues are dynamically changed. Therefore, the second threshold value is also dynamically changed. Compared with the solution of fixed threshold value or manually adjusting threshold value, the flow control method provided by the embodiment of the present application is more accurate. When the flow in the queue changes, the back pressure threshold value can be adjusted in time, thereby improving the effect of flow control.

[0143] Combined with the above Figure 3 , Figure 4 and Figure 5 The method embodiments of the present application are described in detail. The device embodiments of the present application are described below. The device embodiments correspond to the method embodiments, so the parts not described in detail can refer to the previous method embodiments. The device can implement any possible implementation of the above method.

[0144] The present application also provides a flow control device 600, such as Figure 6 As shown, the relationship table configuration module 610 is used to update the first relationship table to obtain a second relationship table when the first forwarding node determines that the number or number of bytes of the message in the first queue is less than or equal to the first threshold, wherein the first forwarding node is one of multiple forwarding nodes covering the overlay network, the first relationship table includes first allocation information, the first allocation information is used to indicate that the message of the target flow is allocated to the first queue, the second relationship table does not include the first allocation information, the first queue is one of the N queues included in the first forwarding node, and N is a positive integer; the queue determination module 620 is used to determine the second allocation information if the first forwarding node receives the message of the target flow when the second relationship table exists, wherein the second allocation information is used to indicate that the message of the target flow is allocated to the second queue, and the second queue is one of the N queues included in the first forwarding node; the relationship table configuration module 610 is also used to update the second relationship table to obtain a third relationship table, and the third relationship table includes the second allocation information; the allocation module 630 is used to allocate the message of the target flow to the second queue according to the third relationship table.

[0145] The relationship table configuration module 610, the queue determination module 620 and the allocation module 630 can all be implemented by software or by hardware. Exemplarily, the implementation of the relationship table configuration module 610 is described below by taking the relationship table configuration module 610 as an example. Similarly, the implementation of the queue determination module 620 and the allocation module 630 can refer to the implementation of the relationship table configuration module 610.

[0146] As an example of a software functional unit, the relationship table configuration module 610 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more.

[0147] As an example of a hardware functional unit, the relationship table configuration module 610 may include at least one computing device, such as a server, etc. Alternatively, the processing module may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0148] The present application also provides a computing device 700. Figure 7 As shown, computing device 700 includes: bus 702, processor 704, memory 706 and communication interface 708. Processor 704, memory 706 and communication interface 708 communicate through bus 702. Computing device 700 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 700.

[0149] The bus 702 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7The bus 702 may include a path for transmitting information between various components of the computing device 700 (eg, the memory 706, the processor 704, and the communication interface 708).

[0150] The processor 704 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0151] The memory 706 may include a volatile memory, such as a random access memory (RAM). The memory 706 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0152] The memory 706 stores executable program codes, and the processor 704 executes the executable program codes to respectively implement the functions of the aforementioned relationship table configuration module 610, queue determination module 620 and allocation module 630, thereby implementing the flow control method. That is, the memory 706 stores instructions for executing the flow control method.

[0153] The communication interface 708 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or communication networks.

[0154] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned flow control method.

[0155] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned flow control method.

[0156] Figure 8 Another flow control device 800 provided in an embodiment of the present application is shown. The device 800 includes a classification module 810, a scheduling module 820 and a back pressure module 830.

[0157] The classifier module 810 can be used to classify the messages received by the forwarding node (e.g., the forwarding node 121). For example, messages with the same source forwarding node, the same destination forwarding node, and the same service type can be classified into one flow. The classifier module 810 can also be used to assign different flows to queues in the forwarding node respectively. That is, the classifier module 810 can be used to at least execute S320, S330, and S340.

[0158] The classification module 810 may provide a command line, which may call a weight configuration interface, through which weight configuration may be performed for some flows.

[0159] The scheduling module (scheduler) 820 can schedule the messages in the unpaused queue of the forwarding node to forward the messages. For example, the scheduling and forwarding can be performed based on the weight of the flow to which the message belongs, for example, the scheduling and forwarding can be performed based on strategies such as WFQ, PQ, RR, etc. For example, the back pressure module can at least be used to execute S510.

[0160] The backpressure module 830 can detect the queue length and perform backpressure operations, etc. For example, the backpressure module 830 can execute S310, S520, S530 or S540.

[0161] Fig. 9 A PHB information 900 provided in an embodiment of the present application is shown. Exemplarily, the PHB information 900 may be carried in a payload field of a UDP message. The PHB information 900 may be carried in a message.

[0162] Field 902 may include a PHB version number, and field 902 may be used to distinguish different PHB versions.

[0163] Field 904 may include a PHB flag. For example, field 904 may carry indication information, which is used to instruct the forwarding node that receives the message to suspend sending messages of a certain queue or resume sending messages of a certain queue. For example, the PHB information 900 may be carried in a message for back pressure, that is, the message is sent to the previous hop forwarding node, instructing the previous hop forwarding node to suspend sending messages of a certain queue. The aforementioned back pressure message may also be called a back pressure signal.

[0164] Field 906 may include flow identity information, for example, field 906 may include the source forwarding node ID, destination forwarding node ID and the hash value of the service type of the message. The hash value may also be called the hash value of the service aggregation flow triplet.

[0165] Field 908 may include an inbound port number, which is the port number through which the message enters the forwarding node. The inbound port number here is virtual, for example, the inbound port number may be allocated by the DPDK suite.

[0166] Field 910 may include an egress port number, which is the port number from which the message leaves the forwarding node. The ingress port number here is virtual, for example, the ingress port number may be allocated by the DPDK suite. In a forwarding node, the egress port numbers of different queues may be different.

[0167] Field 912 may include a queue index, which may be used to indicate the logical index number of the queue to which the message is assigned. The logical index number here is the logical index number of the queue of the current forwarding node. For distinction, it is referred to as the first index number below.

[0168] Field 914 may include a queue length (length), which may indicate the current length of the queue to which the message is assigned. For example, when there are 5 messages in the queue to which the message is assigned, the queue length may be 5. For another example, when there are 150KB messages in the queue to which the message is assigned, the queue length may indicate 150KB. When there are other flows in the queue to which the message is assigned, the queue length may be the queue length of the messages of all flows in the queue.

[0169] In some embodiments, the classification module 810 may maintain a relationship table, which may be the aforementioned first relationship table, the second relationship table, or the third relationship table, etc. The key of the relationship table may be the source forwarding node ID, the destination forwarding node ID, and the hash value of the service type, and the egress port number of the message. The value of the relationship table may include the number of messages of the flow to which the message belongs, a timestamp, and a pointer to a queue, and the pointer to the queue may be determined by the first index number of the queue, the queue length, and the weight of the queue.

[0170] Field 916 may include the logical index number of the queue of the message in the previous hop forwarding node. For distinction, it is referred to as the second index number below. For example, field 904 carries an indication that the forwarding node suspends sending messages, and a message carrying PHB information 900 is sent to the previous hop forwarding node. The previous hop forwarding node may obtain the second index number in field 916 and suspend sending messages of the queue indicated by the second index number.

[0171] In some embodiments, when a message is sent in a queue of the first forwarding node, the scheduling module 820 may modify the logical index number in the field 916 to the second index number of the queue in the second forwarding node. Thus, when the message is forwarded to the next-hop forwarding node (e.g., the first forwarding node), the second index number in the field 916 may be the logical index number of the queue in the previous-hop forwarding node of the first forwarding node, that is, the logical index number of the queue in the second forwarding node.

[0172] Field 918 may include a Boolean value, which is true or false. When the Boolean value is true, it indicates that the message causes the queue to which the message is assigned to exceed the second threshold.

[0173] In some embodiments, the back pressure module 830 may maintain a back pressure relationship table. The key of the back pressure relationship table may include the information in field 916, i.e., the second index number of the queue of the message in the previous hop forwarding node; the key of the back pressure relationship table may also include the information in field 908, i.e., the inbound port number.

[0174] For example, the back pressure module 830 may monitor whether the number of messages or bytes in a queue exceeds the second threshold of the queue. If exceeded, the number of messages or bytes exceeding the threshold is counted, a Boolean value is set to true, and a PHB feedback suspension message is sent to the previous hop forwarding node. The PHB feedback suspension message is used to indicate that a certain queue of the previous hop forwarding node suspends sending messages. The certain queue can be indicated by the second index number in the field 916, and the indication of suspending sending messages can be carried in the field 904. When the number of messages or bytes in the queue no longer exceeds the second threshold, the back pressure module 830 can set the Boolean value in the field 918 to false, and send a PHB resume message to the previous hop forwarding node. The indication of resuming sending messages can be carried in the field 904.

[0175] Field 920 may be a reserved field.

[0176] By applying the above PHB information 900 to the forwarding node of the overlay network, method 300 and method 500, as well as any one of the embodiments of method 300 and method 500, can be implemented. The embodiment of the present application can improve the utilization rate of the queue, thereby minimizing the head-of-line blocking, and achieve low tail latency of the service to avoid blocking diffusion. On the other hand, due to the use of the overlay network, the forwarding node can be software-based, which is easy to expand and maintain the queue in the forwarding node, has high feasibility, and is easy to implement.

[0177] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A flow control method, characterized in that: include: The first forwarding node updates the first relationship table to obtain a second relationship table when determining that the number or the number of bytes of the messages in the first queue is less than or equal to the first threshold, wherein the first forwarding node is one of multiple forwarding nodes covering the overlay network, the first relationship table includes first allocation information, and the first allocation information is used to indicate that the message of the target flow is allocated to the first queue, the second relationship table does not include the first allocation information, and the first queue is one of N queues included in the first forwarding node, and N is a positive integer; If the first forwarding node receives a message of the target flow while the second relationship table is still valid, determine second allocation information, wherein the second allocation information is used to indicate that the message of the target flow is allocated to a second queue, and the second queue is one of the N queues included in the first forwarding node; The first forwarding node updates the second relationship table to obtain a third relationship table, where the third relationship table includes the second allocation information; The first forwarding node distributes the packets of the target flow to the second queue according to the third relationship table.

2. The method according to claim 1, characterized in that The source forwarding node of any two messages of the target flow is the same, and the source forwarding node is the first forwarding node among the multiple forwarding nodes to receive the message of the target flow; and / or The destination forwarding node of any two messages of the target flow is the same, and the destination forwarding node is the last forwarding node among the multiple forwarding nodes to receive the message of the target flow.

3. The method according to claim 1 or 2, characterized in that: The service types of any two messages of the target flow are the same.

4. The method according to claim 3, characterized in that Any two messages of the target flow carry the same flow identity information, wherein the flow identity information is determined by the identification ID of the source forwarding node, the ID of the destination forwarding node and the service type.

5. The method according to claim 4, characterized in that The flow identity information is carried in the flow identity field of the message of the target flow.

6. The method according to any one of claims 1 to 5, characterized in that The first allocation information includes a pointer to the first queue, wherein the first forwarding node updates the first relationship table to obtain a second relationship table when determining that the number of messages or the number of bytes in the first queue is less than or equal to a first threshold, including: When determining that the number of messages or the number of bytes in the first queue is less than or equal to the first threshold, the first forwarding node changes the pointer to a null pointer to obtain the second relationship table.

7. The method according to any one of claims 1 to 6, characterized in that: Also includes: The first forwarding node determines the weight of the i-th queue according to the weight of the flow to which the message of the i-th queue belongs among the N queues, where i=1,...,N; The first forwarding node determines a second threshold of the second queue according to the weights of the N queues; The first forwarding node determines that the number or the number of bytes of the messages in the second queue is greater than or equal to the second threshold, wherein the messages in the second queue come from at least one second forwarding node, and the at least one second forwarding node is a previous hop forwarding node of the first forwarding node; The first forwarding node sends a back pressure signal to the at least one second forwarding node, wherein the back pressure signal is used to instruct the at least one second forwarding node to suspend sending the flow to which the packets in the second queue belong to to the first forwarding node.

8. The method according to claim 7, characterized in that The first forwarding node determines, according to the weights of the N queues, a second threshold of the second queue, including: Determining, by the first forwarding node, delay information between the at least one second forwarding node and the first forwarding node; The first forwarding node determines the second threshold of the second queue according to the weights of the N queues and the delay information.

9. The method according to claim 8, characterized in that The first forwarding node determines the second threshold of the second queue according to the weights of the N queues and the delay information, including: The second threshold of the second queue is determined according to the following formula: Wherein, Φ2 is the second threshold of the second queue, C is the outbound port capacity of the first forwarding node, HRTT is the single-hop round-trip delay between the first forwarding node and the at least one second forwarding node, and w i is the weight of the i-th queue.

10. The method according to any one of claims 1 to 9, characterized in that Also includes: When determining that the number of packets or the number of bytes in the first queue is greater than a first threshold, the first forwarding node allocates the packets of the target flow to the first queue according to the first allocation information in the first relationship table.

11. A flow control device, characterized in that: include: A relationship table configuration module, configured to update the first relationship table to obtain a second relationship table when the first forwarding node determines that the number of messages or the number of bytes in the first queue is less than or equal to a first threshold, wherein the first forwarding node is one of a plurality of forwarding nodes covering the overlay network, the first relationship table includes first allocation information, the first allocation information is used to indicate that the message of the target flow is allocated to the first queue, the second relationship table does not include the first allocation information, and the first queue is one of N queues included in the first forwarding node, where N is a positive integer; a queue determination module, configured to determine second allocation information if the first forwarding node receives a message of the target flow while the second relationship table persists, wherein the second allocation information is used to indicate that the message of the target flow is allocated to a second queue, and the second queue is one of the N queues included in the first forwarding node; The relationship table configuration module is further used to update the second relationship table to obtain a third relationship table, wherein the third relationship table includes the second allocation information; An allocating module is used to allocate the packets of the target flow to the second queue according to the third relationship table.

12. The device according to claim 11, characterized in that The source forwarding node of any two messages of the target flow is the same, and the source forwarding node is the first forwarding node among the multiple forwarding nodes to receive the message of the target flow; and / or The destination forwarding node of any two messages of the target flow is the same, and the destination forwarding node is the last forwarding node among the multiple forwarding nodes to receive the message of the target flow.

13. The device according to claim 11 or 12, characterized in that The service types of any two messages of the target flow are the same.

14. The device according to claim 13, characterized in that Any two messages of the target flow carry the same flow identity information, wherein the flow identity information is determined by the identification ID of the source forwarding node, the ID of the destination forwarding node and the service type.

15. The device according to claim 14, characterized in that The flow identity information is carried in the flow identity field of the message of the target flow.

16. The device according to any one of claims 11 to 15, characterized in that The first allocation information includes a pointer to the first queue, wherein the relationship table configuration module is specifically used to: When determining that the number of messages or the number of bytes in the first queue is less than or equal to the first threshold, the first forwarding node changes the pointer to a null pointer to obtain the second relationship table.

17. The device according to any one of claims 11 to 16, characterized in that Also includes: A weight determination module, configured to determine the weight of the i-th queue among the N queues according to the weight of the flow to which the message in the i-th queue belongs, where i=1,...,N; a threshold determination module, configured to determine a second threshold of the second queue according to the weights of the N queues; a judgment module, configured to determine whether the number or the number of bytes of the messages in the second queue is greater than or equal to the second threshold, wherein the messages in the second queue are from at least one second forwarding node, and the at least one second forwarding node is a previous-hop forwarding node of the first forwarding node; A back pressure module is used to send a back pressure signal to the at least one second forwarding node, wherein the back pressure signal is used to instruct the at least one second forwarding node to suspend sending the flow to which the message in the second queue belongs to to the first forwarding node.

18. The device according to claim 17, characterized in that The threshold determination module is specifically used for: Determining delay information between the at least one second forwarding node and the first forwarding node; The second threshold of the second queue is determined according to the weights of the N queues and the delay information.

19. The device according to claim 18, characterized in that The threshold determination module is specifically configured to determine the second threshold of the second queue according to the following formula: Wherein, Φ2 is the second threshold of the second queue, C is the outbound port capacity of the first forwarding node, HRTT is the handshake round trip time between the first forwarding node and the at least one second forwarding node, and w i is the weight of the i-th queue.

20. The device according to any one of claims 11 to 19, characterized in that The allocation module is further configured to allocate the packets of the target flow to the first queue according to the first allocation information in the first relationship table when the first forwarding node determines that the number or the number of bytes of packets in the first queue is greater than a first threshold.

21. A computing device, characterized in that The method comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory so that the computing device executes the method according to any one of claims 1 to 10.

22. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device, the computing device is caused to perform the method according to any one of claims 1 to 10.

23. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, and when the computer program instructions are executed by a computing device, the computing device performs the method as claimed in any one of claims 1 to 10.