A flow-based sending rate control method and device for cross-domain RDMA transmission, equipment and medium

By constructing a control context for each RDMA data stream and adjusting the transmission rate according to the stream state and initial transmission rate differences, the problem of inflexible transmission control in cross-domain RDMA transmission is solved, and the flexibility and efficiency of cross-domain transmission are improved.

CN123145208APending Publication Date: 2026-11-20PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611453133.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In cross-domain RDMA transmission, existing technologies struggle to achieve flexibility and consistency in transmission rates, resulting in some data streams failing to respond promptly to congestion changes, while others cannot adhere to external rate-limiting constraints, leading to insufficient flexibility in transmission control.

Method used

A control context is constructed for each RDMA data stream, and the transmission rate is adjusted differently based on the stream state and initial transmission rate, including the handling of cut-through, restricted, and invalid states. Combined with physical port bandwidth and rate limit notifications, the transmission rate is dynamically adjusted to meet different needs within and between domains.

Benefits of technology

It enables the coordinated operation of different control mechanisms under the same transmission framework, meets the dynamic adjustment requirements of intra-domain transmission and the rate limiting constraints between domains, improves the flexibility and efficiency of cross-domain transmission, and enhances port utilization and buffer emptying efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145208A_ABST
    Figure CN123145208A_ABST
Patent Text Reader

Abstract

The application discloses a flow-oriented cross-domain RDMA transmission sending rate control method and device, equipment and medium, the method adopts different sending rate generation mode to independently adjust the sending rate of two direction data flow, for the internal sending direction of data center, the sending rate of the RDMA data flow is determined based on the flow state and initial sending rate of the RDMA data flow, for the inter-data center sending direction, the sending rate is determined according to the arrival rate of the RDMA data flow and the upper limit of the sending rate.The application adopts a differentiated rate generation mechanism for RDMA data flow in different directions, realizes the cooperative work of different control mechanisms under the same sending framework, can meet the demand of dynamically adjusting the sending rate based on the local congestion state for the intra-domain transmission, and can also meet the requirement of strictly following the external speed limit constraint for the inter-domain transmission, and solves the problem of insufficient sending control flexibility in the existing cross-domain scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a stream-by-stream transmission rate control method, apparatus, device and medium for cross-domain RDMA transmission. Background Technology

[0002] Within a data center, RDMA services typically operate in a high-bandwidth, low-latency network environment, where the sending end can quickly adjust the transmission rate based on congestion feedback. In cross-domain scenarios, data needs to traverse both the data center's internal network and long-distance cross-domain links, where latency, feedback methods, and available bandwidth vary significantly across different transmission intervals.

[0003] Currently, mainstream technical solutions for cross-domain scenarios include: constructing segmented or bilateral control loops to break down the original end-to-end congestion feedback loop spanning long-distance links into shorter local control loops; and having switching equipment near the sending end or network boundary directly generate transmission constraints. Another solution involves predicting the amount of data that can be received based on downstream port status or historical flow control information and generating transmission constraints accordingly. However, all of these solutions use a fixed transmission rate generation method to adjust the rate. Cross-domain RDMA transmission often involves inconsistent control objectives between domains. For example, some transmission directions need to dynamically adjust the transmission rate based on local congestion feedback, while others need to follow external rate-limiting policies. Therefore, in cross-domain RDMA transmission, some data streams may fail to respond to congestion changes in a timely manner, while others may not strictly adhere to external rate-limiting constraints, ultimately leading to insufficient transmission control flexibility.

[0004] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention

[0005] The technical problem to be solved by this application is to provide a method, apparatus, device and medium for stream-by-stream transmission rate control for cross-domain RDMA transmission, addressing the shortcomings of the prior art.

[0006] To address the aforementioned technical problems, the first aspect of this application provides a stream-by-stream transmission rate control method for cross-domain RDMA transmission, wherein the method includes: A control context is constructed for each RDMA data stream, and the control context includes at least the data stream direction and the stream state; When the data flow direction is the internal transmission direction of the data center, the transmission rate of the RDMA data flow is determined based on the flow state and initial transmission rate of the RDMA data flow, wherein the initial transmission rate includes the arrival rate and the natural transmission rate. When the data flow direction is the inter-data center transmission direction, the transmission rate is determined based on the arrival rate of the RDMA data flow and the upper limit of the transmission rate.

[0007] The aforementioned stream-by-stream transmission rate control method for cross-domain RDMA transmission, wherein determining the transmission rate of the RDMA data stream based on the stream state and initial transmission rate of the RDMA data stream specifically includes: When the flow state is pass-through, the transmission rate of the RDMA data flow is set to the arrival rate; When the flow state is restricted, the transmission rate is determined based on the natural transmission rate of the RDMA data flow; When the stream state is invalid, the transmission rate of the RDMA data stream is set to 0.

[0008] The described flow-by-flow transmission rate control method for cross-domain RDMA transmission includes the following states: The pass-through state indicates that the RDMA data stream has been established, is not in a congestion-feedback-triggered rate limiting or recovery process, and there are no cached but unsent data packets, retransmission tasks, or shutdown / emptying tasks; the restricted state indicates that the RDMA data stream has been established and is in a congestion-feedback-triggered rate limiting or recovery process, or is in a shutdown / emptying process; the invalid state indicates that the RDMA data stream has not been established, or that the cached but unsent data packets, sent but unacknowledged data packets, and retransmission tasks of the RDMA data stream have all been processed and released.

[0009] The aforementioned stream-by-stream transmission rate control method for cross-domain RDMA transmission further includes: Detect the port bandwidth of the physical port corresponding to the RDMA data stream and the required bandwidth of all RDMA data streams that need to use the port; If the required bandwidth is less than or equal to the port bandwidth, the transmission rate of the RDMA data stream remains unchanged; If the required bandwidth is greater than the port bandwidth, obtain the remaining port bandwidth after removing the bandwidth occupied by the pass-through RDMA data stream. Based on the remaining port bandwidth and the restricted required bandwidth of all restricted RDMA data streams that need to use the port, determine a first scaling factor based on the remaining port bandwidth and the restricted required bandwidth, and use the first scaling factor to scale the transmission rate of the restricted RDMA data streams.

[0010] The aforementioned stream-by-stream transmission rate control method for cross-domain RDMA transmission, wherein determining the transmission rate based on the arrival rate of the RDMA data stream and the upper limit of the transmission rate specifically includes: For an RDMA data stream that only receives a flow-level rate limiting notification, the smaller of the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the flow-level rate limiting notification shall be used as the transmission rate. For an RDMA data stream that receives a port-level rate limiting notification, a second scaling factor is determined based on the stream transmission rate of all RDMA data streams that need to pass through the physical port corresponding to the RDMA data stream and the available transmission bandwidth of the physical port. The base transmission rate of the RDMA data stream is then scaled using the second scaling factor to obtain the transmission rate. When the RDMA data stream does not receive a stream-level rate limiting notification, the base transmission rate is the arrival rate. When the RDMA data stream receives a stream-level rate limiting notification, the base transmission rate is the smaller of the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the stream-level rate limiting notification.

[0011] The method for stream-by-stream transmission rate control for cross-domain RDMA transmission, wherein after determining the transmission rate based on the arrival rate of the RDMA data stream and the upper limit of the transmission rate, the method further includes: Detect whether there is any remaining free bandwidth on the physical port; If there is remaining idle bandwidth, the remaining idle bandwidth is used to allocate a discharge transmission rate to the RDMA data streams in the set of empty streams to be discharged corresponding to the physical port. The set of empty streams to be discharged includes all RDMA data streams under the physical port that have not received a flow-level rate limiting notification and have buffered but unsent data packets.

[0012] The method for stream-by-stream transmission rate control for cross-domain RDMA transmission, wherein after determining the transmission rate based on the arrival rate of the RDMA data stream and the upper limit of the transmission rate, the method further includes: Detect whether the RDMA data stream is allocated a slack transmission rate; If no empty transmission rate is allocated, the transmission rate of the RDMA data stream remains unchanged; If a drain transmission rate is allocated, the transmission rate of the RDMA data stream is updated using the drain transmission rate.

[0013] The method for stream-by-stream transmission rate control for cross-domain RDMA transmission further includes, after determining the transmission rate of the RDMA data stream: A stream-by-stream byte transmission budget is generated based on the transmission rate of the RDMA data stream; Within the execution window, the complete message is read from HBM based on the per-stream byte transmission budget and transmission is performed without recalculating the per-stream transmission rate.

[0014] The aforementioned method for stream-by-stream transmission rate control for cross-domain RDMA transmission includes a transmission rate determination process implemented through a statistical window and a calculation window. The statistical window is used for message reception in the FPGA, the calculation window is used to determine the transmission rate and generate a stream-by-stream byte transmission budget based on the transmission rate, and the execution window is used to execute the transmission operation based on the stream-by-stream byte transmission budget. The statistical window, calculation window, and execution window can be asynchronous and parallel.

[0015] A second aspect of this application provides a stream-by-stream transmission rate control device for cross-domain RDMA transmission, wherein the device comprises: The building module is used to build a control context for each RDMA data stream, the control context including at least the data stream direction and the stream state; The first direction processing module is used to determine the transmission rate of the RDMA data stream based on the flow state and initial transmission rate of the RDMA data stream when the data stream direction is the internal transmission direction of the data center. The initial transmission rate includes the arrival rate and the natural transmission rate. The second direction processing module is used to determine the transmission rate based on the arrival rate and transmission rate limit of the RDMA data stream when the data flow direction is the inter-data center transmission direction.

[0016] A third aspect of this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the stream-by-stream transmission rate control method for cross-domain RDMA transmission as described above.

[0017] A fourth aspect of this application provides a programmable network device, which includes: a processor and a memory; The memory stores a computer-readable program that can be executed by the processor; When the processor executes the computer-readable program, it implements the steps in the stream-by-stream transmission rate control method for cross-domain RDMA transmission as described above.

[0018] Beneficial effects: 1. This application adopts a differentiated rate generation mechanism for RDMA data streams in different directions, realizing the collaborative work of different control mechanisms under the same transmission framework. It can meet the requirements of intra-domain transmission to dynamically adjust the transmission rate based on local congestion status, and also meet the requirements of inter-domain transmission to strictly follow external rate limiting constraints, thus solving the problem of insufficient transmission control flexibility in existing cross-domain scenarios.

[0019] 2. This application establishes a natural transmission rate maintenance mechanism for RDMA data streams transmitted within the domain. Each RDMA data stream independently adjusts its natural transmission rate based on its own congestion feedback. Simultaneously, transmission demand is generated based on the arrival rate or natural transmission rate according to the flow status. This enables rapid response to local congestion changes while ensuring transmission efficiency, thus improving the adaptive adjustment capability of intra-domain transmission.

[0020] 3. This application addresses RDMA data streams transmitted within a domain by first allocating bandwidth to the pass-through RDMA data stream, and then using the remaining bandwidth to adjust the natural transmission rate of the constrained RDMA data stream, thereby improving port utilization and multi-stream fairness.

[0021] 4. This application determines the transmission rate for data streams transmitted between domains by combining arrival rate, flow-level rate limiting, and port-level rate limiting in a hierarchical manner. This ensures strict adherence to external rate limiting constraints while making full use of link bandwidth resources, thus guaranteeing the quality of service for cross-domain transmission.

[0022] 5. This application addresses RDMA data streams transmitted within a domain. When there is remaining free bandwidth on a physical port, it utilizes this remaining free bandwidth to clear buffered but not sent data packets in the RDMA data stream passing through the physical port that have not received flow-level rate limiting notifications. This improves buffer clearing efficiency while ensuring external rate limiting constraints.

[0023] 6. In this application, the flow information statistics, flow transmission rate calculation, and actual message transmission are executed sequentially in the statistics window, calculation window, and execution window, respectively, thereby decoupling the information statistics, rate calculation, and buffer reading processes. Furthermore, statistics, calculation, and execution each employ independent pipeline stages, allowing different control cycles to proceed in parallel, thus meeting the high-speed pipeline processing requirements of programmable network devices. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 A flowchart of a cross-domain RDMA segmented decoupled asynchronous transmission system based on reliable responsibility takeover provided in an embodiment of this application.

[0026] Figure 2 A flowchart of a stream-by-stream transmission rate control method for cross-domain RDMA transmission provided in an embodiment of this application.

[0027] Figure 3A flowchart illustrating the process of determining the transmission rate in the ToDC direction.

[0028] Figure 4 This is a flowchart illustrating the process of determining the transmission rate in the ToWAN direction.

[0029] Figure 5 This is a schematic diagram of a stream-by-stream transmission rate control device for cross-domain RDMA transmission provided in an embodiment of this application. Detailed Implementation

[0030] This application provides a stream-by-stream transmission rate control method, apparatus, device, and medium for cross-domain RDMA transmission. To make the objectives, technical solutions, and effects of this application clearer and more explicit, the following detailed description, with reference to the accompanying drawings and embodiments, further illustrates this application. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit this application.

[0031] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.

[0032] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0033] It should be understood that the sequence number and size of each step in this embodiment do not imply the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application embodiment.

[0034] Research has shown that Remote Direct Memory Access (RDMA) technology can directly access remote memory through a network adapter, reducing the involvement of the processor and operating system protocol stack. It offers advantages such as low latency, high throughput, and low CPU overhead, and is currently widely used in data center computing, storage systems, and accelerator interconnects. Among these, RDMA over Converged Ethernet (RoCE) technology further expands the application scope of RDMA in general network environments.

[0035] Within a single data center, due to the short network transmission distance, data transmission, acknowledgment feedback, congestion control, and anomaly recovery are typically all within a short-latency closed loop, and traditional end-to-end reliable transmission mechanisms can adequately meet performance requirements. However, when RDMA applications expand to inter-regional data centers, data needs to be transmitted via cross-regional leased lines, metropolitan area networks, or wide area networks, significantly increasing link propagation latency and round-trip time (RTT). In this case, traditional end-to-end reliable transmission mechanisms often bind the source data transmission, cross-domain link transmission, and destination data reception processes into the same long-latency feedback closed loop: before the data sent from the source receives final acknowledgment from the destination, the source needs to continuously retain unacknowledged data and assume corresponding reliability responsibility; that is, the source input state, cross-domain link transmission state, destination processing state, and final acknowledgment state are concatenated within the same end-to-end synchronous closed loop.

[0036] Because this end-to-end synchronous closed loop requires that data sent by the source end remains in an incomplete state until it receives final confirmation from the destination end, the source end needs to continuously retain the corresponding data and its transmission context. Any congestion, packet loss, or processing delay in any subsequent link will extend the data retention time of the preceding nodes. Especially in high-bandwidth, long-distance transmission scenarios, the bandwidth-delay product (BDP) will increase significantly, leading to a large amount of unacknowledged data remaining for a long time. This not only consumes a large amount of cache resources at the source end but also significantly limits the improvement of transmission throughput, ultimately making it difficult to fully utilize the effective bandwidth of cross-domain links.

[0037] Currently, mainstream technical solutions for cross-domain scenarios include: constructing segmented or bilateral control loops to break down the original end-to-end congestion feedback loop spanning long-distance links into shorter local control loops; and having switching equipment near the sending end or network boundary directly generate transmission constraints. Another solution involves predicting the amount of data that can be received based on downstream port status or historical flow control information and generating transmission constraints accordingly. However, all of these solutions use a fixed transmission rate generation method to adjust the rate. Cross-domain RDMA transmission often involves inconsistent control objectives between domains. For example, some transmission directions need to dynamically adjust the transmission rate based on local congestion feedback, while others need to follow external rate-limiting policies. Therefore, in cross-domain RDMA transmission, some data streams may fail to respond to congestion changes in a timely manner, while others may not strictly adhere to external rate-limiting constraints, ultimately leading to insufficient transmission control flexibility.

[0038] Based on this, programmable network devices can be deployed at the boundary of data centers. Programmable network devices deployed in different data centers can communicate via links to achieve end-to-end transmission from the source data center to the destination data center, decoupling into internal transmission between data centers and programmable network devices, and inter-data center transmission between programmable network devices. Each programmable network device supports independent concurrent bidirectional data streams, enabling simultaneous data transmission from the first programmable network device to the second programmable network device and from the second programmable network device to the first programmable network device via cross-domain link communication. Furthermore, this application embodiment employs different transmission rate generation methods to independently adjust the transmission rate of the two data streams. Specifically, a control context is constructed for each RDMA data stream. When the data stream direction in the control context is an internal data center transmission direction, the transmission rate of the RDMA data stream is determined based on the flow state and initial transmission rate of the RDMA data stream. When the data stream direction in the control context is an inter-data center transmission direction, the transmission rate is determined based on the arrival rate of the RDMA data stream and the upper limit of the transmission rate.

[0039] This application's embodiments employ differentiated rate generation mechanisms for RDMA data streams in different directions, enabling the collaborative operation of different control mechanisms under the same transmission framework. This satisfies both the requirement for dynamic adjustment of transmission rate based on local congestion status within the domain and the requirement for strict adherence to external rate limiting constraints in inter-domain transmission, thus solving the problem of insufficient transmission control flexibility in existing cross-domain scenarios.

[0040] It should be noted that the executing entity of each embodiment of this application can be a computing service system with data processing, network communication, and program execution functions, such as an electronic system capable of implementing the above functions, a stream-by-stream transmission rate control system for cross-domain RDMA transmission, etc. The following describes the embodiments using a stream-by-stream transmission rate control system for cross-domain RDMA transmission as an example (hereinafter referred to as "the system").

[0041] The application content will be further explained below with reference to the accompanying drawings and through the description of the embodiments.

[0042] This embodiment provides a stream-by-stream transmission rate control method for cross-domain RDMA transmission. This method is applied to a cross-domain RDMA segmented decoupled asynchronous transmission system based on reliable responsibility takeover, such as... Figure 1 As shown, the system includes at least two data centers, each with a programmable network device deployed at its boundary. The programmable network devices between different data centers communicate via cross-domain links, decoupling the end-to-end transmission from the source data center to the destination data center into an intra-data center transmission segment between the data centers and the programmable network devices, and an inter-data center transmission segment between the programmable network devices. This intra-data center transmission segment and the inter-data center transmission segment can perform asynchronous transmission.

[0043] For example, the system includes data center A and data center B. A first programmable network device is deployed at the boundary of data center A, and a second programmable network device is deployed at the boundary of data center B. Let data center A be the source data center and data center B be the destination data center. Then, the sending node in data center A is the source. The first programmable network device receives data from the source and sends it to the cross-domain link, and communicates with the second programmable network device through the cross-domain link. The second programmable network device receives the cross-domain data sent by the first programmable network device and sends it to the destination in data center B. By segmenting and decoupling the end-to-end transmission from the sending node in data center A to the destination in data center B through the first and second programmable network devices, multiple transmission segments are obtained. These multiple transmission segments include the data center intra-transmission segment from the sending node in data center A to the first programmable network device, the data center inter-transmission segment from the first programmable network device to the second programmable network device, and the data center intra-transmission segment from the second programmable network device to the destination in data center B.

[0044] It should be noted that in practical applications, the cross-domain RDMA segmented decoupled asynchronous transmission system based on reliable responsibility takeover does not limit the number of programmable network devices. More than two programmable network devices can be deployed depending on the actual situation of the cross-domain network. The example above is just one example of deploying two programmable network devices to decouple end-to-end transmission into three transmission segments.

[0045] Furthermore, compared to the traditional end-to-end reliable transmission mechanism where the final confirmation information from the destination completes the reliability loop, this cross-domain RDMA segmented decoupled asynchronous transmission system based on reliable responsibility takeover divides the end-to-end transmission process into three segments: an intra-datacenter transmission segment from the source data center to the first programmable network device, an inter-datacenter transmission segment from the first programmable network device to the second programmable network device, and an intra-datacenter transmission segment from the second programmable network device to the destination data center. The local state of each transmission segment progresses independently, and responsibility is transferred through reliable takeover events between programmable network devices. Specifically, reliable takeover events achieve responsibility transfer by having the programmable network device receive data packets transmitted from its upstream node and perform reliable takeover detection on these packets. After successful reliable takeover detection, the responsibility status of the data packet is configured as BUFFER, indicating that the programmable network device has assumed reliability responsibility for the corresponding data packet. Based on the BUFFER, takeover confirmation information is fed back to its upstream node, allowing the sending end to release the corresponding data waiting state and responsibility state based on the takeover confirmation information. This ensures that takeover confirmation is based on the programmable network device having completed reliable takeover (i.e., successful reliable takeover detection). Simultaneously, the programmable network device can select target data packets eligible for transmission from the packets in the buffer, and then advance the data transmission of the target data packets based on local transmission conditions. Local transmission conditions may include port availability status, congestion control results, external transmission constraints, path binding status, and scheduling module decision results. When the local transmission conditions are met and transmission to the downstream node is completed, the responsibility status of the data packet is changed from BUFFER to CACHE. CACHE indicates that the data packet has been submitted for downstream transmission, but has not yet received takeover confirmation from the downstream node. The programmable network device is responsible for maintaining the target data packet, waiting for confirmation, and performing necessary recovery.

[0046] Simultaneously, the programmable network device supports independent concurrent bidirectional data streams, enabling simultaneous data transmission from the first programmable network device to the second programmable network device, and from the second programmable network device to the first programmable network device, via cross-domain link communication. For example, regarding data streams... Data center A is the source, programmable network device A is the primary responsible takeover agent, programmable network device B is the secondary responsible takeover agent, and data center B is the destination; for data flow... Data center B is the source, programmable network device B is the primary takeover agent, programmable network device A is the secondary takeover agent, and data center A is the destination. The same programmable network device can simultaneously function as a data stream. First responsibility for taking over agents and data flow The second-responsibility takeover agent. Data flow. and data stream The upstream and downstream nodes, responsible entities, confirmed data range, responsibility status, and continuous release boundaries are maintained separately.

[0047] like Figure 2 As shown, the stream-by-stream transmission rate control method for cross-domain RDMA transmission provided in this application specifically includes: S10. Construct a control context for each RDMA data stream, wherein the control context includes at least the data stream direction and the stream state.

[0048] Specifically, RDMA data streams can be RDMA data streams sent by programmable network devices to their corresponding data centers, or RDMA data streams sent by programmable network devices to other programmable network devices connected via cross-domain link communication. These programmable network devices are deployed at the boundary between the corresponding data center and the cross-domain link. In other words, the data flow direction of the RDMA data stream can be from the data center to the programmable network device (i.e., intra-data center transmission) or from the programmable network device to other programmable network devices (i.e., inter-data center transmission). The programmable network device refers to a network device deployed at the boundary between the data center and the cross-domain link, capable of maintaining data buffers, transmission status, and transmission control information on a flow-by-flow basis, and reading data from the buffer according to the flow-by-flow transmission budget to send to the corresponding downstream network device. It can employ programmable hardware such as FPGAs; no specific hardware platform is limited here.

[0049] Therefore, upon receiving each RDMA data stream, a control context is constructed for each RDMA data stream. This control context stores the data stream direction and stream state, which can be pass-through, restricted, or invalid. The pass-through state indicates that the RDMA data stream has been established, is not in a congestion-triggered rate limiting or recovery process, and has no cached but unsent data packets, retransmission tasks, or shutdown / draining tasks. The restricted state indicates that the RDMA data stream has been established and is in a congestion-triggered rate limiting or recovery process, or is in a shutdown / draining process. The invalid state indicates that the RDMA data stream has not been established, or that all cached but unsent data packets, sent but unacknowledged data packets, and retransmission tasks of the RDMA data stream have been processed and released. Specifically, for RDMA data streams in the pass-through state, the stream enters the restricted state when congestion feedback is received, a buffer packet appears, a retransmission task occurs, or there is still data that has not been processed after the stream is closed. For RDMA data streams in the restricted state, the stream enters the pass-through state when the natural transmission rate recovers to a level not lower than the arrival rate, the buffer packet is cleared, and there is no retransmission task. For RDMA data streams that have been closed, the stream remains in the restricted state but does not generate a transmission rate when only cached packets are waiting for reception confirmation. The stream enters the invalid state after all buffer packets, cached packets, and retransmission tasks have been processed.

[0050] In addition, in practical applications, the control context may also include flow identifier, current statistical window arrivals, responsibility status, retransmission task status, and rate control information related to the corresponding transmission direction.

[0051] The stream identifier is used to uniquely identify the RDMA data stream. It can be generated based on the connection identifier, queue identifier, 5-tuple information, session identifier (such as QP), or other information that can reliably distinguish the transmission object.

[0052] The responsibility status is used to reflect the type of reliability responsibility undertaken by the programmable network device for the RDMA data stream. The responsibility status can include a buffered but not sent status (BUFFER) and a sent status (CACHE). The BUFFER indicates a data logical state that has been reliably received but has not yet been sent to the relative downstream, and the CACHE indicates a data logical state that has been sent to the relative downstream but has not yet received a reliable reception acknowledgment from the relative downstream.

[0053] The current statistical window arrival count is the total number of data bytes received from the RDMA data stream within the current statistical window, providing real-time data input for adjusting the transmission rate.

[0054] The retransmission task status reflects the processing status of data blocks that need to be retransmitted in the RDMA data stream. It is used to cooperate with the retransmission mechanism to recover lost or erroneous data packets. At the same time, it matches and controls the scheduling priority and transmission resource allocation of retransmission tasks to ensure that the retransmission process does not affect the transmission stability of normal business data streams.

[0055] The rate control information related to the transmission direction is a set of control parameters that match the rate generation rules for the corresponding transmission direction. Different rate control parameters are stored for different data flow directions. When the data flow direction is an intra-datacenter transmission direction, the rate control information related to the transmission direction may include parameters such as the initial transmission rate, the currently adjusted transmission rate, the time of the most recent congestion feedback mark, and the maximum allowed transmission rate. When the data flow direction is an inter-datacenter transmission direction, the stored rate control parameters include parameters such as the preset transmission rate limit, the average arrival rate within the statistical period, and the currently allocated allowed transmission rate. This rate control information related to the transmission direction works in conjunction with other parameters in the control context to support programmable network devices in quickly matching the corresponding rate adjustment rules for different transmission directions. Differentiated rate generation can be completed without switching the transmission control framework, ensuring the efficiency of the transmission control process.

[0056] S20. When the data flow direction is the internal transmission direction of the data center, the transmission rate of the RDMA data flow is determined based on the flow state and initial transmission rate of the RDMA data flow. The initial transmission rate includes the arrival rate and the natural transmission rate.

[0057] Specifically, the transmission direction within the data center is denoted as the ToDC direction. The ToDC direction refers to the data transmission direction of the programmable network device towards the local data center. That is, after the RDMA data stream arrives at the programmable network device, the programmable network device sends the corresponding data to the local data center. For this ToDC direction, the programmable network device receives CNP or other congestion feedback from the local data center and performs flow-by-flow maintenance and adjustment based on the transmission rate of the RDMA data stream corresponding to the congestion feedback.

[0058] It is understandable that the transmission rate of RDMA data streams in the ToDC direction is affected by the congestion status of the local data center. Different RDMA data streams experience different congestion, so the transmission rate of each RDMA data stream in the ToDC direction is controlled independently, allowing different RDMA data streams to be in different transmission rate adjustment phases. For example, one RDMA data stream in the ToDC direction is in the deceleration phase, while another RDMA data stream in the ToDC direction is in the recovery phase.

[0059] In one embodiment, a natural transmission rate and a flow state machine are maintained independently for each RDMA data stream in the ToDC direction. The natural transmission rate is the transmission rate calculated when a transmission demand is generated under the current network congestion state. The flow state machine includes invalid, cut-through, and restricted states. Then, the transmission rate of the RDMA data stream can be determined based on the natural transmission rate, arrival rate, and the flow state machine state.

[0060] For example, such as Figure 3 As shown, determining the transmission rate of the RDMA data stream based on the stream state and initial transmission rate specifically includes: S21. When the flow state is in pass-through state, the transmission rate of the RDMA data flow is set to the arrival rate; S22. When the flow state is restricted, the transmission rate is determined based on the natural transmission rate of the RDMA data flow; S23. When the stream state is invalid, set the transmission rate of the RDMA data stream to 0.

[0061] Specifically, the arrival rate is the average rate calculated based on the actual number of data bytes arriving in the RDMA data stream within the current statistical window and the window length. It reflects the data input level of the RDMA data stream entering the programmable network device within the current control cycle. Natural transmission rate. The flow-by-flow rate benchmark is maintained independently for this RDMA data stream in the ToDC direction, and it is determined using a congestion control algorithm upon receiving congestion feedback for this RDMA data stream. For example, upon receiving congestion feedback for this RDMA data stream (e.g., a CNP message), the natural transmission rate of this RDMA data stream can be reduced. The natural transmission rate of other RDMA data streams is not directly affected by congestion feedback within this domain, and when no new congestion feedback is received from this RDMA data stream for several consecutive control windows, the natural transmission rate is gradually restored (i.e. increased) according to a preset congestion control algorithm. If congestion feedback is received again during the recovery process, the natural transmission rate of the RDMA data stream will be reduced again. .

[0062] It should be noted that the natural sending rate The existing congestion control algorithm (such as DCQCN) can be selected based on the application scenario; the process for determining the natural transmission rate is not limited here. Meanwhile, the natural transmission rate... The downsampling and recovery only change the natural transmission rate. The value of is determined by directly reading the natural transmission rate of the current calculation window. In other words, in this embodiment, the natural transmission rate can be directly obtained as the basis for the preceding data.

[0063] Furthermore, when the flow state is pass-through, it indicates that the RDMA data flow has been established and is not currently in a congestion feedback-triggered rate limiting or recovery process. There are also no buffer packets, retransmission tasks, or shutdown / draining tasks. Therefore, the arrival rate can be directly used as the transmission rate; that is, the amount of RDMA data received is the same as the amount of RDMA data sent to the data center. For this reason, when the flow state is pass-through, the transmission rate of the RDMA data flow is set to the arrival rate.

[0064] When the flow status is limited, it indicates that the RDMA data flow has been established, but the RDMA data flow is in a flow-limiting process triggered by congestion feedback, a recovery process triggered by congestion feedback, or a shutdown and emptying process. At this time, the natural transmission rate determined based on congestion feedback will be used. .

[0065] When the stream status is invalid, there is no need to send the RDMA data stream, thus setting the send rate of the RDMA data stream to 0.

[0066] Therefore, the transmission rate of this RDMA data stream can be expressed as:

[0067] in, Indicates the first The transmission rate of each RDMA data stream, Indicates arrival rate, Indicates the natural transmission rate. This represents the set of RDMA data streams in the pass-through state. Represents a set of restricted RDMA data streams.

[0068] Furthermore, the actual transmission rate of RDMA data streams in the ToDC direction is affected not only by the flow state but also by the allocated transmission bandwidth within the physical port. In other words, the sum of the transmission rates calculated for each flow in the ToDC direction is limited by the total available bandwidth of the physical port. When the sum of the transmission rates of all RDMA data streams in the ToDC direction exceeds the total available bandwidth of the physical port, a secondary allocation of the total available bandwidth is required based on the proportion of the currently calculated transmission rates of each RDMA data stream. This results in the final actual transmission rate of each RDMA data stream, ensuring that bandwidth overflow queuing does not occur during port transmission.

[0069] Based on this, the stream-by-stream transmission rate control method for cross-domain RDMA transmission further includes: Detect the port bandwidth of the physical port corresponding to the RDMA data stream and the required bandwidth of all RDMA data streams that need to use the port; If the required bandwidth is less than or equal to the port bandwidth, the transmission rate of the RDMA data stream remains unchanged; If the required bandwidth is greater than the port bandwidth, obtain the remaining port bandwidth after removing the bandwidth occupied by the pass-through RDMA data stream. Based on the remaining port bandwidth and the restricted required bandwidth of all restricted RDMA data streams that need to use the port, determine a first scaling factor based on the remaining port bandwidth and the restricted required bandwidth, and use the first scaling factor to scale the transmission rate of the restricted RDMA data streams.

[0070] Specifically, the required bandwidth for all RDMA data streams using the port refers to the sum of the transmission rates of each RDMA data stream determined by the flow state. If the required bandwidth does not exceed the available port bandwidth of the physical port, it means that the existing transmission rate can directly match the port's carrying capacity, and no additional adjustment is needed to the transmission rate of the RDMA data streams. If the required bandwidth exceeds the available port bandwidth of the physical port, it means that the existing transmission rate is not compatible with the port's carrying capacity, and the transmission rate of the RDMA data streams needs to be adjusted so that the sum of the adjusted transmission rates of each RDMA data stream matches the port's carrying capacity.

[0071] Since the pass-through RDMA data stream is unrestricted, its transmission rate directly matches the actual arrival rate, ensuring transmission efficiency in congestion-free conditions and reducing additional latency caused by unnecessary rate conversion. Therefore, bandwidth can be prioritized for the pass-through RDMA data stream, and then the remaining bandwidth can be used to adjust the natural transmission rate of the restricted RDMA data stream. This approach can quickly respond to congestion within the domain while preserving the transmission performance of normal data streams to the greatest extent, avoiding the bandwidth waste caused by traditional global rate-reduction schemes.

[0072] Therefore, after the required bandwidth exceeds the port bandwidth, the remaining port bandwidth available for allocation to the constrained RDMA data stream is determined by first deducting the bandwidth occupied by the pass-through RDMA data stream from the port bandwidth. The remaining port bandwidth can be expressed as: , in, Indicates the remaining bandwidth of the port. This indicates the port bandwidth.

[0073] Next, obtain the restricted bandwidth requirement for all restricted RDMA data streams at the original transmission rate, where the restricted bandwidth requirement can be expressed as: , in, This indicates limited bandwidth requirements.

[0074] Then, the remaining port bandwidth is divided by the limited required bandwidth to obtain the first scaling factor, which can be expressed as: , in, This represents the first scaling factor.

[0075] Finally, the first scaling factor is multiplied by the transmission rate of each constrained RDMA data stream to obtain the adjusted actual transmission rate of each constrained RDMA data stream. This ensures that the sum of the actual transmission rates of all RDMA data streams does not exceed the total available bandwidth of the physical port, maximizing the transmission performance of congestion-free data streams while guaranteeing port forwarding stability. The actual transmission rate of the RDMA data stream after port bandwidth adjustment can be expressed as: , in, This indicates the actual transmission rate of the RDMA data stream after port bandwidth adjustment.

[0076] Furthermore, after obtaining the actual transmission rate of the RDMA data stream adjusted based on port bandwidth, this actual transmission rate can be converted into a stream-by-stream byte transmission budget for the next execution window, according to the execution window length. For example, the control window length is... , In Gbps In seconds, the Additional transmission budget for each RDMA data stream for: , The calculation result is rounded down to the nearest byte. The unit is bytes. The execution window follows the already generated... The entire message is read from HBM and sent without recalculating the per-flow transmission rate. The cut-through flow budget is used to send currently arriving data, while the constrained flow budget is used to flush buffer packets, send newly arriving data, or perform packet loss retransmission.

[0077] S30. When the data flow direction is the data transmission direction between data centers, the transmission rate is determined according to the arrival rate of the RDMA data flow and the upper limit of the transmission rate.

[0078] Specifically, the transmission direction between data centers is denoted as the ToWAN direction. The ToWAN direction refers to the transmission direction from one programmable network device to another. After data from the local data center arrives at the programmable network device, it is sent by the programmable network device to the downstream programmable network device on the cross-domain link. Furthermore, when the downstream programmable network device's buffer space is critically low, it will send a cross-domain rate limiting notification carrying a specific rate limiting value to the programmable network device. This cross-domain rate limiting notification includes flow-level rate limiting notifications. and port-level rate limiting notification Flow rate limit notification Used to restrict the Sending rate of RDMA data streams, port-level rate limiting notification Used to restrict the Each physical port in the ToWAN direction. For example, when the RDMA data flow buffered by a downstream programmable network device is unevenly distributed, the downstream programmable network device will send a flow-level rate limiting notification. When the RDMA data stream buffered by the downstream programmable network device is evenly distributed, the downstream programmable network device will send a port-level rate limiting notification. .

[0079] It should be noted that when a port-level rate limiting notification is sent to a downstream programmable network device... At that time, the first The available transmit bandwidth of each physical port in the ToWAN direction will be rate-limited based on that port level. The adjustment process involves continuously applying the adjusted available transmit bandwidth until a new port-level rate limiting notification or a cancellation notification is received. Upon receiving a new port-level rate limiting notification, the adjustment operation is re-executed based on the new notification. Upon receiving a cancellation notification, the rate limiting on the physical port is lifted, restoring the transmit bandwidth to the port bandwidth of that physical port. The adjusted available transmit bandwidth is as follows: , in, This indicates the adjusted available transmission bandwidth. Indicates port bandwidth. This indicates the bandwidth limit after port-level rate limiting.

[0080] In one embodiment, such as Figure 4 As shown, determining the transmission rate based on the arrival rate and transmission rate limit of the RDMA data stream specifically includes: S31. For RDMA data streams that have not received flow-level rate limiting notifications and port-level rate limiting notifications, the arrival rate of the RDMA data stream is taken as the transmission rate. S32. For an RDMA data stream that only receives a flow-level rate limiting notification, the smaller of the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the flow-level rate limiting notification shall be used as the transmission rate. S33. For an RDMA data stream that receives a port-level rate limiting notification, a second scaling factor is determined based on the stream transmission rate of all RDMA data streams that need to pass through the physical port corresponding to the RDMA data stream and the available transmission bandwidth of the physical port, and the base transmission rate of the RDMA data stream is scaled using the second scaling factor to obtain the transmission rate.

[0081] Specifically, when the RDMA data stream in the ToWAN direction does not receive flow-level rate limiting notifications or port-level rate limiting notifications, it means that there is no need to rate limit the RDMA data stream. Therefore, the arrival rate of the RDMA data stream can be directly used as the transmission rate to maximize the use of cross-domain link bandwidth and ensure transmission efficiency.

[0082] For RDMA data streams that only receive flow-level rate limiting notifications, it is necessary to ensure that the actual transmission rate of the RDMA data stream does not exceed the upper limit of the transmission rate specified in the corresponding flow-level rate limiting notification. Thus, the smaller value between the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the flow-level rate limiting notification can be used as the transmission rate. This ensures that the transmission rate does not exceed the upper limit, which can both match the actual input demand of the data stream and respond to the buffer congestion relief demand of the peer, without causing unnecessary bandwidth waste.

[0083] A flow-level rate limiting notification indicates that a clear transmission rate constraint has been established for the RDMA data flow in the ToDC direction relative to the downstream programmable network device, suggesting that the RDMA data flow experiences buffer pressure downstream. Therefore, the RDMA data flow receiving the flow-level rate limiting notification will use the smaller of its arrival rate and the upper limit of the transmission rate corresponding to the flow-level rate limiting notification as its transmission rate, and will not participate in subsequent allocation of remaining port bandwidth. In other words, even if the RDMA data flow still has buffered packets in the current programmable network device's buffer, it will not utilize the remaining port bandwidth to further increase its transmission rate. Furthermore, if the arrival rate of the RDMA data flow is 0, its transmission rate is 0, and this execution window will not send data to the downstream programmable network device. For example, for an RDMA data flow with only cached packets remaining and no buffered packets or retransmission tasks, there is currently no data to be sent (i.e., the arrival rate is 0), and its transmission rate is 0.

[0084] Furthermore, in scenarios where a port-level rate-limiting notification is received, all RDMA data streams that need to be sent through the physical port corresponding to the port-level rate-limiting notification need to be rate-limited. Therefore, the basic transmission rate of all RDMA data streams that need to pass through the physical port corresponding to the RDMA data stream can be calculated first to obtain the basic transmission requirement. This basic transmission requirement can be expressed as: ,

[0085] in, Indicates basic sending requirements. Indicates the base transmission rate. Indicates arrival rate, This indicates the upper limit of the transmission rate corresponding to the flow-level rate limiting notification. Specifically, in a scenario where a port-level rate limiting notification is received, if the RDMA data stream has not received a flow-level rate limiting notification, the arrival rate is used as the base transmission rate. If the RDMA data stream receives a flow-level rate limiting notification, the smaller of the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the flow-level rate limiting notification is used as the base transmission rate. It is understandable that when processing RDMA data streams directed towards the wide area network, it is possible to simultaneously detect whether a flow-level rate limiting notification for the corresponding RDMA data stream and a port-level rate limiting notification for the physical port used by the RDMA data stream are received: if only a flow-level rate limiting notification for the RDMA data stream is received, the smaller value between the arrival rate of the RDMA data stream and the upper limit of the transmission rate specified in the flow-level rate limiting notification is used as the transmission rate of the RDMA data stream; if only a port-level rate limiting notification for the physical port used by the RDMA data stream is received, the arrival rate of the RDMA data stream is directly used in the calculation of the basic transmission requirements; if both the arrival rate and the transmission rate limiting notification for the RDMA data stream are received simultaneously... Based on the flow-level rate limiting notification and the corresponding physical port-level rate limiting notification, the smaller value between the arrival rate of the RDMA data stream and the upper limit of the transmission rate specified in the flow-level rate limiting notification is first used to calculate the basic transmission demand. The basic transmission demand is then used to determine the second scaling factor. Finally, the second scaling factor is used to adjust the basic transmission rate of the RDMA data stream. That is, for an RDMA data stream with both flow-level and port-level rate limiting notifications, the basic transmission rate is first determined by the smaller value between the arrival rate and the upper limit of the transmission rate specified in the flow-level rate limiting notification, and then the basic transmission rate is adjusted by the second scaling factor to finally obtain the transmission rate of the data stream.

[0086] Next, after obtaining the basic transmission requirement, this requirement is compared with the available transmission bandwidth of the physical port (i.e., adjusted based on port-level rate limiting notification). If the basic transmission requirement is less than or equal to the available transmission bandwidth of the physical port, the basic transmission rate of the RDMA data stream is not adjusted; that is, the basic transmission rate is directly used as the transmission rate of the RDMA data stream. Conversely, if the basic transmission requirement is greater than the available transmission bandwidth of the physical port, the basic transmission rate of the RDMA data stream is adjusted. The adjustment process can be as follows: First, divide the available transmission bandwidth of the physical port by the basic transmission requirement to obtain the second scaling factor, which can be expressed as: , in, This indicates the available transmit bandwidth of the physical port. This indicates the basic sending requirement.

[0087] Secondly, the second scaling factor is used to adjust the base transmission rate of all RDMA data streams that need to pass through the physical port, including RDMA data streams that have received flow-level rate limiting notifications and those that have not. This ensures that the base transmission demand of all RDMA data streams within the physical port does not exceed the port's currently available transmission bandwidth, while maintaining the relative proportions between the base transmission rates of each RDMA data stream. The transmission rate of the RDMA data stream that has undergone port rate limiting can be expressed as: , in, This indicates the transmission rate of the RDMA data stream after port rate limiting.

[0088] Furthermore, after stream-level rate limiting and / or port-level rate limiting of the RDMA data stream is completed, there may be residual bandwidth when sending the RDMA data stream with completed stream-level and / or port-level rate limiting through the physical port. Therefore, in order to improve the bandwidth utilization of the physical port, when there is residual bandwidth on the physical port, this residual bandwidth can be used to flush packets from buffers that are not subject to stream-level rate limiting.

[0089] Based on this, after determining the transmission rate according to the arrival rate and transmission rate limit of the RDMA data stream, the method further includes: Detect whether there is any remaining free bandwidth on the physical port; If there is remaining idle bandwidth, the remaining idle bandwidth is used to allocate a discharge transmission rate to the RDMA data streams in the set of empty streams to be discharged corresponding to the physical port. The set of empty streams to be discharged includes all RDMA data streams under the physical port that have not received a flow-level rate limiting notification and have buffered but unsent data packets.

[0090] Specifically, the remaining free bandwidth is the difference between the available transmit bandwidth of the physical port and the sum of the transmit rates of all RDMA data streams after scaling adjustments. This remaining free bandwidth can be expressed as: , in, Indicates the remaining free bandwidth. This indicates the available transmission bandwidth.

[0091] when hour, After scaling adjustment, the sum of the transmission rates of all RDMA data streams equals ,therefore No more bandwidth allocation will be performed; when hour, After scaling adjustment, the sum of the transmission rates of all RDMA data streams equals , While keeping the actual transmission rate of each RDMA data stream unchanged after scaling adjustment, bandwidth allocation is performed, and bandwidth allocation is performed only once within a calculation window, without bandwidth reclamation or reallocation.

[0092] This bandwidth allocation is used to drain a set of RDMA data flows to be drained. This set includes all RDMA data flows on this physical port that have not received flow-level rate limiting notifications and have buffered but unsent data packets. Whether new data has arrived in this set of RDMA data flows does not affect their eligibility to participate. Furthermore, RDMA data flows with arrival rates of 0 but still having buffered data packets can continue to drain using the remaining bandwidth allocated to the port.

[0093] Furthermore, when utilizing the remaining idle bandwidth for emptying, the remaining idle bandwidth is equally allocated to all RDMA data streams in the set of streams to be emptyed. Therefore, the emptying transmission rate allocated to the RDMA data streams in the set of streams to be empty is expressed as: , in, Indicates the empty transmission rate. Represents the set of empty flows to be drained. This represents the RDMA data stream data in the set of empty streams to be processed.

[0094] Furthermore, after allocating a drain transmission rate to the RDMA data streams in the drain stream set, the drain transmission rate is used to update the RDMA data streams to obtain the final transmission rate of the RDMA data streams. Correspondingly, after determining the transmission rate based on the arrival rate and transmission rate limit of the RDMA data streams, the method further includes: Detect whether the RDMA data stream is allocated a slack transmission rate; If no empty transmission rate is allocated, the transmission rate of the RDMA data stream remains unchanged; If a drain transmission rate is allocated, the transmission rate of the RDMA data stream is updated using the drain transmission rate.

[0095] Specifically, for an RDMA data stream that has obtained a drained transmission rate, the drained transmission rate is superimposed on the transmission rate of the RDMA data stream to obtain a transmission rate updated with the drained transmission rate. This updated transmission rate can be expressed as: , in, This indicates the transmission rate of the RDMA data stream after the drain transmission rate update. This indicates the transmission rate of the RDMA data stream after adjustment by the second scaling factor. This indicates the empty transmission rate allocated to this RDMA data stream.

[0096] It is understandable that the final transmission rate of an RDMA data stream with effective flow-level rate limiting is equal to the transmission rate after port bandwidth constraints, and it does not receive empty transmission rate compensation. An RDMA data stream without flow-level rate limiting but containing buffer packets receives empty transmission rate compensation based on the transmission rate after port bandwidth constraints. When the current arrival rate is 0, the entire empty transmission rate is used to empty buffer packets. Furthermore, if an RDMA data stream in the set to be emptyed has completed the transmission of all buffered packets after being allocated an empty transmission rate, and there are no untransmitted buffered packets, then the RDMA data stream is removed from the set of streams to be emptyed. The remaining unallocated idle bandwidth does not need to be reclaimed and reallocated; it will be allocated in the next calculation window to reduce control computation overhead.

[0097] In this embodiment, each RDMA data stream in the set of empty streams to be cleared can equally share the remaining idle bandwidth of the port. It will not squeeze the idle bandwidth due to the difference in the original basic transmission rate, which can more efficiently promote the clearing of unrate-limited data packets backed up in the local cache, reduce the risk of buffer overflow and packet loss, and at the same time will not have an additional impact on the data stream that has already been subject to flow-level rate limiting, and always meet the buffer congestion constraint requirements of the other end.

[0098] In one embodiment, after determining the transmission rate of the RDMA data stream, the method further includes: A stream-by-stream byte transmission budget is generated based on the transmission rate of the RDMA data stream; Within the execution window, the complete message is read from HBM based on the per-stream byte transmission budget and transmission is performed without recalculating the per-stream transmission rate.

[0099] Specifically, after obtaining the transmission rate of the RDMA data stream, the transmission rate is converted into the per-stream byte transmission budget for the next execution window. Then, within the next execution window, the complete message corresponding to the data volume is read from the HBM buffer sequentially according to the pre-calculated per-stream byte transmission budget to complete the transmission. There is no need to recalculate and adjust the per-stream transmission rate during the transmission process. This can ensure the stability of rate control, reduce redundant calculations within each execution window, and reduce the computing power overhead of the local control logic.

[0100] This design decouples the rate calculation and message transmission processes. Rate calculation is performed only once at the beginning of each control cycle, and message transmission only performs read and send operations according to a pre-generated budget. It can be adapted to the pipelined processing architecture of programmable network devices, reducing the impact of rate control logic on the efficiency of the transmission pipeline and ensuring line-speed forwarding performance.

[0101] In one embodiment, a three-stage pipeline mechanism consisting of a statistical window, a calculation window, and an execution window is adopted. The statistical window is used for message reception in the FPGA, the calculation window is used to determine the transmission rate and generate a per-stream byte transmission budget based on the transmission rate, and the execution window is used to execute the transmission operation based on the per-stream byte transmission budget. The statistical window, calculation window, and execution window can be asynchronous and parallel, which can avoid the three types of operations of message reception, per-stream byte transmission budget calculation, and data transmission forming excessively long combinational logic or mutual waiting.

[0102] Specifically, the statistical window, calculation window, and execution window can all freeze phase results at window boundaries, allowing them to process different batches of data in parallel within the same control cycle. For example, the... The period can be counted through the statistics window. Receive data in a cycle, calculate the first cycle through a calculation window. The periodic byte-by-byte transmission budget is executed through the execution window. Periodic byte-by-byte transmission budget; once the pipeline is full, each control cycle can continuously generate and execute a batch of transmission tasks.

[0103] The statistics window is responsible for parsing the packets and control information arriving within the current period. For data packets, the system identifies their transmission direction and flow identifier, writes the packet data into the corresponding HBM logical queue of the flow, and simultaneously updates the number of arriving bytes, port affiliation, and related status information of the flow on-chip. For control events such as ACK, CNP, and retransmission indications, the system hands them over to the corresponding acknowledgment, reliability, or congestion control modules for processing and records the event results required for subsequent calculations. Thus, packet data is stored in the HBM, while flow-by-flow status and window statistics are maintained in the on-chip flow table and statistics register.

[0104] The calculation window reads the flow arrivals, buffer status, retransmission tasks, and related control events frozen in the previous statistics window, and uses the corresponding transmission control logic based on the port direction to calculate the transmission budget available to each flow in the next execution window. Different transmission rate generation methods are used for the ToDC and ToWAN directions at this stage, but both convert the final rate into the flow-by-byte transmission budget within the current control window.

[0105] The execution window reads the calculated per-stream transmission budget and selects the appropriate HBM transmission position based on whether it's a normal transmission or retransmission task. When the transmission budget is sufficient to cover the next complete message, the message is read from the HBM and sent, while the corresponding budget is deducted and the transmission position is advanced; if the budget is insufficient, transmission for this stream in this round is stopped, and unused budget is carried over to subsequent windows to continue accumulating. Transmission is performed in complete messages as the smallest unit, without splitting individual messages for partial transmission.

[0106] In summary, this embodiment provides a stream-by-stream transmission rate control method for cross-domain RDMA transmission. The method employs different transmission rate generation methods to independently adjust the transmission rate of data streams in two directions. Specifically, a control context is constructed for each RDMA data stream. When the data stream direction in the control context is the intra-datacenter transmission direction, the transmission rate of the RDMA data stream is determined based on its flow state and initial transmission rate. When the data stream direction in the control context is the inter-datacenter transmission direction, the transmission rate is determined based on the arrival rate of the RDMA data stream and its transmission rate ceiling. This embodiment employs differentiated rate generation mechanisms for RDMA data streams in different directions, enabling the collaborative operation of different control mechanisms within the same transmission framework. This satisfies both the requirement for dynamic transmission rate adjustment based on local congestion status within the domain and the requirement for strict adherence to external rate limiting constraints in inter-domain transmission, thus solving the problem of insufficient transmission control flexibility in existing cross-domain scenarios.

[0107] Based on the above-described stream-by-stream transmission rate control method for cross-domain RDMA transmission, this embodiment provides a stream-by-stream transmission rate control device for cross-domain RDMA transmission, such as... Figure 5 As shown, the device includes: Module 100 is used to build a control context for each RDMA data stream, the control context including at least the data stream direction and the stream state; The first direction processing module 200 is used to determine the transmission rate of the RDMA data stream based on the flow state and initial transmission rate of the RDMA data stream when the data stream direction is the internal transmission direction of the data center. The initial transmission rate includes the arrival rate and the natural transmission rate. The second direction processing module 300 is used to determine the transmission rate based on the arrival rate and the upper limit of the transmission rate of the RDMA data stream when the data flow direction is the inter-data center transmission direction.

[0108] Based on the above-described method for stream-by-stream transmission rate control for cross-domain RDMA transmission, this embodiment provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the method for stream-by-stream transmission rate control for cross-domain RDMA transmission as described in the above embodiment.

[0109] Based on the above-described flow-by-flow transmission rate control method for cross-domain RDMA transmission, this application also provides a programmable network device, which includes at least one processor and a memory, wherein the memory stores a computer-readable program that can be executed by the processor; when the processor executes the computer-readable program, it implements the steps in the flow-by-flow transmission rate control method for cross-domain RDMA transmission as described above.

[0110] Furthermore, the specific process of loading and executing multiple instructions in the aforementioned storage medium and programmable network device has been described in detail in the above method, and will not be repeated here.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A stream-by-stream transmission rate control method for cross-domain RDMA transmission, characterized in that, The method includes: A control context is constructed for each RDMA data stream, and the control context includes at least the data stream direction and the stream state; When the data flow direction is the internal transmission direction of the data center, the transmission rate of the RDMA data flow is determined based on the flow state and initial transmission rate of the RDMA data flow, wherein the initial transmission rate includes the arrival rate and the natural transmission rate. When the data flow direction is the inter-data center transmission direction, the transmission rate is determined based on the arrival rate of the RDMA data flow and the upper limit of the transmission rate.

2. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 1, characterized in that, The determination of the transmission rate of the RDMA data stream based on the stream state and initial transmission rate specifically includes: When the flow state is pass-through, the transmission rate of the RDMA data flow is set to the arrival rate; When the flow state is restricted, the transmission rate is determined based on the natural transmission rate of the RDMA data flow; When the stream state is invalid, the transmission rate of the RDMA data stream is set to 0.

3. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 2, characterized in that, The pass-through state indicates that the RDMA data stream has been established, is not in a congestion-triggered rate limiting or recovery process, and there are no cached but unsent data packets, retransmission tasks, or shutdown / draining tasks. The restricted state indicates that the RDMA data stream has been established and is in a congestion-triggered rate limiting or recovery process, or is in a shutdown / draining process. The invalid state indicates that the RDMA data stream has not been established, or that the cached but unsent data packets, sent but not yet acknowledged data packets, and retransmission tasks of the RDMA data stream have all been processed and released.

4. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 1 or 2, characterized in that, The method further includes: Detect the port bandwidth of the physical port corresponding to the RDMA data stream and the required bandwidth of all RDMA data streams that need to use the port; If the required bandwidth is less than or equal to the port bandwidth, the transmission rate of the RDMA data stream remains unchanged; If the required bandwidth is greater than the port bandwidth, obtain the remaining port bandwidth after removing the bandwidth occupied by the pass-through RDMA data stream. Based on the remaining port bandwidth and the restricted required bandwidth of all restricted RDMA data streams that need to use the port, determine a first scaling factor based on the remaining port bandwidth and the restricted required bandwidth, and use the first scaling factor to scale the transmission rate of the restricted RDMA data streams.

5. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 1, characterized in that, The determination of the transmission rate based on the arrival rate of the RDMA data stream and the upper limit of the transmission rate specifically includes: For an RDMA data stream that only receives a flow-level rate limiting notification, the smaller of the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the flow-level rate limiting notification shall be used as the transmission rate. For an RDMA data stream that receives a port-level rate limiting notification, a second scaling factor is determined based on the stream transmission rate of all RDMA data streams that need to pass through the physical port corresponding to the RDMA data stream and the available transmission bandwidth of the physical port. The base transmission rate of the RDMA data stream is then scaled using the second scaling factor to obtain the transmission rate. When the RDMA data stream does not receive a stream-level rate limiting notification, the base transmission rate is the arrival rate. When the RDMA data stream receives a stream-level rate limiting notification, the base transmission rate is the smaller of the arrival rate of the RDMA data stream and the upper limit of the transmission rate corresponding to the stream-level rate limiting notification.

6. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 5, characterized in that, After determining the transmission rate based on the arrival rate and transmission rate limit of the RDMA data stream, the method further includes: Detect whether there is any remaining free bandwidth on the physical port; If there is remaining idle bandwidth, the remaining idle bandwidth is used to allocate a discharge transmission rate to the RDMA data streams in the set of empty streams to be discharged corresponding to the physical port. The set of empty streams to be discharged includes all RDMA data streams under the physical port that have not received a flow-level rate limiting notification and have buffered but unsent data packets.

7. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 6, characterized in that, After determining the transmission rate based on the arrival rate and transmission rate limit of the RDMA data stream, the method further includes: Detect whether the RDMA data stream is allocated a slack transmission rate; If no empty transmission rate is allocated, the transmission rate of the RDMA data stream remains unchanged; If a drain transmission rate is allocated, the transmission rate of the RDMA data stream is updated using the drain transmission rate.

8. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 1, characterized in that, After determining the transmission rate of the RDMA data stream, the method further includes: A stream-by-stream byte transmission budget is generated based on the transmission rate of the RDMA data stream; Within the execution window, the complete message is read from HBM based on the per-stream byte transmission budget and transmission is performed without recalculating the per-stream transmission rate.

9. The stream-by-stream transmission rate control method for cross-domain RDMA transmission according to claim 1, characterized in that, The process of determining the transmission rate is implemented through a statistical window and a calculation window. The statistical window is used for message reception in the FPGA, the calculation window is used to determine the transmission rate and generate a stream-by-stream byte transmission budget based on the transmission rate, and the execution window is used to execute the transmission operation based on the stream-by-stream byte transmission budget. The statistical window, calculation window and execution window can be asynchronous and parallel.

10. A stream-by-stream transmission rate control device for cross-domain RDMA transmission, characterized in that, The device includes: The building module is used to build a control context for each RDMA data stream, the control context including at least the data stream direction and the stream state; The first direction processing module is used to determine the transmission rate of the RDMA data stream based on the flow state and initial transmission rate of the RDMA data stream when the data stream direction is the internal transmission direction of the data center. The initial transmission rate includes the arrival rate and the natural transmission rate. The second direction processing module is used to determine the transmission rate based on the arrival rate and transmission rate limit of the RDMA data stream when the data flow direction is the inter-data center transmission direction.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that can be executed by one or more processors to implement the steps in the stream-by-stream transmission rate control method for cross-domain RDMA transmission as described in any one of claims 1-9.

12. A programmable network device, characterized in that, include: Processor and memory; The memory stores a computer-readable program that can be executed by the processor; When the processor executes the computer-readable program, it implements the steps of the stream-by-stream transmission rate control method for cross-domain RDMA transmission as described in any one of claims 1-9.