# US 2024/0201890 A1 · Data processing method and apparatus

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

- Number: US 2024/0201890 A1
- Document ID: US20240201890A1
- Status: Published application
- Kind: A1
- Application number: 18/591,561
- Filed: 2024-02-29
- Published: 2024-06-20
- Earliest claimed: 2021-09-01
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Chenxu Zhang; Xiaodong Luo
- Web page: https://patentgrep.com/patent/US20240201890A1

## CPC

- G06F 3/065: {Replication mechanisms}
- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 15/17331: {Distributed shared memory [DSM], e.g. remote direct memory access [RDMA]}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This disclosure related a data processing method and apparatus. The method includes: A processor or a network interface card of a client generates a first copy and a second copy of data. The network interface card of the client writes the first copy into a first address in a memory of a storage device and the second copy into a second address in the memory in a one-time unilateral remote memory access RDMA manner. Alternatively, a network interface card of the storage device respectively writes the first copy and the second copy of the data into the first address and the second address in the memory according to a unilateral RDMA write request sent by the client.

## Claims

### Claim at position 1

1-14. (canceled)

### Claim 15

A method, comprising:
generating, by a processor or a network interface card of a client, a first copy and a second copy of data, wherein the processor communicates with the network interface card; and
writing, by the network interface card, the first copy of the data into a first address in a memory of a storage device and the second copy of the data into a second address in the memory in a one-time unilateral remote direct memory access (RDMA) manner.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the memory is a persistent memory.

### Claim 17 (depends on 15)

The method according to claim 15, wherein the method further comprises:
reading, by the network interface card, the first copy of the data from the first address in the unilateral RDMA manner to obtain a read first copy;
reading, by the network interface card, the second copy of the data from the second address in the unilateral RDMA manner to obtain a read second copy; and
checking, by the processor or the network interface card, the read first copy and the read second copy, and determining valid data from the read first copy and the read second copy.

### Claim 18 (depends on 17)

The method according to claim 17, wherein checking, by the processor or the network interface card, the read first copy and the read second copy, and determining the valid data from the read first copy and the read second copy comprises:
in response to detecting that the read first copy is the same as the read second copy, determining, by the processor or the network interface card, that the read first copy and the read second copy are the valid data.

### Claim 19 (depends on 17)

The method according to claim 17, wherein writing, by the network interface card, the first copy of the data into the first address and the second copy of the data into the second address in the one-time unilateral RDMA manner comprises writing the second copy of the data into the second address after writing the first copy of the data into the first address.

### Claim 20

A client, comprising:
at least one processor;
a network interface card configured to communicate with the at least one processor; and
a first memory, the first memory stores a computer program, that when executed by the at least one processor, causes the client to perform operations comprising:
generating, by the at least one processor or the network interface card, a first copy of data and a second copy of the data; and
writing, by the network interface card, the first copy of the data into a first address in a second memory of a storage device and the second copy of the data into a second address in the second memory in a one-time unilateral remote direct memory access (RDMA) manner.

### Claim 21 (depends on 20)

The client according to claim 20, wherein the second memory is a persistent memory.

### Claim 22 (depends on 20)

The client according to claim 20, wherein the operations further comprise:
reading, by the network interface card, the first copy of the data from the first address in the unilateral RDMA manner to obtain a read first copy;
reading, by the network interface card, the second copy from the second address in the unilateral RDMA manner to obtain a read second copy; and
checking, by the processor or the network interface card, the read first copy and the read second copy, and determining valid data from the read first copy and the read second copy.

### Claim 23 (depends on 22)

The client according to claim 22, wherein the operations of checking, by the processor or the network interface card, the read first copy and the read second copy, and determining valid data from the read first copy and the read second copy comprises:
in response to detecting that the read first copy is the same as the read second copy, determining, by the processor or the network interface card, that the read first copy and the read second copy are the valid data.

### Claim 24 (depends on 20)

The client according to claim 20, wherein the operations of writing, by the network interface card, the first copy of the data into the first address and the second copy of the data into the second address in the one-time unilateral RDMA manner comprises writing the second copy of the data into the second address after writing the first copy of the data into the first address.

### Claim 25

A storage device, comprising:
at least one processor;
a network interface card; and
a memory, the memory stores a computer program, that when executed by the at least one processor, causes the storage device to perform operations comprising:
receiving, by the network interface card, a unilateral remote direct memory access (RDMA) write request sent by a client, wherein the unilateral RDMA write request comprises a first copy of data and a second copy of data, a first address corresponding to the first copy of the data in the memory of the storage device, and a second address corresponding to the second copy of the data in the memory; and
writing, by the network interface card, the first copy of the data into the first address and the second copy of the data into the second address according to the unilateral RDMA write request.

### Claim 26 (depends on 25)

The device according to claim 25, wherein the memory is a persistent memory.

### Claim 27 (depends on 25)

The device according to claim 25, wherein the operations further comprise:
reading, by the network interface card or the at least one processor, the first copy of the data from the first address to obtain a read first copy;
reading, by the network interface card or the at least one processor, the second copy of the data from the second address to obtain a read second copy; and
checking, by the network interface card or the at least one processor, the read first copy and the read second copy, and in response to detecting that the read first copy is inconsistent with the read second copy, performing a data overwrite operation on first data stored in the first address or second data stored in the second address.

### Claim 28 (depends on 27)

The device according to claim 27, wherein the read first copy comprises the first data and first check code, the read second copy comprises the second data and second check code, and the read first copy is inconsistent with the read second copy when the first data is different from the second data.

### Claim 29 (depends on 27)

The device according to claim 27, wherein the read first copy comprises the first data and first check code, the read second copy comprises the second data and second check code, and the read first copy is inconsistent with the read second copy when the first check code is different from the second check code.

### Claim 30 (depends on 27)

The device according to claim 27, wherein the operations of performing the data overwrite operation on the first data stored in the first address or the second data stored in the second address comprises:
in response to checking of the first data based on a first check code of the read first copy succeeding, overwriting the second data stored in the second address with the first data and the first check code.

### Claim 31 (depends on 30)

The device according to claim 30, wherein the operations of performing the data overwrite operation on data stored in the first address or data stored in the second address comprises:
in response to checking of the first data based on the first check code fails and checking of the second data based on a second check code of the read second copy succeeding, overwriting the first data stored in the first address with the second data and the second check code.

### Claim 32 (depends on 25)

The device according to claim 25, wherein the operations of writing, by the network interface card, the first copy of the data into the first address and the second copy of the data into the second address according to the unilateral RDMA write request comprises:
writing the second copy of the data into the second address after writing the first copy of the data into the first address.
