Active congestion control method, device and equipment for Ethernet RDMA (Remote Direct Memory Access)
By using detection data packets and pseudo ACK mechanisms in the Ethernet RDMA network, the sending rate and path priority are monitored and adjusted in real time, solving the problems of DCQCN algorithm complexity and delay sensitivity, and achieving rapid congestion feedback and stability improvement. .
Patent Information
- Application Number
- CN202410977165.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The existing RDMA-based data center network congestion control algorithm DCQCN is complex and sensitive to network delay, which may introduce uncertainty and affect performance and stability.
In the Ethernet RDMA network, the sender and receiver monitor and adjust the sending rate and path priority in real time through detecting data packets and pseudo ACK mechanisms, dynamically adjust the sending window, quickly detect and avoid congestion, and reduce network latency.
It achieves rapid feedback and accurate control of network congestion, reduces network delay, improves network throughput and stability, and does not need to modify the RoCE header, and has good compatibility.
Smart Images

Figure CN118714093A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an Ethernet RDMA active congestion control method, device and equipment. Background Art
[0002] As data centers continue to expand in size and business types become increasingly complex, data center networks are facing increasing challenges. Low latency is a core requirement of data center networks.
[0003] When the traffic entering the network exceeds the network's capacity, the network will be congested, resulting in increased network queuing delays, buffer overflow and packet loss, etc. Continuous packet loss and retransmission will further cause a sharp drop in the network's effective throughput and even cause the network to crash.
[0004] In order to solve the above problems, a variety of congestion control algorithms for data center networks have emerged in recent years. Among them, the technical solution based on RDMA has received widespread attention. Remote Direct Memory Access (RDMA) technology is a high-speed network communication technology that can bypass the operating system to directly access remote memory, thereby greatly reducing communication latency. In high-performance networks, especially RDMA over Converged Ethernet (RoCE) v2 protocol version, the importance of congestion issues has further increased, and higher requirements have been placed on the latency of congestion control technologies.
[0005] At present, some RDMA-based technical solutions have proposed low-latency congestion control mechanisms. For example, Data Center Quantized Congestion Notification (DCQCN) is a congestion control algorithm based on Explicit Congestion Notification (ECN) that can quickly detect and avoid congestion.
[0006] However, the current DCQCN technology has the following technical defects:
[0007] Complexity: The DCQCN algorithm is relatively complex and requires certain logic and algorithms to be implemented in switches and network devices, which increases the cost of deployment and maintenance.
[0008] Sensitive to network latency: The DCQCN algorithm is very sensitive to network latency, especially under high load conditions, which may introduce additional latency. This may affect the performance of latency-sensitive applications.
[0009] Possible introduction of uncertainty: Since the DCQCN algorithm is based on a quantized congestion notification mechanism, there may be quantization errors and uncertainties, which may affect the accuracy and stability of the algorithm. Summary of the invention
[0010] In view of this, the present invention provides an Ethernet RDMA active congestion control method, device and equipment, which are used to solve the technical problem of poor real-time and accuracy of congestion control of Ethernet-based RDMA related protocols.
[0011] Based on one aspect of an embodiment of the present invention, the present invention provides an Ethernet RDMA active congestion control method, which is applied to a network device using Ethernet remote memory direct access RDMA technology, and the method includes:
[0012] When the sender establishes a connection with the receiver, the send window and send rate of the forwarding path are initialized;
[0013] When sending data packets to the receiving end, the sending end marks some data packets as detection data packets;
[0014] After receiving the detection data packet, the forwarding device on the forwarding path sends a pseudo ACK of the detection data packet to the previous hop forwarding device;
[0015] After receiving the pseudo ACK sent by the next hop, the forwarding device calculates the sending rate between the next hop and the pseudo ACK and records the current congestion status information, and adjusts the sending rate between the next hop and the next hop in real time according to the sending window of the path; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth;
[0016] After receiving the true ACK message of the detection data message sent by the receiving end, the forwarding device attaches the congestion status information of the detection data message recorded locally to the true ACK and sends it to the sending end;
[0017] After receiving the true ACK, the sender calculates the RTT and sending rate of the entire path based on the true ACK, calculates the new path sending window and sending rate based on the congestion control strategy, and sends the new path sending window and sending rate to each forwarding device on the path.
[0018] Furthermore, the method further comprises:
[0019] The sender updates the networking delay topology according to the congestion status information between the nodes attached to the true ACK message, calculates the path delay of each path through the networking delay topology, and dynamically adjusts the path priority according to the path delay size.
[0020] Furthermore, the method further comprises:
[0021] The sender decides which forwarding path to use to forward the data message and switches the forwarding path based on the path priority, or decides the load weight of transmitting data messages on different paths.
[0022] Based on one aspect of an embodiment of the present invention, the present invention further provides an Ethernet RDMA active congestion control method, which is applied to a sending end device using Ethernet remote memory direct access RDMA technology, and the method includes:
[0023] Establish a connection with the receiving device and initialize the sending window and sending rate of the forwarding path;
[0024] Send data packets to the receiving end, marking some data packets as detection data packets;
[0025] Receive the true ACK returned by the forwarding device, the true ACK is attached with the congestion status information calculated by each forwarding device on the path based on the pseudo ACK sent by the next-level forwarding device, and the congestion status information calculated by the last-hop forwarding device based on the true ACK sent by the receiving end; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth;
[0026] The RTT and sending rate of the entire path are calculated based on the true ACK, and the new path sending window and sending rate are calculated based on the congestion control strategy. The new path sending window and sending rate are sent to each forwarding device on the path.
[0027] Furthermore, the method further comprises:
[0028] The network delay topology is updated according to the congestion status information between the nodes attached to the true ACK message, the path delay of each path is calculated through the network delay topology, and the path priority is dynamically adjusted according to the path delay size.
[0029] Further, the method of marking part of the data message as a detection data message is any one of the following methods:
[0030] Systematic sampling marking method: This method extracts one data packet marked as a probe data packet from every preset number of data packets;
[0031] Random sampling marking method: This method determines whether each data packet is a detection data packet according to a fixed probability, and marks the data packet as a detection data packet if it is selected;
[0032] Area sampling marking method: This method samples according to a specific window area. When the sending window reaches the preset threshold, some data packets are randomly selected in the sending window effective area and marked as detection data packets.
[0033] Based on one aspect of an embodiment of the present invention, the present invention further provides an Ethernet RDMA active congestion control method, which is applied to a forwarding device using Ethernet remote memory direct access RDMA technology, and the method includes:
[0034] After receiving the path sending window and sending rate sent by the sending end, the forwarding device forwards the data message based on the path sending window and sending rate;
[0035] After receiving the detection data packet, the forwarding device on the forwarding path sends a pseudo ACK of the detection data packet to the previous hop forwarding device;
[0036] After receiving the pseudo ACK sent by the next hop, the forwarding device calculates the sending rate between the next hop and the pseudo ACK and records the current congestion status information, and adjusts the sending rate between the next hop and the next hop in real time according to the sending window of the path; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth;
[0037] After receiving the true ACK message of the detection data message sent by the receiving end, the forwarding device attaches the congestion status information of the detection data message recorded locally to the true ACK and sends it to the sending end.
[0038] Based on one aspect of an embodiment of the present invention, the present invention further provides an Ethernet RDMA active congestion control device, which is applied to a sending end device using Ethernet remote memory direct access RDMA technology, and the device includes:
[0039] The congestion control module is used to establish a connection with the receiving device, initialize the sending window and sending rate of the forwarding path; calculate the RTT and sending rate of the entire path according to the true ACK returned by the forwarding device, calculate the new path sending window and sending rate based on the congestion control strategy, and send the new path sending window and sending rate to each forwarding device on the path;
[0040] The transceiver module is used to send data packets to the receiving end, mark some data packets as detection data packets; and receive the true ACK returned by the forwarding device, the true ACK is attached with the congestion status information calculated by each forwarding device on the path based on the pseudo ACK sent by the next-level forwarding device, and the congestion status information calculated by the last-hop forwarding device based on the true ACK sent by the receiving end; the congestion status information at least includes the sending rate, the round-trip delay RTT, the processing delay and the bandwidth.
[0041] Furthermore, the device also includes:
[0042] The networking topology module is used to update the networking delay topology according to the congestion status information between the nodes attached to the true ACK message, calculate the path delay of each path through the networking delay topology, and dynamically adjust the path priority according to the path delay size.
[0043] Based on one aspect of an embodiment of the present invention, the present invention further provides an Ethernet RDMA active congestion control device, which is applied to a forwarding device using Ethernet remote memory direct access RDMA technology, and the device includes:
[0044] A forwarding module, configured to forward data packets based on the path sending window and the sending rate after receiving the path sending window and the sending rate sent by the sending end;
[0045] A pseudo ACK processing module is used to send a pseudo ACK of the detection data message to the previous hop forwarding device after receiving the detection data message; after receiving the pseudo ACK sent by the next hop, calculate the transmission rate between the next hop and the next hop based on the pseudo ACK and record the current congestion status information; and after receiving the true ACK message of the detection data message sent by the receiving end, attach the congestion status information of the detection data message recorded locally to the true ACK and send it to the sending end; the congestion status information at least includes the transmission rate, round-trip delay RTT, processing delay and bandwidth;
[0046] The first congestion control module is used to adjust the sending rate between the next hop and the destination in real time according to the sending window of the path.
[0047] In the present invention, the forwarding device calculates the transmission rate between nodes according to the pseudo ACK sent by the next hop, and the congestion status information between the attached nodes in the true ACK enables the sender to quickly detect the congestion status between the nodes in the network path, quickly find the congestion point, and avoid congestion in advance, and adjust the data transmission rate between nodes in real time, so as to achieve fast congestion feedback, avoid the aggravation of link congestion, and achieve fast convergence of congestion. The present invention does not need to add or modify the RoCE message header, and has good compatibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments of the present invention or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present invention.
[0049] Figure 1 A schematic diagram of a network topology between a sending end and a receiving end of a remote direct memory access protocol based on Ethernet in one embodiment of the present invention;
[0050] Figure 2 A schematic flow chart of the steps of an end-to-end active congestion control method based on Ethernet RDMA provided by an embodiment of the present invention;
[0051] Figure 3 It is a schematic diagram of a forwarding device on a forwarding path in an embodiment of the present invention attaching congestion status information between nodes to a true ACK message and forwarding it to a sending end;
[0052] Figure 4 A schematic diagram of a networking delay topology detected by a sending end through congestion status information attached to a true ACK message in an embodiment of the present invention;
[0053] Figure 5 A schematic diagram of the structure of a true ACK message format sent by a receiving end to a sending end in one embodiment of the present invention;
[0054] Figure 6 A schematic diagram of the structure of a pseudo ACK message format sent by a forwarding device to an upper hop in an embodiment of the present invention;
[0055] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present invention for implementing the Ethernet RDMA congestion control method provided in the present invention. DETAILED DESCRIPTION
[0056] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, rather than limiting the embodiments of the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. Although the embodiments of the present invention may be described in a first, second, or third manner, this description is only used to distinguish similar information, entities, or steps, rather than to describe a specific order or sequence. For example, without departing from the scope of the embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. For another example, in some scenarios, the first information may refer to one information or to multiple information of the same type. In addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination". The "and / or" in the present invention is only a kind of association relationship describing the associated objects, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone, wherein A and B may be singular or plural. In addition, in the description of the present invention, unless otherwise specified, "multiple" refers to 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 items 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.
[0057] In order to solve the technical problems such as poor real-time performance of congestion control in the Ethernet-based remote direct memory access related protocols, the present invention provides an active congestion control scheme. The basic idea of the present invention is: the sender (source node) marks a part of the data message as a detection data message, and the forwarding device (such as a switch) on the forwarding path sends a pseudo confirmation response ACK message to the upper-level forwarding device after receiving the detection data message. The forwarding device obtains the congestion status information between the forwarding device and the next-level forwarding device through the pseudo ACK; after receiving the true ACK message returned by the receiving end (destination node), the forwarding device attaches the congestion status information recorded by itself to the true ACK message. The sender maintains the end-to-end networking delay topology according to the true ACK and the congestion status information attached thereto, performs congestion control, and dynamically adjusts the data transmission path according to the networking delay topology, thereby reducing the overall network delay, avoiding network congestion, and improving network throughput.
[0058] The specific implementation process of the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the step processes shown in the accompanying drawings and embodiments can be executed in a computer system such as a set of computer executable instructions, and one or more of the exemplified method steps can be single or multiple or aggregated together and run in the computer system in the form of a software module or a virtual device. Moreover, although the exemplified step processes have time and sequential logic, the present invention is not limited to these steps in certain cases. They can be executed in an order different from that here. Under the guidance of the purpose of the present invention, simple changes or combinations of the execution order of these steps should also fall within the scope of the disclosure of the embodiments of the present invention.
[0059] Figure 1 The network topology diagram between the sending end and the receiving end of the remote direct memory access protocol based on Ethernet in one embodiment of the present invention is shown. Host A and host B realize end-to-end data transmission through remote direct memory access based on Ethernet. The network card of host A serves as the sending end, and the network card of host B serves as the receiving end. There may be multiple data forwarding paths between the two ends. Host A performs congestion control and maintains the networking delay topology based on the true ACK message fed back by host B and the congestion status information detected by each forwarding device attached therein. The sending end may select the forwarding path of the data message based on the networking delay topology.
[0060] Figure 2 A schematic flow chart of the steps of an end-to-end active congestion control method based on Ethernet RDMA provided in one embodiment of the present invention. The method is applied to a network device using Ethernet remote memory direct access RDMA technology, including a sending end device, a receiving end device and a forwarding device. The method includes:
[0061] Step 201. Initialize the sending window and sending rate of the forwarding path when the sending end establishes a connection with the receiving end;
[0062] When establishing a connection between the sender and the receiver based on the Ethernet RDMA protocol, it is necessary to initialize the send window CWND (also known as the congestion control window / congestion window) and the send rate of each forwarding path between the end and the end. The send window CWND refers to the maximum amount of data (in bytes) that the sender is allowed to send within a round trip time (RTT) without network congestion. The time period corresponding to the send window CWND is a complete RTT, including the time after sending to the other end and receiving the ACK return. CWND controls the total amount of data sent during this time.
[0063] The sender will calculate the sending window CWND of each path based on the congestion control algorithm according to the ACK message fed back by the receiver and dynamically update the CWND of each path.
[0064] Step 202. When sending data messages to the receiving end, the sending end marks part of the data messages as detection data messages;
[0065] The detection data message itself is a data message, but the data message carries a detection tag and has a link congestion detection function. The forwarding device on the data message forwarding path identifies whether the received data message is a detection data message based on the detection tag in the data message.
[0066] The method for marking part of the data message as the detection data message is:
[0067] Systematic sampling marking method: This method extracts one data packet marked as a detection data packet from every preset number of data packets.
[0068] Random sampling marking method: This method determines whether each data packet is a detection data packet according to a fixed probability, and marks the data packet as a detection data packet if it is selected. For example, each packet has a 10% probability of being selected as a detection data packet.
[0069] Area sampling marking method: This method samples according to a specific window area. When the sending window reaches the preset threshold, some data packets are randomly selected in the sending window effective area and marked as detection data packets. For example, sampling is performed in a specific high-latency and low-rate area.
[0070] Step 203. After receiving the detection data message, the forwarding device on the forwarding path sends a pseudo ACK of the detection data message to the previous hop forwarding device; after receiving the pseudo ACK sent by the next hop, the forwarding device calculates the sending rate between the next hop and the next hop based on the pseudo ACK and records the current congestion status information, and adjusts the sending rate between the next hop and the next hop in real time according to the sending window of the path; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth;
[0071] Each forwarding device (e.g. Figure 1 After receiving the data packet sent by the previous hop, switch1, switch2 and switch3 in the example first determine whether the data packet carries a detection mark. If it does, the data packet is determined to be a detection data packet. If it is determined to be a detection data packet, the forwarding device will mark the outbound timestamp in the message when forwarding the detection data packet to the next hop. After receiving the pseudo ACK message returned by the next hop forwarding device, the forwarding device can calculate the RTT between the two nodes based on information such as the outbound time and the inbound time.
[0072] Each forwarding device (for example, Figure 1After receiving the detection data packet sent by the previous hop forwarding device, switch 2 and switch 3 in the example will send a pseudo ACK to the previous hop forwarding device, and the pseudo ACK ends at the previous hop.
[0073] After each forwarding device on the end-to-end forwarding path receives the pseudo ACK sent by the next-hop forwarding device, it calculates the RTT between it and the next-hop forwarding device based on the pseudo ACK, and calculates the sending rate between it and the next hop based on the RTT between it and the next hop and the amount of data sent during the RTT. It then records the calculated sending rate locally. In addition, it also records congestion status information such as processing delay and bandwidth that can reflect the congestion status.
[0074] like Figure 1 In the example, switch1 and switch2 will calculate the sending rate based on the pseudo ACK sent by the next hop. Switch2 will calculate the sending rate of the last hop based on the true ACK fed back by the receiver. The sender can calculate the sending rate of the first hop based on the true ACK fed back by the receiver through switch1. The sender calculates the sending rate of the first hop based on the true ACK carrying congestion status information fed back by switch1.
[0075] Each forwarding device records the sending rate calculated based on the pseudo ACK fed back by the detection data message, as well as RTT, processing delay, bandwidth and other information. Among them, the processing delay is the time from the forwarding device receiving the data message to forwarding the data message, and the bandwidth refers to the current bandwidth detected by the congestion management module of the forwarding device.
[0076] In one embodiment of the present invention, the forwarding device adjusts the sending rate between the next hop and the next hop in real time based on the sending rate between the forwarding device and the next hop and according to the sending window of the path to adapt to the congestion between nodes. For example, when switch1 detects that the sending rate between the next hop and switch2 is too low, the sending rate between the next hop and the next hop can be increased within the range of the path sending window.
[0077] Step 204. After receiving the true ACK message of the detection data message sent by the receiving end, the forwarding device attaches the congestion status information of the detection data message recorded locally to the true ACK and sends it to the sending end;
[0078] Figure 3The schematic diagram of a forwarding device on a forwarding path in an embodiment of the present invention attaching congestion status information between nodes to a true ACK message and forwarding it to a sender. The figure illustrates the forwarding process of a true ACK message on a forwarding path between a sender and a receiver. After receiving the detection data message at the receiver, a true ACK message, namely ACK1, is sent to the previous hop forwarding device switch3. After receiving the ACK1 message, switch3 calculates the sending rate of the last hop based on ACK1 and forms the congestion status information of the last hop, namely FACK3, with the calculated sending rate, round-trip delay RTT, processing delay of the detection data message on switch3, and detected bandwidth, and then forwards it to switch2. After receiving ACK1, switch2 reads the congestion status information between switch3 recorded locally, namely FACK2, and also attaches it to the ACK1 message and forwards it to the previous hop. Similarly, switch1 also attaches the congestion status information between switch2 recorded locally, namely FACK1, and forwards it to the sender.
[0079] Step 205. After receiving the true ACK, the sender calculates the RTT and sending rate of the entire path according to the true ACK, calculates the new path sending window and sending rate based on the congestion control strategy, and sends the new path sending window and sending rate to each forwarding device on the path;
[0080] After receiving the true ACK, the sender calculates the RTT of the detection data message on the entire forwarding path based on the outbound time of the detection data message and the inbound time of the true ACK message, and then calculates the sending rate of the entire path. After obtaining the path RTT and path sending rate, the new path sending window and sending rate are calculated according to the congestion control strategy, and then the calculated new path sending window CWND and sending rate are sent to each forwarding device on the path, thereby realizing the dynamic control of the sending window CWND and sending rate of the entire path. After receiving the new sending window and sending rate, each forwarding device can dynamically adjust the sending rate between the next hop and the next hop according to the latest sending window and sending rate of each path.
[0081] In the embodiment of the present invention, the sending end and each forwarding device can detect RTT based on ACK, and calculate the current RDMA sending rate based on RTT, and dynamically adjust the sending rate with the next hop or the entire path based on the calculated current sending rate and the sending window, so as to effectively monitor and adjust the data transmission in the network, maximize the utilization efficiency of network resources, avoid network congestion, and thus improve the performance and stability of data transmission.
[0082] Step 206: The sender updates the networking delay topology according to the congestion status information between the nodes attached to the true ACK message, calculates the path delay of each path through the networking delay topology, and dynamically adjusts the path priority according to the path delay size.
[0083] Figure 4 The schematic diagram of the network delay topology detected by the sender through the congestion status information attached to the true ACK message in one embodiment of the present invention. The sender can monitor the delay between each node in the entire network topology in real time by parsing the congestion status information between each node attached to the true ACK message (such as RTT between nodes, processing delay on the node, transmission rate on the node, bandwidth and other information), thereby generating and updating the network delay topology of the entire network.
[0084] The sender can calculate the path delay of each path based on the network delay topology. For example, the path delay of path 1 is 7us, the path delay of path 2 is 10us, and the path delay of path 3 is 9us. The sender can sort all paths according to the path delay and dynamically adjust the priority of each path according to the path delay. The path priority of a small path delay is increased, and the path priority of a large path delay is decreased. The sender can decide which forwarding path to select for data message forwarding and switch forwarding paths based on the path priority, or decide the load weight of transmitting data messages on different paths.
[0085] The sender can detect the link congestion status between nodes based on the congestion status information attached to the true ACK. In the case of severe link congestion or failure, it can respond quickly and make link switching decisions to avoid congestion and optimize network performance.
[0086] Figure 5 The diagram is a structural diagram of the true ACK message format sent by the receiving end to the sending end in one embodiment of the present invention. The RDMA ACK Header carries an identifier that indicates that the message is a true ACK message. Multiple ACK fields may be carried after the RDMA ACK Header field, including the true ACK field filled by the receiving end and the pseudo ACK field attached by each forwarding device. The pseudo ACK field carries the congestion status information between nodes. SID is the source node identifier, PID is the previous hop node identifier, RTT is the round-trip delay, delivered is the number of sent data packets, and inflight is the number of flying data packets.
[0087] Figure 6The figure is a schematic diagram of the pseudo ACK message format structure sent by the forwarding device to the previous hop in one embodiment of the present invention. The RDMA pseudo confirmation response message header (RDMA FACK Header) carries an identifier that the message is a pseudo ACK message. The pseudo ACK field after the RDMA FACK Header field is the FACK field. Different from the true ACK, the FACK field also includes the Pacing rate and Band fields.
[0088] Figure 7 The electronic device structure diagram for implementing the Ethernet RDMA congestion control method provided by the present invention is provided in an embodiment of the present invention. The device 700 includes: a processor 710 such as a central processing unit (CPU), a communication bus 720, a communication interface 740, and a memory 730. The processor 710 and the memory 730 can communicate with each other through the communication bus 720. The memory 730 stores a computer program, and when the computer program is executed by the processor 710, the function of one or more steps in the Ethernet RDMA congestion control method provided by the present invention can be implemented.
[0089] Memory refers to a device based on a certain storage medium for storing computer programs and / or data. It can be a volatile memory (VM, often called memory) or a non-volatile memory (NVM). Memory refers to an internal memory that directly exchanges data with the processor. It can read and write data at any time and at a very fast speed. It is used as a storage medium for temporary data of the operating system and other running programs. Memory can be synchronous dynamic random access memory (SDRAM), dynamic random access memory (DRAM), etc. Non-volatile memory refers to a memory that uses a persistent storage medium. It has the characteristics of large capacity and persistent data storage. It can be a storage class memory (SCM), a solid state disk (SSD), a NAND flash memory, a disk, etc. SCM is the industry's general term for new storage media between memory and flash memory. It is a composite storage technology that combines persistent storage characteristics and memory characteristics. Its access speed is slower than DRAM and faster than SSD hard disks.
[0090] The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0091] It should be appreciated that embodiments of the present invention may be implemented or implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory (or non-persistent) memory. The method may be implemented in a computer program using standard programming techniques, including a non-transitory storage medium configured with a computer program, wherein the storage medium configured in this way causes the computer to operate in a specific and predefined manner. Each program may be implemented in a high-level procedural or object-oriented programming language to communicate with a computer system. However, if necessary, the program may be implemented in an assembly or machine language. In any case, the language may be a compiled or interpreted language. In addition, the program may be run on a programmed ASIC for this purpose. In addition, the operation of the process described in the present invention may be performed in any suitable order, unless the present invention otherwise indicates or otherwise clearly contradicts the context. The process described in the present invention (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as a code (e.g., executable instructions, one or more computer programs, or one or more applications) executed on one or more processors in common, by hardware or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.
[0092] Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or portions thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described in the present invention includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention also includes the computer itself.
[0093] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An Ethernet RDMA active congestion control method, characterized in that: The method is applied to a network device using Ethernet remote memory direct access (RDMA) technology, and the method includes: When the sender establishes a connection with the receiver, the send window and send rate of the forwarding path are initialized; When sending data packets to the receiving end, the sending end marks some data packets as detection data packets; After receiving the detection data packet, the forwarding device on the forwarding path sends a pseudo confirmation response ACK of the detection data packet to the previous hop forwarding device; After receiving the pseudo ACK sent by the next hop, the forwarding device calculates the sending rate between the next hop and the pseudo ACK and records the current congestion status information, and adjusts the sending rate between the next hop and the next hop in real time according to the sending window of the path; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth; After receiving the true ACK message of the detection data message sent by the receiving end, the forwarding device attaches the congestion status information of the detection data message recorded locally to the true ACK and sends it to the sending end; After receiving the true ACK, the sender calculates the RTT and sending rate of the entire path based on the true ACK, calculates the new path sending window and sending rate based on the congestion control strategy, and sends the new path sending window and sending rate to each forwarding device on the path.
2. The method according to claim 1, characterized in that: The method further comprises: The sender updates the networking delay topology according to the congestion status information between the nodes attached to the true ACK message, calculates the path delay of each path through the networking delay topology, and dynamically adjusts the path priority according to the path delay size.
3. The method according to claim 1, characterized in that The method further comprises: The sender decides which forwarding path to use to forward the data message and switches the forwarding path based on the path priority, or decides the load weight of transmitting data messages on different paths.
4. An Ethernet RDMA active congestion control method, characterized in that: The method is applied to a sending end device using Ethernet remote memory direct access (RDMA) technology, and the method includes: Establish a connection with the receiving device and initialize the sending window and sending rate of the forwarding path; Send data packets to the receiving end, marking some data packets as detection data packets; Receive the true ACK returned by the forwarding device, the true ACK is attached with the congestion status information calculated by each forwarding device on the path based on the pseudo ACK sent by the next-level forwarding device, and the congestion status information calculated by the last-hop forwarding device based on the true ACK sent by the receiving end; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth; The RTT and sending rate of the entire path are calculated based on the true ACK, and the new path sending window and sending rate are calculated based on the congestion control strategy. The new path sending window and sending rate are sent to each forwarding device on the path.
5. The method according to claim 4, characterized in that The method further comprises: The network delay topology is updated according to the congestion status information between the nodes attached to the true ACK message, the path delay of each path is calculated through the network delay topology, and the path priority is dynamically adjusted according to the path delay size.
6. The method according to claim 1 or 4, characterized in that: The method of marking part of the data message as a detection data message is any one of the following methods: Systematic sampling marking method: This method extracts one data packet marked as a probe data packet from every preset number of data packets; Random sampling marking method: This method determines whether each data packet is a detection data packet according to a fixed probability, and marks the data packet as a detection data packet if it is selected; Area sampling marking method: This method samples according to a specific window area. When the sending window reaches the preset threshold, some data packets are randomly selected in the sending window effective area and marked as detection data packets.
7. An Ethernet RDMA active congestion control method, characterized in that: The method is applied to a forwarding device using Ethernet remote memory direct access (RDMA) technology, and the method includes: After receiving the path sending window and sending rate sent by the sending end, the forwarding device forwards the data message based on the path sending window and sending rate; After receiving the detection data packet, the forwarding device on the forwarding path sends a pseudo ACK of the detection data packet to the previous hop forwarding device; After receiving the pseudo ACK sent by the next hop, the forwarding device calculates the sending rate between the next hop and the pseudo ACK and records the current congestion status information, and adjusts the sending rate between the next hop and the next hop in real time according to the sending window of the path; the congestion status information at least includes the sending rate, round-trip delay RTT, processing delay and bandwidth; After receiving the true ACK message of the detection data message sent by the receiving end, the forwarding device attaches the congestion status information of the detection data message recorded locally to the true ACK and sends it to the sending end.
8. An Ethernet RDMA active congestion control device, characterized in that: The device is applied to a sending end device using Ethernet remote memory direct access RDMA technology, and the device includes: The congestion control module is used to establish a connection with the receiving device, initialize the sending window and sending rate of the forwarding path; calculate the RTT and sending rate of the entire path according to the true ACK returned by the forwarding device, calculate the new path sending window and sending rate based on the congestion control strategy, and send the new path sending window and sending rate to each forwarding device on the path; The transceiver module is used to send data packets to the receiving end, mark some data packets as detection data packets; and receive the true ACK returned by the forwarding device, the true ACK is attached with the congestion status information calculated by each forwarding device on the path based on the pseudo ACK sent by the next-level forwarding device, and the congestion status information calculated by the last-hop forwarding device based on the true ACK sent by the receiving end; the congestion status information at least includes the sending rate, the round-trip delay RTT, the processing delay and the bandwidth.
9. The device according to claim 8, characterized in that The device also includes: The networking topology module is used to update the networking delay topology according to the congestion status information between the nodes attached to the true ACK message, calculate the path delay of each path through the networking delay topology, and dynamically adjust the path priority according to the path delay size.
10. An Ethernet RDMA active congestion control device, characterized in that: The device is applied to a forwarding device using Ethernet remote memory direct access RDMA technology, and the device includes: A forwarding module, configured to forward data packets based on the path sending window and the sending rate after receiving the path sending window and the sending rate sent by the sending end; A pseudo ACK processing module is used to send a pseudo ACK of the detection data message to the previous hop forwarding device after receiving the detection data message; after receiving the pseudo ACK sent by the next hop, calculate the transmission rate between the next hop and the next hop based on the pseudo ACK and record the current congestion status information; and after receiving the true ACK message of the detection data message sent by the receiving end, attach the congestion status information of the detection data message recorded locally to the true ACK and send it to the sending end; the congestion status information at least includes the transmission rate, round-trip delay RTT, processing delay and bandwidth; The first congestion control module is used to adjust the sending rate between the next hop and the destination in real time according to the sending window of the path.
11. An electronic device, characterized in that: It includes a processor, a communication interface, a storage medium and a communication bus, wherein the processor, the communication interface and the storage medium communicate with each other via the communication bus; Storage medium for storing computer programs; A processor, for implementing the method according to any one of claims 1 to 7 when executing a computer program stored on a storage medium.
12. A storage medium having a computer program stored thereon, characterized in that: The computer program implements the method of any one of claims 1 to 7 when executed by a processor.
Citation Information
Patent Citations
Method and system for controlling congestion in data center based on network load
CN115883463A
Congestion control method and related equipment
CN116260773A
Remote direct memory access network congestion identification and control method and device
CN118118421A
Congestion control method and device
CN118233384A
Network congestion detection method and apparatus
WO2022111724A1
Cited By
Intelligent adjusting and optimizing method and device for RDMA network load, related medium and program product
CN120583037A
