WO2016065613A1 - File access method, distributed storage system and network device - Google Patents

File access method, distributed storage system and network device Download PDF

Info

Publication number
WO2016065613A1
WO2016065613A1 PCT/CN2014/090023 CN2014090023W WO2016065613A1 WO 2016065613 A1 WO2016065613 A1 WO 2016065613A1 CN 2014090023 W CN2014090023 W CN 2014090023W WO 2016065613 A1 WO2016065613 A1 WO 2016065613A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage node
host
access request
device information
address
Prior art date
Application number
PCT/CN2014/090023
Other languages
French (fr)
Chinese (zh)
Inventor
徐君
赵俊峰
王元钢
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480037253.4A priority Critical patent/CN105745900B/en
Priority to PCT/CN2014/090023 priority patent/WO2016065613A1/en
Publication of WO2016065613A1 publication Critical patent/WO2016065613A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present invention relates to the field of storage technologies, and in particular, to a method for accessing files, a distributed storage system, and a network device.
  • New non-violate memory (NVM) media such as Phase Change Memory (PCM), Resistive RAM (ReRAM), Magnetic Random Access Memory (Magnetic Random Access Memory) , MRAM), etc., with similar dynamic random access memory (DRAM) read and write characteristics, can be hung on the memory bus for access.
  • PCM Phase Change Memory
  • ReRAM Resistive RAM
  • MRAM Magnetic Random Access Memory
  • DRAM dynamic random access memory
  • NFS Network File System
  • CIFS Common Internet File System
  • RPC Remote Procedure Call
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • the embodiment of the invention provides a method for accessing a file, a distributed storage system and a network device, which can improve the efficiency of file access.
  • a method for accessing a file is provided, the method being applied to a distributed storage system, the distributed storage system comprising a management node, a plurality of storage nodes, and a network device, each storage node in the distributed storage system
  • the local virtual address space corresponds to a portion of the global virtual address space of the distributed storage system, and the method includes:
  • the access request is used to access a first virtual space of the target file, where the first virtual space is a space allocated by the management node for the target file in the global virtual address space
  • the access The destination address of the request contains the first save of the target file.
  • the network device parses the destination address of the access request to obtain device information of the first storage node
  • the network device sends the access request to the first storage node according to the device information of the first storage node to access the target file according to an address of a local virtual address space in the destination address.
  • the method before the network device receives the access request sent by the host, the method further includes:
  • the network device allocates device information for the host and the first storage node.
  • the device information of the first storage node includes an identifier of the first storage node
  • the device information of the host includes the host ID
  • the device information of the first storage node includes an ID and a node type of the first storage node, where the device information of the host includes the Host ID and node type.
  • the address of the local virtual address space of the first storage node The number of digits is N digits;
  • the number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the address of the local virtual address space in the first storage node is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the source address of the access request includes device information of the host ;
  • the method also includes:
  • the network device parses the destination address of the response message to obtain device information of the host;
  • the network device sends the response message to the host according to the device information of the host.
  • a distributed storage system including: a management node, a plurality of storage nodes, and a network device;
  • a local virtual address space of each of the plurality of storage nodes corresponds to a portion of a global virtual address space of the distributed storage system
  • the management node is configured to allocate a first virtual space to the target file in the global virtual address space
  • the network device is configured to receive an access request sent by the host, where the access request is used to access the first virtual space, where the destination address of the access request includes device information of the first storage node that stores the target file, and the target file is in the first An address of a local virtual address space in a storage node, the first storage node represents a storage node of the plurality of storage nodes for storing the target file, and parsing a destination address of the access request to obtain a device of the first storage node And sending, by the device information of the first storage node, the access request to the first storage node to access the target file according to an address of a local virtual address space in the destination address.
  • the network device is further configured to allocate device information for the host and the first storage node.
  • the device information of the first storage node includes an identifier ID of the first storage node
  • the device information of the host includes the host ID
  • the device information of the first storage node includes an ID and a node type of the first storage node, where the device information of the host includes the Host ID and node type.
  • the address of the local virtual address space of the first storage node The number of digits is N digits;
  • the number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the address of the local virtual address space in the first storage node is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the source address of the access request includes device information of the host ;
  • the network device is further configured to receive a response message sent by the first storage node, where the response message is The destination address is the source address of the access request, and the destination address of the response message is parsed to obtain device information of the host, and the response message is sent to the host according to the device information of the host.
  • a network device including:
  • a receiving module configured to receive an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a global virtual address of the management node in the distributed storage system in the distributed storage system
  • the space allocated for the target file in the space, the local virtual address space of each storage node in the distributed storage system corresponds to a part of the global virtual address space of the distributed storage system, and the destination address of the access request includes storing the target file.
  • a routing module configured to parse the destination address of the access request to obtain device information of the first storage node, and send the access request to the first storage node according to the device information of the first storage node, according to the destination address
  • the address of the local virtual address space accesses the target file.
  • the network device further includes:
  • an allocation module configured to allocate device information for the host and the first storage node.
  • the device information of the first storage node includes an identifier ID of the first storage node
  • the device information of the host includes the host ID
  • the device information of the first storage node includes an ID and a node type of the first storage node, where the device information of the host includes the Host ID and node type.
  • the address of the local virtual address space of the first storage node The number of digits is N digits;
  • the destination address of the access request has a bit number of 2N, wherein the high N bit of the destination address of the access request includes device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the source address of the access request includes device information of the host ;
  • the receiving module is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
  • the routing module is further configured to parse the destination address of the response message to obtain device information of the host, and send the response message to the host according to the device information of the host.
  • a computer program product comprising a computer readable storage medium storing program code, the program code comprising instructions for performing the method of the first aspect described above.
  • the method for accessing a file, the distributed storage system, and the network device in the embodiment of the present invention include the device information of the storage node in the destination address of the access request, and perform routing based on the device information of the storage node, and can directly access the distribution. Storage of files in the system to improve the efficiency of file access.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method for accessing a file according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a format of an access request according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for accessing a file according to another embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a distributed storage system according to an embodiment of the present invention.
  • Figure 6 is a schematic block diagram of a network device in accordance with one embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a network device according to another embodiment of the present invention.
  • virtual address space may also be expressed as “virtual” "Pseudospace”, that is, “virtual address space” and “virtual space” are common; similarly, “local physical storage space” and “local physical space” are common.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
  • host 130, storage node 120, and management node 110 are interconnected by network 140.
  • Storage node 120, management node 110, and network 140 form a distributed storage system.
  • the host 130 can be a computer or other user device, and the host 130 can communicate with the distributed storage system through a network.
  • Host 130 may include any computing device known in the art, such as a server, desktop computer, etc., with an operating system and other applications installed in host 130, and there may be multiple hosts 130.
  • Host 130 can access files of the distributed storage system. For example, host 130 can provide a file access interface to an application on the host through a file interface module.
  • the storage node 120 is configured to store file data and process access requests to the file.
  • Storage node 120 may include at least one non-volatile memory, for example, a new type of NVM having the capability of byte addressing and access, such as PCM, ReRAM, MRAM, and the like.
  • the file is stored in the NVM memory, and the storage node 120 can implement access to the new NVM through the memory bus.
  • the management node 110 is configured to manage metadata of the file, process metadata query, update request, and the like of the host to the file.
  • the metadata of the file may include information such as the starting address of the file, the size of the allocated space, and the actual size of the file.
  • the management node 110 can also be used to manage the global virtual address space of the distributed storage system.
  • the management node 110 and the storage node 120 may also be combined, that is, one node may have the functions of both the management node and the storage node.
  • the management node may be independent (for example, the management node 110 in FIG. 1), or may be a node having both the management node and the storage node.
  • the following is an example of a management node.
  • the physical layer and link layer of the network 140 may be based on an Ethernet, a PCIE switching network, an InfiniBand network, and an optical network.
  • the network 140 is used to route access requests and access responses. Specifically, the routes may be performed by network devices (such as routers or switches) in the network 140. For convenience of description, the following describes a network device as an example.
  • FIG. 2 shows a schematic flow diagram of a method 200 of accessing a file in accordance with an embodiment of the present invention.
  • the method 200 is applied to a distributed storage system including a management node, a plurality of storage nodes, and a network device. Local virtualization of each storage node in the distributed storage system The address space corresponds to a portion of the global virtual address space of the distributed storage system. The method 200 is performed by a network device.
  • the network device receives an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a space allocated by the management node for the target file in the global virtual address space, where
  • the destination address of the access request includes device information of the first storage node storing the target file and an address of the local virtual address space of the target file in the first storage node, the first storage node indicating the plurality of storage nodes The storage node used to store the target file.
  • the global virtual address space of a distributed storage system is the space that is virtualized for managing file systems in the distributed storage system.
  • the local virtual address space of the different storage nodes in the distributed storage system corresponds to different portions of the global virtual address space of the distributed storage system. For example, a first portion of the global virtual address space is spatially mapped to a local virtual address space of the first storage node in the distributed storage system, and a second portion of the global virtual address space is spatially mapped to the first of the distributed storage systems The local virtual address space of the storage node, wherein the first partial space is different from the second partial space.
  • the management node may allocate a continuous space (represented as the first virtual space) from the global virtual address space of the distributed storage system to the target file.
  • the first virtual space can be mapped to the local virtual address space of the storage node. Further, the storage node may access the physical address space of the storage node according to the mapping relationship between the local virtual address space of the storage node and the physical address space of the storage file for access.
  • the local virtual address space may use an unused interval of the virtual address space of an operating system (OS) OS.
  • OS operating system
  • the 64-bit OS has a virtual address space size of 2 to the 64th power.
  • the local virtual address space can use the virtual address reserved by the OS. space. You can also re-divide the virtual address space of the operating system as needed, and divide a virtual address space into a local virtual address space.
  • the number of address bits in the local virtual address space is the number of bits in the OS. For example, for a 64-bit OS, the address space of the local virtual space is 64 bits.
  • the address space of the global virtual space can be 128 bits.
  • the host When the host accesses the target file in the distributed storage system, the host sends an access request to the network to access the first virtual space of the target file.
  • the destination address of the access request includes the setting of the first storage node Information.
  • the source address of the access request may include device information of the host.
  • the first storage node represents a storage node for storing the target file, and the device information of the first storage node is used by the network device to route the access request to the first storage node.
  • the device information of the host is used by the network device to route the returned response message to the host.
  • the device information of the first storage node includes an identity (ID) of the first storage node
  • the device information of the host includes an ID of the host. That is to say, the device information of the storage node or the host can adopt the node ID, in which case different nodes have different IDs.
  • the device information of the first storage node includes an identifier ID and a node type of the first storage node
  • the device information of the host includes an ID and a node type of the host. That is to say, the device information of the storage node or the host may adopt the node ID+node type.
  • different nodes of the same node type have different IDs
  • nodes of different node types may have the same ID.
  • Node types can include storage nodes, management nodes, and hosts. For example, a 2-bit identification node type can be utilized.
  • the device information of the node may be pre-allocated by the network device. That is, before the network device receives the access request sent by the host, the method 200 may further include:
  • the network device allocates device information for the host and the first storage node.
  • the network can assign an ID to a node when it registers.
  • the IDs of the storage node and the management node may be dynamically fixed, that is, the initial allocation dynamics, and the allocation is fixed later; the ID of the host may be dynamically allocated.
  • the address in the access request can take the global virtual address (that is, the address of the global virtual space).
  • the number of bits in the global virtual address is greater than the number of bits in the local virtual address (that is, the address of the local virtual address space), so that the device information of the storage node or host can be included in the global virtual address.
  • the number of bits of the address of the local virtual address space is N bits. That is, the number of bits of the address of the local virtual address space of the host and the address of the address of the local virtual address space of the first storage node are N bits.
  • the number of bits of the destination address of the access request may be 2N bits, wherein the high N bits of the destination address of the access request include device information of the first storage node, and the destination address of the access request is low.
  • the N bit is the address of the local virtual address space of the target file in the first storage node.
  • the number of bits of the source address of the access request may also be 2N bits, where a high N bit of the source address of the access request includes device information of the host, and a low N bit of the source address of the access request corresponds to The address of the local virtual address space allocated by the host for this object file.
  • the number of bits of the global virtual address is 2N, wherein the lower N bits correspond to the local virtual address, and the high N bits may include device information of the storage node or the host.
  • the global virtual address may be 128 bits, wherein the lower 64 bits of the global virtual address correspond to the local virtual address, and the upper 64 bits of the global virtual address contain device information of the storage node or the host. It should be understood that device information of the storage node or host may be carried with only a portion of the high N bits, and the remaining bits may be reserved or reserved for other purposes.
  • the destination address of the access request may be 128 bits, wherein the lower 64 bits of the destination address of the access request are the address of the local virtual address space of the target file in the first storage node, accessing
  • the upper 64 bits of the requested destination address contain the device information of the first storage node (eg, the upper 8 bits are the ID of the first storage node, and the remaining bits are reserved).
  • the lower N bits of the destination address of the access request are the addresses of the local virtual address space of the target file in the first storage node, and the first storage node can access the target file according to the address.
  • the lower N bits of the source address of the access request may correspond to the address of the local virtual address space allocated by the host for the target file.
  • the host allocates a virtual address space in the local virtual address space for the target file to be accessed when accessing the target file, and the lower N bits of the source address of the access request may correspond to the address of the allocated local virtual address space, so as to receive the returned response. .
  • FIG. 3 is a schematic diagram of a format of an access request in accordance with one embodiment of the present invention.
  • the access request includes a destination address, a source address, a request serial number, a length, a command ID, a command type, and a message body.
  • the destination address is the receiving address.
  • the exact address of the global virtual address space can be specified, for example, the node ID + the virtual address space address in the node.
  • the source address is the sending address.
  • the returned data needs to be mapped to the host's local virtual address space.
  • node device information such as a node ID
  • the command type and command ID are used to determine specific operations.
  • the command types include file access operations, metadata access operations, and configuration management operations.
  • the request serial number indicates the order and uniqueness of the message.
  • the length is the length of the data contained in the message body; for read requests, the length of the request can be read
  • the degree is directly put in, and the message body is empty.
  • the message body contains the data to be written; for the read request message body can be empty.
  • the network device parses the destination address of the access request to obtain device information of the first storage node.
  • the network device After receiving the access request sent by the host, the network device parses the destination address of the access request, and obtains the device information of the first storage node included in the destination address. For example, when the destination address of the access request is 2N bits, the network device obtains the device information of the first storage node from the upper N bits of the destination address of the access request.
  • the network device sends the access request to the first storage node according to the device information of the first storage node, to access the target file according to an address of a local virtual address space in the destination address.
  • the network device routes the access request to the first storage node according to the device information of the first storage node included in the destination address of the access request. For example, if the destination address adopts the node ID + the virtual address space address in the node, the access request is routed to the node of the ID according to the node ID; if the destination address adopts the node type + node ID + the virtual address space address in the node, then The access request is routed to the node with the ID in the node of the node type according to the node type and the node ID.
  • the mapping relationship between the node ID and the port, or the mapping relationship between the node type and the node ID to the port may be adopted.
  • the first storage node After receiving the access request sent by the network device, the first storage node accesses the target file according to the access request. Specifically, the mapping relationship between the local virtual address space and the local physical storage space of the storage file is saved in the first storage node, and the first storage node may determine, according to the address of the local virtual address space in the destination address of the access request, for storage. The address of the local physical storage space of the target file. Further, the first storage node may access the local physical storage space according to the determined address of the local physical storage space, so as to achieve the purpose of accessing the target file stored in the local physical storage space.
  • the method for accessing a file in the embodiment of the present invention includes the device information of the storage node in the destination address of the access request, and performs routing based on the device information of the storage node, and can directly access files in the distributed storage system, thereby improving file access. effectiveness.
  • the method 200 further includes S240, S250, and S260.
  • the network device receives a response message sent by the first storage node, where the response message is The destination address is the source address of the access request.
  • the first storage node After accessing the target file, the first storage node sends a response message to the network device in response to the access request.
  • the destination address of the response message is the source address of the access request, that is, the first storage node uses the source address of the access request as the destination address of the response message, and therefore the destination address of the response message includes the device information of the host.
  • the source address of the response message can be the destination address of the access request.
  • the format of the response message is similar to the access request and will not be described here.
  • the network device parses a destination address of the response message to obtain device information of the host.
  • the network device obtains the device information of the host from the high N bits of the destination address of the response message.
  • the network device sends the response message to the host according to the device information of the host.
  • the network device After obtaining the device information of the host, the network device routes the access response to the host according to the device information of the host.
  • the routing method is similar to the access request and will not be described here.
  • FIG. 5 shows a schematic block diagram of a distributed storage system 500 in accordance with an embodiment of the present invention.
  • the distributed storage system 500 includes a management node 510, a plurality of storage nodes 520, and a network device 530.
  • the local virtual address space of each of the plurality of storage nodes 520 corresponds to a portion of the global virtual address space of the distributed storage system 500.
  • the management node 510 is configured to allocate a first virtual space for the target file in the global virtual address space.
  • the network device 530 is configured to receive an access request sent by the host, where the access request is used to access the first virtual space, where the destination address of the access request includes device information of the first storage node that stores the target file, and the target file is in the An address of a local virtual address space in the first storage node, the first storage node indicating a storage in the plurality of storage nodes 520 for storing the target file a node, parsing the destination address of the access request to obtain device information of the first storage node, and sending the access request to the first storage node according to the device information of the first storage node, according to the local virtual in the destination address The address of the address space accesses the target file.
  • the distributed storage system of the embodiment of the present invention performs routing based on the device information of the storage node included in the destination address of the access request, so that the host can directly access files in the distributed storage system, thereby improving the efficiency of file access.
  • the network device 530 is further configured to allocate device information for the host and the first storage node.
  • the device information of the first storage node includes an identifier ID of the first storage node
  • the device information of the host includes an ID of the host
  • the device information of the first storage node includes an identifier ID and a node type of the first storage node
  • the device information of the host includes an ID and a node type of the host.
  • the number of bits of the address of the local virtual address space of the first storage node is N bits;
  • the number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the address of the local virtual address space in the first storage node is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the source address of the access request includes device information of the host
  • the network device 530 is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request, and a destination address of the response message is parsed to obtain device information of the host, according to the host Device information, the response message is sent to the host.
  • the source address of the access request has a bit number of 2N bits, where a high N bit of the source address of the access request includes device information of the host, and a low N bit of the source address of the access request corresponds to the host The address of the local virtual address space allocated by this object file.
  • the distributed storage system 500 may correspond to the distributed storage system in the foregoing method embodiments, and the network device 530 may perform the corresponding processes of the foregoing various methods. For brevity, no further details are provided herein.
  • FIG. 6 shows a schematic block diagram of a network device 600 in accordance with an embodiment of the present invention.
  • the network device 600 includes:
  • the receiving module 610 is configured to receive an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a global virtual node of the distributed storage system
  • the space allocated for the target file in the address space, the local virtual address space of each storage node in the distributed storage system is corresponding to a part of the global virtual address space of the distributed storage system
  • the destination address of the access request includes storing the target Device information of the first storage node of the file and an address of the local virtual address space of the target file in the first storage node, the first storage node indicating a storage node of the distributed storage system for storing the target file Storage node
  • the routing module 620 is configured to parse the destination address of the access request to obtain device information of the first storage node, and send the access request to the first storage node according to the device information of the first storage node, according to the destination address.
  • the routing device of the embodiment of the present invention performs routing based on the device information of the storage node included in the destination address of the access request, so that the host can directly access files in the distributed storage system, thereby improving the efficiency of file access.
  • the network device 600 further includes:
  • an allocation module configured to allocate device information for the host and the first storage node.
  • the device information of the first storage node includes an identifier ID of the first storage node
  • the device information of the host includes an ID of the host
  • the device information of the first storage node includes an identifier ID and a node type of the first storage node
  • the device information of the host includes an ID and a node type of the host.
  • the number of bits of the address of the local virtual address space of the first storage node is N bits;
  • the number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the address of the local virtual address space in the first storage node is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file.
  • the source address of the access request includes device information of the host
  • the receiving module 610 is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
  • the routing module 620 is further configured to parse the destination address of the response message to obtain the device of the host.
  • the information is sent to the host according to the device information of the host.
  • the network device 600 may perform the method 200 of accessing files according to an embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the network device 600 are respectively implemented in order to implement respective processes of the foregoing respective methods. For the sake of brevity, it will not be repeated here.
  • FIG. 7 illustrates a structure of a network device provided by another embodiment of the present invention, including at least one processor 702 (eg, a CPU), at least one network interface 705 or other communication interface, memory 706, and at least one communication bus 703. among them:
  • processor 702 eg, a CPU
  • network interface 705 or other communication interface e.g., a USB interface
  • Communication bus 703 is used to implement connection communication between these devices.
  • the processor 702 is configured to execute executable modules, such as computer programs, stored in the memory 706.
  • the memory 706 may include a high speed random access memory (RAM: Random Access Memory) and may also include an NVM, such as at least one disk storage.
  • RAM Random Access Memory
  • NVM such as at least one disk storage.
  • the network device implements a communication connection with other nodes through at least one network interface 705 (which may be wired or wireless).
  • the memory 706 stores a program 7061 that is used by the processor 702 to implement the various methods of the foregoing method embodiments.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling through some interfaces, devices or units or Communication connections can also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a file access method, distributed storage system and network device, the method comprising: a network device receives an access request transmitted by a host, the access request being used to access a first virtual space of a target file, the first virtual space being a space allocated by a management node for the target file in a global virtual address space, the destination address of the access request containing information of a first storage node and the address of the target file in a local virtual address space in the first storage node, and the first storage node representing the storage node for storing the target file; the network device parses the destination address of the access request to acquire device information of the first storage node; and the network device transmits the access request to the first storage node according to the information of the first storage node to access the target file according to the address in the local virtual address space in the destination address. The file access method increases a file access efficiency.

Description

访问文件的方法、分布式存储系统和网络设备Method of accessing files, distributed storage systems, and network devices 技术领域Technical field
本发明涉及存储技术领域,具体涉及访问文件的方法、分布式存储系统和网络设备。The present invention relates to the field of storage technologies, and in particular, to a method for accessing files, a distributed storage system, and a network device.
背景技术Background technique
新型非易失存储(non-violate memory,NVM)介质,比如相变内存(Phase Change Memory,PCM)、可变电阻式随机存取器(Resistive RAM,ReRAM)、磁性随机存储器(Magnetic Random Access Memory,MRAM)等,具有类似动态随机存取存储器(Dynamic Random Access Memory,DRAM)的读写特点,能够挂在内存总线上进行访问。目前,基于非易失存储介质的存储系统是业界研究的热点。New non-violate memory (NVM) media, such as Phase Change Memory (PCM), Resistive RAM (ReRAM), Magnetic Random Access Memory (Magnetic Random Access Memory) , MRAM), etc., with similar dynamic random access memory (DRAM) read and write characteristics, can be hung on the memory bus for access. At present, storage systems based on non-volatile storage media are hotspots in the industry.
现有远程访问文件系统的方法包括采用网络文件系统(Network File System,NFS)或者通用网络文件系统(Common Internet File System,CIFS)协议等。这些传统的访问文件的方式本质上都是基于远程过程调用(Remote Procedure Call,RPC),是建立在传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,TCP/IP)之上。对于基于NVM的存储系统来说,这些访问方法仍需要经过主机的内核TCP/IP协议栈处理,访问效率差。Existing methods for remotely accessing a file system include using a Network File System (NFS) or a Common Internet File System (CIFS) protocol. These traditional methods of accessing files are essentially based on Remote Procedure Call (RPC) and are based on the Transmission Control Protocol/Internet Protocol (TCP/IP). For NVM-based storage systems, these access methods still need to be processed by the host's kernel TCP/IP protocol stack, resulting in poor access efficiency.
发明内容Summary of the invention
本发明实施例提供了一种访问文件的方法、分布式存储系统和网络设备,能够提高文件访问的效率。The embodiment of the invention provides a method for accessing a file, a distributed storage system and a network device, which can improve the efficiency of file access.
第一方面,提供了一种访问文件的方法,该方法应用于分布式存储系统中,该分布式存储系统包括管理节点、多个存储节点和网络设备,该分布式存储系统中每一个存储节点的本地虚拟地址空间对应该分布式存储系统的全局虚拟地址空间的一部分,该方法包括:In a first aspect, a method for accessing a file is provided, the method being applied to a distributed storage system, the distributed storage system comprising a management node, a plurality of storage nodes, and a network device, each storage node in the distributed storage system The local virtual address space corresponds to a portion of the global virtual address space of the distributed storage system, and the method includes:
该网络设备接收主机发送的访问请求,该访问请求用于访问目标文件的第一虚拟空间,该第一虚拟空间为该管理节点在该全局虚拟地址空间中为该目标文件分配的空间,该访问请求的目的地址包含存储该目标文件的第一存 储节点的设备信息以及该目标文件在该第一存储节点中的本地虚拟地址空间的地址,该第一存储节点表示该多个存储节点中用于存储该目标文件的存储节点;Receiving, by the network device, an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a space allocated by the management node for the target file in the global virtual address space, the access The destination address of the request contains the first save of the target file. The device information of the storage node and the address of the local virtual address space of the target file in the first storage node, the first storage node indicating a storage node of the plurality of storage nodes for storing the target file;
该网络设备解析该访问请求的目的地址以获得该第一存储节点的设备信息;The network device parses the destination address of the access request to obtain device information of the first storage node;
该网络设备根据该第一存储节点的设备信息将该访问请求发送到该第一存储节点,以根据该目的地址中的本地虚拟地址空间的地址访问该目标文件。The network device sends the access request to the first storage node according to the device information of the first storage node to access the target file according to an address of a local virtual address space in the destination address.
结合第一方面,在第一种可能的实现方式中,在该网络设备接收主机发送的访问请求之前,该方法还包括:In conjunction with the first aspect, in a first possible implementation, before the network device receives the access request sent by the host, the method further includes:
该网络设备为该主机和该第一存储节点分配设备信息。The network device allocates device information for the host and the first storage node.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,该第一存储节点的设备信息包括该第一存储节点的标识ID,该主机的设备信息包括该主机的ID。With reference to the first possible implementation manner of the first aspect, in a second possible implementation, the device information of the first storage node includes an identifier of the first storage node, and the device information of the host includes the host ID.
结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,该第一存储节点的设备信息包括该第一存储节点的ID和节点类型,该主机的设备信息包括该主机的ID和节点类型。With reference to the first possible implementation manner of the first aspect, in a third possible implementation, the device information of the first storage node includes an ID and a node type of the first storage node, where the device information of the host includes the Host ID and node type.
结合第一方面或第一方面的第一至三种可能的实现方式中的任一种可能的实现方式,在第四种可能的实现方式中,该第一存储节点的本地虚拟地址空间的地址的位数为N位;With reference to the first aspect or any one of the first to third possible implementation manners of the first aspect, in a fourth possible implementation, the address of the local virtual address space of the first storage node The number of digits is N digits;
该访问请求的目的地址的位数为2N位,其中,该访问请求的目的地址的高N位包含该第一存储节点的设备信息,该访问请求的目的地址的低N位为该目标文件在该第一存储节点中的本地虚拟地址空间的地址。The number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file. The address of the local virtual address space in the first storage node.
结合第一方面或第一方面的第一至四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,该访问请求的源地址包含该主机的设备信息;With reference to the first aspect, or any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation, the source address of the access request includes device information of the host ;
该方法还包括:The method also includes:
该网络设备接收该第一存储节点发送的响应消息,该响应消息的目的地址为该访问请求的源地址;Receiving, by the network device, a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
该网络设备解析该响应消息的目的地址以获得该主机的设备信息;The network device parses the destination address of the response message to obtain device information of the host;
该网络设备根据该主机的设备信息,将该响应消息发送到该主机。 The network device sends the response message to the host according to the device information of the host.
第二方面,提供了一种分布式存储系统,包括:管理节点、多个存储节点和网络设备;In a second aspect, a distributed storage system is provided, including: a management node, a plurality of storage nodes, and a network device;
该多个存储节点中的每一个存储节点的本地虚拟地址空间对应该分布式存储系统的全局虚拟地址空间的一部分;A local virtual address space of each of the plurality of storage nodes corresponds to a portion of a global virtual address space of the distributed storage system;
该管理节点用于在该全局虚拟地址空间中为目标文件分配第一虚拟空间;The management node is configured to allocate a first virtual space to the target file in the global virtual address space;
该网络设备用于接收主机发送的访问请求,该访问请求用于访问该第一虚拟空间,该访问请求的目的地址包含存储该目标文件的第一存储节点的设备信息以及该目标文件在该第一存储节点中的本地虚拟地址空间的地址,该第一存储节点表示该多个存储节点中用于存储该目标文件的存储节点,解析该访问请求的目的地址以获得该第一存储节点的设备信息,根据该第一存储节点的设备信息将该访问请求发送到该第一存储节点,以根据该目的地址中的本地虚拟地址空间的地址访问该目标文件。The network device is configured to receive an access request sent by the host, where the access request is used to access the first virtual space, where the destination address of the access request includes device information of the first storage node that stores the target file, and the target file is in the first An address of a local virtual address space in a storage node, the first storage node represents a storage node of the plurality of storage nodes for storing the target file, and parsing a destination address of the access request to obtain a device of the first storage node And sending, by the device information of the first storage node, the access request to the first storage node to access the target file according to an address of a local virtual address space in the destination address.
结合第二方面,在第一种可能的实现方式中,该网络设备还用于为该主机和该第一存储节点分配设备信息。In conjunction with the second aspect, in a first possible implementation, the network device is further configured to allocate device information for the host and the first storage node.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,该第一存储节点的设备信息包括该第一存储节点的标识ID,该主机的设备信息包括该主机的ID。With reference to the first possible implementation of the second aspect, in a second possible implementation, the device information of the first storage node includes an identifier ID of the first storage node, and the device information of the host includes the host ID.
结合第二方面的第一种可能的实现方式,在第三种可能的实现方式中,该第一存储节点的设备信息包括该第一存储节点的ID和节点类型,该主机的设备信息包括该主机的ID和节点类型。With reference to the first possible implementation of the second aspect, in a third possible implementation, the device information of the first storage node includes an ID and a node type of the first storage node, where the device information of the host includes the Host ID and node type.
结合第二方面或第二方面的第一至三种可能的实现方式中的任一种可能的实现方式,在第四种可能的实现方式中,该第一存储节点的本地虚拟地址空间的地址的位数为N位;With reference to the second aspect or any one of the first to the third possible implementation manners of the second aspect, in a fourth possible implementation, the address of the local virtual address space of the first storage node The number of digits is N digits;
该访问请求的目的地址的位数为2N位,其中,该访问请求的目的地址的高N位包含该第一存储节点的设备信息,该访问请求的目的地址的低N位为该目标文件在该第一存储节点中的本地虚拟地址空间的地址。The number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file. The address of the local virtual address space in the first storage node.
结合第二方面或第二方面的第一至四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,该访问请求的源地址包含该主机的设备信息;With reference to the second aspect or any one of the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation, the source address of the access request includes device information of the host ;
该网络设备还用于接收该第一存储节点发送的响应消息,该响应消息的 目的地址为该访问请求的源地址,解析该响应消息的目的地址以获得该主机的设备信息,根据该主机的设备信息,将该响应消息发送到该主机。The network device is further configured to receive a response message sent by the first storage node, where the response message is The destination address is the source address of the access request, and the destination address of the response message is parsed to obtain device information of the host, and the response message is sent to the host according to the device information of the host.
第三方面,提供了一种网络设备,包括:In a third aspect, a network device is provided, including:
接收模块,用于接收主机发送的访问请求,该访问请求用于访问目标文件的第一虚拟空间,该第一虚拟空间为分布式存储系统中的管理节点在该分布式存储系统的全局虚拟地址空间中为该目标文件分配的空间,该分布式存储系统中每一个存储节点的本地虚拟地址空间对应该分布式存储系统的全局虚拟地址空间的一部分,该访问请求的目的地址包含存储该目标文件的第一存储节点的设备信息以及该目标文件在该第一存储节点中的本地虚拟地址空间的地址,该第一存储节点表示该分布式存储系统的存储节点中用于存储该目标文件的存储节点;a receiving module, configured to receive an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a global virtual address of the management node in the distributed storage system in the distributed storage system The space allocated for the target file in the space, the local virtual address space of each storage node in the distributed storage system corresponds to a part of the global virtual address space of the distributed storage system, and the destination address of the access request includes storing the target file. Device information of the first storage node and an address of the local virtual address space of the target file in the first storage node, the first storage node indicating storage for storing the target file in the storage node of the distributed storage system node;
路由模块,用于解析该访问请求的目的地址以获得该第一存储节点的设备信息,根据该第一存储节点的设备信息将该访问请求发送到该第一存储节点,以根据该目的地址中的本地虚拟地址空间的地址访问该目标文件。a routing module, configured to parse the destination address of the access request to obtain device information of the first storage node, and send the access request to the first storage node according to the device information of the first storage node, according to the destination address The address of the local virtual address space accesses the target file.
结合第三方面,在第一种可能的实现方式中,该网络设备还包括:With reference to the third aspect, in a first possible implementation manner, the network device further includes:
分配模块,用于为该主机和该第一存储节点分配设备信息。And an allocation module, configured to allocate device information for the host and the first storage node.
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,该第一存储节点的设备信息包括该第一存储节点的标识ID,该主机的设备信息包括该主机的ID。With reference to the first possible implementation manner of the third aspect, in a second possible implementation, the device information of the first storage node includes an identifier ID of the first storage node, and the device information of the host includes the host ID.
结合第三方面的第一种可能的实现方式,在第三种可能的实现方式中,该第一存储节点的设备信息包括该第一存储节点的ID和节点类型,该主机的设备信息包括该主机的ID和节点类型。With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner, the device information of the first storage node includes an ID and a node type of the first storage node, where the device information of the host includes the Host ID and node type.
结合第三方面或第三方面的第一至三种可能的实现方式中的任一种可能的实现方式,在第四种可能的实现方式中,该第一存储节点的本地虚拟地址空间的地址的位数为N位;With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a fourth possible implementation, the address of the local virtual address space of the first storage node The number of digits is N digits;
该访问请求的目的地址的位数为2N为,其中,该访问请求的目的地址的高N位包含该第一存储节点的设备信息,该访问请求的目的地址的低N位为该目标文件在该第一存储节点中的本地虚拟地址空间的地址。The destination address of the access request has a bit number of 2N, wherein the high N bit of the destination address of the access request includes device information of the first storage node, and the lower N bits of the destination address of the access request are the target file. The address of the local virtual address space in the first storage node.
结合第三方面或第三方面的第一至四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,该访问请求的源地址包含该主机的设备信息; With reference to the third aspect, or any one of the first to fourth possible implementation manners of the third aspect, in a fifth possible implementation, the source address of the access request includes device information of the host ;
该接收模块还用于接收该第一存储节点发送的响应消息,该响应消息的目的地址为该访问请求的源地址;The receiving module is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
该路由模块还用于解析该响应消息的目的地址以获得该主机的设备信息,根据该主机的设备信息,将该响应消息发送到该主机。The routing module is further configured to parse the destination address of the response message to obtain device information of the host, and send the response message to the host according to the device information of the host.
第四方面,提供了一种计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令用于执行前述第一方面中所述的方法。In a fourth aspect, a computer program product is provided, comprising a computer readable storage medium storing program code, the program code comprising instructions for performing the method of the first aspect described above.
基于上述技术方案,本发明实施例的访问文件的方法、分布式存储系统和网络设备,在访问请求的目的地址中包含存储节点的设备信息,基于存储节点的设备信息进行路由,能够直接访问分布式存储系统中的文件,从而能够提高文件访问的效率。Based on the foregoing technical solution, the method for accessing a file, the distributed storage system, and the network device in the embodiment of the present invention include the device information of the storage node in the destination address of the access request, and perform routing based on the device information of the storage node, and can directly access the distribution. Storage of files in the system to improve the efficiency of file access.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings in the following description are only attached to some embodiments of the present invention. Figure.
图1是本发明实施例的一个应用场景的示意图。FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
图2是本发明一个实施例的访问文件的方法的示意性流程图。2 is a schematic flow chart of a method for accessing a file according to an embodiment of the present invention.
图3是本发明实施例的访问请求的格式的示意图。3 is a schematic diagram of a format of an access request according to an embodiment of the present invention.
图4是本发明另一实施例的访问文件的方法的示意性流程图。FIG. 4 is a schematic flowchart of a method for accessing a file according to another embodiment of the present invention.
图5是本发明实施例的分布式存储系统的示意性框图。FIG. 5 is a schematic block diagram of a distributed storage system according to an embodiment of the present invention.
图6是本发明一个实施例的网络设备的示意性框图。Figure 6 is a schematic block diagram of a network device in accordance with one embodiment of the present invention.
图7是本发明另一实施例的网络设备的结构示意图。FIG. 7 is a schematic structural diagram of a network device according to another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments.
应理解,本发明实施例的技术方案可以应用于各种存储系统,尤其是基于非易失存储介质的分布式存储系统。It should be understood that the technical solutions of the embodiments of the present invention can be applied to various storage systems, especially distributed storage systems based on non-volatile storage media.
还应理解,在本发明实施例中,术语“虚拟地址空间”也可以表述为“虚 拟空间”,也就是说,“虚拟地址空间”和“虚拟空间”通用;类似地,“本地物理存储空间”和“本地物理空间”通用。It should also be understood that in the embodiment of the present invention, the term "virtual address space" may also be expressed as "virtual" "Pseudospace", that is, "virtual address space" and "virtual space" are common; similarly, "local physical storage space" and "local physical space" are common.
图1是本发明实施例的一个应用场景的示意图。在图1中,主机130、存储节点120和管理节点110通过网络140互联互通。存储节点120、管理节点110以及网络140组成分布式存储系统。FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention. In FIG. 1, host 130, storage node 120, and management node 110 are interconnected by network 140. Storage node 120, management node 110, and network 140 form a distributed storage system.
主机130可以是计算机,也可以是其他用户设备,主机130可以通过网络与分布式存储系统通信。主机130可以包括当前技术已知的任何计算设备,如服务器、台式计算机等等,在主机130中安装有操作系统以及其他应用程序,主机130可以有多个。主机130可以访问分布式存储系统的文件。例如,主机130可以通过文件接口模块提供文件访问接口给主机上的应用程序。The host 130 can be a computer or other user device, and the host 130 can communicate with the distributed storage system through a network. Host 130 may include any computing device known in the art, such as a server, desktop computer, etc., with an operating system and other applications installed in host 130, and there may be multiple hosts 130. Host 130 can access files of the distributed storage system. For example, host 130 can provide a file access interface to an application on the host through a file interface module.
存储节点120用于存储文件数据,并处理对文件的访问请求。存储节点120可以包括至少一种非易失性存储器,例如,可以包括PCM、ReRAM、MRAM等具有按字节寻址及访问的能力的新型NVM。在本发明实施例中,文件存储于NVM存储器中,且存储节点120可以通过内存总线实现对新型NVM的访问。The storage node 120 is configured to store file data and process access requests to the file. Storage node 120 may include at least one non-volatile memory, for example, a new type of NVM having the capability of byte addressing and access, such as PCM, ReRAM, MRAM, and the like. In the embodiment of the present invention, the file is stored in the NVM memory, and the storage node 120 can implement access to the new NVM through the memory bus.
管理节点110用于管理文件的元数据,处理主机对文件的元数据查询、更新请求等。文件的元数据可以包括文件的起始地址,分配的空间大小,文件实际大小等信息。管理节点110还可以用于管理分布式存储系统的全局虚拟地址空间。The management node 110 is configured to manage metadata of the file, process metadata query, update request, and the like of the host to the file. The metadata of the file may include information such as the starting address of the file, the size of the allocated space, and the actual size of the file. The management node 110 can also be used to manage the global virtual address space of the distributed storage system.
管理节点110和存储节点120也可以合在一起,也就是说,一个节点可以同时具有管理节点和存储节点的功能。The management node 110 and the storage node 120 may also be combined, that is, one node may have the functions of both the management node and the storage node.
在本发明实施例中,管理节点可以是独立的(例如图1中的管理节点110),也可以为同时具有管理节点和存储节点的功能的节点。为了描述方便,以下以管理节点为例进行说明。In the embodiment of the present invention, the management node may be independent (for example, the management node 110 in FIG. 1), or may be a node having both the management node and the storage node. For convenience of description, the following is an example of a management node.
网络140的物理层、链路层可以基于以太网、PCIE交换网络、InfiniBand网络以及光网络等。网络140用于对访问请求、访问响应进行路由,具体地,路由可以由网络140中的网络设备(如路由器或交换机)执行。为了描述方便,以下以网络设备为例进行说明。The physical layer and link layer of the network 140 may be based on an Ethernet, a PCIE switching network, an InfiniBand network, and an optical network. The network 140 is used to route access requests and access responses. Specifically, the routes may be performed by network devices (such as routers or switches) in the network 140. For convenience of description, the following describes a network device as an example.
图2示出了根据本发明实施例的访问文件的方法200的示意性流程图。FIG. 2 shows a schematic flow diagram of a method 200 of accessing a file in accordance with an embodiment of the present invention.
该方法200应用于分布式存储系统中,该分布式存储系统包括管理节点、多个存储节点和网络设备。该分布式存储系统中每一个存储节点的本地虚拟 地址空间对应该分布式存储系统的全局虚拟地址空间的一部分。该方法200由网络设备执行。The method 200 is applied to a distributed storage system including a management node, a plurality of storage nodes, and a network device. Local virtualization of each storage node in the distributed storage system The address space corresponds to a portion of the global virtual address space of the distributed storage system. The method 200 is performed by a network device.
S210,网络设备接收主机发送的访问请求,该访问请求用于访问目标文件的第一虚拟空间,该第一虚拟空间为该管理节点在该全局虚拟地址空间中为该目标文件分配的空间,该访问请求的目的地址包含存储该目标文件的第一存储节点的设备信息以及该目标文件在所述第一存储节点中的本地虚拟地址空间的地址,该第一存储节点表示该多个存储节点中用于存储该目标文件的存储节点。S210, the network device receives an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a space allocated by the management node for the target file in the global virtual address space, where The destination address of the access request includes device information of the first storage node storing the target file and an address of the local virtual address space of the target file in the first storage node, the first storage node indicating the plurality of storage nodes The storage node used to store the target file.
分布式存储系统的全局虚拟地址空间是为在该分布式存储系统中管理文件系统而虚拟出来的空间。该分布式存储系统中不同存储节点的本地虚拟地址空间对应该分布式存储系统的全局虚拟地址空间的不同部分。例如,全局虚拟地址空间的第一部分空间映射到所述分布式存储系统中的第一存储节点的本地虚拟地址空间,全局虚拟地址空间的第二部分空间映射到所述分布式存储系统中的第二存储节点的本地虚拟地址空间,其中第一部分空间与第二部分空间不同。在本发明实施例中,管理节点可以从分布式存储系统的全局虚拟地址空间中分配一段连续的空间(表示为第一虚拟空间)给目标文件。由于分布式存储系统中每一个存储节点的本地虚拟地址空间对应分布式存储系统的全局虚拟地址空间的一部分,因此该第一虚拟空间可以映射到存储节点的本地虚拟地址空间。进一步的,存储节点可以根据存储节点的本地虚拟地址空间与存储文件的物理地址空间的映射关系可以访问存储节点的物理地址空间,以访问。The global virtual address space of a distributed storage system is the space that is virtualized for managing file systems in the distributed storage system. The local virtual address space of the different storage nodes in the distributed storage system corresponds to different portions of the global virtual address space of the distributed storage system. For example, a first portion of the global virtual address space is spatially mapped to a local virtual address space of the first storage node in the distributed storage system, and a second portion of the global virtual address space is spatially mapped to the first of the distributed storage systems The local virtual address space of the storage node, wherein the first partial space is different from the second partial space. In the embodiment of the present invention, the management node may allocate a continuous space (represented as the first virtual space) from the global virtual address space of the distributed storage system to the target file. Since the local virtual address space of each storage node in the distributed storage system corresponds to a portion of the global virtual address space of the distributed storage system, the first virtual space can be mapped to the local virtual address space of the storage node. Further, the storage node may access the physical address space of the storage node according to the mapping relationship between the local virtual address space of the storage node and the physical address space of the storage file for access.
本地虚拟地址空间可以采用操作系统(Operating System,OS)OS的虚拟地址空间的一段未使用的区间。例如,64位的OS的虚拟地址空间大小是2的64次方,除了用户态虚拟地址空间和内核虚拟地址空间外,还有保留的虚拟地址空间,本地虚拟地址空间可以采用OS保留的虚拟地址空间。也可以根据需要,重新划分操作系统的虚拟地址空间,划分出一段虚拟地址空间用作本地虚拟地址空间。The local virtual address space may use an unused interval of the virtual address space of an operating system (OS) OS. For example, the 64-bit OS has a virtual address space size of 2 to the 64th power. In addition to the user-state virtual address space and the kernel virtual address space, there is also a reserved virtual address space. The local virtual address space can use the virtual address reserved by the OS. space. You can also re-divide the virtual address space of the operating system as needed, and divide a virtual address space into a local virtual address space.
本地虚拟地址空间的地址位数为OS的位数。例如,对于64位的OS,本地虚拟空间的地址位数为64位。全局虚拟空间的地址位数可以为128位。The number of address bits in the local virtual address space is the number of bits in the OS. For example, for a 64-bit OS, the address space of the local virtual space is 64 bits. The address space of the global virtual space can be 128 bits.
主机在访问分布式存储系统中的目标文件时,向网络发送访问目标文件的第一虚拟空间的访问请求。该访问请求的目的地址包含第一存储节点的设 备信息。可选地,该访问请求的源地址可以包含该主机的设备信息。第一存储节点表示用于存储该目标文件的存储节点,第一存储节点的设备信息用于网络设备将访问请求路由到第一存储节点。主机的设备信息用于网络设备将返回的响应消息路由到主机。When the host accesses the target file in the distributed storage system, the host sends an access request to the network to access the first virtual space of the target file. The destination address of the access request includes the setting of the first storage node Information. Optionally, the source address of the access request may include device information of the host. The first storage node represents a storage node for storing the target file, and the device information of the first storage node is used by the network device to route the access request to the first storage node. The device information of the host is used by the network device to route the returned response message to the host.
可选地,在本发明一个实施例中,该第一存储节点的设备信息包括该第一存储节点的标识(identity,ID),该主机的设备信息包括该主机的ID。也就是说,存储节点或主机的设备信息可以采用节点ID,在这种情况下,不同的节点具有不同的ID。Optionally, in an embodiment of the present invention, the device information of the first storage node includes an identity (ID) of the first storage node, and the device information of the host includes an ID of the host. That is to say, the device information of the storage node or the host can adopt the node ID, in which case different nodes have different IDs.
可选地,在本发明另一实施例中,该第一存储节点的设备信息包括该第一存储节点的标识ID和节点类型,该主机的设备信息包括该主机的ID和节点类型。也就是说,存储节点或主机的设备信息可以采用节点ID+节点类型,在这种情况下,同一节点类型的不同的节点具有不同的ID,不同节点类型的节点可以具有相同的ID。节点类型可以包括存储节点、管理节点和主机。例如,可以利用2位标识节点类型。Optionally, in another embodiment of the present invention, the device information of the first storage node includes an identifier ID and a node type of the first storage node, and the device information of the host includes an ID and a node type of the host. That is to say, the device information of the storage node or the host may adopt the node ID+node type. In this case, different nodes of the same node type have different IDs, and nodes of different node types may have the same ID. Node types can include storage nodes, management nodes, and hosts. For example, a 2-bit identification node type can be utilized.
在本发明实施例中,可选地,节点的设备信息可以由网络设备预先分配。也就是说,在网络设备接收主机发送的访问请求之前,该方法200还可以包括:In the embodiment of the present invention, optionally, the device information of the node may be pre-allocated by the network device. That is, before the network device receives the access request sent by the host, the method 200 may further include:
该网络设备为该主机和该第一存储节点分配设备信息。The network device allocates device information for the host and the first storage node.
例如,网络可以在节点注册时为节点分配ID。可选地,存储节点和管理节点的ID可以采用动态固定分配,即初次分配动态,分配以后固定;主机的ID可以采用动态分配。For example, the network can assign an ID to a node when it registers. Optionally, the IDs of the storage node and the management node may be dynamically fixed, that is, the initial allocation dynamics, and the allocation is fixed later; the ID of the host may be dynamically allocated.
访问请求中的地址可以采用全局虚拟地址(即全局虚拟空间的地址)。全局虚拟地址的位数大于本地虚拟地址(即本地虚拟地址空间的地址)的位数,这样可以在全局虚拟地址中包含存储节点或主机的设备信息。The address in the access request can take the global virtual address (that is, the address of the global virtual space). The number of bits in the global virtual address is greater than the number of bits in the local virtual address (that is, the address of the local virtual address space), so that the device information of the storage node or host can be included in the global virtual address.
在本发明一个实施例中,可选地,本地虚拟地址空间的地址的位数为N位。也就是说,该主机的本地虚拟地址空间的地址的位数以及第一存储节点的本地虚拟地址空间的地址的位数为N位。In an embodiment of the invention, optionally, the number of bits of the address of the local virtual address space is N bits. That is, the number of bits of the address of the local virtual address space of the host and the address of the address of the local virtual address space of the first storage node are N bits.
在这种情况下,该访问请求的目的地址的位数可以为2N位,其中,该访问请求的目的地址的高N位包含该第一存储节点的设备信息,该访问请求的目的地址的低N位为所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址。 In this case, the number of bits of the destination address of the access request may be 2N bits, wherein the high N bits of the destination address of the access request include device information of the first storage node, and the destination address of the access request is low. The N bit is the address of the local virtual address space of the target file in the first storage node.
可选地,该访问请求的源地址的位数也可以为2N位,其中,该访问请求的源地址的高N位包含该主机的设备信息,该访问请求的源地址的低N位对应该主机为该目标文件分配的本地虚拟地址空间的地址。Optionally, the number of bits of the source address of the access request may also be 2N bits, where a high N bit of the source address of the access request includes device information of the host, and a low N bit of the source address of the access request corresponds to The address of the local virtual address space allocated by the host for this object file.
在本实施例中,全局虚拟地址的位数为2N,其中,低N位对应本地虚拟地址,高N位中可以包含存储节点或主机的设备信息。例如,本地虚拟地址为64位时,全局虚拟地址可以为128位,其中,全局虚拟地址的低64位对应本地虚拟地址,全局虚拟地址的高64位包含存储节点或主机的设备信息。应理解,可以只用高N位中的一部分位携带存储节点或主机的设备信息,剩下的位可以保留或留作他用。例如,若本地虚拟地址为64位时,访问请求的目的地址可以为128位,其中,访问请求的目的地址的低64位为目标文件在第一存储节点中的本地虚拟地址空间的地址,访问请求的目的地址的高64位包含第一存储节点的设备信息(如高8位为第一存储节点的ID,剩下的位保留)。In this embodiment, the number of bits of the global virtual address is 2N, wherein the lower N bits correspond to the local virtual address, and the high N bits may include device information of the storage node or the host. For example, when the local virtual address is 64 bits, the global virtual address may be 128 bits, wherein the lower 64 bits of the global virtual address correspond to the local virtual address, and the upper 64 bits of the global virtual address contain device information of the storage node or the host. It should be understood that device information of the storage node or host may be carried with only a portion of the high N bits, and the remaining bits may be reserved or reserved for other purposes. For example, if the local virtual address is 64 bits, the destination address of the access request may be 128 bits, wherein the lower 64 bits of the destination address of the access request are the address of the local virtual address space of the target file in the first storage node, accessing The upper 64 bits of the requested destination address contain the device information of the first storage node (eg, the upper 8 bits are the ID of the first storage node, and the remaining bits are reserved).
访问请求的目的地址的低N位为目标文件在第一存储节点中的本地虚拟地址空间的地址,第一存储节点可以根据该地址访问该目标文件。可选地,访问请求的源地址的低N位可以对应主机为该目标文件分配的本地虚拟地址空间的地址。主机在访问目标文件时为待访问的目标文件在本地虚拟地址空间中分配一段虚拟地址空间,访问请求的源地址的低N位可以对应分配的本地虚拟地址空间的地址,以便于接收返回的响应。The lower N bits of the destination address of the access request are the addresses of the local virtual address space of the target file in the first storage node, and the first storage node can access the target file according to the address. Alternatively, the lower N bits of the source address of the access request may correspond to the address of the local virtual address space allocated by the host for the target file. The host allocates a virtual address space in the local virtual address space for the target file to be accessed when accessing the target file, and the lower N bits of the source address of the access request may correspond to the address of the allocated local virtual address space, so as to receive the returned response. .
图3为根据本发明一个实施例的访问请求的格式的示意图。3 is a schematic diagram of a format of an access request in accordance with one embodiment of the present invention.
如图3所示,访问请求中包括目的地址、源地址、请求流水号、长度、命令ID、命令类型以及消息体等部分。As shown in FIG. 3, the access request includes a destination address, a source address, a request serial number, a length, a command ID, a command type, and a message body.
目的地址为接收地址,对于访问请求来说,可以具体到全局虚拟地址空间的准确地址,例如,节点ID+节点内虚拟地址空间地址。The destination address is the receiving address. For the access request, the exact address of the global virtual address space can be specified, for example, the node ID + the virtual address space address in the node.
源地址为发送地址,对于读请求来说,返回的数据需要映射到主机的本地虚拟地址空间。The source address is the sending address. For read requests, the returned data needs to be mapped to the host's local virtual address space.
可选地,对于不需要确切地址的,可以只用节点设备信息,例如节点ID。Alternatively, for device addresses that do not require an exact address, only node device information, such as a node ID, may be used.
命令类型、命令ID用于确定具体的操作,命令类型包括文件访问操作,元数据访问操作,配置管理操作等。The command type and command ID are used to determine specific operations. The command types include file access operations, metadata access operations, and configuration management operations.
请求流水号标明消息的顺序和唯一性。The request serial number indicates the order and uniqueness of the message.
长度是消息体中包含的数据的长度;对于读请求,可以将请求读取的长 度直接放进来,而消息体为空。The length is the length of the data contained in the message body; for read requests, the length of the request can be read The degree is directly put in, and the message body is empty.
对于写请求,消息体包含所要写的数据;对于读请求消息体可为空。For write requests, the message body contains the data to be written; for the read request message body can be empty.
S220,该网络设备解析该访问请求的目的地址以获得该第一存储节点的设备信息。S220. The network device parses the destination address of the access request to obtain device information of the first storage node.
在接收到主机发送的访问请求后,网络设备解析该访问请求的目的地址,得到目的地址中包含的第一存储节点的设备信息。例如,在访问请求的目的地址为2N位时,网络设备从访问请求的目的地址的高N位得到第一存储节点的设备信息。After receiving the access request sent by the host, the network device parses the destination address of the access request, and obtains the device information of the first storage node included in the destination address. For example, when the destination address of the access request is 2N bits, the network device obtains the device information of the first storage node from the upper N bits of the destination address of the access request.
S230,该网络设备根据该第一存储节点的设备信息将该访问请求发送到该第一存储节点,以根据该目的地址中的本地虚拟地址空间的地址访问该目标文件。S230. The network device sends the access request to the first storage node according to the device information of the first storage node, to access the target file according to an address of a local virtual address space in the destination address.
网络设备根据访问请求的目的地址中包含的第一存储节点的设备信息,将访问请求路由到第一存储节点。例如,若目的地址采用节点ID+节点内虚拟地址空间地址的方式,则根据节点ID将访问请求路由到该ID的节点;若目的地址采用节点类型+节点ID+节点内虚拟地址空间地址的方式,则根据节点类型和节点ID将访问请求路由到该节点类型的节点中具有该ID的节点。可选地,可以采用节点ID到端口的映射关系表,或者节点类型和节点ID到端口的映射关系表来进行路由。The network device routes the access request to the first storage node according to the device information of the first storage node included in the destination address of the access request. For example, if the destination address adopts the node ID + the virtual address space address in the node, the access request is routed to the node of the ID according to the node ID; if the destination address adopts the node type + node ID + the virtual address space address in the node, then The access request is routed to the node with the ID in the node of the node type according to the node type and the node ID. Optionally, the mapping relationship between the node ID and the port, or the mapping relationship between the node type and the node ID to the port may be adopted.
第一存储节点接收到网络设备发送过来的访问请求后,根据该访问请求访问目标文件。具体的,在第一存储节点中保存有本地虚拟地址空间与存储文件的本地物理存储空间的映射关系,第一存储节点可以根据访问请求的目的地址中的本地虚拟地址空间的地址确定用于存储该目标文件的本地物理存储空间的地址。进一步的,第一存储节点可以根据确定的本地物理存储空间的地址访问本地物理存储空间,以实现访问存储于本地物理存储空间中的目标文件的目的。After receiving the access request sent by the network device, the first storage node accesses the target file according to the access request. Specifically, the mapping relationship between the local virtual address space and the local physical storage space of the storage file is saved in the first storage node, and the first storage node may determine, according to the address of the local virtual address space in the destination address of the access request, for storage. The address of the local physical storage space of the target file. Further, the first storage node may access the local physical storage space according to the determined address of the local physical storage space, so as to achieve the purpose of accessing the target file stored in the local physical storage space.
本发明实施例的访问文件的方法,在访问请求的目的地址中包含存储节点的设备信息,基于存储节点的设备信息进行路由,能够直接访问分布式存储系统中的文件,从而能够提高文件访问的效率。The method for accessing a file in the embodiment of the present invention includes the device information of the storage node in the destination address of the access request, and performs routing based on the device information of the storage node, and can directly access files in the distributed storage system, thereby improving file access. effectiveness.
在本发明实施例中,可选地,如图4所示,在该访问请求的源地址包含该主机的设备信息的情况下,该方法200还包括S240、S250和S260。In the embodiment of the present invention, optionally, as shown in FIG. 4, in a case where the source address of the access request includes device information of the host, the method 200 further includes S240, S250, and S260.
S240,该网络设备接收该第一存储节点发送的响应消息,该响应消息的 目的地址为该访问请求的源地址。S240. The network device receives a response message sent by the first storage node, where the response message is The destination address is the source address of the access request.
在访问目标文件后,第一存储节点向网络设备发送响应该访问请求的响应消息。该响应消息的目的地址为该访问请求的源地址,也就是说,第一存储节点将该访问请求的源地址作为响应消息的目的地址,因此该响应消息的目的地址中包含主机的设备信息。响应消息的源地址可以为访问请求的目的地址。响应消息的格式与访问请求类似,在此不再赘述。After accessing the target file, the first storage node sends a response message to the network device in response to the access request. The destination address of the response message is the source address of the access request, that is, the first storage node uses the source address of the access request as the destination address of the response message, and therefore the destination address of the response message includes the device information of the host. The source address of the response message can be the destination address of the access request. The format of the response message is similar to the access request and will not be described here.
S250,该网络设备解析该响应消息的目的地址以获得该主机的设备信息。S250. The network device parses a destination address of the response message to obtain device information of the host.
例如,在该响应消息的目的地址为2N位时,网络设备从该响应消息的目的地址的高N位得到该主机的设备信息。For example, when the destination address of the response message is 2N bits, the network device obtains the device information of the host from the high N bits of the destination address of the response message.
S260,该网络设备根据该主机的设备信息,将该响应消息发送到该主机。S260. The network device sends the response message to the host according to the device information of the host.
网络设备得到该主机的设备信息后,根据该主机的设备信息,将访问响应路由到该主机。路由方式与访问请求类似,在此不再赘述。After obtaining the device information of the host, the network device routes the access response to the host according to the device information of the host. The routing method is similar to the access request and will not be described here.
应理解,本发明实施例中的具体的例子只是为了帮助本领域技术人员更好地理解本发明实施例,而非限制本发明实施例的范围。It is to be understood that the specific embodiments of the present invention are not intended to limit the scope of the embodiments of the invention.
还应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should also be understood that in various embodiments of the present invention, the size of the sequence numbers of the above processes does not imply a sequence of executions, and the order of execution of the processes should be determined by its function and internal logic, and should not be implemented by the present invention. The implementation of the examples constitutes any limitation.
上文中详细描述了根据本发明实施例的访问文件的方法,下面将描述根据本发明实施例的分布式存储系统和网络设备。The method of accessing a file according to an embodiment of the present invention is described in detail above, and a distributed storage system and a network device according to an embodiment of the present invention will be described below.
图5示出了根据本发明实施例的分布式存储系统500的示意性框图。如图5所示,分布式存储系统500包括:管理节点510、多个存储节点520和网络设备530。FIG. 5 shows a schematic block diagram of a distributed storage system 500 in accordance with an embodiment of the present invention. As shown in FIG. 5, the distributed storage system 500 includes a management node 510, a plurality of storage nodes 520, and a network device 530.
该多个存储节点520中的每一个存储节点的本地虚拟地址空间对应该分布式存储系统500的全局虚拟地址空间的一部分。The local virtual address space of each of the plurality of storage nodes 520 corresponds to a portion of the global virtual address space of the distributed storage system 500.
该管理节点510用于在该全局虚拟地址空间中为目标文件分配第一虚拟空间。The management node 510 is configured to allocate a first virtual space for the target file in the global virtual address space.
该网络设备530用于接收主机发送的访问请求,该访问请求用于访问该第一虚拟空间,该访问请求的目的地址包含存储该目标文件的第一存储节点的设备信息以及该目标文件在该第一存储节点中的本地虚拟地址空间的地址,该第一存储节点表示该多个存储节点520中用于存储该目标文件的存储 节点,解析该访问请求的目的地址以获得该第一存储节点的设备信息,根据该第一存储节点的设备信息将该访问请求发送到该第一存储节点,以根据该目的地址中的本地虚拟地址空间的地址访问该目标文件。The network device 530 is configured to receive an access request sent by the host, where the access request is used to access the first virtual space, where the destination address of the access request includes device information of the first storage node that stores the target file, and the target file is in the An address of a local virtual address space in the first storage node, the first storage node indicating a storage in the plurality of storage nodes 520 for storing the target file a node, parsing the destination address of the access request to obtain device information of the first storage node, and sending the access request to the first storage node according to the device information of the first storage node, according to the local virtual in the destination address The address of the address space accesses the target file.
本发明实施例的分布式存储系统,基于访问请求的目的地址中包含的存储节点的设备信息进行路由,使主机能够直接访问分布式存储系统中的文件,从而能够提高文件访问的效率。The distributed storage system of the embodiment of the present invention performs routing based on the device information of the storage node included in the destination address of the access request, so that the host can directly access files in the distributed storage system, thereby improving the efficiency of file access.
在本发明实施例中,可选地,该网络设备530还用于为该主机和该第一存储节点分配设备信息。In the embodiment of the present invention, the network device 530 is further configured to allocate device information for the host and the first storage node.
在本发明实施例中,可选地,该第一存储节点的设备信息包括该第一存储节点的标识ID,该主机的设备信息包括该主机的ID。In the embodiment of the present invention, optionally, the device information of the first storage node includes an identifier ID of the first storage node, and the device information of the host includes an ID of the host.
在本发明实施例中,可选地,该第一存储节点的设备信息包括该第一存储节点的标识ID和节点类型,该主机的设备信息包括该主机的ID和节点类型。In the embodiment of the present invention, optionally, the device information of the first storage node includes an identifier ID and a node type of the first storage node, and the device information of the host includes an ID and a node type of the host.
在本发明实施例中,可选地,该第一存储节点的本地虚拟地址空间的地址的位数为N位;In the embodiment of the present invention, optionally, the number of bits of the address of the local virtual address space of the first storage node is N bits;
该访问请求的目的地址的位数为2N位,其中,该访问请求的目的地址的高N位包含该第一存储节点的设备信息,该访问请求的目的地址的低N位为该目标文件在该第一存储节点中的本地虚拟地址空间的地址。The number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file. The address of the local virtual address space in the first storage node.
在本发明实施例中,可选地,该访问请求的源地址包含该主机的设备信息;In the embodiment of the present invention, optionally, the source address of the access request includes device information of the host;
该网络设备530还用于接收该第一存储节点发送的响应消息,该响应消息的目的地址为该访问请求的源地址,解析该响应消息的目的地址以获得该主机的设备信息,根据该主机的设备信息,将该响应消息发送到该主机。The network device 530 is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request, and a destination address of the response message is parsed to obtain device information of the host, according to the host Device information, the response message is sent to the host.
可选地,该访问请求的源地址的位数为2N位,其中,该访问请求的源地址的高N位包含该主机的设备信息,该访问请求的源地址的低N位对应该主机为该目标文件分配的本地虚拟地址空间的地址。Optionally, the source address of the access request has a bit number of 2N bits, where a high N bit of the source address of the access request includes device information of the host, and a low N bit of the source address of the access request corresponds to the host The address of the local virtual address space allocated by this object file.
根据本发明实施例的分布式存储系统500可对应于前述方法实施例中的分布式存储系统,并且网络设备530可执行前述各个方法的相应流程,为了简洁,在此不再赘述。The distributed storage system 500 according to the embodiment of the present invention may correspond to the distributed storage system in the foregoing method embodiments, and the network device 530 may perform the corresponding processes of the foregoing various methods. For brevity, no further details are provided herein.
图6示出了根据本发明实施例的网络设备600的示意性框图。如图6所示,该网络设备600包括: FIG. 6 shows a schematic block diagram of a network device 600 in accordance with an embodiment of the present invention. As shown in FIG. 6, the network device 600 includes:
接收模块610,用于接收主机发送的访问请求,该访问请求用于访问目标文件的第一虚拟空间,该第一虚拟空间为分布式存储系统中的管理节点在该分布式存储系统的全局虚拟地址空间中为该目标文件分配的空间,该分布式存储系统中每一个存储节点的本地虚拟地址空间对应该分布式存储系统的全局虚拟地址空间的一部分,该访问请求的目的地址包含存储该目标文件的第一存储节点的设备信息以及该目标文件在该第一存储节点中的本地虚拟地址空间的地址,该第一存储节点表示该分布式存储系统的存储节点中用于存储该目标文件的存储节点;The receiving module 610 is configured to receive an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a global virtual node of the distributed storage system The space allocated for the target file in the address space, the local virtual address space of each storage node in the distributed storage system is corresponding to a part of the global virtual address space of the distributed storage system, and the destination address of the access request includes storing the target Device information of the first storage node of the file and an address of the local virtual address space of the target file in the first storage node, the first storage node indicating a storage node of the distributed storage system for storing the target file Storage node
路由模块620,用于解析该访问请求的目的地址以获得该第一存储节点的设备信息,根据该第一存储节点的设备信息将该访问请求发送到该第一存储节点,以根据该目的地址中的本地虚拟地址空间的地址访问该目标文件。The routing module 620 is configured to parse the destination address of the access request to obtain device information of the first storage node, and send the access request to the first storage node according to the device information of the first storage node, according to the destination address. The address of the local virtual address space in the access to the target file.
本发明实施例的路由设备,基于访问请求的目的地址中包含的存储节点的设备信息进行路由,使主机能够直接访问分布式存储系统中的文件,从而能够提高文件访问的效率。The routing device of the embodiment of the present invention performs routing based on the device information of the storage node included in the destination address of the access request, so that the host can directly access files in the distributed storage system, thereby improving the efficiency of file access.
在本发明实施例中,可选地,该网络设备600还包括:In the embodiment of the present invention, optionally, the network device 600 further includes:
分配模块,用于为该主机和该第一存储节点分配设备信息。And an allocation module, configured to allocate device information for the host and the first storage node.
在本发明实施例中,可选地,该第一存储节点的设备信息包括该第一存储节点的标识ID,该主机的设备信息包括该主机的ID。In the embodiment of the present invention, optionally, the device information of the first storage node includes an identifier ID of the first storage node, and the device information of the host includes an ID of the host.
在本发明实施例中,可选地,该第一存储节点的设备信息包括该第一存储节点的标识ID和节点类型,该主机的设备信息包括该主机的ID和节点类型。In the embodiment of the present invention, optionally, the device information of the first storage node includes an identifier ID and a node type of the first storage node, and the device information of the host includes an ID and a node type of the host.
在本发明实施例中,可选地,该第一存储节点的本地虚拟地址空间的地址的位数为N位;In the embodiment of the present invention, optionally, the number of bits of the address of the local virtual address space of the first storage node is N bits;
该访问请求的目的地址的位数为2N位,其中,该访问请求的目的地址的高N位包含该第一存储节点的设备信息,该访问请求的目的地址的低N位为该目标文件在该第一存储节点中的本地虚拟地址空间的地址。The number of bits of the destination address of the access request is 2N bits, wherein the upper N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are the target file. The address of the local virtual address space in the first storage node.
在本发明实施例中,可选地,该访问请求的源地址包含该主机的设备信息;In the embodiment of the present invention, optionally, the source address of the access request includes device information of the host;
该接收模块610还用于接收该第一存储节点发送的响应消息,该响应消息的目的地址为该访问请求的源地址;The receiving module 610 is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
该路由模块620还用于解析该响应消息的目的地址以获得该主机的设备 信息,根据该主机的设备信息,将该响应消息发送到该主机。The routing module 620 is further configured to parse the destination address of the response message to obtain the device of the host. The information is sent to the host according to the device information of the host.
根据本发明实施例的网络设备600可执行根据本发明实施例的访问文件的方法200,并且网络设备600中的各个模块的上述和其它操作和/或功能分别为了实现前述各个方法的相应流程,为了简洁,在此不再赘述。The network device 600 according to an embodiment of the present invention may perform the method 200 of accessing files according to an embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the network device 600 are respectively implemented in order to implement respective processes of the foregoing respective methods. For the sake of brevity, it will not be repeated here.
图7示出了本发明的又一实施例提供的网络设备的结构,包括至少一个处理器702(例如CPU),至少一个网络接口705或者其他通信接口,存储器706,和至少一个通信总线703。其中:FIG. 7 illustrates a structure of a network device provided by another embodiment of the present invention, including at least one processor 702 (eg, a CPU), at least one network interface 705 or other communication interface, memory 706, and at least one communication bus 703. among them:
通信总线703用于实现这些装置之间的连接通信。 Communication bus 703 is used to implement connection communication between these devices.
处理器702用于执行存储器706中存储的可执行模块,例如计算机程序。The processor 702 is configured to execute executable modules, such as computer programs, stored in the memory 706.
存储器706可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括NVM,例如至少一个磁盘存储器。The memory 706 may include a high speed random access memory (RAM: Random Access Memory) and may also include an NVM, such as at least one disk storage.
网络设备通过至少一个网络接口705(可以是有线或者无线)实现与其他节点之间的通信连接。The network device implements a communication connection with other nodes through at least one network interface 705 (which may be wired or wireless).
在一些实施方式中,存储器706存储了程序7061,处理器702用于执行程序7061以实现前述方法实施例中的各个方法。In some embodiments, the memory 706 stores a program 7061 that is used by the processor 702 to implement the various methods of the foregoing method embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或 通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling through some interfaces, devices or units or Communication connections can also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Claims (18)

  1. 一种访问文件的方法,其特征在于,所述方法应用于分布式存储系统中,所述分布式存储系统包括管理节点、多个存储节点和网络设备,所述分布式存储系统中每一个存储节点的本地虚拟地址空间对应所述分布式存储系统的全局虚拟地址空间的一部分,所述方法包括:A method for accessing a file, the method being applied to a distributed storage system, the distributed storage system comprising a management node, a plurality of storage nodes, and a network device, each of the storage devices in the distributed storage system The local virtual address space of the node corresponds to a part of the global virtual address space of the distributed storage system, and the method includes:
    所述网络设备接收主机发送的访问请求,所述访问请求用于访问目标文件的第一虚拟空间,所述第一虚拟空间为所述管理节点在所述全局虚拟地址空间中为所述目标文件分配的空间,所述访问请求的目的地址包含存储所述目标文件的第一存储节点的设备信息以及所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址,所述第一存储节点表示所述多个存储节点中用于存储所述目标文件的存储节点;Receiving, by the network device, an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is the target node in the global virtual address space The allocated space, the destination address of the access request includes device information of a first storage node storing the target file and an address of a local virtual address space of the target file in the first storage node, the first The storage node represents a storage node of the plurality of storage nodes for storing the target file;
    所述网络设备解析所述访问请求的目的地址以获得所述第一存储节点的设备信息;Determining, by the network device, a destination address of the access request to obtain device information of the first storage node;
    所述网络设备根据所述第一存储节点的设备信息将所述访问请求发送到所述第一存储节点,以根据所述目的地址中的本地虚拟地址空间的地址访问所述目标文件。The network device sends the access request to the first storage node according to device information of the first storage node to access the target file according to an address of a local virtual address space in the destination address.
  2. 根据权利要求1所述的方法,其特征在于,在所述网络设备接收主机发送的访问请求之前,所述方法还包括:The method according to claim 1, wherein before the network device receives the access request sent by the host, the method further includes:
    所述网络设备为所述主机和所述第一存储节点分配设备信息。The network device allocates device information to the host and the first storage node.
  3. 根据权利要求2所述的方法,其特征在于,所述第一存储节点的设备信息包括所述第一存储节点的标识ID,所述主机的设备信息包括所述主机的ID。The method according to claim 2, wherein the device information of the first storage node comprises an identifier ID of the first storage node, and the device information of the host comprises an ID of the host.
  4. 根据权利要求2所述的方法,其特征在于,所述第一存储节点的设备信息包括所述第一存储节点的ID和节点类型,所述主机的设备信息包括所述主机的ID和节点类型。The method according to claim 2, wherein the device information of the first storage node comprises an ID and a node type of the first storage node, and the device information of the host includes an ID and a node type of the host .
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一存储节点的本地虚拟地址空间的地址的位数为N位;The method according to any one of claims 1 to 4, wherein the number of bits of the address of the local virtual address space of the first storage node is N bits;
    所述访问请求的目的地址的位数为2N位,其中,所述访问请求的目的地址的高N位包含所述第一存储节点的设备信息,所述访问请求的目的地址的低N位为所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址。 The number of bits of the destination address of the access request is 2N bits, wherein the high N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are The address of the local virtual address space of the target file in the first storage node.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述访问请求的源地址包含所述主机的设备信息;The method according to any one of claims 1 to 5, wherein the source address of the access request includes device information of the host;
    所述方法还包括:The method further includes:
    所述网络设备接收所述第一存储节点发送的响应消息,所述响应消息的目的地址为所述访问请求的源地址;Receiving, by the network device, a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
    所述网络设备解析所述响应消息的目的地址以获得所述主机的设备信息;The network device parses a destination address of the response message to obtain device information of the host;
    所述网络设备根据所述主机的设备信息,将所述响应消息发送到所述主机。The network device sends the response message to the host according to device information of the host.
  7. 一种分布式存储系统,其特征在于,包括:管理节点、多个存储节点和网络设备;A distributed storage system, comprising: a management node, a plurality of storage nodes, and a network device;
    所述多个存储节点中的每一个存储节点的本地虚拟地址空间对应所述分布式存储系统的全局虚拟地址空间的一部分;A local virtual address space of each of the plurality of storage nodes corresponds to a portion of a global virtual address space of the distributed storage system;
    所述管理节点用于在所述全局虚拟地址空间中为目标文件分配第一虚拟空间;The management node is configured to allocate a first virtual space to the target file in the global virtual address space;
    所述网络设备用于接收主机发送的访问请求,所述访问请求用于访问所述第一虚拟空间,所述访问请求的目的地址包含存储所述目标文件的第一存储节点的设备信息以及所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址,所述第一存储节点表示所述多个存储节点中用于存储所述目标文件的存储节点,解析所述访问请求的目的地址以获得所述第一存储节点的设备信息,根据所述第一存储节点的设备信息将所述访问请求发送到所述第一存储节点,以根据所述目的地址中的本地虚拟地址空间的地址访问所述目标文件。The network device is configured to receive an access request sent by a host, where the access request is used to access the first virtual space, and the destination address of the access request includes device information and a location of a first storage node that stores the target file. An address of a local virtual address space of the target file in the first storage node, where the first storage node represents a storage node of the plurality of storage nodes for storing the target file, and parsing the access request Determining the device information of the first storage node, and sending the access request to the first storage node according to the device information of the first storage node, according to the local virtual address space in the destination address The address of the access to the target file.
  8. 根据权利要求7所述的分布式存储系统,其特征在于,所述网络设备还用于为所述主机和所述第一存储节点分配设备信息。The distributed storage system according to claim 7, wherein the network device is further configured to allocate device information to the host and the first storage node.
  9. 根据权利要求8所述的分布式存储系统,其特征在于,所述第一存储节点的设备信息包括所述第一存储节点的标识ID,所述主机的设备信息包括所述主机的ID。The distributed storage system according to claim 8, wherein the device information of the first storage node includes an identifier ID of the first storage node, and the device information of the host includes an ID of the host.
  10. 根据权利要求8所述的分布式存储系统,其特征在于,所述第一存储节点的设备信息包括所述第一存储节点的ID和节点类型,所述主机的设备信息包括所述主机的ID和节点类型。 The distributed storage system according to claim 8, wherein the device information of the first storage node includes an ID and a node type of the first storage node, and the device information of the host includes an ID of the host. And node type.
  11. 根据权利要求7至10中任一项所述的分布式存储系统,其特征在于,所述第一存储节点的本地虚拟地址空间的地址的位数为N位;The distributed storage system according to any one of claims 7 to 10, wherein the number of bits of the address of the local virtual address space of the first storage node is N bits;
    所述访问请求的目的地址的位数为2N位,其中,所述访问请求的目的地址的高N位包含所述第一存储节点的设备信息,所述访问请求的目的地址的低N位为所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址。The number of bits of the destination address of the access request is 2N bits, wherein the high N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are The address of the local virtual address space of the target file in the first storage node.
  12. 根据权利要求7至11中任一项所述的分布式存储系统,其特征在于,所述访问请求的源地址包含所述主机的设备信息;The distributed storage system according to any one of claims 7 to 11, wherein the source address of the access request includes device information of the host;
    所述网络设备还用于接收所述第一存储节点发送的响应消息,所述响应消息的目的地址为所述访问请求的源地址,解析所述响应消息的目的地址以获得所述主机的设备信息,根据所述主机的设备信息,将所述响应消息发送到所述主机。The network device is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request, and a destination address of the response message is parsed to obtain a device of the host The information is sent to the host according to the device information of the host.
  13. 一种网络设备,其特征在于,包括:A network device, comprising:
    接收模块,用于接收主机发送的访问请求,所述访问请求用于访问目标文件的第一虚拟空间,所述第一虚拟空间为分布式存储系统中的管理节点在所述分布式存储系统的全局虚拟地址空间中为所述目标文件分配的空间,所述分布式存储系统中每一个存储节点的本地虚拟地址空间对应所述分布式存储系统的全局虚拟地址空间的一部分,所述访问请求的目的地址包含存储所述目标文件的第一存储节点的设备信息以及所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址,所述第一存储节点表示所述分布式存储系统的存储节点中用于存储所述目标文件的存储节点;a receiving module, configured to receive an access request sent by the host, where the access request is used to access a first virtual space of the target file, where the first virtual space is a management node in the distributed storage system in the distributed storage system a space allocated to the target file in the global virtual address space, where a local virtual address space of each storage node in the distributed storage system corresponds to a part of a global virtual address space of the distributed storage system, where the access request is The destination address includes device information of a first storage node storing the target file and an address of a local virtual address space of the target file in the first storage node, the first storage node representing the distributed storage system a storage node for storing the target file in the storage node;
    路由模块,用于解析所述访问请求的目的地址以获得所述第一存储节点的设备信息,根据所述第一存储节点的设备信息将所述访问请求发送到所述第一存储节点,以根据所述目的地址中的本地虚拟地址空间的地址访问所述目标文件。a routing module, configured to parse the destination address of the access request to obtain device information of the first storage node, and send the access request to the first storage node according to device information of the first storage node, to Accessing the target file according to an address of a local virtual address space in the destination address.
  14. 根据权利要求13所述的网络设备,其特征在于,所述网络设备还包括:The network device according to claim 13, wherein the network device further comprises:
    分配模块,用于为所述主机和所述第一存储节点分配设备信息。And an allocation module, configured to allocate device information to the host and the first storage node.
  15. 根据权利要求14所述的网络设备,其特征在于,所述第一存储节点的设备信息包括所述第一存储节点的标识ID,所述主机的设备信息包括所述主机的ID。 The network device according to claim 14, wherein the device information of the first storage node includes an identifier ID of the first storage node, and the device information of the host includes an ID of the host.
  16. 根据权利要求14所述的网络设备,其特征在于,所述第一存储节点的设备信息包括所述第一存储节点的ID和节点类型,所述主机的设备信息包括所述主机的ID和节点类型。The network device according to claim 14, wherein the device information of the first storage node includes an ID and a node type of the first storage node, and the device information of the host includes an ID and a node of the host. Types of.
  17. 根据权利要求13至16中任一项所述的网络设备,其特征在于,所述第一存储节点的本地虚拟地址空间的地址的位数为N位;The network device according to any one of claims 13 to 16, wherein the number of bits of the address of the local virtual address space of the first storage node is N bits;
    所述访问请求的目的地址的位数为2N为,其中,所述访问请求的目的地址的高N位包含所述第一存储节点的设备信息,所述访问请求的目的地址的低N位为所述目标文件在所述第一存储节点中的本地虚拟地址空间的地址。The number of bits of the destination address of the access request is 2N, wherein the high N bits of the destination address of the access request include device information of the first storage node, and the lower N bits of the destination address of the access request are The address of the local virtual address space of the target file in the first storage node.
  18. 根据权利要求13至17中任一项所述的网络设备,其特征在于,所述访问请求的源地址包含所述主机的设备信息;The network device according to any one of claims 13 to 17, wherein the source address of the access request includes device information of the host;
    所述接收模块还用于接收所述第一存储节点发送的响应消息,所述响应消息的目的地址为所述访问请求的源地址;The receiving module is further configured to receive a response message sent by the first storage node, where a destination address of the response message is a source address of the access request;
    所述路由模块还用于解析所述响应消息的目的地址以获得所述主机的设备信息,根据所述主机的设备信息,将所述响应消息发送到所述主机。 The routing module is further configured to parse a destination address of the response message to obtain device information of the host, and send the response message to the host according to device information of the host.
PCT/CN2014/090023 2014-10-31 2014-10-31 File access method, distributed storage system and network device WO2016065613A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480037253.4A CN105745900B (en) 2014-10-31 2014-10-31 Access method, distributed memory system and the network equipment of file
PCT/CN2014/090023 WO2016065613A1 (en) 2014-10-31 2014-10-31 File access method, distributed storage system and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/090023 WO2016065613A1 (en) 2014-10-31 2014-10-31 File access method, distributed storage system and network device

Publications (1)

Publication Number Publication Date
WO2016065613A1 true WO2016065613A1 (en) 2016-05-06

Family

ID=55856431

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090023 WO2016065613A1 (en) 2014-10-31 2014-10-31 File access method, distributed storage system and network device

Country Status (2)

Country Link
CN (1) CN105745900B (en)
WO (1) WO2016065613A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018176265A1 (en) * 2017-03-29 2018-10-04 华为技术有限公司 Access method for distributed storage system, related device and related system
CN111159209A (en) * 2019-12-27 2020-05-15 云汉芯城(上海)互联网科技股份有限公司 Data processing device and method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645039A (en) * 2009-06-02 2010-02-10 中国科学院声学研究所 Method for storing and reading data based on Peterson graph
CN102594852A (en) * 2011-01-04 2012-07-18 中国移动通信集团公司 Data access method, node and system
CN104077084A (en) * 2014-07-22 2014-10-01 中国科学院上海微系统与信息技术研究所 Distributed random file accessing system and accessing control method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100353339C (en) * 2002-12-31 2007-12-05 北京因特时代信息技术有限公司 Distribution type unified catalogue management method
FR2907993B1 (en) * 2006-10-26 2008-12-26 Seanodes Sa COMPUTER SYSTEM COMPRISING MULTIPLE INTEGRATED NODES.
US9069672B2 (en) * 2009-06-12 2015-06-30 Intel Corporation Extended fast memory access in a multiprocessor computer system
CN103677670A (en) * 2013-12-11 2014-03-26 华为技术有限公司 Method and device for reading data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645039A (en) * 2009-06-02 2010-02-10 中国科学院声学研究所 Method for storing and reading data based on Peterson graph
CN102594852A (en) * 2011-01-04 2012-07-18 中国移动通信集团公司 Data access method, node and system
CN104077084A (en) * 2014-07-22 2014-10-01 中国科学院上海微系统与信息技术研究所 Distributed random file accessing system and accessing control method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018176265A1 (en) * 2017-03-29 2018-10-04 华为技术有限公司 Access method for distributed storage system, related device and related system
CN108934187A (en) * 2017-03-29 2018-12-04 华为技术有限公司 The access method and relevant apparatus and related system of distributed memory system
CN108934187B (en) * 2017-03-29 2020-08-25 华为技术有限公司 Access method of distributed storage system, related device and related system
US11307776B2 (en) 2017-03-29 2022-04-19 Huawei Technologies Co., Ltd. Method for accessing distributed storage system, related apparatus, and related system
CN111159209A (en) * 2019-12-27 2020-05-15 云汉芯城(上海)互联网科技股份有限公司 Data processing device and method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105745900A (en) 2016-07-06
CN105745900B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
US9672143B2 (en) Remote memory ring buffers in a cluster of data processing nodes
JP6231679B2 (en) Resource management for peripheral component interconnect express domain
US9678918B2 (en) Data processing system and data processing method
WO2016065611A1 (en) File access method, system and host
WO2019127018A1 (en) Memory system access method and device
US9092365B2 (en) Splitting direct memory access windows
CN110199512B (en) Management method and device for storage equipment in storage system
US9311044B2 (en) System and method for supporting efficient buffer usage with a single external memory interface
US10706005B2 (en) File system interface for remote direct memory access
US9104601B2 (en) Merging direct memory access windows
CN110199270B (en) Management method and device for storage equipment in storage system
WO2016065613A1 (en) File access method, distributed storage system and network device
WO2016065610A1 (en) Method for accessing files, distributed storage system and storage node
WO2017177400A1 (en) Data processing method and system
WO2016065612A1 (en) Method, system, and host for accessing files

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14905033

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14905033

Country of ref document: EP

Kind code of ref document: A1