Data access method and related device
Abstract
In a data access method, a network device receives access requests sent by a plurality of clients connected to the network device, and sends the access requests to an access queue of a storage unit. The storage unit executes the access requests in the access queue, and returns processing results of the access requests of the plurality of clients. The network device returns the processing results that are of the access requests and that are returned by the storage unit to the clients corresponding to the access requests.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (24 — 3 Independent, 21 Dependent)
- Claim 1Independent Claim
A storage apparatus comprising: a storage device comprising an access queue and configured to: receive, using the access queue, access requests of clients, wherein the clients comprise a first client, and wherein the access requests comprise a first access request corresponding to the first client; execute the first access request to obtain a processing result; and return the processing result; and a network device configured to: receive the access requests from the clients; connect the storage device to the clients; allocate local identifiers to client identifiers carried in the access requests, wherein the local identifiers uniquely identify the clients; replace the client identifiers carried in the access requests with the local identifiers; send the access requests comprising the local identifiers to the access queue; receive the processing result from the storage device; return the processing result to the first client; and record a mapping relationship between the client identifiers and the local identifiers using a table, wherein the table is a hash table, wherein in the hash table a keyword of an application server is at least one of the local identifiers, and wherein a value of the application server is at least one of the client identifiers.
- Claim 2Depends on #1
The storage apparatus of claim 1, wherein the network device is further configured to: store a correspondence between the access queue and information about the clients; and further send the access requests based on the correspondence.
- Claim 3Depends on #2
The storage apparatus of claim 2, wherein the information is connection information from when the network device establishes connections to the clients, and wherein the network device is further configured to: determine, when receiving the access requests, the access queue based on the connection information; and send the connection information to the access queue.
- Claim 4Depends on #2
The storage apparatus of claim 2, wherein the information is connection information from when the network device establishes connections to the clients.
- Claim 5Depends on #3
The storage apparatus of claim 3, wherein the network device is further configured to establish remote direct memory access (RDMA) connections with the clients.
- Claim 6Independent Claim
A method implemented by a network device and comprising: receiving access requests from clients, wherein the clients comprise a first client, and wherein the access requests comprise a first access request corresponding to the first client; connecting a storage device to the clients; allocating local identifiers to client identifiers carried in the access requests, wherein the local identifiers uniquely identify the clients; replacing the client identifiers carried in the access requests with the local identifiers; sending the access requests comprising the local identifiers to an access queue of the storage device; receiving, from the storage device, a processing result that is based on execution of the first access request; returning the processing result to the first client; and recording a mapping relationship between the client identifiers and the local identifiers using a table, wherein the table is a hash table, wherein in the hash table a keyword of an application server is at least one of the local identifiers, and wherein a value of the application server is at least one of the client identifiers.
- Claim 7Depends on #6
The method of claim 6, further comprising: storing a correspondence between the access queue and information about the clients; and further sending the access requests based on the correspondence.
- Claim 8Depends on #7
The method of claim 7, wherein the information is connection information from when the network device establishes connections to the clients, and wherein the method further comprises: determining, when receiving the access requests, the access queue based on connection information; and sending the connection information to the access queue.
- Claim 9Depends on #7
The method of claim 7, wherein the information is connection information from when the network device establishes connections to the clients.
- Claim 10Depends on #8
The method of claim 8, further comprising establishing remote direct memory access (RDMA) connections with the clients, and wherein the connection information is a queue pair (QP) from when the network device establishes the RDMA connections.
- Claim 11Independent Claim
A network device comprising: a memory configured to store instructions; and one or more processors coupled to the memory and configured to execute the instructions to cause the network device to: receive access requests from clients, wherein the clients comprise a first client, and wherein the access requests comprise a first access request corresponding to the first client; connect a storage device to the clients; allocate local identifiers to client identifiers carried in the access requests, wherein the local identifiers uniquely identify the clients; replace the client identifiers carried in the access requests with the local identifiers; send the access requests comprising the local identifiers to an access queue of the storage device; receive, from the storage device, a processing result that is based on the first access request; return the processing result to the first client; and record a mapping relationship between the client identifiers and the local identifiers using a table, wherein the table is a hash table, wherein in the hash table a keyword of an application server is at least one of the local identifiers, and wherein a value of the application server is at least one of the client identifiers.
- Claim 12Depends on #11
The network device of claim 11, wherein the one or more processors are further configured to execute the instructions to cause the network device to: store a correspondence between the access queue and information about the clients; and further send the access requests based on the correspondence.
- Claim 13Depends on #12
The network device of claim 12, wherein the information is connection information from when the network device establishes connections to the clients, and wherein the one or more processors are further configured to execute the instructions to cause the network device to: determine, when receiving the access requests, the access queue based on connection information; and sending the connection information to the access queue.
- Claim 14Depends on #12
The network device of claim 12, wherein the information is connection information from when the network device establishes connections to the clients.
- Claim 15Depends on #13
The network device of claim 13, wherein the one or more processors are further configured to execute the instructions to cause the network device to establish remote direct memory access (RDMA) connections with the clients.
- Claim 16Depends on #15
The network device of claim 15, wherein the connection information is a queue pair (QP) from when the network device establishes the RDMA connections.
- Claim 17Depends on #13
The network device of claim 13, wherein the one or more processors are further configured to execute the instructions to cause the network device to determine, based on the connection information, the first client.
- Claim 18Depends on #14
The network device of claim 14, wherein the one or more processors are further configured to execute the instructions to cause the network device to: obtain a first local identifier of the local identifiers and from the processing result; determine, based on the first local identifier, first connection information corresponding to the first client; and further return the processing result to the first client based on the first connection information.
- Claim 19Depends on #3
The storage apparatus of claim 3, wherein the network device is further configured to determine, based on the connection information, the first client.
- Claim 20Depends on #19
The storage apparatus of claim 19, wherein the storage device is further configured to return the connection information to the network device when returning the processing result.
- Claim 21Depends on #4
The storage apparatus of claim 4, wherein the network device is further configured to: obtain a first local identifier of the local identifiers and from the processing result; determine, based on the first local identifier, first connection information corresponding to the first client; and further return the processing result to the first client based on the first connection information.
- Claim 22Depends on #5
The storage apparatus of claim 5, wherein the connection information is a queue pair (QP) from when the network device establishes the RDMA connections.
- Claim 23Depends on #8
The method of claim 8, further comprising determining, based on the connection information, the first client.
- Claim 24Depends on #9
The method of claim 9, further comprising: obtaining a first local identifier of the local identifiers and from the processing result; determining, based on the first local identifier, first connection information corresponding to the first client; and further returning the processing result to the first client based on the first connection information.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of Int'l Patent App. No. PCT/CN2021/142495, filed on Dec. 29, 2021, which claims priority to Chinese Patent App. No. 202011645307.9, filed on Dec. 31, 2020, both of which are incorporated by reference. FIELD The present disclosure relates to the field of storage technologies, and in particular, to a data access method and a related device. BACKGROUND With rapid development of computer information technologies such as big data, cloud computing, and artificial intelligence in recent years, a scale of global Internet data increases exponentially. Many high-concurrency and low-latency applications require high-performance hardware, and therefore a high-performance memory emerges. For the high-performance memory, because an I/O throughput capability of the high-performance memory is strong, a distributed file system needs to allocate a large quantity of computing resources to complete data processing and data exchange. Consequently, a transmission latency of the system is increased and a network transmission capability and system performance are limited. To resolve this problem, remote direct memory access (RDMA) emerges. The RDMA is a technology for directly performing remote memory access. To be specific, data can be directly and quickly migrated from one system to another remote system memory without affecting an operating system. This reduces consumption of a central processing unit (CPU) in the data transmission process, releases a memory bandwidth, and improves service processing performance of the system. The RDMA features a high bandwidth, a low latency, and low CPU usage. Currently, when the RDMA is used to read and write data, a network device of a host first writes the data into a memory of a storage device by performing an RDMA operation, and a CPU in the storage device needs to store the data in the memory into a persistent storage medium, for example, a solid-state drive (SSD). However, storing
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (5)
- Peng Long-gen et al.
- “
- Research of Message Scalable Technology over InfiniBand Network
- ”
- , Computer Science vol. 40 No. 3, Mar. 2013, with the Englsih Abstract, total 4 pages.