Network flow control method and apparatus

By carrying flow control information in the target packet, the first network device can accurately determine the devices, ports, and queues that require flow control, which solves the problems of congestion diffusion and inaccurate source flow control caused by link-level flow control. Improved the accuracy and applicability of flow control management.

WO2024188244A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/081232
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-03-12
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing link-level flow control technology causes network congestion to spread. The source-side flow control solution is not accurate enough when determining the source device of congested flows, which may trigger incorrect flow control operations and reduce the accuracy of flow control management.

Method used

By carrying flow control information in the target packet, including the identity of the network device, port and queue information, the first network device can accurately determine the device, port and queue that require flow control, and generate a corresponding flow control notification to ensure the flow of traffic. Control operation accuracy and control diversity.

Benefits of technology

It improves the accuracy of flow control management and avoids erroneous flow control operations. It is suitable for large-scale networking scenarios, especially network equipment with small cache and high speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081232_19092024_PF_FP_ABST
    Figure CN2024081232_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of communications. Provided are a network flow control method and apparatus, which are used for providing accurate flow control management. The method comprises: a first network device receiving a target message from a second network device, wherein the target message carries message flow control information, and the message flow control information comprises identification information of the second network device, information about a port via which the target message flows into the second network device, queue information of the target message in the second network device and / or priority information of the target message; the first network device determining that the second network device needs to perform a flow control operation; the first network device generating a first flow control notification according to the message flow control information; and the first network device sending the first flow control notification to the second network device, wherein the first flow control notification instructs the second network device to execute the flow control operation.
Need to check novelty before this filing date? Find Prior Art

Description

Network flow control method and device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 13, 2023, with application number 202310261079.2 and invention name “A Network Flow Control Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of communication technology, and in particular to a network flow control method and device. Background Art

[0003] Link-level flow control technology in networks is primarily based on the Priority-based Flow Control (PFC) standard. PFC is a flow control technology used between two directly connected network devices. Station 1, acting as the data receiver, maintains a buffer to store packets sent by Station 2 but not forwarded. When multiple stations send packets to Station 1 and congestion occurs, the congestion propagates upward layer by layer in the opposite direction of traffic forwarding, causing congestion to spread across the network link.

[0004] One current solution to the congestion spread caused by link-level flow control is source flow control (SFC), which acts on both the network device experiencing congestion and the source network device of the congested flow. The congested network device generates a congestion signal message and performs a route search based on the source IP address of the congested flow. If the destination IP address of the message is a host connected to the switch, the congestion notification message triggers flow control on the corresponding host.

[0005] In the SFC solution, the congested network device cannot accurately determine the relevant information of the source network device where the congested flow is located. It only searches for routes based on the source IP address of the congested flow. Therefore, it may erroneously trigger flow control operations, resulting in low accuracy of flow control management.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a network flow control method and apparatus for providing accurate flow control management.

[0008] In the first aspect, an embodiment of the present application provides a network flow control method, which is applied to a first network device on the flow control initiation side and a second network device on the flow control execution side, the method comprising: the first network device receives a target message from the second network device, the target message carries message flow control information, the message flow control information includes identification information of the second network device, port information through which the target message flows into the second network device, and queue information of the target message in the second network device and / or priority information of the target message; the first network device determines that the second network device needs to perform a flow control operation; the first network device generates a first flow control notification based on the message flow control information; the first network device sends the first flow control notification to the second network device, the first flow control notification instructing the second network device to perform a flow control operation.

[0009] In this possible implementation, the target message forwarded by the second network device carries message flow control information. The first network device that receives the target message can uniquely determine the link through which the message flows into the second network device based on the message flow control information. Thus, when flow control needs to be initiated, the device, port, and queue that need to be flow controlled can be accurately determined, thereby avoiding triggering erroneous flow control operations and improving the accuracy of flow control management.

[0010] In one possible implementation, the above-mentioned first network device generates a first flow control notification, including: the first network device determines flow control parameter information, second network device location information, flow control port information, flow control queue information and / or priority information of the target message, and the flow control parameter information is used to guide the second network device to perform flow control operations; the first network device generates a first flow control notification, and the first flow control notification includes flow control parameter information, second network device location information, flow control port information, flow control queue information and / or priority information of the target message.

[0011] In this possible implementation, the first flow control notification sent by the first network device to the second network device includes flow control parameter information, second network device location information, flow control port information, flow control queue information, and / or target message priority information, so that the first flow control notification can be accurately sent to the second network device, and the flow control port information and flow control queue information indicate that flow control operations are to be performed on the specified ports and queues, thereby ensuring that the devices, ports, and queues requiring flow control can be accurately determined, avoiding triggering erroneous flow control operations. On the other hand, the flow control parameter information in the first flow control notification can also be used to instruct the second network device on how to perform flow control operations, thereby increasing the control diversity of the flow control initiator on the flow control operation.

[0012] In one possible implementation, the above-mentioned flow control parameter information includes a time interval, which indicates the time interval allowed for sending by the first network device in the current cycle. The above-mentioned first network device determines the flow control parameter information, including: the first network device determines the time interval information based on the queue depth, link rate, round-trip delay between the first network device and the second network device, and expected queue depth.

[0013] In this possible implementation, a method for determining the flow control parameter of the time interval is specifically provided, which improves the feasibility of the embodiment of the present application.

[0014] In a possible implementation, the first network device determines that the second network device needs to perform a flow control operation, including: when a current queue depth exceeds a threshold, the first network device determines that the second network device needs to perform a flow control operation.

[0015] In one possible implementation, the first flow control management segment includes a first network device and a second network device, the second flow control management segment includes a third network device on the flow control execution side, and the second flow control management segment is the next segment of the first flow control management segment. Before the first network device determines that the second network device is required to perform a flow control operation, the above method also includes: the first network device receives a second flow control notification from the third network device, and the second flow control notification indicates that the third network device has triggered the execution of the flow control operation.

[0016] In this possible implementation method, in the scenario where the entire network is divided into multiple flow control management segments, by dividing the entire network into multiple flow control management segments, the original long control path is divided into multiple short control paths, flow control management can be performed in each flow control management segment, and adjacent flow control management segments can also transmit flow control management related information to each other, reducing the demand for device cache for cross-device flow control, which can better support large-scale networking scenarios and is more friendly to flow control management for small-cache and high-speed network devices.

[0017] In a possible implementation, the first network device determines that the second network device needs to perform a flow control operation, including: the first network device determines that the second network device needs to perform a flow control operation according to a second flow control notification.

[0018] In this possible implementation, the first network device determines that the second network device needs to perform flow control operations based on the second flow control notification, providing a flow control management solution between flow control management segments, which is more friendly to long-distance flow control management and improves the feasibility of the embodiments of the present application.

[0019] In a possible implementation, the method further includes: the first network device deleting the message flow control information in the target message, and the first network device forwarding the target message that does not carry the message flow control information.

[0020] In second aspect, an embodiment of the present application provides a network flow control method, which includes: the second network device receives a target message; the second network device generates message flow control information based on the target message, the message flow control information includes identification information of the second network device, port information of the target message flowing into the second network device, queue information of the target message in the second network device and / or priority information of the target message; the second network device forwards the target message carrying the message flow control information; the second network device receives a first flow control notification from the first network device, the first flow control notification instructs the second network device to perform a flow control operation; the second network device determines to perform the flow control operation; the second network device performs the flow control operation according to the first flow control notification.

[0021] In this possible implementation, the target message forwarded by the second network device carries message flow control information. The first network device that receives the target message can uniquely determine the link through which the message flows into the second network device based on the message flow control information. Thus, when flow control needs to be initiated, the device, port, and queue that need to be flow controlled can be accurately determined, thereby avoiding triggering erroneous flow control operations and improving the accuracy of flow control management.

[0022] In one possible implementation, the first flow control notification includes flow control parameter information, and the second network device performs flow control operations according to the first flow control notification, including: the second network device performs flow control operations according to the flow control parameter information; and / or the first flow control notification includes flow control port information, and the second network device performs flow control operations according to the instructions of the first flow control notification, including: the second network device performs flow control operations on the port indicated by the flow control port information; and / or the first flow control notification includes flow control queue information, and the above-mentioned second network device performs flow control operations according to the instructions of the first flow control notification, including: the second network device performs flow control operations on the queue indicated by the flow control queue information; and / or the first flow control notification includes priority information of the target message, and the above-mentioned second network device performs flow control operations according to the instructions of the first flow control notification, including: the second network device performs flow control operations according to the priority information of the target message.

[0023] In one possible implementation, the first flow control management segment includes a first network device and a second network device, the third flow control management segment includes a fourth network device on the flow control initiating side, and the third flow control management segment is the previous segment of the first flow control management segment. After the second network device receives the first flow control notification from the first network device, the above method also includes: the second network device sends a third flow control notification to the fourth network device, and the third flow control notification indicates that the second network device has triggered the execution of the flow control operation.

[0024] In this possible implementation method, in the scenario where the entire network is divided into multiple flow control management segments, by dividing the entire network into multiple flow control management segments, the original long control path is divided into multiple short control paths, flow control management can be performed in each flow control management segment, and adjacent flow control management segments can also transmit flow control management related information to each other, reducing the demand for device cache for cross-device flow control, which can better support large-scale networking scenarios and is more friendly to flow control management for small-cache and high-speed network devices.

[0025] In a third aspect, an embodiment of the present application provides a first network device, comprising: a processor and a memory. The processor is coupled to the memory; the memory is configured to store computer instructions, which are loaded and executed by the processor to enable the first network device to implement any one of the methods provided in the first aspect.

[0026] In a fourth aspect, an embodiment of the present application provides a second network device, comprising: a processor and a memory. The processor is coupled to the memory; the memory is configured to store computer instructions, which are loaded and executed by the processor to cause the second network device to implement any one of the methods provided in the second aspect.

[0027] In a fifth aspect, an embodiment of the present application provides a chip comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; and the processor is used to run the code instructions to execute any one of the methods provided in the first aspect.

[0028] In a sixth aspect, an embodiment of the present application provides a chip comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; and the processor is used to run the code instructions to execute any one of the methods provided in the second aspect.

[0029] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores at least one computer program instruction, and the computer program instruction is loaded and executed by a processor to implement any one of the methods provided in the first aspect above.

[0030] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores at least one computer program instruction, and the computer program instruction is loaded and executed by a processor to implement any one of the methods provided in the second aspect above.

[0031] In a ninth aspect, an embodiment of the present application provides a computer program product, comprising computer execution instructions, which, when executed on a computer, enable the computer to execute any one of the methods provided in the first aspect.

[0032] In a tenth aspect, an embodiment of the present application provides a computer program product, comprising computer execution instructions, which, when the computer execution instructions are run on a computer, enable the computer to execute any one of the methods provided in the second aspect.

[0033] The technical effects brought about by any implementation method in the third to tenth aspects can be referred to the technical effects brought about by the corresponding implementation methods in the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] FIG1 is a schematic diagram of a scenario of a link-level flow control technology;

[0035] Figure 2 is a schematic diagram of a congestion diffusion scenario;

[0036] FIG3 is a schematic diagram of a source-side flow control SFC solution scenario;

[0037] FIG4 is a schematic diagram of a data center network scenario provided by an embodiment of the present application;

[0038] FIG5 is a schematic diagram of the structure of a network device provided in an embodiment of the present application;

[0039] FIG6 is a flow chart of a network flow control method provided in an embodiment of the present application;

[0040] FIG7 is a schematic diagram of a scenario for generating target message flow control information according to an embodiment of the present application;

[0041] FIG8 is a schematic diagram of the structure of a flow control management system provided in an embodiment of the present application;

[0042] FIG9 is a flow chart of another network flow control method provided in an embodiment of the present application;

[0043] FIG10 is a schematic diagram of the structure of a first flow control notification provided in an embodiment of the present application;

[0044] FIG11 is a schematic structural diagram of a first network device provided in an embodiment of the present application;

[0045] FIG12 is a schematic structural diagram of a second network device provided in an embodiment of the present application;

[0046] FIG13 is a schematic structural diagram of another first network device provided in an embodiment of the present application;

[0047] FIG14 is a schematic structural diagram of another second network device provided in an embodiment of the present application;

[0048] FIG15 is a schematic structural diagram of a flow control management system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In the description of this application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0050] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0051] In addition, to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.

[0052] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner to facilitate understanding.

[0053] It will be understood that the “embodiment” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It will be understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0054] It is understood that some optional features in the embodiments of the present application may, in certain scenarios, be implemented independently of other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features in certain scenarios as needed. Accordingly, the devices provided in the embodiments of the present application may also implement these features or functions accordingly, which will not be described in detail here.

[0055] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referenced to each other. In this application, unless otherwise specified and there is no logical conflict between the various embodiments, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other. Different embodiments can be combined to form new embodiments based on their inherent logical relationships. The following implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0056] To facilitate understanding of the technical solutions of the embodiments of the present application, a brief introduction to the relevant technologies of the embodiments of the present application is given below:

[0057] 1. Link-level flow control.

[0058] As shown in Figure 1, link-level flow control technology in networks is primarily based on the priority-based flow control (PFC) standard. PFC is a flow control technology used between two directly connected network devices. Station 1, as the data receiver, maintains a buffer to buffer packets sent by Station 2 but not yet forwarded. When the remaining space in Station 1's buffer falls below a threshold, Station 1 sends a link-layer flow control pause (PFC Pause) message to Station 2. Upon receiving this PFC Pause message, Station 2 stops sending packets to Station 1. Station 1 continues forwarding packets in its buffer, ensuring that no new packets are added to Station 1's buffer. As packets are forwarded, the remaining space in the buffer gradually increases. When the remaining space in Station 1's buffer exceeds the threshold, Station 1 sends a link-layer flow control resume (PFC Resume) frame to Station 2. Upon receiving this PFC Resume frame, Station 2 resumes sending packets to Station 1.

[0059] As shown in Figure 2, link-level flow control can cause congestion to spread. A port on switch L1.4 receives traffic from switches L2.3 and L2.4. This means that multiple L2 switches are simultaneously forwarding traffic to the same port on switch L1.4. This prevents switch L1.4 from processing this traffic in a timely manner, causing packets to accumulate in the L1 buffer. When the L1.4 packet buffer backlog exceeds the threshold, the PFC flow control mechanism is triggered, halting traffic forwarding from L2.3 and L2.4 to L1. Because traffic forwarding to L1.4 is suspended at switches L2.3 and L2.4, traffic backlogs accumulate in the L2.3 and L2.4 caches. When the backlog exceeds the threshold, the PFC flow control mechanism is triggered again, further applying back pressure to the L3 switch, further spreading congestion from L2 to L3. This process repeats at L3, spreading congestion upward layer by layer in the opposite direction of traffic forwarding, causing network link congestion to spread. Currently, chip port switching rates are increasing, but chip caches have not improved much, increasing the likelihood and severity of network link congestion, especially in large-scale networking scenarios.

[0060] As shown in Figure 3, one current solution to the congestion spread problem caused by link-level flow control is source-side flow control (SFC). This solution triggers flow control across multiple devices to prevent congestion from spreading to intermediate networks. The difference between SFC and PFC is that SFC does not affect the two directly connected network devices, but rather affects the network device where the congestion occurs and the network device where the congested flow originates.

[0061] As shown in Figure 3, the congested flow originates from computing device H1 (called the Sender), passes through switch L1.1 (called the SrcToR), reaches switch L1.4 (called the DstToR), and finally enters computing device H4 (called the Receiver). The SFC solution implements flow control on two network devices: switch L1.1 (DstToR) and switch L1.4 (SrcToR). The specific process is as follows: According to the SFC solution, when congestion occurs on switch L1.1, switch L1.1 identifies the congested flow that caused the congestion. It then constructs a three-layer congestion signal message based on the source and destination Internet Protocol (IP) addresses of the congested flow. The source IP address of the congestion signal message is the destination IP address of the congested flow, and the destination IP address of the congestion signal message is the source IP address of the congested flow. The intermediate switch forwards the congestion signal message according to the destination IP address. When the L1.4 switch receives the congestion signal message, it finds that the destination IP address of the message is the host connected to the switch, so it triggers PFC flow control of the corresponding host according to the congestion notification message.

[0062] Since the SFC lacks accurate SrcToR information, it doesn't know which SrcToR port the congested flow entered the network from. It only performs routing based on the congested flow's source IP address. When the source IP addresses correspond to two different ports, these two ports may represent the same SrcToR or different SrcToRs. Therefore, PFC flow control may be triggered on the wrong device or the correct device but on the wrong port. Furthermore, the SFC's long control path requires the DstToR to have sufficient buffer to absorb the traffic along the path, placing high demands on the DstToR and making the solution difficult to implement.

[0063] An embodiment of the present application provides a network flow control method for specifying the execution of a network flow control mechanism between any two devices in a network. The method comprises: a second network device receives a target message; the second network device generates message flow control information based on the target message, the message flow control information including identification information of the second network device, information about the port through which the target message flows into the second network device, queue information of the target message in the second network device, and / or priority information of the target message; the second network device forwards the target message carrying the message flow control information; a first network device receives a target message from the second network device, the target message carrying the message flow control information; the first network device determines that the second network device needs to perform a flow control operation; the first network device generates a first flow control notification; the first network device sends the first flow control notification to the second network device, the first flow control notification instructing the second network device to perform a flow control operation; the second network device receives the first flow control notification from the first network device, the first flow control notification instructing the second network device to perform a flow control operation; and the second network device performs the flow control operation according to the instruction of the first flow control notification. Through information exchange based on the message flow control information, the embodiment of the present application ensures that the correct network device can be triggered to perform a flow control operation.

[0064] As shown in Figure 4, the network flow control method provided in the embodiment of the present application can be applied to the data center network scenario. The three-level CLOS architecture of the data center network shown in Figure 4 includes three types of switches: the first is a top of rack switch (TOR), whose downlink port is connected to the server and the uplink port is connected to the aggregation (AGG) switch; the second is an AGG switch, whose downlink port is connected to the TOR switch and the uplink port is connected to the spine SPINE switch; the third is a SPINE switch, which is connected to the AGG switch.

[0065] It is understandable that Figure 4 is only a simple example of a CLOS network. In actual deployment, the number of servers, TOR switches, AGG switches, and SPINE switches needs to be determined based on factors such as network scale and application type.

[0066] It can be understood that the network flow control method provided in the embodiment of the present application is not limited to the data center CLOS network, but is also applicable to other network architectures, such as wireless mesh network MESH, ring network TORUS, etc., and can also be applied to other non-data center scenarios using link-level flow control technology, which is not specifically limited here.

[0067] The network flow control method provided in the embodiment of the present application is applicable to the link-level flow control technology based on PFC. In addition, the embodiment of the present application can also be applicable to other link-level flow control technologies, such as the link-level flow control technology based on Credit, which is not limited here.

[0068] As shown in Figure 5, the network flow control method provided in an embodiment of the present application can be applied to the network device, which may include a control module and a forwarding module. The forwarding module includes a label adding unit and a label removing unit. The control module includes a label generation unit, a label processing unit, a first flow control notification generation unit and a first flow control notification processing unit. The message flow control information is carried in the message in the form of a label.

[0069] The label adding unit is used to add labels to the message to indicate the network location information of the flow control execution side.

[0070] The label removal unit is used to remove the label added to the message by the flow control execution side at the flow control initiating side.

[0071] The label generation unit is used to generate a label containing location information on the flow control execution side, and encode the location information of the flow control execution side in a certain format.

[0072] The label processing unit is used to extract and maintain the location information in the label after the flow control initiating side receives the label added by the flow control executing side.

[0073] The first flow control notification generating unit is used for the flow control initiating side to determine whether flow control needs to be performed on the flow control executing side according to the local status of the device, and to generate a corresponding first flow control notification if necessary.

[0074] The first flow control notification processing unit is configured to parse and extract flow control-related parameters from the first flow control notification sent by the flow control initiating side, and then perform flow control operations. The aforementioned functional modules can be implemented using hardware circuits or program instructions of a general-purpose or dedicated processor.

[0075] The network devices in the embodiments of the present application may be network devices such as switches and routers, or other devices used to transmit network information, such as network cards and other network devices, which are not specifically limited here.

[0076] It is understood that in the embodiments of the present application, the execution subject may perform some or all of the steps in the embodiments of the present application. These steps or operations are merely examples, and the embodiments of the present application may also perform other operations or variations of various operations. In addition, the various steps may be performed in a different order than those presented in the embodiments of the present application, and it is possible that not all operations in the embodiments of the present application need to be performed.

[0077] It should be noted that the message names between the devices or the names of the parameters in the messages in the following embodiments of the present application are only examples. Other names may be used in specific implementations, and the embodiments of the present application do not specifically limit this.

[0078] As shown in FIG6 , a network flow control method provided in an embodiment of the present application includes the following steps:

[0079] 601. The second network device receives a target message.

[0080] The second network device receives the target message from the target port, inserts the target message into the target queue for buffering, and prepares to forward the target message.

[0081] 602. The second network device generates message flow control information.

[0082] The second network device generates message flow control information according to the target message, which includes identification information of the second network device, port information of the target message flowing into the second network device, queue information of the target message in the second network device and / or priority information of the target message.

[0083] Specifically, when a target message flows into the second network device from its target port, the second network device inserts the target message into a target queue for forwarding. Based on this information, the second network device generates message flow control information. This message flow control information includes identification information of the second network device, port information of the target port, queue information of the target queue, and / or priority information of the target message. Based on this message flow control information, the link information of the target message entering the second network device can be uniquely determined.

[0084] In an embodiment of the present application, the second network device identification information is used to uniquely identify the second network device in the network or in the flow control management system. The second network device identification information may include the MAC address of the second network device, the product serial number (SN), a partial SN, a serial number in the network or in the flow control management system, a code in the network or in the flow control management system, and one or more identifiers of the name in the network or in the flow control management system, etc., which are not limited here.

[0085] In an embodiment of the present application, the port information of the target port is used to uniquely identify the target port in the network, in the flow control management system or in the second network device. The port information of the target port can be one or more identifiers such as a serial number, a code or a name, etc., which is not limited here.

[0086] In an embodiment of the present application, the queue information of the target queue is used to uniquely identify the target queue in the network, in the flow control management system or in the second network device. The queue information of the target queue can be one or more identifiers such as serial number, code or name, which is not limited here.

[0087] In an embodiment of the present application, the priority information of the target message is used to determine the priority of the target message in message transmission.

[0088] In one possible implementation, the target message queue information and the target message priority information in the embodiment of the present application have a corresponding mapping relationship. If the target message priority information is the lowest, the network device may place the target message in the lowest priority queue; if the target message priority information is the highest, the network device may place the target message in the highest priority queue. That is, the target message queue information can be determined based on the target message priority information, and the target message priority information can also be determined based on the target message queue information.

[0089] As shown in Figure 7, for example, a target packet enters network device L1 through port 1. Network device L1 inserts the target packet into queue 1 for forwarding. Device L1 then generates flow control information for the target packet. The switch ID field of this flow control information is L1, the port ID field is port1, and the queue ID field is queue1. The switch ID field of this flow control information indicates the device identification information of device L1, the port ID field indicates the port through which the target packet enters device L1, and the queue ID field indicates the queue information of the target packet in device L1.

[0090] It is understood that in the embodiments of the present application, the packet flow control information carried by the target packet can be entirely contained in a single label or in multiple consecutive fields. For example, the target packet carries a packet flow control label that includes the packet flow control information; or a corresponding field is added to the header of the target packet to carry the packet flow control information. Furthermore, the packet flow control information can also be dispersed across various fields of the target packet, and the fields of the packet flow control information are not consecutive. This is not a specific limitation here.

[0091] 603. The second network device forwards the target message carrying the message flow control information.

[0092] After generating the message flow control information, the second network device adds the message flow control information to the message, and then forwards the target message carrying the message flow control information. The message flow control information will be carried to the first network device on the flow control initiating side along with the message forwarding.

[0093] Correspondingly, the first network device receives the target message carrying the message flow control information from the second network device.

[0094] In an embodiment of the present application, the target message forwarded by the second network device carries message flow control information. The first network device that receives the target message can uniquely determine the link through which the message flows into the second network device based on the message flow control information, so that when flow control needs to be initiated, the device, port and queue that need to be flow controlled can be accurately determined to avoid triggering erroneous flow control operations.

[0095] 604. The first network device extracts message flow control information.

[0096] After receiving a target message carrying message flow control information from a second network device, the first network device extracts the message flow control information from the target message. The first network device can determine the identification information of the second network device, the port information of the target port, and the queue information of the target queue by parsing the message flow control information, thereby uniquely determining the link information of the target message entering the second network device.

[0097] In a possible implementation, after extracting the message flow control information, the first network device deletes the message flow control information in the target message, and then forwards the target message without the message flow control information to the next hop, thereby reducing the size of the target message.

[0098] As shown in Figure 8, in one possible implementation, the entire network is divided into multiple flow control management segments, each flow control management segment includes a network device on the flow control initiation side and a network device on the flow control execution side, each flow control management segment includes at least two network devices, and each flow control management segment can execute the flow control management method through the network device on the flow control initiation side and the network device on the flow control execution side. Among them, the first flow control management segment includes the first network device on the flow control initiation side and the second network device on the flow control execution side, the second flow control management segment includes the fifth network device on the flow control initiation side and the third network device on the flow control execution side, and the third flow control management segment includes the fourth network device on the flow control initiation side and the sixth network device on the flow control execution side. In this possible implementation, the network flow control method provided in the embodiment of the present application also includes step 605.

[0099] 605. The first network device receives a second flow control notification from the third network device.

[0100] As shown in Figure 9, in a scenario where the flow control management system can divide the entire network into multiple flow control management segments, when the third network device on the flow control execution side of the second flow control management segment determines to perform a flow control operation, that is, when the third network device triggers the flow control operation, since there is message transmission between the first flow control management segment and the second flow control management segment, the third network device will send a second flow control notification to the first network device, and the second flow control notification indicates that the third network device has triggered the execution of the flow control operation.

[0101] Correspondingly, the first network device receives the second flow control notification from the third network device.

[0102] 606. The first network device determines that the second network device is required to perform a flow control operation.

[0103] The first network device performs congestion detection according to the current message forwarding state, thereby determining that traffic congestion has occurred and the target message belongs to a congested flow. To prevent the congestion from spreading, the first network device determines that the second network device needs to perform a flow control operation.

[0104] In one possible implementation, the first network device determines whether congestion currently occurs by adopting a single threshold mechanism. When the queue depth exceeds a preset first threshold K1, the first network device determines that congestion currently occurs. When the queue depth is less than the preset first threshold, the first network device determines that congestion currently does not occur.

[0105] In another possible implementation, the first network device determines whether congestion currently occurs by adopting a dual-threshold mechanism. When the queue depth is lower than the second threshold Kmin, the first network device determines that congestion currently does not occur; when the queue depth exceeds the third threshold Kmax, the first network device determines that congestion currently occurs; when the queue depth exceeds Kmin and is lower than Kmax, the first network device can determine whether congestion currently occurs according to a certain probability.

[0106] In one possible implementation, in a scenario where the flow control management system can divide the entire network into multiple flow control management segments, a first network device determines whether a second network device is required to perform flow control operations, and further determines whether the second network device is required to perform flow control operations based on a second flow control notification from a third network device. Specifically, after the first network device receives the second flow control notification from the third network device, the first network device can determine that the second network device is required to perform flow control operations.

[0107] It can be understood that the first network device determines whether the second network device is needed to perform flow control operations, and it can also comprehensively consider the second flow control notification and whether congestion occurs at present. For example, if either of the two conditions of receiving the second flow control notification and congestion occurs is met, it can be determined that the second network device needs to perform flow control operations, or both conditions can be met before determining that the second network device needs to perform flow control operations. In addition, there can also be other conditions that trigger the first network device to determine that the second network device needs to perform flow control operations, which are not limited here.

[0108] 607. The first network device generates a first flow control notification according to the message flow control information.

[0109] When the first network device determines that the second network device needs to perform flow control, the first network device generates a first flow control notification based on the message flow control information. The first flow control notification is used to instruct the second network device to perform flow control operations according to the instructions of the first flow control notification. The first flow control notification may include flow control parameter information, location information of the second network device, flow control port information, and flow control queue information.

[0110] As shown in Figure 10, specifically, the first flow control notification may include a dest IP address field, which is used to indicate the IP address of the network device receiving the first flow control notification; it may also include a scr IP address field, which is used to indicate the IP address of the first network device on the flow control initiating side; it may also include a type field, which is used to indicate that the message type of the message is the first flow control notification, and is also used to indicate the processing flow after the flow control receiver receives the first flow control notification; it may also include a switch ID field, which is used to indicate the network device identifier that performs the flow control operation; it may also include a port ID field, which is used to indicate the port identifier on which the flow control operation acts; it may also include a queue ID field, which is used to indicate the queue identifier on which the flow control operation acts; it may also include a timer field, which is used to indicate the time interval allowed for sending in the current cycle; it may also include a credit field, which is used to indicate the number of signalings allowed to be increased in the current cycle. In addition, other fields may also be included, which are not limited here.

[0111] It can be understood that the above-mentioned second network device location information includes the dest IP address field and the switch ID field, the above-mentioned flow control parameter information includes the timer field, the credit field and the type field, the above-mentioned flow control port information includes the port ID field, and the above-mentioned flow control queue information includes the queue ID field.

[0112] It is understandable that the network device identifier for performing the flow control operation in the switch ID field, the port identifier in the port ID field, and the queue identifier in the queue ID field can all be obtained by the first network device by extracting and parsing the message flow control information. The IP address of the network device receiving the first flow control notification indicated by the dest IP address field and the network device identifier for performing the flow control operation indicated by the switch ID field can be converted to each other by the first network device according to a pre-configured device address translation table, which indicates a one-to-one correspondence between the identifier of the network device and the IP address.

[0113] In one possible implementation, the first network device can determine flow control parameter information through calculation. For example, the first network device can first obtain the current queue depth (qcurrent), the current link rate (rlink), the round-trip time (RTT) between the first network device and the second network device, and the expected queue depth (qtarget), i.e., the queue depth is expected to be lower than qtarget. The first network device then determines the time interval allowed for transmission in the current cycle: timer = (qtarget - qcurrent) / rlink - RRT, thereby obtaining the flow control parameter timer.

[0114] 608. The first network device sends a first flow control notification to the second network device.

[0115] The first network device sends a first flow control notification to the second network device, where the first flow control notification indicates that the first network device determines that the second network device needs to perform a flow control operation. Correspondingly, the second network device receives the first flow control notification from the first network device.

[0116] In an embodiment of the present application, the first flow control notification sent by the first network device to the second network device includes flow control parameter information, second network device location information, flow control port information, and flow control queue information, so that the first flow control notification can be accurately sent to the second network device. The flow control port information and flow control queue information indicate that flow control operations should be performed on the specified ports and queues, thereby ensuring that the devices, ports, and queues requiring flow control can be accurately determined, avoiding triggering erroneous flow control operations. On the other hand, the flow control parameter information in the first flow control notification can also be used to instruct the second network device on how to perform flow control operations, increasing the control diversity of the flow control initiator on the flow control operation.

[0117] 609. The second network device performs a flow control operation.

[0118] After receiving the first flow control notification from the first network device, the second network device extracts relevant fields of the first flow control notification according to the processing flow indicated by the type field of the first flow control notification to obtain flow control parameter information. Then, the second network device performs flow control operations on the queue on the corresponding port based on the flow control port information and flow control queue information in the first flow control notification.

[0119] In one possible implementation, after obtaining the flow control parameter information, flow control port information, and flow control queue information, the second network device further determines whether a flow control operation is required based on the flow control status of the queue on the corresponding port. If a flow control operation is required, the flow control operation is performed on the queue on the port. For example, after receiving the first flow control notification, if the second network device determines that the queue on the corresponding port is already in the flow control management state, that is, the flow control operation has already been performed, the second network device may not trigger the execution of a new flow control operation.

[0120] In an embodiment of the present application, the second network device performs a flow control operation by sending a flow control frame to the queue on the corresponding port, such as a PFC back pressure frame. In addition, it can also be other flow control operations, such as pausing the sending of messages to the first network device, etc., which are not limited here.

[0121] In a scenario where the flow control management system can divide the entire network into multiple flow control management segments, the network flow control method provided in the embodiment of the present application also includes step 610.

[0122] 610. The second network device sends a third flow control notification to the fourth network device.

[0123] As shown in Figure 9, in a scenario where the flow control management system can divide the entire network into multiple flow control management segments, when the second network device determines to perform a flow control operation, that is, when the second network device triggers the flow control operation, since there is message transmission between the first flow control management segment and the third flow control management segment, the second network device will send a third flow control notification to the fourth network device, and the third flow control notification indicates that the second network device has triggered the flow control operation.

[0124] In an embodiment of the present application, in a scenario where the flow control management system can divide the entire network into multiple flow control management segments, by dividing the entire network into multiple flow control management segments, the original long control path is divided into multiple short control paths, flow control management can be performed within each flow control management segment, and adjacent flow control management segments can also transmit relevant information about flow control management to each other, reducing the demand for device cache for cross-device flow control, better supporting large-scale networking scenarios, and being more friendly to flow control management for small-cache, high-speed network devices.

[0125] The embodiment of the present application provides a first network device 1100. In the embodiment of the present application, the first network device 1100 can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0126] In the case of dividing each functional module according to each function, FIG11 shows a possible structural diagram of the first network device 1100 involved in the above embodiment. As shown in FIG11 , the first network device 1100 includes:

[0127] The first receiving module 1101 is used to receive a target message from a second network device, where the target message carries message flow control information, and the message flow control information includes identification information of the second network device, port information through which the target message flows into the second network device, queue information of the target message in the second network device, and / or priority information of the target message; for example, executing step 603 in the above-mentioned method embodiment: the second network device forwards the target message carrying the message flow control information.

[0128] In a possible implementation, the first network device 1100 further includes:

[0129] The second receiving module 1102 is configured to receive a second flow control notification from a third network device, the flow control notification indicating that the third network device has triggered a flow control operation. For example, step 605 in the above method embodiment is performed: the first network device receives the second flow control notification from the third network device.

[0130] The determination module 1103 is configured to determine that the second network device needs to perform a flow control operation; for example, executing step 606 in the above method embodiment: the first network device determines that the second network device needs to perform a flow control operation.

[0131] In one possible implementation, the determining module 1103 is specifically configured to: determine, based on the second flow control notification, that the second network device needs to perform flow control. For example, step 606 in the above method embodiment is performed: the first network device determines that the second network device needs to perform flow control.

[0132] The generating module 1104 is configured to generate a first flow control notification according to the message flow control information; for example, executing step 607 in the above method embodiment: the first network device generates the first flow control notification according to the message flow control information.

[0133] The generation module 1104 includes:

[0134] Determination unit 1105 is used to determine flow control parameter information, second network device location information, flow control port information, flow control queue information and / or priority information of the target message, where the flow control parameter information is used to guide the second network device to perform flow control operations; for example, executing step 607 in the above method embodiment: the first network device generates a first flow control notification based on the message flow control information.

[0135] In one possible implementation, the flow control parameter information includes a time interval, which indicates a time interval within which the first network device is allowed to send packets in the current period. The determining unit 1105 is specifically configured to determine the time interval based on a queue depth, a link rate, a round-trip delay between the first network device and the second network device, and an expected queue depth. For example, step 607 in the above method embodiment is performed: the first network device generates a first flow control notification based on the packet flow control information.

[0136] The generating unit 1106 is configured to generate a first flow control notification, which includes flow control parameter information, second network device location information, flow control port information, and flow control queue information. For example, step 607 in the above method embodiment is performed: the first network device generates the first flow control notification according to the message flow control information.

[0137] The sending module 1107 is configured to send a first flow control notification to the second network device, wherein the first flow control notification instructs the second network device to perform a flow control operation. For example, step 608 in the above method embodiment is performed: the first network device sends the first flow control notification to the second network device.

[0138] The modules of the first network device may also be used to perform other actions in the method embodiment. All relevant contents of the steps involved in the method embodiment may be referred to the functional description of the corresponding functional modules and will not be repeated here.

[0139] The embodiment of the present application provides a second network device 1200. In the embodiment of the present application, the second network device 1200 can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0140] In the case of dividing each functional module according to each function, FIG12 shows a possible structural diagram of the second network device 1200 involved in the above embodiment. As shown in FIG12 , the second network device 1200 includes:

[0141] The first receiving module 1201 is configured to receive a target message; for example, executing step 608 in the above method embodiment: the second network device receives the target message.

[0142] Generation module 1202 is used to generate message flow control information based on the target message, the message flow control information includes identification information of the second network device, port information of the target message flowing into the second network device, queue information of the target message in the second network device and / or priority information of the target message; for example, execute step 602 in the above method embodiment: the second network device generates message flow control information.

[0143] The forwarding module 1203 is configured to forward the target message carrying the message flow control information; for example, the step 603 in the above method embodiment is executed: the second network device forwards the target message carrying the message flow control information.

[0144] The second receiving module 1204 is used to receive a first flow control notification from the first network device, where the first flow control notification instructs the second network device to perform a flow control operation; for example, executing step 608 in the above method embodiment: the first network device sends the first flow control notification to the second network device.

[0145] The determination module 1205 is configured to determine whether to perform a flow control operation; for example, executing step 609 in the above method embodiment: the second network device performs a flow control operation.

[0146] The execution module 1206 is configured to execute a flow control operation according to the first flow control notification, for example, executing step 609 in the above method embodiment: the second network device executes the flow control operation.

[0147] In one possible implementation, the first flow control notification includes flow control parameter information, and the execution module 1206 is specifically used to: perform flow control operations according to the flow control parameter information; and / or the first flow control notification includes flow control port information, and the execution module 1206 is specifically used to: the second network device performs flow control operations on the port indicated by the flow control port information; and / or the first flow control notification includes flow control queue information, and the execution module 1206 is specifically used to: the second network device performs flow control operations on the queue indicated by the flow control queue information; and / or the first flow control notification includes priority information of the target message, and the execution module is specifically used to: perform flow control operations according to the flow control parameter information, for example, executing step 609 in the above method embodiment: the second network device performs flow control operations.

[0148] In one possible implementation, the first flow control management segment includes a first network device and a second network device 1200, the third flow control management segment includes a fourth network device on the flow control initiating side, the third flow control management segment is the previous segment of the first flow control management segment, and the second network device 1200 further includes:

[0149] The sending module 1207 is configured to send a third flow control notification to the fourth network device, where the third flow control notification indicates that the second network device has triggered a flow control operation. For example, step 610 in the above method embodiment is performed: the second network device sends the third flow control notification to the fourth network device.

[0150] The modules of the second network device may also be used to perform other actions in the method embodiment. All relevant contents of the steps involved in the method embodiment may be referred to the functional description of the corresponding functional modules and will not be repeated here.

[0151] FIG13 is a schematic diagram of the structure of a first network device provided in an embodiment of the present application. The first network device 1300 may include one or more central processing units (CPUs) 1301 and a memory 1305 , wherein the memory 1305 stores one or more applications or data.

[0152] Memory 1305 can be volatile or persistent storage. The program stored in memory 1305 can include one or more modules, each of which can include a series of instruction operations on the first network device. Furthermore, central processing unit 1301 can be configured to communicate with memory 1305 and execute the series of instruction operations in memory 1305 on first network device 1300.

[0153] The central processing unit 1301 is used to execute the computer program in the memory 1305, so that the first network device 1300 is used to perform the following steps: the first network device receives a target message from the second network device, the target message carries message flow control information, the message flow control information includes identification information of the second network device, port information of the target message flowing into the second network device, queue information of the target message in the second network device, and / or priority information of the target message; the first network device determines that the second network device needs to perform a flow control operation; the first network device generates a first flow control notification based on the message flow control information; the first network device sends the first flow control notification to the second network device, and the first flow control notification instructs the second network device to perform a flow control operation. For specific implementation methods, please refer to steps 601-610 in the embodiment shown in Figure 6, which will not be repeated here.

[0154] The first network device 1300 may also include one or more power supplies 1302, one or more wired or wireless network interfaces 1303, one or more input and output interfaces 1304, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0155] The first network device 1300 can execute the operations executed by the first network device in the embodiment shown in FIG. 6 , and the details are not repeated here.

[0156] FIG14 is a schematic diagram of the structure of a second network device provided in an embodiment of the present application. The second network device 1400 may include one or more central processing units (CPUs) 1401 and a memory 1405 , wherein the memory 1405 stores one or more applications or data.

[0157] Memory 1405 may be volatile or persistent storage. The program stored in memory 1405 may include one or more modules, each of which may include a series of instruction operations on the second network device. Furthermore, central processing unit 1401 may be configured to communicate with memory 1405 and execute the series of instruction operations in memory 1405 on second network device 1400.

[0158] The central processing unit 1401 is used to execute the computer program in the memory 1405, so that the second network device 1400 is used to perform the following operations: the second network device receives the target message; the second network device generates message flow control information based on the target message, the message flow control information including identification information of the second network device, port information of the target message flowing into the second network device, queue information of the target message in the second network device and / or priority information of the target message; the second network device forwards the target message carrying the message flow control information; the second network device receives a first flow control notification from the first network device, the first flow control notification instructing the second network device to perform a flow control operation; the second network device determines to perform a flow control operation; the second network device performs a flow control operation based on the first flow control notification. For specific implementation methods, please refer to steps 601-610 in the embodiment shown in Figure 6, which will not be repeated here.

[0159] The second network device 1400 may also include one or more power supplies 1402, one or more wired or wireless network interfaces 1403, one or more input and output interfaces 1404, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0160] The second network device 1400 can execute the operations executed by the second network device in the embodiment shown in FIG. 6 , and the details are not repeated here.

[0161] As shown in Figure 15, an embodiment of the present application provides a flow control management system 1500, which includes a first network device 1501, a second network device 1502, a third network device 1503 and a fourth network device 1504, wherein the first network device 1501 can perform the operations performed by the first network device in the embodiment shown in Figure 6, the second network device 1502 can perform the operations performed by the second network device in the embodiment shown in Figure 6, the third network device 1503 can perform the operations performed by the third network device in the embodiment shown in Figure 6, and the fourth network device 1504 can perform the operations performed by the fourth network device in the embodiment shown in Figure 6. The details will not be repeated here.

[0162] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes (or functions) of the embodiments of the present application are implemented. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more media integrated therein. Available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc. In the embodiment of the present application, the computer may include the aforementioned devices.

[0163] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

Claims

1. A network flow control method, characterized in that: The method comprises: The first network device receives a target message from the second network device, where the target message carries message flow control information, where the message flow control information includes identification information of the second network device, port information through which the target message flows into the second network device, queue information of the target message in the second network device, and / or priority information of the target message; The first network device determines that the second network device is required to perform a flow control operation; The first network device generates a first flow control notification according to the message flow control information; The first network device sends the first flow control notification to the second network device, where the first flow control notification instructs the second network device to perform a flow control operation.

2. The method according to claim 1, characterized in that: The first network device generates a first flow control notification, including: The first network device determines flow control parameter information, second network device location information, flow control port information, flow control queue information and / or priority information of the target message, wherein the flow control parameter information is used to guide the second network device to perform a flow control operation; The first network device generates a first flow control notification, which includes the flow control parameter information, the second network device location information, the flow control port information, the flow control queue information and / or the priority information of the target message.

3. The method according to claim 2, characterized in that The flow control parameter information includes a time interval, and the time interval indicates a time interval allowed to be sent by the first network device in the current cycle. The first network device determines the flow control parameter information, including: The first network device determines the time interval information according to a queue depth, a link rate, a round trip delay between the first network device and the second network device, and an expected queue depth.

4. The method according to any one of claims 1 to 3, characterized in that: The first flow control management section includes the first network device and the second network device, the second flow control management section includes a third network device, the second flow control management section is the next section of the first flow control management section, and before the first network device determines that the second network device needs to perform a flow control operation, the method further includes: The first network device receives a second flow control notification from a third network device, where the flow control notification indicates that the third network device has triggered a flow control operation.

5. The method according to claim 4, characterized in that The first network device determines that the second network device needs to perform a flow control operation, including: The first network device determines, according to the second flow control notification, that the second network device needs to perform a flow control operation.

6. A network flow control method, characterized in that: The method comprises: The second network device receives the target message; The second network device generates message flow control information according to the target message, wherein the message flow control information includes identification information of the second network device, port information through which the target message flows into the second network device, queue information of the target message in the second network device and / or priority information of the target message; The second network device forwards the target message carrying the message flow control information; The second network device receives a first flow control notification from the first network device, where the first flow control notification instructs the second network device to perform a flow control operation; The second network device determines to perform a flow control operation; The second network device performs a flow control operation according to the first flow control notification.

7. The method according to claim 6, characterized in that The first flow control notification includes flow control parameter information, and the second network device performs a flow control operation according to the first flow control notification, including: The second network device performs a flow control operation according to the flow control parameter information; and / or The first flow control notification includes flow control port information, and the second network device performs a flow control operation according to an instruction of the first flow control notification, including: The second network device performs a flow control operation on the port indicated by the flow control port information; and / or The first flow control notification includes flow control queue information, and the second network device performs a flow control operation according to an instruction of the first flow control notification, including: The second network device performs a flow control operation on the queue indicated by the flow control queue information; and / or The first flow control notification includes priority information of the target message, and the second network device performs a flow control operation according to an instruction of the first flow control notification, including: The second network device performs a flow control operation according to the priority information of the target message.

8. The method according to claim 6 or 7, characterized in that: The first flow control management section includes the first network device and the second network device, the third flow control management section includes a fourth network device on the flow control initiating side, the third flow control management section is the previous section of the first flow control management section, and after the second network device receives the first flow control notification from the first network device, the method further includes: The second network device sends a third flow control notification to the fourth network device, where the third flow control notification indicates that the second network device has triggered a flow control operation.

9. A first network device, characterized in that: The first network device comprises: A first receiving module, configured to receive a target message from a second network device, the target message carrying message flow control information, the message flow control information including identification information of the second network device, port information through which the target message flows into the second network device, queue information of the target message in the second network device and / or priority information of the target message; A determination module, used to determine that a second network device is required to perform a flow control operation; A generating module, used to generate a first flow control notification according to the message flow control information; A sending module is used to send the first flow control notification to the second network device, where the first flow control notification instructs the second network device to perform a flow control operation.

10. The first network device according to claim 9, characterized in that: The generation module comprises: A determination unit, used to determine flow control parameter information, second network device location information, flow control port information, flow control queue information and / or priority information of the target message, wherein the flow control parameter information is used to guide the second network device to perform a flow control operation; A generating unit is used to generate a first flow control notification, wherein the first flow control notification includes the flow control parameter information, the second network device location information, the flow control port information, the flow control queue information and / or the priority information of the target message.

11. The first network device according to claim 10, characterized in that: The flow control parameter information includes a time interval, and the time interval indicates a time interval allowed to be sent by the first network device in the current cycle, and the determining unit is specifically used to: The time interval information is determined according to a queue depth, a link rate, a round trip delay between the first network device and the second network device, and an expected queue depth.

12. The first network device according to any one of claims 9 to 11, characterized in that: The first flow control management section includes the first network device and the second network device, the second flow control management section includes a third network device on the flow control execution side, the second flow control management section is the next section of the first flow control management section, and the first network device further includes: The second receiving module is used to receive a second flow control notification from a third network device, where the flow control notification indicates that the third network device has triggered a flow control operation.

13. The first network device according to claim 12, characterized in that: The determination module is specifically used for: Determine, according to the second flow control notification, that the second network device needs to perform a flow control operation.

14. A second network device, characterized in that: The second network device comprises: A first receiving module, used for receiving a target message; A generating module, configured to generate message flow control information according to a target message, wherein the message flow control information includes identification information of the second network device, port information through which the target message flows into the second network device, queue information of the target message in the second network device, and / or priority information of the target message; A forwarding module, used for forwarding a target message carrying the message flow control information; A second receiving module, configured to receive a first flow control notification from the first network device, wherein the first flow control notification instructs the second network device to perform a flow control operation; A determination module, used to determine the execution of flow control operations; An execution module is used to perform a flow control operation according to the first flow control notification.

15. The second network device according to claim 14, characterized in that: The first flow control notification includes flow control parameter information, and the execution module is specifically used to: Execute flow control operation according to the flow control parameter information; and / or The first flow control notification includes flow control port information, and the execution module is specifically used to: Performing a flow control operation on the port indicated by the flow control port information; and / or The first flow control notification includes flow control queue information, and the execution module is specifically used to: Performing a flow control operation on the queue indicated by the flow control queue information; and / or The first flow control notification includes priority information of the target message, and the execution module is specifically used for: Execute flow control operations according to the flow control parameter information.

16. The second network device according to claim 14 or 15, characterized in that: The first flow control management section includes the first network device and the second network device, the third flow control management section includes a fourth network device on the flow control initiating side, the third flow control management section is the previous section of the first flow control management section, and the second network device further includes: A sending module is used to send a third flow control notification to the fourth network device, where the third flow control notification indicates that the second network device has triggered a flow control operation.

17. A first network device, characterized in that: The first network device comprises a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the first network device to implement the method according to any one of claims 1-5.

18. A second network device, characterized in that: The second network device includes a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the second network device to implement the method according to any one of claims 6-8.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program instruction, and the computer program instruction is loaded and executed by a processor to implement the method according to any one of claims 1 to 5.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program instruction, and the computer program instruction is loaded and executed by a processor to implement the method according to any one of claims 6 to 8.

21. A flow control management system, characterized in that: The flow control management system includes a first network device and a second network device, the first network device is used to execute the method described in any one of claims 1 to 5, and the second network device is used to execute the method described in any one of claims 6 to 8.

Citation Information

Patent Citations

  • Network flow control method and device

    CN118677840A

  • Method, device and system for relieving congestion

    CN109981471A

  • Message forwarding method and device

    CN113206791A

  • Network congestion control method, device, equipment, system and storage medium

    CN113746744A

  • FLOW CONTROL TECHNOLOGIES

    DE102022103981A1