# US 2025/0165417 A1 · Method and apparatus for creating shareable remote direct memory access link

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165417 A1
- Document ID: US20250165417A1
- Status: Published application
- Kind: A1
- Application number: 18/842,350
- Filed: 2023-02-09
- Published: 2025-05-22
- Earliest claimed: 2022-03-01
- Assignees: Cloud Intelligence Assets Holding (Singapore) Private Limited
- Applicants: Cloud Intelligence Assets Holding (Singapore) Private Limited
- Inventors: Yunqi HAN; Liang YOU; Xin LONG
- Web page: https://patentgrep.com/patent/US20250165417A1

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 9/54: Interprogram communication
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 2209/544: Remote
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present specification provides a method and an apparatus for creating a shared remote direct memory access link, which are applied to a local terminal. The method includes: receiving a first creating request for a first shareable remote direct memory access RDMA link initiated by a first application process on the local terminal, where an associated memory address indicated by the first creating request for the first shareable RDMA link is a shared memory address of the first application process and a second application process on the local terminal; creating the first shareable RDMA link between the local terminal and an opposite terminal according to the first creating request, so that the shared memory address is registered to an RDMA device on the local terminal as the associated memory address of the first shareable RDMA link.

## Claims

### Claim 1

A method for creating a shareable remote direct memory access link, the method being applied to a local terminal, and the method comprising:
receiving a first creating request for a first shareable remote direct memory access RDMA link initiated by a first application process on the local terminal, wherein an associated memory address indicated by the first creating request for the first shareable RDMA link is a shared memory address of the first application process and a second application process on the local terminal;
creating the first shareable RDMA link between the local terminal and an opposite terminal according to the first creating request, so that the shared memory address is registered to an RDMA device on the local terminal as the associated memory address of the first shareable RDMA link.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the creating the first shareable RDMA link between the local terminal and the opposite terminal according to the first creating request comprises:
in a case that the first creating request comprises information on the shared memory address and the information on the shared memory address is marked as the associated memory address of the first shareable RDMA link, creating the first shareable RDMA link according to the information on the shared memory address comprised in the first creating request; or,
in a case that the first creating request comprises information on a created second shareable RDMA link, acquiring context information of the second shareable RDMA link, and creating the first shareable RDMA link according to the context information; wherein an associated memory address of the second shareable RDMA link recorded in the context information is the shared memory address.

### Claim 3 (depends on 1)

The method according to claim 1, wherein multiple shareable RDMA links are created between the local terminal and the opposite terminal, and context information of the multiple shareable RDMA links is maintained on the local terminal, wherein the context information comprises associated memory addresses of corresponding shareable RDMA links; the method further comprises:
receiving a data transmission request for the opposite terminal initiated by any application process, wherein the any application process corresponds to the shared memory address;
if the any application process does not indicate a to-be-used shareable RDMA link in the data transmission request, determining, according to the context information, a shared RDMA link whose associated memory address is the shareable memory address among the multiple shareable RDMA links, and selecting a target shareable RDMA link from the determined shareable RDMA link to respond to the data transmission request.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
if the any application process indicates the to-be-used shareable RDMA link in the data transmission request, responding to the data transmission request through the to-be-used shareable RDMA link.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
sending the shared memory address to the opposite terminal through the RDMA device, so that data interaction is implemented between a memory address associated with the first shareable RDMA link in the opposite terminal and the shared memory address based on the first shareable RDMA link.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
receiving, through any shareable RDMA link, a writing operation request for the local terminal initiated by any application process on the opposite terminal, wherein an associated memory address of the any shareable RDMA link is the shared memory address;
in a case that the writing operation request comprises a target address segment, writing data sent by the opposite terminal into the target address segment, wherein the target address segment is a partial memory address segment obtained by dividing the shared memory address;
in a case that the writing operation request does not comprise a memory address for writing data, writing the data sent by the opposite terminal into the shared memory address.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the first application process and the second application process are independent from each other, or are parent-child processes.

### Claim 8 (depends on 1)

The method according to claim 1, wherein an agent process runs on the local terminal, and the agent process is used to implement at least one of the following:
performing monitoring on and responding to the first creating request;
performing data interaction between the RDMA device and the shared memory address.

### Claim 9 (depends on 1)

The method according to claim 1, wherein an application programming interface API for the shared memory address is created on the local terminal; wherein the API is used to be provided to an application process corresponding to the shared memory address to access the shared memory address by the application process.

### Claim 10

An apparatus for creating a shared remote direct memory access link, the apparatus being applied to a local terminal, and the apparatus comprising: a memory, a processor. and a computer program stored on the memory and runnable on the processor, wherein when the computer program is executed by the processor, the processor is configured to:
receive a first creating request for a first shareable remote direct memory access RDMA link initiated by a first application process on the local terminal, wherein an associated memory address indicated by the first creating request for the first shareable RDMA link is a shared memory address of the first application process and a second application process on the local terminal;
create, the first shareable RDMA link between the local terminal and an opposite terminal according to the first creating request, so that the shared memory address is registered to an RDMA device on the local terminal as the associated memory address of the first shareable RDMA link.

### Claim 11

A non-transitory computer readable storage medium, having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
receiving a first creating request for a first shareable remote direct memory access RDMA link initiated by a first application process on the local terminal, wherein an associated memory address indicated by the first creating request for the first shareable RDMA link is a shared memory address of the first application process and a second application process on the local terminal;
creating the first shareable RDMA link between the local terminal and an opposite terminal according to the first creating request, so that the shared memory address is registered to an RDMA device on the local terminal as the associated memory address of the first shareable RDMA link.

### Claim 12

(canceled)

### Claim 13 (depends on 10)

The apparatus according to claim 10, wherein the processor is configured to:
in a case that the first creating request comprises information on the shared memory address and the information on the shared memory address is marked as the associated memory address of the first shareable RDMA link, create the first shareable RDMA link according to the information on the shared memory address comprised in the first creating request; or,
in a case that the first creating request comprises information on a created second shareable RDMA link, acquire context information of the second shareable RDMA link, and create the first shareable RDMA link according to the context information; wherein an associated memory address of the second shareable RDMA link recorded in the context information is the shared memory address.

### Claim 14 (depends on 10)

The apparatus according to claim 10, wherein multiple shareable RDMA links are created between the local terminal and the opposite terminal, and context information of the multiple shareable RDMA links is maintained on the local terminal, wherein the context information comprises associated memory addresses of corresponding shareable RDMA links; the processor is further configured to:
receive a data transmission request for the opposite terminal initiated by any application process, wherein the any application process corresponds to the shared memory address;
if the any application process does not indicate a to-be-used shareable RDMA link in the data transmission request, determine, according to the context information, a shared RDMA link whose associated memory address is the shareable memory address among the multiple shareable RDMA links, and select a target shareable RDMA link from the determined shareable RDMA link to respond to the data transmission request.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the processor is further configured to:
if the any application process indicates the to-be-used shareable RDMA link in the data transmission request, respond to the data transmission request through the to-be-used shareable RDMA link.

### Claim 16 (depends on 10)

The apparatus according to claim 10, wherein the processor is further configured to:
send the shared memory address to the opposite terminal through the RDMA device, so that data interaction is implemented between a memory address associated with the first shareable RDMA link in the opposite terminal and the shared memory address based on the first shareable RDMA link.

### Claim 17 (depends on 10)

The apparatus according to claim 10, wherein the processor is further configured to:
receive, through any shareable RDMA link, a writing operation request for the local terminal initiated by any application process on the opposite terminal, wherein an associated memory address of the any shareable RDMA link is the shared memory address;
in a case that the writing operation request comprises a target address segment, write data sent by the opposite terminal into the target address segment, wherein the target address segment is a partial memory address segment obtained by dividing the shared memory address;
in a case that the writing operation request does not comprise a memory address for writing data, write the data sent by the opposite terminal into the shared memory address.

### Claim 18 (depends on 10)

The apparatus according to claim 10, wherein the first application process and the second application process are independent from each other, or are parent-child processes.

### Claim 19 (depends on 10)

The apparatus according to claim 10, wherein an agent process runs on the local terminal, and the agent process is used to implement at least one of the following:
performing monitoring on and responding to the first creating request;
performing data interaction between the RDMA device and the shared memory address.

### Claim 20 (depends on 10)

The apparatus according to claim 10, wherein an application programming interface API for the shared memory address is created on the local terminal; wherein the API is used to be provided to an application process corresponding to the shared memory address to access the shared memory address by the application process.

### Claim 21 (depends on 11)

The non-transitory computer readable storage medium according to claim 11, wherein when the computer program is executed by the processor, the following steps are implemented:
in a case that the first creating request comprises information on the shared memory address and the information on the shared memory address is marked as the associated memory address of the first shareable RDMA link, creating the first shareable RDMA link according to the information on the shared memory address comprised in the first creating request; or,
in a case that the first creating request comprises information on a created second shareable RDMA link, acquiring context information of the second shareable RDMA link, and creating the first shareable RDMA link according to the context information; wherein an associated memory address of the second shareable RDMA link recorded in the context information is the shared memory address.
