WO2015180538A1 - Method and device for reading and writing data, and storage system - Google Patents

Method and device for reading and writing data, and storage system Download PDF

Info

Publication number
WO2015180538A1
WO2015180538A1 PCT/CN2015/076661 CN2015076661W WO2015180538A1 WO 2015180538 A1 WO2015180538 A1 WO 2015180538A1 CN 2015076661 W CN2015076661 W CN 2015076661W WO 2015180538 A1 WO2015180538 A1 WO 2015180538A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage device
information
backend storage
disk
network
Prior art date
Application number
PCT/CN2015/076661
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 华为技术有限公司
Publication of WO2015180538A1 publication Critical patent/WO2015180538A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Definitions

  • the present invention relates to the field of information processing, and in particular, to a method and device for reading and writing data, and a storage system.
  • the storage system includes a front end device, a control device, and a back end storage device.
  • the front-end device is connected to the control device through the front-end network, and the different control devices are connected to the back-end storage device through the back-end network by controlling the network connection;
  • the front-end device may include a host, and the control device may include a controller,
  • the cache interfaces with the Host Bus Adapter (HBA).
  • HBA Host Bus Adapter
  • the front-end network generally uses a fiber channel (English: Fiber Channel, abbreviation: FC), Ethernet (English: Ethernet, abbreviation: Eth) and other networks, mainly through the switch (English: Switch) will belong to the front-end device host and control equipment
  • the front end card is interconnected.
  • the control network generally uses a Peripheral Component Interconnect Express (PCIe) network.
  • the back-end network generally uses a Serial Attached SCSI (SAS) cable to connect the control device to the disk enclosure and cascade the disk enclosures to control access to the back-end storage devices.
  • SAS Serial Attached SCSI
  • data transmission between the front-end device and the back-end storage device must pass through the front-end network, the control network, and the back-end network, and must also be transmitted through the controller, between the current end device and the back-end storage device.
  • the controller may be unable to process in time, resulting in a decrease in data transmission efficiency.
  • the front-end network, the control network, and the back-end network respectively use different types of networks, network maintenance is inconvenient and maintenance costs are high.
  • the invention separates the read or write command from the data, so that the read or write command is controlled and forwarded by the controller, and the data to be read or the data to be written is not transmitted by the controller, but by the front-end device and The back-end storage device directly performs data transmission, which improves transmission efficiency and reduces the burden on the controller.
  • a first aspect of the present invention provides a method of reading data, comprising:
  • the first read information sent by the front end device where the first read information includes a read command and logical interface address information of a disk of the backend storage device, where the data to be read by the read command is stored in the On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected through the network;
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
  • the control device sends the second read information to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, the address information of the front end device, and the
  • the physical interface address information of the disk is such that the backend storage device receives the second read information sent by the control device by using the network, and searches for the disk according to the physical interface address information of the disk.
  • the data to be read, and the data to be read, which is found by the network are sent to the front-end device according to the address information of the front-end device.
  • the control device acquires, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and the Physical interface address information of the disk, including:
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  • the control device before the control device receives the first read information sent by the front end device by using the network, the method also includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the control device receives, by using a network, the first read information sent by the front end device, include:
  • the control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
  • the control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
  • the control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
  • the network includes any one of the following networks: a fiber channel network, Ethernet, fast peripherals interconnect standard PCIe network.
  • a second aspect of the present invention provides a method of reading data, including:
  • the backend storage device receives, by using a network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
  • the backend storage device searches for data to be read in the disk according to physical interface address information of the disk, and searches for data to be read through the network according to address information of the front-end device. Sent to the front end device.
  • the method before the receiving, by the back end storage device, the second read information sent by the control device by using the network, the method further includes:
  • the backend storage device When the backend storage device is booted, the backend storage device acquires a physical interface of the disk Address information;
  • the backend storage device information is reported to the control device, where the backend storage device information includes the address information and the location of the backend storage device.
  • the physical interface address information of the disk of the backend storage device is reported to the control device, where the backend storage device information includes the address information and the location of the backend storage device.
  • the physical interface address information of the disk of the backend storage device is reported to the control device, where the backend storage device information includes the address information and the location of the backend storage device.
  • the backend storage device receives, by using the network, the second sent by the control device Read information, including:
  • the back-end storage device sends, to the front-end device, the data to be read by the network, according to the address of the front-end device, including:
  • the backend storage device sends the data to be read by the network to the front end device in the form of the MAC frame according to the address of the front end device.
  • the network includes any one of the following networks: a fiber channel network, an Ethernet network Fast peripheral interconnect standard PCIe network.
  • a third aspect of the present invention provides a method of reading data, including:
  • the front-end device sends the first read information to the control device through the network; wherein the first read information includes a read command and logical interface address information of a disk of the back-end storage device, and the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
  • the network Receiving, by the network, the first read information sent by the front-end device, and acquiring the address information of the back-end storage device to which the disk belongs and the physicality of the disk according to the logical interface address information of the disk
  • the interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, address information of the front end device, and Physical interface address information of the disk;
  • the control device acquires, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and the Physical interface address information of the disk, including:
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  • the control device receives, by using the network, the first read sent by the front end device Before the information, the method further includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the backend storage device Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and the Physical interface address information of the disk of the end storage device;
  • the control device receives, by using a network, the first read information sent by the front end device, include:
  • the control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
  • the control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
  • the control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
  • the network includes any one of the following networks: a fiber channel network, Ethernet, fast peripherals interconnect standard PCIe network.
  • a fourth aspect of the present invention provides a method of writing data, including:
  • the control device receives, by using a network, first write information sent by the front-end device; the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device, and the back end
  • the storage devices are interconnected by the network;
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
  • the control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and the disk
  • the physical interface address information is such that the backend storage device receives the second write information sent by the control device through the network, and finds the disk according to the physical interface address information of the disk, and generates First response information, and transmitting, by the network, the first response information to the control device according to address information of the front end device; the first response information indicating a disk pair reception of the backend storage device a response to a write command initiated by the front end device;
  • the control device After receiving the first response information, the control device generates second response information according to the first response information and the address information of the backend storage device, where the second response information includes the first response information. And address information of the backend storage device;
  • the control device sends the second response information to the front-end device, so that the front-end device receives the second response information, and passes the data to be written through the network according to the address information of the back-end storage device. Sending to the backend storage device, so that the backend storage device receives the desired write Data and write the data to be written to the disk.
  • the method before the control device receives the first response information that is sent by the backend storage device by using the network, the method further includes:
  • the network Receiving, by the network, the first write information sent by the front-end device, where the first write information includes the write command and logical interface address information of a disk of the back-end storage device;
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
  • the control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, the address information of the front end device, and the disk
  • the physical interface address information is such that the backend storage device receives the second write information sent by the control device through the network, and finds the disk according to the physical interface address information of the disk, and generates The first response information, and the first response information is sent to the control device through the network according to the address information of the front end device.
  • the control device receives the first response information that is sent by the backend storage device by using the network, including :
  • the control device receives, by using the network, first write information that is sent by the front end device in the form of a multimedia access control MAC frame.
  • the network includes any one of the following networks: a fiber channel network, an Ethernet network Fast peripheral interconnect standard PCIe network.
  • a fifth aspect of the present invention provides a method of writing data, including:
  • the front-end device sends first write information to the control device through the network, where the first write information includes a write And the logical interface address information of the disk of the backend storage device, so that the control device receives the first write information, and obtains the address of the backend storage device to which the disk belongs according to the logical interface address information of the disk.
  • the second write information includes the write command and the The address information of the front-end device and the physical interface address information of the disk, so that the back-end storage device receives the second write information sent by the control device through the network, and according to the physical interface address of the disk Information, the disk is found, and the first response information is generated, and the first response information is sent to the control device by using the network according to the address information of the front-end device; the first response information is represented by a response of the disk of the backend storage device to the received write command initiated by the front end device; the control device according to the first Generating second response information according to the information and the address information of the backend storage device, and sending the second response information to the front end device; the second response information includes first response information and the backend storage device Address information; the control device, the front-end device, and the back-end storage device are interconnected by the network;
  • the front-end device receives the second response information sent by the control device by using the network, and sends the data to be written to the back-end storage device according to the address information of the back-end storage device, so that the The end storage device receives the data to be written and writes the data to be written to the disk.
  • the front end device by using the network, the second response information that is sent by the control device, includes:
  • the front-end device sends the first write information to the control device in the form of a multimedia access control MAC frame through the network.
  • the network includes any one of the following networks: a fiber channel network, an Ethernet, and a shortcut Set up an interconnected standard PCIe network.
  • a sixth aspect of the present invention provides a method of writing data, including:
  • the control device Receiving, by the network device, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk of the backend storage device;
  • the control device, the front end device, and the backend storage device are interconnected by the network;
  • the backend storage device searches for the disk according to the physical interface address information of the disk, and generates first response information; the first response information indicates that the disk of the backend storage device receives the received The response of the write command initiated by the front-end device;
  • the backend storage device After the backend storage device sends the first response information to the control device through the network, the backend storage device receives, by the network, data to be written by the front end device sent by the front end device, and The data to be written is written to the disk.
  • the back-end storage device sends the first response information to the control device by using the network, including:
  • the backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
  • the backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a shortcut Set up an interconnected standard PCIe network.
  • a seventh aspect of the present invention provides a method of writing data, including:
  • the front-end device sends first write information to the control device through the network, where the first write information includes a write And logical interface address information of the disk of the backend storage device; the control device, the front end device, and the backend storage device are interconnected by the network;
  • the address information of the backend storage device sends the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk ;
  • the backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front-end device, the first response information is sent to the control device by using the network; the first response information indicates that the disk of the back-end storage device initiates the received front-end device The response of the write command;
  • the control device generates second response information according to the first response information and the address information of the backend storage device, and sends the second response information to the front end device;
  • the second response information includes the first Response information and address information of the backend storage device;
  • the front-end device receives the second response information sent by the control device by using the network; after obtaining the second response information, the data to be written is passed according to the address information of the back-end storage device. Sending the network to the backend storage device;
  • the backend storage device receives the data to be written and writes the data to be written to the disk.
  • the method before the receiving, by the control device, the first write information sent by the front end device, the method further includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the control device receives, by the back end storage device, the first sent by the network Response information, including:
  • the backend storage device sends the first response information to the control device by using the network, including:
  • the backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
  • the backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • An eighth aspect of the present invention provides a control device, including:
  • a receiving unit configured to receive, by using a network, first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
  • a processing unit configured to acquire, according to logical interface address information of the disk in the first read information received by the receiving unit, address information of a backend storage device to which the disk belongs and a physical interface of the disk Address information;
  • a sending unit configured to send the second read information to the backend storage device according to the address information of the backend storage device acquired by the processing unit, where the second read information includes the read command and the The address information of the front-end device and the physical interface address information of the disk, so that the back-end storage device receives the second read information sent by the control device through the network, and according to the physical interface address of the disk And searching for data to be read in the disk, and sending, by the network, the found data to be read to the front-end device according to the address information of the front-end device.
  • the processing unit is configured to: according to the logical interface address information of the disk in the first read information received by the receiving unit, Obtaining the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk, including:
  • the information about the address of the backend storage device to which the disk belongs and the physical interface address information of the disk are obtained according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate the Correspondence between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  • the sending unit is further configured to receive, by the receiving unit, the front end device, Before the first read information, sending a broadcast packet to the backend storage device, where the broadcast packet is used
  • the backend storage device is configured to report the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and a physicality of a disk of the backend storage device Interface address information;
  • the receiving unit is further configured to receive the backend storage device information reported by the backend storage device;
  • the processing unit is further configured to: after the receiving unit receives the backend storage device information reported by the backend storage device, establish logical interface address information of the disk and physical interface address information of the disk and the The correspondence between the address information of the backend storage device.
  • a ninth aspect of the present invention provides a backend storage device, including:
  • a receiving unit configured to receive, by using a network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; and data storage to be read by the read command
  • the control device, the front-end device, and the back-end storage device are interconnected by the network;
  • a searching unit configured to: after the receiving unit receives the second read information, search for data to be read in the disk according to physical interface address information of the disk;
  • a sending unit configured to send the searched data to be read by the network to the front end according to the address information of the front end device after the searching unit searches for the data to be read in the disk device.
  • the back-end storage device further includes: an acquiring unit, where the acquiring unit is configured to receive, by the receiving unit, the network Before the second read information sent by the device is controlled, when the backend storage device is started, acquiring physical interface address information of the disk;
  • the sending unit is further configured to: when the receiving unit receives the broadcast packet sent by the control device, report the backend storage device information to the control device, where the backend storage device information includes the backend storage device Address information and physical interface address information of the disk of the backend storage device.
  • the sending unit is configured to receive the control device by using the network Media access control second read information sent in the form of a MAC frame;
  • the sending unit is configured to send, by using the network, the searched data to be read by the network to the front end device in the form of the MAC frame according to an address of the front end device.
  • a tenth aspect of the present invention provides a front end device, including:
  • a sending unit configured to send first read information to the control device over the network; wherein the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data storage to be read by the read command On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
  • a receiving unit configured to receive, by the network, the data to be read sent by the backend storage device after the sending unit sends the first read information to the control device by using the network.
  • the sending unit configured to send the first read information to the control device by using the network, includes:
  • An eleventh aspect of the present invention provides a storage system including the control device as described above, the backend storage device as described above, and the front end device as described above, the control device, the front end device, and the backend storage Devices are interconnected through the same network.
  • the network includes any one of the following: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • a twelfth aspect of the present invention provides a control device, including:
  • the receiving unit is configured to receive, by using a network, first write information sent by the front end device; the first write information includes a write command and logical interface address information of a disk of the backend storage device; the control device, the front end device, and The backend storage devices are interconnected by the network;
  • the processing unit is configured to acquire, according to the logical interface address information of the disk that is included in the first response information received by the receiving unit, address information of a backend storage device to which the disk belongs and a physical interface address of the disk Information
  • the sending unit is configured to send the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and the The physical interface address information of the disk is such that the backend storage device receives the second write information sent by the control device through the network, and searches for the disk according to the physical interface address information of the disk. And generating first response information, and sending, by the network, the first response information to the control device according to the address information of the front end device; the first response information indicating a disk of the backend storage device a response to a received write command initiated by the front end device;
  • the receiving unit is further configured to receive first response information that is sent by the backend storage device by using the network;
  • the processing unit generates second response information according to the first response information and address information of the backend storage device, where the second response information includes first response information and address information of the backend storage device;
  • the sending unit is further configured to send the second response information to the front end device, so that the front end device receives the second response information, and sends the data to be written according to the address information of the backend storage device. Giving the backend storage device such that the backend storage device receives the data to be written and writes the data to be written to the disk.
  • the transmitting unit is further configured to: before the receiving unit receives the first write information sent by the front end device by using the network, Sending a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes the Address information of the end storage device and physical interface address information of the disk of the backend storage device;
  • the receiving unit is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
  • the receiving unit is further configured to receive the back end storage device Determining, by the network, the first response information sent in the form of a multimedia access control MAC frame;
  • the sending unit is further configured to receive, by using the network, first write information that is sent by the front end device in a multimedia access control MAC frame format.
  • a thirteenth aspect of the present invention provides a front end device, including:
  • the sending unit is configured to send, by using a network, first write information to the control device, where the first write information includes a write command and logical interface address information of a disk of the backend storage device, so that the The control device receives the first write information, and obtains address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk; And storing the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk, so that The backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front-end device, sending the first response information to the control device by using the network;
  • the information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device; the control device generates
  • the receiving unit is configured to receive, by using the network, second response information sent by the control device;
  • the sending unit is further configured to: after the receiving unit receives the second response information, send the data to be written to the backend storage device according to the address information of the backend storage device, so that the back end The storage device receives the data to be written and writes the data to be written to the disk.
  • the receiving unit is further configured to receive, by using the network, the second that is sent by the control device in a multimedia access control MAC frame format.
  • the sending unit is further configured to send, by using the network, the first write information to the control device in the form of a multimedia access control MAC frame.
  • a fourteenth aspect of the present invention provides a backend storage device, including: a sending unit, a processing unit, and a receiving unit,
  • the receiving unit is configured to receive, by using a network, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and a physical interface address of the disk of the backend storage device.
  • Information; the control device, the front end device, and the backend storage device are interconnected by the network;
  • the processing unit is configured to find the disk according to the physical interface address information of the disk that is received by the receiving unit, and generate first response information; the first response information indicates that the backend storage device is a response of the disk to the received write command initiated by the front end device;
  • the sending unit is configured to send the first response information to the control device by using the network, where the first response information indicates that the disk of the backend storage device initiates writing to the received front-end device.
  • the response of the command is configured to send the first response information to the control device by using the network, where the first response information indicates that the disk of the backend storage device initiates writing to the received front-end device.
  • the receiving unit is further configured to: after the sending unit sends the first response information to the control device by using a network, receive, by the network, data to be written by the front end device sent by the front end device, and The data to be written is written to the disk.
  • the sending unit is further configured to send, by using the network, the first response information to a multimedia access control MAC frame The control device;
  • the receiving unit is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
  • a fifteenth aspect of the present invention provides a storage system, comprising: the control device according to the twelfth aspect, the first or second aspect of the twelfth aspect, the thirteenth aspect or the thirteenth aspect
  • the front-end device provided on the one hand and the first aspect of the fourteenth aspect or the fourteenth aspect, wherein the control device, the front-end device and the back-end storage device are interconnected through the same network.
  • the network includes any one of the following: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • the storage system uses the same network, and the control device, the front-end device, and the back-end storage
  • the storage device transmits information through the same network, supports massive expansion, and is easy to maintain.
  • the present invention separates the read or write command from the data, so that the read or write command is controlled and forwarded by the controller, and the data to be read or written is
  • the data is directly transmitted by the front-end device and the back-end storage device, which improves the transmission efficiency and reduces the burden on the controller.
  • FIG. 1 is a schematic structural view of a conventional storage system
  • FIG. 2 is a schematic diagram of information interaction of devices in a storage system when data is read
  • FIG. 3 is a schematic flowchart of a method for reading data according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a partial step of a method for reading data according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a frame according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic flowchart of a method for reading data according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a partial process of a method for reading data according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of information interaction of devices in a storage system when data is written
  • FIG. 9 is a schematic flowchart diagram of a method for writing data according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart diagram of a method for writing data according to an embodiment of the present invention.
  • FIG. 11 is a schematic flowchart diagram of a method for writing data according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a front end device according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a backend storage device according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of a backend storage device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of a front end device according to an embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of a front end device according to an embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of a backend storage device according to an embodiment of the present invention.
  • FIG. 2 illustrates a storage system to which the method of the embodiment of the present invention is applied.
  • the storage system includes: a front-end device, a control device, and a back-end storage device, where the control device, the front-end device, and the back-end storage device are interconnected through the same network; the network may be supported by a Fibre Channel network, an Ethernet, or a PCIe network.
  • the front-end device includes a host, and the control device includes a controller, a cache, and a network interface.
  • the back-end storage device may be a cluster of disks (English: Just a Bunch Of Disks, abbreviated as JBOD), and may specifically include a network interface and a plurality of cascaded disks. .
  • JBOD Just a Bunch Of Disks
  • an embodiment of the present invention provides a method for reading data, including:
  • the control device receives, by using a network, first read information sent by the front end device.
  • the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command is stored on a disk of the backend storage device; the control device, The front end device and the back end storage device are interconnected through the same network.
  • the backend storage device may be a disk cluster device.
  • the read command can be a small computer system interface command.
  • the logical interface address information is used to represent a logical interface address; the logical interface address information may be a logical serial connection small computer system interface address information, and the logical serial connection small computer system interface address information indicates a logical serial connection small computer system interface address .
  • the physical interface address information is used to indicate a physical interface address; the physical interface address information may be a physical serial connection small computer system interface address information, and the physical serial connection small computer system interface address information indicates a physical serial connection small computer system interface address .
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk.
  • Mapping information may be pre-configured in the control device, where the mapping relationship information is used to represent logical interface address information of the disk and physical interface address information of the disk and the backend storage device Correspondence of address information.
  • the control device may obtain the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk. .
  • the control device sends the second read information to the backend storage device according to the address information of the backend storage device.
  • the second read information includes the read command, address information of the front end device, and physical interface address information of the disk.
  • the step 203 is configured to enable the backend storage device to receive the second read information sent by the control device by using the network, and search for the to-be read in the disk according to the physical interface address information of the disk. Data, and according to address information of the front-end device, the discovered data to be read is sent to the front-end device through the network.
  • the read command is controlled and forwarded by the control device, and after receiving the read command, the backend storage device directly sends the data to be read to the front-end device without forwarding by the controller, thereby improving the data. Transmission efficiency reduces the burden on the controller.
  • the method before the control device receives the first read information sent by the front-end device, the method further includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to enable the backend storage device to report the backend storage device information to the control device, where the backend storage device
  • the information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device.
  • the control device receives the backend storage device information reported by the backend storage device, and establishes logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
  • Steps 301 and 302 describe the process of the controller discovering the disks of the backend storage device and the backend storage device after the backend storage device is booted, and the process of generating the mapping relationship information.
  • the transmission protocol between the front-end device, the control device, and the back-end storage device may be a customized private protocol, and the private protocol is loaded in the multimedia access control (English: Media Access Control, abbreviation: On the MAC) protocol, data is transmitted directly through the MAC layer.
  • multimedia access control English: Media Access Control, abbreviation: On the MAC
  • the MAC frame includes three parts: a frame header, a data packet, and a frame tail.
  • the frame header includes: a destination MAC address, a source MAC address, and a frame type; wherein the upper layer of the frame type flag uses a proprietary protocol.
  • the destination MAC address can be allocated 6 bytes
  • the source MAC address can be allocated 6 bytes
  • the frame type can be allocated 2 bytes.
  • the data packet is a private protocol frame.
  • the private protocol frame contains: the destination SAS address, the SCSI command, and the Next-target MAC address.
  • the Next-target MAC address indicates the target device address that the target device should send next, such as: the front-end device to the control device.
  • Send a read command the control device forwards the read command to the backend storage device, and fills in the front-end device MAC address in the Next-target MAC address; the back-end storage device receives the data frame, and parses out the Next-target MAC address is the front-end device MAC address.
  • the address is then filled into the destination MAC address in the MAC frame and the data frame is sent to the headend device.
  • the end of the frame contains: the frame check sequence.
  • the frame check sequence can be allocated 4 bytes.
  • the SCSI command included in the private protocol frame may be a read command
  • the destination SAS address may be a logical interface address of the disk or a physical interface address of the disk.
  • the control device may receive the first read information sent by the front end device in the form of a multimedia access control MAC frame through the network; the control device may perform the second read according to the address information of the backend storage device. Information is sent to the backend storage device in the form of the MAC frame.
  • the embodiment of the present invention further provides another method for reading data, including:
  • the backend storage device receives, by using the network, second read information sent by the control device.
  • the second read information includes a read command, an address of the front end device, and a physical interface address of the disk; the data to be read by the read command is stored on a disk of the backend storage device; the control device and the The front-end device and the back-end storage device are interconnected through the same network.
  • the physical interface address information includes physical serial connection small computer system interface address information.
  • the physical serial connection small computer system interface address information can be used to represent the physical serial connection small computer system interface address.
  • the backend storage device may receive, by the network, second read information that is sent by the control device in the form of a multimedia access control MAC frame.
  • the backend storage device may be a disk cluster device.
  • the backend storage device searches for the disk according to a physical interface address of the disk.
  • the data to be read is not limited to a physical interface address of the disk.
  • the backend storage device After the backend storage device receives the second read information, if the read command is a small computer system interface command, the small computer system interface command is translated into a serial connection small computer system interface. a command; the backend storage device searches for data to be read in the disk according to the serial connection small computer system interface command and a physical interface address of the disk.
  • the backend storage device sends, by using the network, the searched data to be read by the network according to an address of the front end device.
  • the backend storage device may send, by using the network, the data to be read by the network to the front end device in the form of the MAC frame according to the address of the front end device.
  • the method further includes:
  • the backend storage device acquires physical interface address information of the disk.
  • the backend storage device When the backend storage device receives the broadcast packet sent by the control device, report the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device. And physical interface address information of the disk of the backend storage device.
  • Steps 501 and 502 describe the process of discovering the disk and reporting the backend storage device information to the control device when the backend storage device is booted.
  • the embodiment of the present invention further provides a method for reading data, including:
  • the front-end device sends the first read information to the control device through the network; wherein the first read information includes a read command and logical interface address information of a disk of the back-end storage device, and the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
  • the network Receiving, by the network, the first read information sent by the front-end device, and acquiring the address information of the back-end storage device to which the disk belongs and the physicality of the disk according to the logical interface address information of the disk
  • the interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command and the Address information of the front end device and physical interface address information of the disk;
  • the backend storage device receives the second read information sent by the control device by using the network, and searches for data to be read in the disk according to physical interface address information of the disk, and according to the The address information of the front-end device is sent to the front-end device by the network to find the data to be read.
  • control device acquires, according to the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk, including:
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  • the method before the receiving, by the control device, the first read information sent by the front-end device, the method further includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the backend storage device Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and the Physical interface address information of the disk of the end storage device;
  • control device receives, by using a network, the first read information sent by the front-end device, including:
  • the control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
  • the control device sends the second read information to the back according to the address information of the backend storage device End storage devices, including:
  • the control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • an embodiment of the present invention further provides a method for writing data, including:
  • the control device receives, by using a network, first write information sent by the front end device.
  • the control device receives, by using a network, first write information that is sent by the front-end device in the form of a multimedia access control MAC frame.
  • the first write information includes the write command and logical interface address information of a disk of the backend storage device.
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk.
  • the logical interface address information includes logical serial connection small computer system interface address information
  • the physical interface address information includes physical serial connection small computer system interface address information
  • the control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, the address information of the front end device, and the The physical interface address information of the disk.
  • Step 603 is executed to enable the backend storage device to receive the second write information sent by the control device by using the network, and find the disk according to the physical interface address information of the disk, and generate a first response. And transmitting, by the network, the first response information to the control device according to the address information of the front end device.
  • Steps 601 to 603 describe a process in which the front-end device initiates a write data operation, and the control device receives the first write information sent by the front-end device and causes the back-end storage device to issue the first response information.
  • the control device receives first response information that is sent by the backend storage device by using the network.
  • the control device receives the first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network.
  • the first response information indicates that the disk of the backend storage device responds to the received write command initiated by the front end device, and the backend saves
  • the disk of the storage device is used to write data to be written by the write command; the control device, the front-end device and the back-end storage device are interconnected through the same network.
  • the write command is a small computer system interface command.
  • the backend storage device includes a disk cluster device.
  • control device After receiving the first response information, the control device sends the second response information to the front end device, where the second response information includes the first response information and the backend storage device. Address information.
  • Step 605 is executed to enable the front-end device to receive the second response information, obtain the first response information and address information of the back-end storage device, and obtain the first response information and the back-end storage.
  • the address information of the device is sent, the data to be written is sent to the backend storage device according to the address information of the backend storage device, so that the backend storage device receives the data to be written, and The data to be written is written to the disk.
  • the method before the receiving, by the control device, the first write information sent by the front-end device, the method further includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • an embodiment of the present invention further provides a method for writing data, including:
  • the front-end device sends the first write information to the control device by using a network.
  • the front-end device may send the first write information to the control device in the form of a multimedia access control MAC frame through the network.
  • the first write information includes a write command and logical interface address information of a disk of the backend storage device, so that the control device receives the first write information, and according to And obtaining, by the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk; and sending the second write information according to the address information of the backend storage device
  • the second write information includes the write command, address information of the front end device, and physical interface address information of the disk, so that the backend storage device receives the network through the network
  • the front-end device receives, by using a network, second response information sent by the control device.
  • the front-end device receives, by using the network, second response information that is sent by the control device in the form of a MAC frame.
  • the second response information includes first response information and address information of the backend storage device; the first response information indicates that the disk of the backend storage device sends a write command initiated by the front end device.
  • the disk of the backend storage device is used to write data to be written by the write command.
  • the backend storage device includes a disk cluster device.
  • Step 704 is executed to cause the backend storage device to receive the data to be written and write the data to be written to the disk.
  • the logical interface address information includes logical serial connection small computer system interface address information
  • the physical interface address information includes physical serial connection small computer system interface address information
  • the write command is a small computer system interface command.
  • an embodiment of the present invention further provides a method for writing data, including:
  • the backend storage device receives, by using a network, the second write information sent by the control device.
  • the backend storage device may receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
  • the second write information includes the write command, address information of the front-end device, and physical interface address information of the disk of the back-end storage device; the control device, the front-end device, and the back-end storage device pass through Network interconnection.
  • the backend storage device searches for the disk according to the physical interface address information of the disk, and generates first response information.
  • the first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device.
  • the backend storage device sends the first response information to the control device over the network.
  • the backend storage device sends the first response information to the control device in the form of a MAC frame through the network.
  • the first response information indicates that the disk of the backend storage device responds to the received write command initiated by the front end device, and the disk of the backend storage device is used to write data to be written by the write command;
  • the control device, the front end device and the back end storage device are interconnected through the same network.
  • the backend storage device After the backend storage device sends the first response information to the control device by using the network, the backend storage device receives, by the network, the data to be written by the front-end device sent by the front-end device, and writes the desired The data is written to the disk.
  • the logical interface address information includes logical serial connection small computer system interface address information
  • the physical interface address information includes physical serial connection small computer system interface address information
  • the write command is a small computer system interface command.
  • the backend storage device comprises a disk cluster device.
  • An embodiment of the present invention further provides a method for writing data, including:
  • the front-end device sends first write information to the control device through the network, where the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device Interconnected with the backend storage device through the network;
  • the address information of the backend storage device sends the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk ;
  • the backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front-end device, the first response information is sent to the control device by using the network; the first response information indicates that the disk of the back-end storage device initiates the received front-end device The response of the write command;
  • the control device generates second response information according to the first response information and the address information of the backend storage device, and sends the second response information to the front end device;
  • the second response information includes the first Response information and address information of the backend storage device;
  • the front-end device receives the second response information sent by the control device by using the network; after obtaining the second response information, the data to be written is passed according to the address information of the back-end storage device. Sending the network to the backend storage device;
  • the backend storage device receives the data to be written and writes the data to be written to the disk.
  • the method before the receiving, by the control device, the first write information sent by the front-end device, the method further includes:
  • the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the receiving, by the control device, the first response information sent by the backend storage device by using the network includes:
  • the backend storage device sends the first response information to the control device by using the network, including:
  • the backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
  • the backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • the same network accessed by the front-end device, the control device, and the back-end storage device is an Ethernet network.
  • the front-end device includes a host, and the host includes an application layer, an operating system layer, and a network adapter that are sequentially connected, and the network adapter includes an Ethernet interface, an adaptation layer, and a bus interface that are sequentially connected, and the bus interface is accessed.
  • System layer As shown in FIG. 13, the control device includes a processor, a memory, an adaptation layer, and an Ethernet interface connected to the adaptation layer, and the processor is respectively connected to the memory and the adaptation layer.
  • the backend storage device is a disk cluster device, and the disk cluster device includes an Ethernet interface, an adaptation layer, and a disk that are sequentially connected.
  • the embodiment of the present invention includes three parts, the first part is a disk cluster discovery disk, the second part is a control device discovering a disk cluster and a disk in a disk cluster, and the third part is a host discovery controller and a controller. Controlled disk.
  • the first part can specifically include:
  • the SAS address is automatically reported to the adaptation layer of the disk cluster, and the adaptation layer establishes the disk SAS address table. See Table 1:
  • the second part can specifically include:
  • the control device discovers the disks in the disk cluster and the disk cluster
  • the disk mounted below is scanned
  • the control device sends a broadcast packet to each disk cluster, and reports that the disk in each disk cluster is reported;
  • Each disk cluster s response information, and the response information includes a MAC address of the disk cluster and a disk SAS address table in the disk cluster;
  • the control device adaptation layer records the SAS address reported to the disk and virtualizes the disk.
  • the virtual disk is also numbered according to the SAS address mode, and the real disk and virtual disk are created.
  • the third part can specifically include:
  • the host side configures a controllable MAC address of the control device and establishes a connection
  • the host sends a command to the control device to report the controllable disk
  • the disk returns a response message, and the response message includes a virtual disk SAS address
  • the host adds the disk to the operating system according to the number of the quaternary ⁇ host:channel:id:lun>.
  • mapping table of the quaternion, the virtual disk SAS address, and the control device MAC address is established.
  • the mapping relationship table is shown in Table 3:
  • Table 3 Mapping table of quaternion, control device address and disk address
  • the front end device in FIG. 2 includes a host, the control device includes a controller, and the back end storage device includes a JBOD.
  • the host sends a read command to the controller: the host's network adapter receives the read data SCSICommod, and the query table 3 finds the destination's logic SAS address and controller MAC address.
  • the host's network adapter fills the Command frame with the logic SAS address and SCSI Commond, and then encapsulates the Command frame in the MAC frame and sends it to the corresponding controller.
  • the controller sends a read command to the JBOD: the adaptation layer of the controller receives the MAC frame sent by the host, and the adaptation layer of the controller parses out the SCSI Commond and the logic SAS address, and the query table 2 finds Corresponding JBOD MAC address and physical SAS address; The adaptation layer of the controller packs the physical SAS address, the host MAC address, and the SCSI Commond into a Command frame, and then encapsulates the Command frame in the MAC frame and sends it to the corresponding JBOD.
  • 3JBOD sends data to the host through the network: the adaptation layer of JBOD receives the MAC frame sent by the controller, the adaptation layer of JBOD parses out the SCSI Commond, physical SAS address and the host MAC address; the adaptation layer of JBOD translates the SCSI Commond into SAS Command, forwarded to the corresponding disk; the disk returns data to the adaptation layer of JBOD, and the adaptation layer of JBOD packs the data into a DATA frame and encapsulates it in a MAC frame, where the target MAC address is the host MAC address, which will be encapsulated The subsequent data is sent directly to the host through the network.
  • the 4JBOD sends an execution completion response to the controller and the host respectively: the JBOD adaptation layer first packs the disk response information into a Response frame, and then encapsulates the Response frame in the MAC frame and sends it to the controller and the host respectively.
  • the front end device in FIG. 8 includes a host, the control device includes a controller, and the back end storage device includes a JBOD.
  • the host sends a write command to the controller: the host's network adapter receives the SCSI Commod that writes the data, the query table 3 finds the destination's logic SAS address and the controller MAC address; the primary network adapter fills the logic SAS address and the SCSI Commond into the Command frame. The Command frame is then encapsulated in a MAC frame and sent to the corresponding controller.
  • the controller sends a write command to the JBOD: the controller adaptation layer receives the MAC frame, parses out the SCSI Commond and the logic SAS address, and the query table 2 finds the corresponding JBOD MAC address and the physical SAS address; the controller adaptation layer will be the physical SAS Address, SCSI Commond is packaged into a Command frame, and then the Command frame is encapsulated in a MAC frame and sent to the corresponding JBOD.
  • 3JBOD responds to the controller by waiting for Ready: JBOD's adaptation layer receives the MAC frame sent by the controller, and the JBOD adaptation layer parses out the SCSI Commond and physical SAS address; and translates the SCSI Commond into SAS Commond and forwards it to disk. The disk is replied to the adaptation layer XFER_RDY of JBOD, and the adaptation layer of JBOD packs XFER_RDY into a Response frame and encapsulates it in a MAC frame and sends it to the corresponding controller.
  • the controller sends a response to the host: the adaptation layer of the controller receives the MAC sent by the JBOD. Frame, the adaptation layer of the controller parses out the XFER_RDY response, packs the XFER_RDY and JBOD MAC address into a Response frame, and encapsulates it in a MAC frame and sends it to the host.
  • the host sends the data to the JBOD: the adaptation layer of the host receives the MAC frame sent by the controller, and the adaptation layer of the host parses the XFER_RDY response, packs the data to be written into a DATA frame, and encapsulates it in the MAC frame and sends it to the JBOD. .
  • the 6JBOD sends a response to the completion of the execution to the controller and the host: the JBOD adaptation layer receives the MAC frame, and the JBOD adaptation layer parses the write data and forwards it to the target disk; after the write is completed, the disk responds to the adaptation layer by the write completion.
  • the JBOD adaptation layer packs the disk response information into a Response frame, and encapsulates it in the MAC frame and sends it to the controller and the host respectively.
  • an embodiment of the present invention provides a control device 1001, including:
  • the receiving unit 1002 is configured to receive, by using a network, first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, where the read command is to be read.
  • the data is stored on a disk of the backend storage device; the control device 1001, the front end device and the backend storage device are interconnected by the network;
  • the processing unit 1003 is configured to acquire address information of the backend storage device to which the disk belongs and the disk according to the logical interface address information of the disk in the first read information received by the receiving unit 1002. Physical interface address information;
  • the sending unit 1004 is configured to send the second read information to the backend storage device according to the address information of the backend storage device acquired by the processing unit 1003, where the second read information includes the read command
  • the address information of the front-end device and the physical interface address information of the disk so that the back-end storage device receives the second read information sent by the control device 1001 through the network, and according to the disk
  • the physical interface address information is used to search for data to be read in the disk, and to send the found data to be read to the front-end device through the network according to the address information of the front-end device.
  • the processing unit 1003 is configured to obtain address information of the backend storage device to which the disk belongs according to the logical interface address information of the disk in the first read information received by the receiving unit 1002.
  • the physical interface address information of the disk includes:
  • the method is: acquiring the disk according to logical interface address information and mapping relationship information of the disk Address information of the associated backend storage device and physical interface address information of the disk, the mapping relationship information is used to indicate logical interface address information of the disk and physical interface address information of the disk and the backend storage Correspondence between address information of devices.
  • the sending unit 1004 is further configured to: before the receiving unit 1002 receives the first read information sent by the front end device by using the network, send a broadcast packet to the backend storage device, where the broadcast packet is used to The backend storage device reports the backend storage device information to the control device 1001, where the backend storage device information includes address information of the backend storage device and a physical interface address of a disk of the backend storage device. information;
  • the receiving unit 1002 is further configured to receive the backend storage device information reported by the backend storage device;
  • the processing unit 1003 is further configured to: after the receiving unit 1002 receives the backend storage device information reported by the backend storage device, establish logical interface address information of the disk and physical interface address information of the disk Corresponding relationship between the address information of the backend storage device.
  • the embodiment of the present invention further provides a backend storage device 1101, including:
  • the receiving unit 1102 is configured to receive, by using the network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk;
  • the read data is stored on a disk of the backend storage device; the control device, the front end device and the backend storage device are interconnected by the network;
  • the searching unit 1103 is configured to: after the receiving unit 1102 receives the second read information, search for data to be read in the disk according to physical interface address information of the disk;
  • a sending unit 1104 after the searching unit 1103 finds the data to be read in the disk, according to the address information of the front-end device, sends the searched data to be searched through the network to the The front-end device.
  • the backend storage device further includes: an obtaining unit, where the acquiring unit is configured to: before the receiving unit 1102 receives the second read information sent by the control device by using the network, Obtaining the physical interface address information of the disk when the storage device is started;
  • the sending unit 1104 is further configured to: when the receiving unit 1102 receives the sending by the control device
  • the backend storage device information is reported to the control device, and the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device.
  • the sending unit 1104 is further configured to receive, by using the network, second read information that is sent by the control device in a multimedia access control MAC frame format;
  • the sending unit 1104 is further configured to send, by using the network, the searched data to be read by the network to the front-end device in the form of the MAC frame according to an address of the front-end device.
  • the searching unit 1103 is further configured to: after the receiving unit 1102 receives the read command, convert the small computer system interface command into a string if the read command is a small computer system interface command Connect the small computer system interface commands;
  • the searching unit 1103 is configured to search for data to be read in the disk according to the physical interface address of the disk, including:
  • the backend storage device comprises a disk cluster device.
  • the embodiment of the present invention further provides a front end device 1201, including:
  • the sending unit 1203 is configured to send, by using a network, first read information to the control device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
  • the receiving unit 1202 is configured to receive, by the network, the data to be read sent by the backend storage device after the sending unit 1203 sends the first read information to the control device by using the network.
  • the sending unit 1203 is configured to send the first read information to the control device by using the network, including:
  • an embodiment of the present invention further provides a storage system, including the foregoing embodiment.
  • the control device, the backend storage device described in the above embodiment, and the front-end device described in the foregoing embodiment, the control device, the front-end device, and the back-end storage device are interconnected through the same network.
  • a storage system includes:
  • the front end device is configured to send first read information to the control device over the network; wherein the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
  • the control device is configured to receive, by using the network, the first read information sent by the front-end device, and obtain, according to the logical interface address information of the disk, address information of the back-end storage device to which the disk belongs and the disk The physical interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, an address of the front end device Information and physical interface address information of the disk;
  • the backend storage device is configured to receive, by the network, the second read information sent by the control device, and search for data to be read in the disk according to physical interface address information of the disk, and And according to the address information of the front-end device, the found data to be read is sent to the front-end device through the network.
  • the control device acquires, according to the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk, including:
  • the control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  • control device is further configured to: before receiving the first read information sent by the front end device by using the network, send a broadcast packet to the backend storage device, where the broadcast packet is used to make the The end storage device reports the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the backend storage device is further configured to receive a broadcast packet sent by the control device, and send the control The device reports the backend storage device information, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the control device is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
  • control device receives, by using a network, the first read information sent by the front-end device, including:
  • the control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
  • the control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
  • the control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a PCIe network.
  • a control device 1801 includes a receiving unit 1802, a processing unit 1804, and a transmitting unit 1803.
  • the receiving unit 1802 is configured to receive first write information sent by the front end device by using a network; the first write information includes a write command and logical interface address information of a disk of the backend storage device; the control device, the front end device Interconnecting with the backend storage device through the network;
  • the processing unit 1804 is configured to acquire, according to the logical interface address information of the disk that is included in the first response information received by the receiving unit 1802, address information of the backend storage device to which the disk belongs and physical of the disk Interface address information;
  • the sending unit 1803 is configured to send the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and
  • the physical interface address information of the disk is such that the backend storage device receives the second write information sent by the control device through the network, and searches for the disk according to the physical interface address information of the disk. And generating first response information, and according to the address letter of the front end device Transmitting, by the network, the first response information to the control device; the first response information indicating a response of a disk of the backend storage device to a received write command initiated by the front end device;
  • the receiving unit 1802 is further configured to receive first response information that is sent by the backend storage device by using the network;
  • the processing unit 1804 generates second response information according to the first response information and address information of the backend storage device, where the second response information includes first response information and address information of the backend storage device. ;
  • the sending unit 1803 is further configured to send the second response information to the front end device, so that the front end device receives the second response information, and the data to be written according to the address information of the backend storage device Sending to the backend storage device such that the backend storage device receives the data to be written and writes the data to be written to the disk.
  • the sending unit 1803 is further configured to send a broadcast packet to the backend storage device before the receiving unit 1802 receives the first write information sent by the front end device by using the network, where the broadcast packet is used to make a
  • the backend storage device reports the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device.
  • the receiving unit 1802 is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage. Correspondence between address information of devices.
  • the receiving unit 1802 is further configured to receive first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network.
  • the receiving unit 1802 is further configured to receive, by using a network, first write information that is sent by the front end device in the form of a multimedia access control MAC frame.
  • a front end device 1901 includes a transmitting unit 1902 and a receiving unit 1903.
  • the sending unit 1902 is configured to send first write information to the control device by using a network, where the first write information includes a write command and logical interface address information of a disk of the backend storage device, so that the control device receives the first Write information, and obtain the disk according to the logical interface address information of the disk The address information of the associated backend storage device and the physical interface address information of the disk; and sending the second write information to the backend storage device according to the address information of the backend storage device, the second write The information includes the write command, the address information of the front-end device, and the physical interface address information of the disk, so that the back-end storage device receives the second write information sent by the control device by using the network, and And searching for the disk according to the physical interface address information of the disk, and generating first response information, and sending, by using the network, the first response information to the control device according to the address information of the front-end device The first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device;
  • the receiving unit 1902 is configured to receive, by using a network, second response information that is sent by the control device.
  • the sending unit 1903 is configured to: after the receiving unit receives the second response information, send the data to be written to the backend storage device according to the address information of the backend storage device, so that the back end The storage device receives the data to be written and writes the data to be written to the disk.
  • the receiving unit 1902 is further configured to receive, by using a network, second response information that is sent by the control device in the form of a multimedia access control MAC frame.
  • the sending unit 1903 is further configured to send the first write information in the form of a multimedia access control MAC frame to the control device by using the network.
  • a backend storage device 2001 includes a transmitting unit 2003, a processing unit 2004, and a receiving unit 2002.
  • the receiving unit 2002 is configured to receive, by using a network, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and a physical interface of the disk of the backend storage device. Address information; the control device, the front end device, and the backend storage device are interconnected by the network;
  • the processing unit 2004 is configured to: according to the physicality of the disk received by the receiving unit 2002
  • the interface address information is used to find the disk and generate first response information;
  • the first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device;
  • the sending unit 2003 is configured to send the first response information to the control device by using the network, where the first response information indicates a response of the disk of the backend storage device 2001 to the received write command initiated by the front end device;
  • the receiving unit 2002 is further configured to: after the sending unit 2003 sends the first response information to the control device by using the network, the backend storage device 2001 receives, by using the network, the sending by the front-end device. Data to be written by the front-end device, and the data to be written is written to the disk.
  • the sending unit 2003 is further configured to send, by using the network, the first response information to the control device in a multimedia access control MAC frame format;
  • the receiving unit 2002 is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
  • the backend storage device 2001 includes a disk cluster device.
  • a storage system includes: a control device as described in FIG. 18, a front end device as described in FIG. 19, and a backend storage device as described in FIG. 20, the control device, the The front-end device and the back-end storage device are interconnected through the same network.
  • the storage system includes:
  • a front-end device configured to send first write information to the control device by using a network, where the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device, and the back end
  • the storage devices are interconnected by the network;
  • control device configured to receive the first write information, and obtain, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and physical interface address information of the disk;
  • the address information of the backend storage device is sent to the backend storage device, where the second write information includes the write command, address information of the front end device, and a physical interface address of the disk. information;
  • a backend storage device configured to receive, by using the network, the second write sent by the control device And searching for the disk according to the physical interface address information of the disk, and generating first response information, and sending the first response information to the network through the network according to the address information of the front end device.
  • a control device configured to search for the disk according to the physical interface address information of the disk, and generating first response information, and sending the first response information to the network through the network according to the address information of the front end device.
  • the control device is further configured to generate second response information according to the first response information and address information of the backend storage device, and send the second response information to the front end device; the second response information include first response information and address information of the backend storage device;
  • the front-end device is further configured to receive, by using the network, the second response information that is sent by the control device; after obtaining the second response information, according to address information of the back-end storage device, Data is sent to the backend storage device through the network;
  • the backend storage device receives the data to be written and writes the data to be written to the disk.
  • control device is further configured to: before receiving, by the network, the first write information sent by the front-end device, send a broadcast packet to the back-end storage device, where the broadcast packet is used to cause the back-end storage device to The control device reports the backend storage device information, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device;
  • the backend storage device is further configured to receive the broadcast packet sent by the control device, and report the backend storage device information to the control device;
  • the control device is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
  • control device is further configured to receive, by the backend storage device, the first response information that is sent by using the multimedia access control MAC frame in the network;
  • control device is further configured by the control device to receive, by using the network, the first write information that is sent by the front end device in a multimedia access control MAC frame format;
  • the front end device is further configured to receive, by using the network, the second response information that is sent by the control device in a multimedia access control MAC frame format;
  • the front end device is further configured to use the network to provide multimedia to the control device.
  • the backend storage device is further configured to send, by using the network, the first response information to the control device in a multimedia access control MAC frame format;
  • the backend storage device is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
  • the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  • the program may be stored in a computer readable storage device, and the storage device may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
  • ROM Read Only Memory
  • RAM Random Access Memory

Abstract

Disclosed are a method and device for reading and writing data, and a storage system. In the present invention, read or write commands are separated from data, so that forwarding of the read or write commands is controlled by a controller, and data to be read or written is not transmitted through the controller but is directly transmitted by a front-end device and a back-end storage device, and therefore the transmission efficiency is improved, and burdens on the controller are reduced.

Description

一种读、写数据的方法及设备、存储系统Method and device for reading and writing data, storage system 技术领域Technical field
本发明涉及信息处理领域,具体涉及一种读、写数据的方法及设备、存储系统。The present invention relates to the field of information processing, and in particular, to a method and device for reading and writing data, and a storage system.
背景技术Background technique
如图1所示,存储系统包括了前端设备、控制设备和后端存储设备。其中,前端设备通过前端网络与控制设备连接,不同的控制设备通过控制网络连接,控制设备通过后端网络与后端存储设备连接;前端设备可以包括主机(Host),控制设备可以包括控制器、缓存和主机总线适配器(Host Bus Adapter,HBA)接口。As shown in FIG. 1, the storage system includes a front end device, a control device, and a back end storage device. The front-end device is connected to the control device through the front-end network, and the different control devices are connected to the back-end storage device through the back-end network by controlling the network connection; the front-end device may include a host, and the control device may include a controller, The cache interfaces with the Host Bus Adapter (HBA).
目前,前端网络一般采用光纤信道(英文:Fiber Channel,缩写:FC)、以太网(英文:Ethernet,缩写:Eth)等网络,主要通过交换机(英文:Switch)将属于前端设备的主机与控制设备的前端卡互联。控制网络一般采用快捷外设互联标准(Peripheral Component Interconnect Express,PCIe)网络。后端网络一般采用串行连接SCSI接口(英文:Serial Attached SCSI,缩写:SAS)电缆将控制设备与磁盘框连接,以及将磁盘框级联,以实现控制设备对后端存储设备的控制访问。At present, the front-end network generally uses a fiber channel (English: Fiber Channel, abbreviation: FC), Ethernet (English: Ethernet, abbreviation: Eth) and other networks, mainly through the switch (English: Switch) will belong to the front-end device host and control equipment The front end card is interconnected. The control network generally uses a Peripheral Component Interconnect Express (PCIe) network. The back-end network generally uses a Serial Attached SCSI (SAS) cable to connect the control device to the disk enclosure and cascade the disk enclosures to control access to the back-end storage devices.
在现有的存储系统中,前端设备和后端存储设备之间的数据传输必须通过前端网络、控制网络和后端网络,也必须通过控制器进行传输,当前端设备和后端存储设备之间传输的数据量较大时,控制器可能出现无法及时处理的情况,从而导致数据的传输效率降低。另外,由于前端网络、控制网络和后端网络分别采用不同类型的网络,网络维护不方便,维护成本高。In an existing storage system, data transmission between the front-end device and the back-end storage device must pass through the front-end network, the control network, and the back-end network, and must also be transmitted through the controller, between the current end device and the back-end storage device. When the amount of data transmitted is large, the controller may be unable to process in time, resulting in a decrease in data transmission efficiency. In addition, since the front-end network, the control network, and the back-end network respectively use different types of networks, network maintenance is inconvenient and maintenance costs are high.
发明内容Summary of the invention
本发明的目的在于提供一种读或写数据的方法及设备、存储系统。本发明通过将读或写命令和数据分离,使得读或写命令由控制器进行控制转发,而所要读取的数据或所要写的数据的并不通过控制器进行传输,而是由前端设备与 后端存储设备直接进行数据传输,提高了传输效率,减小控制器的负担。It is an object of the present invention to provide a method and apparatus for reading or writing data, and a storage system. The invention separates the read or write command from the data, so that the read or write command is controlled and forwarded by the controller, and the data to be read or the data to be written is not transmitted by the controller, but by the front-end device and The back-end storage device directly performs data transmission, which improves transmission efficiency and reduces the burden on the controller.
本发明第一方面提供一种读数据的方法,其包括:A first aspect of the present invention provides a method of reading data, comprising:
控制设备通过网络接收前端设备发送的第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;Receiving, by the network, the first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, where the data to be read by the read command is stored in the On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected through the network;
所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
所述控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。The control device sends the second read information to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, the address information of the front end device, and the The physical interface address information of the disk is such that the backend storage device receives the second read information sent by the control device by using the network, and searches for the disk according to the physical interface address information of the disk. The data to be read, and the data to be read, which is found by the network, are sent to the front-end device according to the address information of the front-end device.
结合本发明第一方面,在第一方面的第一种可能实现方式中,所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:With reference to the first aspect of the present invention, in a first possible implementation manner of the first aspect, the control device acquires, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and the Physical interface address information of the disk, including:
所述控制设备根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
结合本发明第一方面或第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,在所述控制设备通过网络接收前端设备发送的第一读信息之前,所述方法还包括:With the first aspect of the present invention or the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, before the control device receives the first read information sent by the front end device by using the network, The method also includes:
所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息; The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
结合本发明第一方面、第一方面的第一或第二种可能实现方式,在第一方面的第三种可能实现方式中,所述控制设备通过网络接收前端设备发送的第一读信息,包括:With reference to the first aspect of the present invention, the first or second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the control device receives, by using a network, the first read information sent by the front end device, include:
控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息;The control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,包括:The control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
控制设备根据所述后端存储设备的地址信息,将第二读信息以所述MAC帧形式发送给所述后端存储设备。The control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
结合本发明第一方面或第一方面的第一至第三任意一种可能实现方式,在第一方面的第四种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。With reference to the first aspect of the present invention or any one of the first to the third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the network includes any one of the following networks: a fiber channel network, Ethernet, fast peripherals interconnect standard PCIe network.
本发明第二方面提供一种读数据的方法,包括:A second aspect of the present invention provides a method of reading data, including:
后端存储设备通过网络接收控制设备发送的第二读信息,所述第二读信息包括读命令、前端设备的地址信息和磁盘的物理接口地址信息;所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The backend storage device receives, by using a network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
所述后端存储设备根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找的所要读取的数据发送给所述前端设备。The backend storage device searches for data to be read in the disk according to physical interface address information of the disk, and searches for data to be read through the network according to address information of the front-end device. Sent to the front end device.
结合本发明第二方面,在第二方面的第一种可能实现方式中,在所述后端存储设备通过所述网络接收所述控制设备发送的第二读信息之前,所述方法还包括:With reference to the second aspect of the present invention, in a first possible implementation manner of the second aspect, before the receiving, by the back end storage device, the second read information sent by the control device by using the network, the method further includes:
当所述后端存储设备启动时,所述后端存储设备获取所述磁盘的物理接口 地址信息;When the backend storage device is booted, the backend storage device acquires a physical interface of the disk Address information;
当所述后端存储设备接收到所述控制设备发送的广播包时,向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。When the backend storage device receives the broadcast packet sent by the control device, the backend storage device information is reported to the control device, where the backend storage device information includes the address information and the location of the backend storage device. The physical interface address information of the disk of the backend storage device.
结合本发明第二方面或第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述后端存储设备通过所述网络接收所述控制设备发送的第二读信息,包括:With reference to the second aspect of the present invention or the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the backend storage device receives, by using the network, the second sent by the control device Read information, including:
所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二读信息;Receiving, by the backend storage device, the second read information sent by the control device in the form of a multimedia access control MAC frame by using the network;
所述后端存储设备根据所述前端设备的地址,通过所述网络将查找的所要读取的数据发送给所述前端设备,包括:The back-end storage device sends, to the front-end device, the data to be read by the network, according to the address of the front-end device, including:
所述后端存储设备根据所述前端设备的地址,通过所述网络将查找的所要读取的数据以所述MAC帧形式发送给所述前端设备。The backend storage device sends the data to be read by the network to the front end device in the form of the MAC frame according to the address of the front end device.
结合本发明第二方面、第二方面的第一或第二种可能实现方式,在第二方面的第三种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。With reference to the second aspect of the present invention, the first or second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the network includes any one of the following networks: a fiber channel network, an Ethernet network Fast peripheral interconnect standard PCIe network.
本发明第三方面提供一种读数据的方法,其包括:A third aspect of the present invention provides a method of reading data, including:
前端设备通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends the first read information to the control device through the network; wherein the first read information includes a read command and logical interface address information of a disk of the back-end storage device, and the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
所述控制设备通过所述网络接收所述前端设备发送的第一读信息,以及根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,以及根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;Receiving, by the network, the first read information sent by the front-end device, and acquiring the address information of the back-end storage device to which the disk belongs and the physicality of the disk according to the logical interface address information of the disk The interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, address information of the front end device, and Physical interface address information of the disk;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信 息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。Receiving, by the backend storage device, the second read message sent by the control device by using the network And searching for the data to be read in the disk according to the physical interface address information of the disk, and sending, according to the address information of the front-end device, the found data to be read through the network to The front end device.
结合本发明第三方面,在第三方面的第一种可能实现方式中,所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:With reference to the third aspect of the present invention, in a first possible implementation manner of the third aspect, the control device acquires, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and the Physical interface address information of the disk, including:
所述控制设备根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
结合本发明第三方面或第三方面的第一种可能实现方式,在第三方面的第二种可能实现方式中,在所述控制设备通过所述网络接收所述前端设备发送的第一读信息之前,所述方法还包括:With reference to the third aspect of the present invention or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the control device receives, by using the network, the first read sent by the front end device Before the information, the method further includes:
所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述后端存储设备接收所述控制设备发送的广播包,并向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and the Physical interface address information of the disk of the end storage device;
所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
结合本发明第三方面、第三方面的第一或第二种可能实现方式,在第三方面的第三种可能实现方式中,所述控制设备通过网络接收前端设备发送的第一读信息,包括:With reference to the third aspect of the present invention, the first or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the control device receives, by using a network, the first read information sent by the front end device, include:
控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息; The control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,包括:The control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
控制设备根据所述后端存储设备的地址信息,将第二读信息以所述MAC帧形式发送给所述后端存储设备。The control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
结合本发明第三方面或第三方面的第一至第三任意一种可能实现方式,在第三方面的第四种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。With reference to the third aspect of the present invention or any one of the first to the third possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the network includes any one of the following networks: a fiber channel network, Ethernet, fast peripherals interconnect standard PCIe network.
本发明第四方面提供一种写数据的方法,其包括:A fourth aspect of the present invention provides a method of writing data, including:
控制设备通过网络接收前端设备发送的第一写信息;所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The control device receives, by using a network, first write information sent by the front-end device; the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device, and the back end The storage devices are interconnected by the network;
所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
所述控制设备根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and the disk The physical interface address information is such that the backend storage device receives the second write information sent by the control device through the network, and finds the disk according to the physical interface address information of the disk, and generates First response information, and transmitting, by the network, the first response information to the control device according to address information of the front end device; the first response information indicating a disk pair reception of the backend storage device a response to a write command initiated by the front end device;
所述控制设备接收所述后端存储设备通过网络发送的第一响应信息;Receiving, by the control device, first response information that is sent by the backend storage device through a network;
所述控制设备在接收到所述第一响应信息之后,根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;After receiving the first response information, the control device generates second response information according to the first response information and the address information of the backend storage device, where the second response information includes the first response information. And address information of the backend storage device;
所述控制设备将第二响应信息发送给所述前端设备,使得所述前端设备接收到所述第二响应信息,根据所述后端存储设备的地址信息,将所要写的数据通过所述网络发送给所述后端存储设备,使得所述后端存储设备接收到所要写 的数据,并将所要写的数据写入所述磁盘。The control device sends the second response information to the front-end device, so that the front-end device receives the second response information, and passes the data to be written through the network according to the address information of the back-end storage device. Sending to the backend storage device, so that the backend storage device receives the desired write Data and write the data to be written to the disk.
结合本发明第四方面,在第四方面的第一种可能实现方式中,在所述控制设备接收所述后端存储设备通过所述网络发送的第一响应信息之前,所述方法还包括:With reference to the fourth aspect of the present invention, in a first possible implementation manner of the fourth aspect, before the control device receives the first response information that is sent by the backend storage device by using the network, the method further includes:
控制设备通过网络接收前端设备发送的第一写信息;其中,所述第一写信息包括所述写命令和所述后端存储设备的磁盘的逻辑接口地址信息;Receiving, by the network, the first write information sent by the front-end device, where the first write information includes the write command and logical interface address information of a disk of the back-end storage device;
控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
控制设备根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备。The control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, the address information of the front end device, and the disk The physical interface address information is such that the backend storage device receives the second write information sent by the control device through the network, and finds the disk according to the physical interface address information of the disk, and generates The first response information, and the first response information is sent to the control device through the network according to the address information of the front end device.
结合本发明第四方面的第一种可能实现方式,在第四方面的第二种可能实现方式中,所述控制设备接收所述后端存储设备通过所述网络发送的第一响应信息,包括:With reference to the first possible implementation manner of the fourth aspect of the present invention, in a second possible implementation manner of the fourth aspect, the control device receives the first response information that is sent by the backend storage device by using the network, including :
所述控制设备接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的第一响应信息;Receiving, by the control device, first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network;
所述控制设备通过所述网络接收所述前端设备发送的第一写信息,包括:Receiving, by the control device, the first write information sent by the front end device by using the network, including:
所述控制设备通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的第一写信息。The control device receives, by using the network, first write information that is sent by the front end device in the form of a multimedia access control MAC frame.
结合本发明第四方面、第四方面的第一或第二种可能实现方式,在第四方面的第三种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。With reference to the fourth aspect of the present invention, the first or second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the network includes any one of the following networks: a fiber channel network, an Ethernet network Fast peripheral interconnect standard PCIe network.
本发明第五方面提供一种写数据的方法,其包括:A fifth aspect of the present invention provides a method of writing data, including:
前端设备通过网络向控制设备发送第一写信息,所述第一写信息包括写命 令和后端存储设备的磁盘的逻辑接口地址信息,使得所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,并将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends first write information to the control device through the network, where the first write information includes a write And the logical interface address information of the disk of the backend storage device, so that the control device receives the first write information, and obtains the address of the backend storage device to which the disk belongs according to the logical interface address information of the disk. And the physical interface address information of the disk; and sending, according to the address information of the backend storage device, the second write information to the backend storage device, where the second write information includes the write command and the The address information of the front-end device and the physical interface address information of the disk, so that the back-end storage device receives the second write information sent by the control device through the network, and according to the physical interface address of the disk Information, the disk is found, and the first response information is generated, and the first response information is sent to the control device by using the network according to the address information of the front-end device; the first response information is represented by a response of the disk of the backend storage device to the received write command initiated by the front end device; the control device according to the first Generating second response information according to the information and the address information of the backend storage device, and sending the second response information to the front end device; the second response information includes first response information and the backend storage device Address information; the control device, the front-end device, and the back-end storage device are interconnected by the network;
所述前端设备通过所述网络接收所述控制设备发送的第二响应信息;并根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所要写的数据,并将所要写的数据写入所述磁盘。The front-end device receives the second response information sent by the control device by using the network, and sends the data to be written to the back-end storage device according to the address information of the back-end storage device, so that the The end storage device receives the data to be written and writes the data to be written to the disk.
结合本发明第五方面,在第五方面的第一种可能实现方式中,所述前端设备通过网络接收所述控制设备发送的第二响应信息,包括:With reference to the fifth aspect of the present invention, in a first possible implementation manner of the fifth aspect, the front end device, by using the network, the second response information that is sent by the control device, includes:
所述前端设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二响应信息;Receiving, by the front end device, the second response information that is sent by the control device in the form of a multimedia access control MAC frame by using the network;
所述前端设备通过所述网络向所述控制设备发送第一写信息,包括:Sending, by the front-end device, the first write information to the control device by using the network, including:
所述前端设备通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息。The front-end device sends the first write information to the control device in the form of a multimedia access control MAC frame through the network.
结合本发明第五方面或第五方面的第一种可能实现方式,在第五方面的第二种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。With reference to the fifth aspect of the present invention or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the network includes any one of the following networks: a fiber channel network, an Ethernet, and a shortcut Set up an interconnected standard PCIe network.
本发明第六方面提供一种写数据的方法,其包括: A sixth aspect of the present invention provides a method of writing data, including:
后端存储设备通过网络接收控制设备发送的所述第二写信息,所述第二写信息包括所述写命令、前端设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;Receiving, by the network device, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk of the backend storage device; The control device, the front end device, and the backend storage device are interconnected by the network;
所述后端存储设备根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The backend storage device searches for the disk according to the physical interface address information of the disk, and generates first response information; the first response information indicates that the disk of the backend storage device receives the received The response of the write command initiated by the front-end device;
所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备;其中,所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应,所述后端存储设备的磁盘用于写入所述写命令所要写的数据;Transmitting, by the backend storage device, the first response information to the control device by using the network, where the first response information indicates that the disk of the backend storage device initiates writing to the received front end device In response to the command, the disk of the backend storage device is used to write data to be written by the write command;
在所述后端存储设备通过网络将第一响应信息发送给所述控制设备之后,所述后端存储设备通过所述网络接收所述前端设备发送的所述前端设备所要写的数据,并将所述所要写的数据写入所述磁盘。After the backend storage device sends the first response information to the control device through the network, the backend storage device receives, by the network, data to be written by the front end device sent by the front end device, and The data to be written is written to the disk.
结合本发明第六方面,在第六方面的第一种可能实现方式中,所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备,包括:With reference to the sixth aspect of the present invention, in a first possible implementation manner of the sixth aspect, the back-end storage device sends the first response information to the control device by using the network, including:
所述后端存储设备通过所述网络将所述第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;The backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,包括:Receiving, by the backend storage device, the second write information sent by the control device by using the network, including:
所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
结合本发明第六方面或第六方面的第一种可能实现方式,在第六方面的第二种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。With reference to the sixth aspect of the present invention or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a shortcut Set up an interconnected standard PCIe network.
本发明第七方面提供一种写数据的方法,其包括:A seventh aspect of the present invention provides a method of writing data, including:
前端设备通过网络向控制设备发送第一写信息,所述第一写信息包括写命 令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends first write information to the control device through the network, where the first write information includes a write And logical interface address information of the disk of the backend storage device; the control device, the front end device, and the backend storage device are interconnected by the network;
所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;Receiving, by the control device, the first write information, and acquiring, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and physical interface address information of the disk; The address information of the backend storage device sends the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk ;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front-end device, the first response information is sent to the control device by using the network; the first response information indicates that the disk of the back-end storage device initiates the received front-end device The response of the write command;
所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,以及将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;The control device generates second response information according to the first response information and the address information of the backend storage device, and sends the second response information to the front end device; the second response information includes the first Response information and address information of the backend storage device;
所述前端设备通过所述网络接收所述控制设备发送的所述第二响应信息;在获得所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据通过所述网络发送给所述后端存储设备;The front-end device receives the second response information sent by the control device by using the network; after obtaining the second response information, the data to be written is passed according to the address information of the back-end storage device. Sending the network to the backend storage device;
所述后端存储设备接收所要写的数据,并将所要写的数据写入所述磁盘。The backend storage device receives the data to be written and writes the data to be written to the disk.
结合本发明第七方面,在第七方面的第一种可能实现方式中,在所述控制设备通过网络接收前端设备发送的第一写信息之前,所述方法还包括:With reference to the seventh aspect of the present invention, in a first possible implementation manner of the seventh aspect, before the receiving, by the control device, the first write information sent by the front end device, the method further includes:
所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述后端存储设备接收所述控制设备发送的所述广播包,并向所述控制设备上报所述后端存储设备信息; Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device;
所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
结合本发明第七方面或第七方面的第一种可能实现方式,在第七方面的第二种可能实现方式中,所述控制设备接收所述后端存储设备通过所述网络发送的第一响应信息,包括:With reference to the seventh aspect of the present invention or the first possible implementation manner of the seventh aspect, in a second possible implementation manner of the seventh aspect, the control device receives, by the back end storage device, the first sent by the network Response information, including:
所述控制设备接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的所述第一响应信息;Receiving, by the control device, the first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network;
所述控制设备通过所述网络接收所述前端设备发送的第一写信息,包括:Receiving, by the control device, the first write information sent by the front end device by using the network, including:
所述控制设备通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的所述第一写信息;Receiving, by the control device, the first write information that is sent by the front end device in the form of a multimedia access control MAC frame by using the network;
所述前端设备通过所述网络接收所述控制设备发送的第二响应信息,包括:Receiving, by the network device, the second response information sent by the control device by using the network, including:
所述前端设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二响应信息;Receiving, by the front end device, the second response information that is sent by the control device in a form of a multimedia access control MAC frame by using the network;
所述前端设备通过所述网络向所述控制设备发送第一写信息,包括:Sending, by the front-end device, the first write information to the control device by using the network, including:
所述前端设备通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息;Sending, by the front-end device, the first write information to the control device in the form of a multimedia access control MAC frame through the network;
所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备,包括:The backend storage device sends the first response information to the control device by using the network, including:
所述后端存储设备通过所述网络将第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;The backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,包括:Receiving, by the backend storage device, the second write information sent by the control device by using the network, including:
所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
结合本发明第七方面、第七方面的第一或第二种可能实现方式,在第七方 面的第三种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。In combination with the seventh aspect of the present invention, the first or second possible implementation of the seventh aspect, in the seventh party In a third possible implementation manner, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
本发明第八方面提供一种控制设备,其包括:An eighth aspect of the present invention provides a control device, including:
接收单元,用于通过网络接收前端设备发送的第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;a receiving unit, configured to receive, by using a network, first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
处理单元,用于根据所述接收单元接收到的所述第一读信息中的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;a processing unit, configured to acquire, according to logical interface address information of the disk in the first read information received by the receiving unit, address information of a backend storage device to which the disk belongs and a physical interface of the disk Address information;
发送单元,用于根据所述处理单元获取到的所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。a sending unit, configured to send the second read information to the backend storage device according to the address information of the backend storage device acquired by the processing unit, where the second read information includes the read command and the The address information of the front-end device and the physical interface address information of the disk, so that the back-end storage device receives the second read information sent by the control device through the network, and according to the physical interface address of the disk And searching for data to be read in the disk, and sending, by the network, the found data to be read to the front-end device according to the address information of the front-end device.
结合本发明第八方面,在第八方面的第一种可能实现方式中,处理单元,用于根据所述接收单元接收到的所述第一读信息中的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:With reference to the eighth aspect of the present invention, in a first possible implementation manner of the eighth aspect, the processing unit is configured to: according to the logical interface address information of the disk in the first read information received by the receiving unit, Obtaining the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk, including:
用于:根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。And the information about the address of the backend storage device to which the disk belongs and the physical interface address information of the disk are obtained according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate the Correspondence between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
结合本发明第八方面或第八方面的第一种可能实现方式,在第八方面的第二种可能实现方式中,所述发送单元还用于在所述接收单元通过网络接收前端设备发送的第一读信息之前,向所述后端存储设备发送广播包,所述广播包用 于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;With reference to the eighth aspect of the present invention or the first possible implementation manner of the eighth aspect, in a second possible implementation manner of the eighth aspect, the sending unit is further configured to receive, by the receiving unit, the front end device, Before the first read information, sending a broadcast packet to the backend storage device, where the broadcast packet is used The backend storage device is configured to report the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and a physicality of a disk of the backend storage device Interface address information;
所述接收单元还用于接收所述后端存储设备上报的所述后端存储设备信息;The receiving unit is further configured to receive the backend storage device information reported by the backend storage device;
所述处理单元还用于在所述接收单元接收所述后端存储设备上报的所述后端存储设备信息之后,建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The processing unit is further configured to: after the receiving unit receives the backend storage device information reported by the backend storage device, establish logical interface address information of the disk and physical interface address information of the disk and the The correspondence between the address information of the backend storage device.
本发明第九方面提供一种后端存储设备,其包括:A ninth aspect of the present invention provides a backend storage device, including:
接收单元,用于通过网络接收控制设备发送的第二读信息,所述第二读信息包括读命令、前端设备的地址信息和磁盘的物理接口地址信息;所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;a receiving unit, configured to receive, by using a network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; and data storage to be read by the read command On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
查找单元,用于在所述接收单元接收到所述第二读信息之后,根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据;a searching unit, configured to: after the receiving unit receives the second read information, search for data to be read in the disk according to physical interface address information of the disk;
发送单元,用于在所述查找单元查找到所述磁盘中的所要读取的数据之后,根据所述前端设备的地址信息,通过所述网络将查找的所要读取的数据发送给所述前端设备。a sending unit, configured to send the searched data to be read by the network to the front end according to the address information of the front end device after the searching unit searches for the data to be read in the disk device.
结合本发明第九方面,在第九方面的第一种可能实现方式中,所述后端存储设备还包括:获取单元,所述获取单元用于在所述接收单元通过所述网络接收所述控制设备发送的第二读信息之前,当所述后端存储设备启动时,获取所述磁盘的物理接口地址信息;With reference to the ninth aspect of the present invention, in a first possible implementation manner of the ninth aspect, the back-end storage device further includes: an acquiring unit, where the acquiring unit is configured to receive, by the receiving unit, the network Before the second read information sent by the device is controlled, when the backend storage device is started, acquiring physical interface address information of the disk;
所述发送单元还用于当所述接收单元接收到所述控制设备发送的广播包时,向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。The sending unit is further configured to: when the receiving unit receives the broadcast packet sent by the control device, report the backend storage device information to the control device, where the backend storage device information includes the backend storage device Address information and physical interface address information of the disk of the backend storage device.
结合本发明第九方面或第九方面的第一种可能实现方式,在第九方面的第二种可能实现方式中,所述发送单元用于通过所述网络接收所述控制设备以多 媒体接入控制MAC帧形式发送的第二读信息;With reference to the ninth aspect of the present invention or the first possible implementation manner of the ninth aspect, in the second possible implementation manner of the ninth aspect, the sending unit is configured to receive the control device by using the network Media access control second read information sent in the form of a MAC frame;
所述发送单元用于根据所述前端设备的地址,通过所述网络将查找的所要读取的数据以所述MAC帧形式发送给所述前端设备。The sending unit is configured to send, by using the network, the searched data to be read by the network to the front end device in the form of the MAC frame according to an address of the front end device.
本发明第十方面提供一种前端设备,其包括:A tenth aspect of the present invention provides a front end device, including:
发送单元,用于通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;a sending unit, configured to send first read information to the control device over the network; wherein the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data storage to be read by the read command On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
接收单元,用于在所述发送单元通过所述网络向所述控制设备发送第一读信息之后,通过所述网络接收所述后端存储设备发送的所要读取的数据。a receiving unit, configured to receive, by the network, the data to be read sent by the backend storage device after the sending unit sends the first read information to the control device by using the network.
结合本发明第十方面,在第十方面的第一种可能实现方式中,发送单元,用于通过网络向控制设备发送第一读信息,包括:With the tenth aspect of the present invention, in a first possible implementation manner of the tenth aspect, the sending unit, configured to send the first read information to the control device by using the network, includes:
用于通过网络向控制设备以多媒体接入控制MAC帧形式发送第一读信息。And transmitting, by using a network, the first read information in a form of a multimedia access control MAC frame to the control device.
本发明第十一方面提供一种存储系统,其包括如上所述的控制设备、如上所述的后端存储设备和如上所述的前端设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联。An eleventh aspect of the present invention provides a storage system including the control device as described above, the backend storage device as described above, and the front end device as described above, the control device, the front end device, and the backend storage Devices are interconnected through the same network.
结合本发明第十一方面,在第十一方面的第一种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。In conjunction with the eleventh aspect of the present invention, in a first possible implementation manner of the eleventh aspect, the network includes any one of the following: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
本发明第十二方面提供一种控制设备,其包括:A twelfth aspect of the present invention provides a control device, including:
接收单元、处理单元和发送单元,Receiving unit, processing unit and transmitting unit,
所述接收单元用于通过网络接收前端设备发送的第一写信息;所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit is configured to receive, by using a network, first write information sent by the front end device; the first write information includes a write command and logical interface address information of a disk of the backend storage device; the control device, the front end device, and The backend storage devices are interconnected by the network;
所述处理单元用于根据所述接收单元接收到的第一响应信息包含的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息; The processing unit is configured to acquire, according to the logical interface address information of the disk that is included in the first response information received by the receiving unit, address information of a backend storage device to which the disk belongs and a physical interface address of the disk Information
所述发送单元用于根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的前端设备发起的写命令的响应;The sending unit is configured to send the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and the The physical interface address information of the disk is such that the backend storage device receives the second write information sent by the control device through the network, and searches for the disk according to the physical interface address information of the disk. And generating first response information, and sending, by the network, the first response information to the control device according to the address information of the front end device; the first response information indicating a disk of the backend storage device a response to a received write command initiated by the front end device;
所述接收单元还用于接收所述后端存储设备通过所述网络发送的第一响应信息;The receiving unit is further configured to receive first response information that is sent by the backend storage device by using the network;
所述处理单元根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;The processing unit generates second response information according to the first response information and address information of the backend storage device, where the second response information includes first response information and address information of the backend storage device;
所述发送单元还用于将第二响应信息发送给所述前端设备,使得所述前端设备接收到所述第二响应信息,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。The sending unit is further configured to send the second response information to the front end device, so that the front end device receives the second response information, and sends the data to be written according to the address information of the backend storage device. Giving the backend storage device such that the backend storage device receives the data to be written and writes the data to be written to the disk.
结合本发明第十二方面,在第十二方面的第一种可能实现方式中,所述发送单元还用于在所述接收单元通过所述网络接收所述前端设备发送的第一写信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;In a first possible implementation manner of the twelfth aspect, the transmitting unit is further configured to: before the receiving unit receives the first write information sent by the front end device by using the network, Sending a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes the Address information of the end storage device and physical interface address information of the disk of the backend storage device;
所述接收单元还用于接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The receiving unit is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
结合本发明第十二方面或第十二方面的第一种可能实现方式,在第十二方面的第二种可能实现方式中,所述接收单元还用于接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的第一响应信息; With reference to the twelfth aspect or the first possible implementation manner of the twelfth aspect, in the second possible implementation manner of the twelfth aspect, the receiving unit is further configured to receive the back end storage device Determining, by the network, the first response information sent in the form of a multimedia access control MAC frame;
所述发送单元还用于通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的第一写信息。The sending unit is further configured to receive, by using the network, first write information that is sent by the front end device in a multimedia access control MAC frame format.
本发明第十三方面提供一种前端设备,其包括:A thirteenth aspect of the present invention provides a front end device, including:
发送单元和接收单元,其中,所述发送单元用于通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息,使得所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,并将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;a sending unit and a receiving unit, wherein the sending unit is configured to send, by using a network, first write information to the control device, where the first write information includes a write command and logical interface address information of a disk of the backend storage device, so that the The control device receives the first write information, and obtains address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk; And storing the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk, so that The backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front-end device, sending the first response information to the control device by using the network; The information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device; the control device generates a second according to the first response information and the address information of the backend storage device Responding to the information, and transmitting the second response information to the front end device; the second response information includes first response information and address information of the backend storage device; the control device, the front end device, and the back end The storage devices are interconnected by the network;
所述接收单元用于通过所述网络接收所述控制设备发送的第二响应信息;The receiving unit is configured to receive, by using the network, second response information sent by the control device;
所述发送单元还用于在接收单元接收到所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。The sending unit is further configured to: after the receiving unit receives the second response information, send the data to be written to the backend storage device according to the address information of the backend storage device, so that the back end The storage device receives the data to be written and writes the data to be written to the disk.
结合本发明第十三方面,在第十三方面的第一种可能实现方式中,所述接收单元还用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二响应信息;In a first possible implementation manner of the thirteenth aspect, the receiving unit is further configured to receive, by using the network, the second that is sent by the control device in a multimedia access control MAC frame format. Response information
所述发送单元还用于通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息。 The sending unit is further configured to send, by using the network, the first write information to the control device in the form of a multimedia access control MAC frame.
本发明第十四方面提供一种后端存储设备,其包括:发送单元、处理单元和接收单元,A fourteenth aspect of the present invention provides a backend storage device, including: a sending unit, a processing unit, and a receiving unit,
所述接收单元用于通过网络接收控制设备发送的所述第二写信息,所述第二写信息包括所述写命令、前端设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit is configured to receive, by using a network, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and a physical interface address of the disk of the backend storage device. Information; the control device, the front end device, and the backend storage device are interconnected by the network;
所述处理单元用于根据所述接收单元接收到的所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The processing unit is configured to find the disk according to the physical interface address information of the disk that is received by the receiving unit, and generate first response information; the first response information indicates that the backend storage device is a response of the disk to the received write command initiated by the front end device;
所述发送单元用于通过所述网络将所述第一响应信息发送给所述控制设备;其中,所述第一响应信息表示所述后端存储设备的磁盘对接收到的前端设备发起的写命令的响应;The sending unit is configured to send the first response information to the control device by using the network, where the first response information indicates that the disk of the backend storage device initiates writing to the received front-end device. The response of the command;
所述接收单元还用于在所述发送单元通过网络将所述第一响应信息发送给所述控制设备之后,通过所述网络接收所述前端设备发送的所述前端设备所要写的数据,并将所述所要写的数据写入所述磁盘。The receiving unit is further configured to: after the sending unit sends the first response information to the control device by using a network, receive, by the network, data to be written by the front end device sent by the front end device, and The data to be written is written to the disk.
结合本发明第十四方面,在第十四方面的第一种可能实现方式中,所述发送单元还用于通过所述网络将所述第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;With the fourteenth aspect of the present invention, in a first possible implementation of the fourteenth aspect, the sending unit is further configured to send, by using the network, the first response information to a multimedia access control MAC frame The control device;
所述接收单元还用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The receiving unit is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
本发明第十五方面提供一种存储系统,其包括:包括如第十二方面、第十二方面的第一或第二种提供的控制设备、如第十三方面或第十三方面的第一方面提供的前端设备和如第十四方面或第十四方面的第一方面提供所述的后端存储设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联。A fifteenth aspect of the present invention provides a storage system, comprising: the control device according to the twelfth aspect, the first or second aspect of the twelfth aspect, the thirteenth aspect or the thirteenth aspect The front-end device provided on the one hand and the first aspect of the fourteenth aspect or the fourteenth aspect, wherein the control device, the front-end device and the back-end storage device are interconnected through the same network.
结合本发明第十五方面,在第十五方面的第一种可能实现方式中,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。In conjunction with the fifteenth aspect of the present invention, in a first possible implementation manner of the fifteenth aspect, the network includes any one of the following: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
在本发明中,所述存储系统采用同一网络,控制设备、前端设备和后端存 储设备通过同一网络进行信息传输,支持海量扩展,易于维护,而且本发明通过将读或写命令和数据分离,使得读或写命令由控制器进行控制转发,所要读取的数据或所要写的数据由前端设备与后端存储设备直接进行数据传输,提高了传输效率,减小了控制器的负担。In the present invention, the storage system uses the same network, and the control device, the front-end device, and the back-end storage The storage device transmits information through the same network, supports massive expansion, and is easy to maintain. Moreover, the present invention separates the read or write command from the data, so that the read or write command is controlled and forwarded by the controller, and the data to be read or written is The data is directly transmitted by the front-end device and the back-end storage device, which improves the transmission efficiency and reduces the burden on the controller.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention.
图1是现有的一种存储系统结构示意图;1 is a schematic structural view of a conventional storage system;
图2是当进行读数据时存储系统中的各设备的信息交互示意图;2 is a schematic diagram of information interaction of devices in a storage system when data is read;
图3是本发明实施例提供的一种读数据的方法的流程示意图;3 is a schematic flowchart of a method for reading data according to an embodiment of the present invention;
图4是本发明实施例提供的一种读数据的方法的部分步骤流程示意图;4 is a schematic flowchart of a partial step of a method for reading data according to an embodiment of the present invention;
图5是本发明实施例提供的帧结构示意图;FIG. 5 is a schematic structural diagram of a frame according to an embodiment of the present disclosure;
图6是本发明实施例提供的一种读数据的方法的流程示意图;6 is a schematic flowchart of a method for reading data according to an embodiment of the present invention;
图7是本发明实施例提供的一种读数据的方法的部分步骤流程示意图;7 is a schematic flowchart of a partial process of a method for reading data according to an embodiment of the present invention;
图8是当进行写数据时存储系统中的各设备的信息交互示意图;8 is a schematic diagram of information interaction of devices in a storage system when data is written;
图9是本发明实施例提供的一种写数据的方法的流程示意图;FIG. 9 is a schematic flowchart diagram of a method for writing data according to an embodiment of the present invention;
图10是本发明实施例提供的一种写数据的方法的流程示意图;FIG. 10 is a schematic flowchart diagram of a method for writing data according to an embodiment of the present invention;
图11是本发明实施例提供的一种写数据的方法的流程示意图;FIG. 11 is a schematic flowchart diagram of a method for writing data according to an embodiment of the present invention;
图12是本发明实施例提供的一种前端设备结构示意图;FIG. 12 is a schematic structural diagram of a front end device according to an embodiment of the present invention;
图13是本发明实施例提供的一种控制设备结构示意图;FIG. 13 is a schematic structural diagram of a control device according to an embodiment of the present invention;
图14是本发明实施例提供的一种后端存储设备结构示意图;FIG. 14 is a schematic structural diagram of a backend storage device according to an embodiment of the present disclosure;
图15是本发明实施例提供的一种控制设备结构示意图;15 is a schematic structural diagram of a control device according to an embodiment of the present invention;
图16是本发明实施例提供的一种后端存储设备结构示意图;FIG. 16 is a schematic structural diagram of a backend storage device according to an embodiment of the present disclosure;
图17是本发明实施例提供的一种前端设备结构示意图;17 is a schematic structural diagram of a front end device according to an embodiment of the present invention;
图18是本发明实施例提供的一种控制设备结构示意图;FIG. 18 is a schematic structural diagram of a control device according to an embodiment of the present invention;
图19是本发明实施例提供的一种前端设备结构示意图;19 is a schematic structural diagram of a front end device according to an embodiment of the present invention;
图20是本发明实施例提供的一种后端存储设备结构示意图。 FIG. 20 is a schematic structural diagram of a backend storage device according to an 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 only a part of the embodiments of the present invention, but not all embodiments.
如图2所示,图2展示了本发明实施例方法所应用的存储系统。该存储系统包括:前端设备、控制设备和后端存储设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联;该网络可以为光纤信道网、以太网、PCIe网等支持存储数据交换的网络。前端设备包括主机,控制设备包括控制器、缓存和网络接口,后端存储设备可以为磁盘簇(英文:Just a Bunch Of Disks,缩写:JBOD),具体可以包括网络接口和多个级联的磁盘。As shown in FIG. 2, FIG. 2 illustrates a storage system to which the method of the embodiment of the present invention is applied. The storage system includes: a front-end device, a control device, and a back-end storage device, where the control device, the front-end device, and the back-end storage device are interconnected through the same network; the network may be supported by a Fibre Channel network, an Ethernet, or a PCIe network. A network that stores data exchanges. The front-end device includes a host, and the control device includes a controller, a cache, and a network interface. The back-end storage device may be a cluster of disks (English: Just a Bunch Of Disks, abbreviated as JBOD), and may specifically include a network interface and a plurality of cascaded disks. .
以下列举实施例方法对本发明进行介绍。The invention is described below by way of example methods.
如图3所示,本发明实施例提供一种读数据的方法,包括:As shown in FIG. 3, an embodiment of the present invention provides a method for reading data, including:
201、控制设备通过网络接收前端设备发送的第一读信息。201. The control device receives, by using a network, first read information sent by the front end device.
其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过同一网络互联。The first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command is stored on a disk of the backend storage device; the control device, The front end device and the back end storage device are interconnected through the same network.
在步骤201中,所述后端存储设备可以为磁盘簇设备。所述读命令可以为小型计算机系统接口命令。逻辑接口地址信息用于表示逻辑接口地址;所述逻辑接口地址信息可以为逻辑串行连接小型计算机系统接口地址信息,逻辑串行连接小型计算机系统接口地址信息表示逻辑串行连接小型计算机系统接口地址。物理接口地址信息用于表示物理接口地址;所述物理接口地址信息可以为物理串行连接小型计算机系统接口地址信息,物理串行连接小型计算机系统接口地址信息表示物理串行连接小型计算机系统接口地址。In step 201, the backend storage device may be a disk cluster device. The read command can be a small computer system interface command. The logical interface address information is used to represent a logical interface address; the logical interface address information may be a logical serial connection small computer system interface address information, and the logical serial connection small computer system interface address information indicates a logical serial connection small computer system interface address . The physical interface address information is used to indicate a physical interface address; the physical interface address information may be a physical serial connection small computer system interface address information, and the physical serial connection small computer system interface address information indicates a physical serial connection small computer system interface address .
202、控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息。202. The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk.
控制设备中可以预设有映射关系信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备 的地址信息的对应关系。在接收到第一读信息之后,所述控制设备可以根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息。Mapping information may be pre-configured in the control device, where the mapping relationship information is used to represent logical interface address information of the disk and physical interface address information of the disk and the backend storage device Correspondence of address information. After receiving the first read information, the control device may obtain the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk. .
203、控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设。203. The control device sends the second read information to the backend storage device according to the address information of the backend storage device.
其中,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息。执行步骤203能够使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。The second read information includes the read command, address information of the front end device, and physical interface address information of the disk. The step 203 is configured to enable the backend storage device to receive the second read information sent by the control device by using the network, and search for the to-be read in the disk according to the physical interface address information of the disk. Data, and according to address information of the front-end device, the discovered data to be read is sent to the front-end device through the network.
在本实施例中,读命令由控制设备进行控制转发,后端存储设备在接收到读命令之后,直接向前端设备发送所要读取的数据,而不需借由控制器进行转发,提高了数据传输效率,减小了控制器的负担。In this embodiment, the read command is controlled and forwarded by the control device, and after receiving the read command, the backend storage device directly sends the data to be read to the front-end device without forwarding by the controller, thereby improving the data. Transmission efficiency reduces the burden on the controller.
如图4所示,在所述控制设备通过网络接收前端设备发送的第一读信息之前,所述方法还包括:As shown in FIG. 4, before the control device receives the first read information sent by the front-end device, the method further includes:
301、所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。301, the control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to enable the backend storage device to report the backend storage device information to the control device, where the backend storage device The information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device.
302、所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。302. The control device receives the backend storage device information reported by the backend storage device, and establishes logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
步骤301和302描述了当后端存储设备启动后,控制器发现后端存储设备及后端存储设备的磁盘的过程,以及生成映射关系信息的过程。 Steps 301 and 302 describe the process of the controller discovering the disks of the backend storage device and the backend storage device after the backend storage device is booted, and the process of generating the mapping relationship information.
在本发明实施例中,在前端设备、控制设备和后端存储设备之间的传输协议可以是自定义的私有协议,并将私有协议加载在多媒体接入控制(英文:Media Access Control,缩写:MAC)协议上,直接通过MAC层进行数据传输。 In the embodiment of the present invention, the transmission protocol between the front-end device, the control device, and the back-end storage device may be a customized private protocol, and the private protocol is loaded in the multimedia access control (English: Media Access Control, abbreviation: On the MAC) protocol, data is transmitted directly through the MAC layer.
如图5所示,MAC帧包括三部分:帧头、数据包、帧尾。As shown in FIG. 5, the MAC frame includes three parts: a frame header, a data packet, and a frame tail.
帧头包括:目的MAC地址、源MAC地址、帧类型;其中帧类型标志上一层使用的是私有协议。目的MAC地址可以分配6个字节,源MAC地址可以分配6个字节,帧类型可以分配2个字节。The frame header includes: a destination MAC address, a source MAC address, and a frame type; wherein the upper layer of the frame type flag uses a proprietary protocol. The destination MAC address can be allocated 6 bytes, the source MAC address can be allocated 6 bytes, and the frame type can be allocated 2 bytes.
数据包是私有协议帧,私有协议帧包含:目的SAS地址、SCSI命令、Next-目标MAC地址;Next-目标MAC地址标志着目标设备下一步应发送的目标设备地址,如:前端设备向控制设备发送读命令;控制设备转发读命令给后端存储设备,并在Next-目标MAC地址中填入前端设备MAC地址;后端存储设备接收到数据帧,解析出Next-目标MAC地址是前端设备MAC地址,于是把该地址填入MAC帧中的目标MAC地址,向前端设备发送数据帧。The data packet is a private protocol frame. The private protocol frame contains: the destination SAS address, the SCSI command, and the Next-target MAC address. The Next-target MAC address indicates the target device address that the target device should send next, such as: the front-end device to the control device. Send a read command; the control device forwards the read command to the backend storage device, and fills in the front-end device MAC address in the Next-target MAC address; the back-end storage device receives the data frame, and parses out the Next-target MAC address is the front-end device MAC address. The address is then filled into the destination MAC address in the MAC frame and the data frame is sent to the headend device.
帧尾包含:帧校验序列。帧校验序列可以分配4个字节。The end of the frame contains: the frame check sequence. The frame check sequence can be allocated 4 bytes.
在本实施例中,私有协议帧包含的SCSI命令可以为读命令,目的SAS地址可以为磁盘的逻辑接口地址或磁盘的物理接口地址。In this embodiment, the SCSI command included in the private protocol frame may be a read command, and the destination SAS address may be a logical interface address of the disk or a physical interface address of the disk.
因此,在本发明实施例中,控制设备可以通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息;控制设备可以根据所述后端存储设备的地址信息,将第二读信息以所述MAC帧形式发送给所述后端存储设备。Therefore, in the embodiment of the present invention, the control device may receive the first read information sent by the front end device in the form of a multimedia access control MAC frame through the network; the control device may perform the second read according to the address information of the backend storage device. Information is sent to the backend storage device in the form of the MAC frame.
如图6所示,本发明实施例还提供另一种读数据的方法,包括:As shown in FIG. 6, the embodiment of the present invention further provides another method for reading data, including:
401、后端存储设备通过所述网络接收所述控制设备发送的第二读信息。其中,所述第二读信息包括读命令、前端设备的地址和磁盘的物理接口地址;所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过同一网络互联。401. The backend storage device receives, by using the network, second read information sent by the control device. The second read information includes a read command, an address of the front end device, and a physical interface address of the disk; the data to be read by the read command is stored on a disk of the backend storage device; the control device and the The front-end device and the back-end storage device are interconnected through the same network.
在步骤401中,所述物理接口地址信息包括物理串行连接小型计算机系统接口地址信息。物理串行连接小型计算机系统接口地址信息可以用于表示物理串行连接小型计算机系统接口地址。后端存储设备可以通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二读信息。所述后端存储设备可以为磁盘簇设备。In step 401, the physical interface address information includes physical serial connection small computer system interface address information. The physical serial connection small computer system interface address information can be used to represent the physical serial connection small computer system interface address. The backend storage device may receive, by the network, second read information that is sent by the control device in the form of a multimedia access control MAC frame. The backend storage device may be a disk cluster device.
402、所述后端存储设备根据所述磁盘的物理接口地址,查找所述磁盘中 的所要读取的数据。402. The backend storage device searches for the disk according to a physical interface address of the disk. The data to be read.
具体的,当所述后端存储设备接收到所述第二读信息之后,若所述读命令为小型计算机系统接口命令,将所述小型计算机系统接口命令转译成串行连接小型计算机系统接口命令;所述后端存储设备根据所述串行连接小型计算机系统接口命令和所述磁盘的物理接口地址,查找所述磁盘中的所要读取的数据。Specifically, after the backend storage device receives the second read information, if the read command is a small computer system interface command, the small computer system interface command is translated into a serial connection small computer system interface. a command; the backend storage device searches for data to be read in the disk according to the serial connection small computer system interface command and a physical interface address of the disk.
403、所述后端存储设备根据所述前端设备的地址,通过所述网络将查找的所要读取的数据发送给所述前端设备。403. The backend storage device sends, by using the network, the searched data to be read by the network according to an address of the front end device.
具体的,所述后端存储设备可以根据所述前端设备的地址,通过所述网络将查找的所要读取的数据以所述MAC帧形式发送给所述前端设备。Specifically, the backend storage device may send, by using the network, the data to be read by the network to the front end device in the form of the MAC frame according to the address of the front end device.
如图7所示,在所述后端存储设备通过所述网络接收所述控制设备发送的第二读信息之前,所述方法还包括:As shown in FIG. 7, before the backend storage device receives the second read information sent by the control device by using the network, the method further includes:
501、当所述后端存储设备启动时,所述后端存储设备获取所述磁盘的物理接口地址信息。501. When the backend storage device is started, the backend storage device acquires physical interface address information of the disk.
502、当所述后端存储设备接收到所述控制设备发送的广播包时,向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。502. When the backend storage device receives the broadcast packet sent by the control device, report the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device. And physical interface address information of the disk of the backend storage device.
步骤501和502描述了后端存储设备启动时,发现磁盘及向控制设备上报后端存储设备信息的过程。 Steps 501 and 502 describe the process of discovering the disk and reporting the backend storage device information to the control device when the backend storage device is booted.
如图8所示,本发明实施例还提供一种读数据的方法,包括:As shown in FIG. 8, the embodiment of the present invention further provides a method for reading data, including:
前端设备通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends the first read information to the control device through the network; wherein the first read information includes a read command and logical interface address information of a disk of the back-end storage device, and the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
所述控制设备通过所述网络接收所述前端设备发送的第一读信息,以及根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,以及根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所 述前端设备的地址信息和所述磁盘的物理接口地址信息;Receiving, by the network, the first read information sent by the front-end device, and acquiring the address information of the back-end storage device to which the disk belongs and the physicality of the disk according to the logical interface address information of the disk The interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command and the Address information of the front end device and physical interface address information of the disk;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。The backend storage device receives the second read information sent by the control device by using the network, and searches for data to be read in the disk according to physical interface address information of the disk, and according to the The address information of the front-end device is sent to the front-end device by the network to find the data to be read.
可选的,所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:Optionally, the control device acquires, according to the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk, including:
所述控制设备根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
可选的,在所述控制设备通过所述网络接收所述前端设备发送的第一读信息之前,所述方法还包括:Optionally, before the receiving, by the control device, the first read information sent by the front-end device, the method further includes:
所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述后端存储设备接收所述控制设备发送的广播包,并向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and the Physical interface address information of the disk of the end storage device;
所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
可选的,所述控制设备通过网络接收前端设备发送的第一读信息,包括:Optionally, the control device receives, by using a network, the first read information sent by the front-end device, including:
控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息;The control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后 端存储设备,包括:The control device sends the second read information to the back according to the address information of the backend storage device End storage devices, including:
控制设备根据所述后端存储设备的地址信息,将第二读信息以所述MAC帧形式发送给所述后端存储设备。The control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
可选的,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。Optionally, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
如图9所示,本发明实施例还提供一种写数据的方法,包括:As shown in FIG. 9, an embodiment of the present invention further provides a method for writing data, including:
601、控制设备通过网络接收前端设备发送的第一写信息;601. The control device receives, by using a network, first write information sent by the front end device.
具体的,所述控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一写信息。其中,所述第一写信息包括所述写命令和所述后端存储设备的磁盘的逻辑接口地址信息。Specifically, the control device receives, by using a network, first write information that is sent by the front-end device in the form of a multimedia access control MAC frame. The first write information includes the write command and logical interface address information of a disk of the backend storage device.
602、控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息。602. The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk.
所述逻辑接口地址信息包括逻辑串行连接小型计算机系统接口地址信息,所述物理接口地址信息包括物理串行连接小型计算机系统接口地址信息。The logical interface address information includes logical serial connection small computer system interface address information, and the physical interface address information includes physical serial connection small computer system interface address information.
603、控制设备根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息。603. The control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, the address information of the front end device, and the The physical interface address information of the disk.
执行步骤603使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备。Step 603 is executed to enable the backend storage device to receive the second write information sent by the control device by using the network, and find the disk according to the physical interface address information of the disk, and generate a first response. And transmitting, by the network, the first response information to the control device according to the address information of the front end device.
步骤601至603描述了前端设备发起写数据操作,控制设备接收前端设备发送的第一写信息,并使后端存储设备发出第一响应信息的过程。 Steps 601 to 603 describe a process in which the front-end device initiates a write data operation, and the control device receives the first write information sent by the front-end device and causes the back-end storage device to issue the first response information.
604、控制设备接收所述后端存储设备通过所述网络发送的第一响应信息。604. The control device receives first response information that is sent by the backend storage device by using the network.
具体的,所述控制设备接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的第一响应信息。其中,所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应,所述后端存 储设备的磁盘用于写所述写命令所要写的数据;所述控制设备、所述前端设备与后端存储设备通过同一网络互联。所述写命令为小型计算机系统接口命令。所述后端存储设备包括磁盘簇设备。Specifically, the control device receives the first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network. The first response information indicates that the disk of the backend storage device responds to the received write command initiated by the front end device, and the backend saves The disk of the storage device is used to write data to be written by the write command; the control device, the front-end device and the back-end storage device are interconnected through the same network. The write command is a small computer system interface command. The backend storage device includes a disk cluster device.
605、在接收到所述第一响应信息之后,所述控制设备将第二响应信息发送给所述前端设备,所述第二响应信息包括所述第一响应信息和所述后端存储设备的地址信息。605. After receiving the first response information, the control device sends the second response information to the front end device, where the second response information includes the first response information and the backend storage device. Address information.
执行步骤605使得所述前端设备接收到所述第二响应信息,获得所述第一响应信息和所述后端存储设备的地址信息,并在获得所述第一响应信息和所述后端存储设备的地址信息之后,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。Step 605 is executed to enable the front-end device to receive the second response information, obtain the first response information and address information of the back-end storage device, and obtain the first response information and the back-end storage. After the address information of the device is sent, the data to be written is sent to the backend storage device according to the address information of the backend storage device, so that the backend storage device receives the data to be written, and The data to be written is written to the disk.
可选的,在所述控制设备通过网络接收前端设备发送的第一写信息之前,所述方法还包括:Optionally, before the receiving, by the control device, the first write information sent by the front-end device, the method further includes:
所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
可选的,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。Optionally, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
如图10所示,本发明实施例还提供一种写数据的方法,包括:As shown in FIG. 10, an embodiment of the present invention further provides a method for writing data, including:
701、前端设备通过网络向控制设备发送第一写信息。701. The front-end device sends the first write information to the control device by using a network.
具体的,所述前端设备可以通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息。所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息,使得所述控制设备接收所述第一写信息,并根据 所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,并将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联。所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。Specifically, the front-end device may send the first write information to the control device in the form of a multimedia access control MAC frame through the network. The first write information includes a write command and logical interface address information of a disk of the backend storage device, so that the control device receives the first write information, and according to And obtaining, by the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk; and sending the second write information according to the address information of the backend storage device For the backend storage device, the second write information includes the write command, address information of the front end device, and physical interface address information of the disk, so that the backend storage device receives the network through the network The second write information sent by the control device, and searching for the disk according to the physical interface address information of the disk, and generating first response information, and passing the network according to the address information of the front-end device Transmitting the first response information to the control device; the first response information indicating a response of the disk of the backend storage device to the received write command initiated by the front end device; Decoding the first response information and the address information of the backend storage device, generating second response information, and sending the second response information to the front Apparatus; the second response in response to address information comprises a first information storage device and said rear end; the control device, the front end and the rear storage device via the internetworking device. The network includes any of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
702、前端设备通过网络接收控制设备发送的第二响应信息。702. The front-end device receives, by using a network, second response information sent by the control device.
具体的,前端设备通过网络接收控制设备以MAC帧形式发送的第二响应信息。其中,所述第二响应信息包括第一响应信息和后端存储设备的地址信息;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应,所述后端存储设备的磁盘用于写所述写命令所要写的数据。所述后端存储设备包括磁盘簇设备。Specifically, the front-end device receives, by using the network, second response information that is sent by the control device in the form of a MAC frame. The second response information includes first response information and address information of the backend storage device; the first response information indicates that the disk of the backend storage device sends a write command initiated by the front end device. In response, the disk of the backend storage device is used to write data to be written by the write command. The backend storage device includes a disk cluster device.
703、根据所述第二响应信息,获得所述第一响应信息和所述后端存储设备的地址信息。703. Obtain, according to the second response information, the first response information and address information of the backend storage device.
704、在获得所述第一响应信息和所述后端存储设备的地址信息之后,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备。704. After obtaining the first response information and the address information of the backend storage device, send the data to be written to the backend storage device according to the address information of the backend storage device.
执行步骤704使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。Step 704 is executed to cause the backend storage device to receive the data to be written and write the data to be written to the disk.
可选的,所述逻辑接口地址信息包括逻辑串行连接小型计算机系统接口地址信息,所述物理接口地址信息包括物理串行连接小型计算机系统接口地址信息。 Optionally, the logical interface address information includes logical serial connection small computer system interface address information, and the physical interface address information includes physical serial connection small computer system interface address information.
可选的,所述写命令为小型计算机系统接口命令。Optionally, the write command is a small computer system interface command.
如图11所示,本发明实施例还提供一种写数据的方法,包括:As shown in FIG. 11, an embodiment of the present invention further provides a method for writing data, including:
801、后端存储设备通过网络接收控制设备发送的所述第二写信息。801. The backend storage device receives, by using a network, the second write information sent by the control device.
具体的,所述后端存储设备可以通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。所述第二写信息包括所述写命令、前端设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联。Specifically, the backend storage device may receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format. The second write information includes the write command, address information of the front-end device, and physical interface address information of the disk of the back-end storage device; the control device, the front-end device, and the back-end storage device pass through Network interconnection.
802、所述后端存储设备根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息。802. The backend storage device searches for the disk according to the physical interface address information of the disk, and generates first response information.
所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应。The first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device.
803、后端存储设备通过网络将第一响应信息发送给控制设备。803. The backend storage device sends the first response information to the control device over the network.
具体的,后端存储设备通过网络将第一响应信息以MAC帧形式发送给控制设备。其中,所述第一响应信息表示所述后端存储设备的磁盘对接收到的前端设备发起的写命令的响应,所述后端存储设备的磁盘用于写所述写命令所要写的数据;所述控制设备、所述前端设备与后端存储设备通过同一网络互联。Specifically, the backend storage device sends the first response information to the control device in the form of a MAC frame through the network. The first response information indicates that the disk of the backend storage device responds to the received write command initiated by the front end device, and the disk of the backend storage device is used to write data to be written by the write command; The control device, the front end device and the back end storage device are interconnected through the same network.
804、在所述后端存储设备通过网络将第一响应信息发送给控制设备之后,所述后端存储设备通过网络接收前端设备发送的所述前端设备所要写的数据,并将所述所要写的数据写入所述磁盘。804. After the backend storage device sends the first response information to the control device by using the network, the backend storage device receives, by the network, the data to be written by the front-end device sent by the front-end device, and writes the desired The data is written to the disk.
可选的,所述逻辑接口地址信息包括逻辑串行连接小型计算机系统接口地址信息,所述物理接口地址信息包括物理串行连接小型计算机系统接口地址信息。Optionally, the logical interface address information includes logical serial connection small computer system interface address information, and the physical interface address information includes physical serial connection small computer system interface address information.
可选的,所述写命令为小型计算机系统接口命令。Optionally, the write command is a small computer system interface command.
可选的,所述后端存储设备包括磁盘簇设备。Optionally, the backend storage device comprises a disk cluster device.
本发明实施例还提供一种写数据的方法,其包括:An embodiment of the present invention further provides a method for writing data, including:
前端设备通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备 与后端存储设备通过所述网络互联;The front-end device sends first write information to the control device through the network, where the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device Interconnected with the backend storage device through the network;
所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;Receiving, by the control device, the first write information, and acquiring, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and physical interface address information of the disk; The address information of the backend storage device sends the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk ;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front-end device, the first response information is sent to the control device by using the network; the first response information indicates that the disk of the back-end storage device initiates the received front-end device The response of the write command;
所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,以及将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;The control device generates second response information according to the first response information and the address information of the backend storage device, and sends the second response information to the front end device; the second response information includes the first Response information and address information of the backend storage device;
所述前端设备通过所述网络接收所述控制设备发送的所述第二响应信息;在获得所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据通过所述网络发送给所述后端存储设备;The front-end device receives the second response information sent by the control device by using the network; after obtaining the second response information, the data to be written is passed according to the address information of the back-end storage device. Sending the network to the backend storage device;
所述后端存储设备接收所要写的数据,并将所要写的数据写入所述磁盘。The backend storage device receives the data to be written and writes the data to be written to the disk.
可选的,在所述控制设备通过网络接收前端设备发送的第一写信息之前,所述方法还包括:Optionally, before the receiving, by the control device, the first write information sent by the front-end device, the method further includes:
所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述后端存储设备接收所述控制设备发送的所述广播包,并向所述控制设备上报所述后端存储设备信息;Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device;
所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建 立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and constructing Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
可选的,所述控制设备接收所述后端存储设备通过所述网络发送的第一响应信息,包括:Optionally, the receiving, by the control device, the first response information sent by the backend storage device by using the network, includes:
所述控制设备接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的所述第一响应信息;Receiving, by the control device, the first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network;
所述控制设备通过所述网络接收所述前端设备发送的第一写信息,包括:Receiving, by the control device, the first write information sent by the front end device by using the network, including:
所述控制设备通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的所述第一写信息;Receiving, by the control device, the first write information that is sent by the front end device in the form of a multimedia access control MAC frame by using the network;
所述前端设备通过所述网络接收所述控制设备发送的第二响应信息,包括:Receiving, by the network device, the second response information sent by the control device by using the network, including:
所述前端设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二响应信息;Receiving, by the front end device, the second response information that is sent by the control device in a form of a multimedia access control MAC frame by using the network;
所述前端设备通过所述网络向所述控制设备发送第一写信息,包括:Sending, by the front-end device, the first write information to the control device by using the network, including:
所述前端设备通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息;Sending, by the front-end device, the first write information to the control device in the form of a multimedia access control MAC frame through the network;
所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备,包括:The backend storage device sends the first response information to the control device by using the network, including:
所述后端存储设备通过所述网络将第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;The backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,包括:Receiving, by the backend storage device, the second write information sent by the control device by using the network, including:
所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
可选的,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。 Optionally, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
以下列举更加详细的实施例,对本发明进行说明。The invention will now be described in more detail by way of examples.
在以下发明实施例中,前端设备、控制设备和后端存储设备接入的同一网络为以太网。如图12所示,前端设备包括主机,主机包括依次连接的应用层、操作系统层、网络适配器,所述网络适配器包括依次连接的以太网接口、适配层和总线接口,总线接口接入操作系统层。如图13所示,控制设备包括处理器、存储器、适配层和与适配层连接的以太网接口,处理器分别与存储器、适配层连接。如图14所示,后端存储设备为磁盘簇设备,磁盘簇设备包括依次连接的以太网接口、适配层和磁盘。In the following embodiments of the invention, the same network accessed by the front-end device, the control device, and the back-end storage device is an Ethernet network. As shown in FIG. 12, the front-end device includes a host, and the host includes an application layer, an operating system layer, and a network adapter that are sequentially connected, and the network adapter includes an Ethernet interface, an adaptation layer, and a bus interface that are sequentially connected, and the bus interface is accessed. System layer. As shown in FIG. 13, the control device includes a processor, a memory, an adaptation layer, and an Ethernet interface connected to the adaptation layer, and the processor is respectively connected to the memory and the adaptation layer. As shown in FIG. 14, the backend storage device is a disk cluster device, and the disk cluster device includes an Ethernet interface, an adaptation layer, and a disk that are sequentially connected.
本发明实施例在进行读数据之前,包括三个部分,第一部分为磁盘簇发现磁盘,第二部分为控制设备发现磁盘簇及磁盘簇中的磁盘,第三部分为主机发现控制器及控制器控制的磁盘。Before performing data reading, the embodiment of the present invention includes three parts, the first part is a disk cluster discovery disk, the second part is a control device discovering a disk cluster and a disk in a disk cluster, and the third part is a host discovery controller and a controller. Controlled disk.
第一部分具体可以包括:The first part can specifically include:
当磁盘簇设备的磁盘启动时,自动上报SAS地址给磁盘簇的适配层,适配层建立磁盘SAS地址表,见表1:When the disk of the disk cluster device is started, the SAS address is automatically reported to the adaptation layer of the disk cluster, and the adaptation layer establishes the disk SAS address table. See Table 1:
  Physical SAS addressPhysical SAS address
11 SAS addr0 SAS addr0
22 SAS addr1SAS addr1
表1 磁盘SAS地址表Table 1 Disk SAS Address Table
第二部分具体可以包括:The second part can specifically include:
控制设备发现磁盘簇及磁盘簇中的磁盘;The control device discovers the disks in the disk cluster and the disk cluster;
磁盘簇启动后扫描出下面挂载的磁盘;After the disk cluster is booted, the disk mounted below is scanned;
控制设备向各磁盘簇发送广播包,要求上报各磁盘簇中的磁盘;The control device sends a broadcast packet to each disk cluster, and reports that the disk in each disk cluster is reported;
各磁盘簇回响应信息,响应信息中包含磁盘簇的MAC地址和磁盘簇中的磁盘SAS地址表;Each disk clusters response information, and the response information includes a MAC address of the disk cluster and a disk SAS address table in the disk cluster;
控制设备适配层记录上报磁盘的SAS地址,并将这次磁盘进行虚拟化管理。虚拟出的磁盘也按照SAS地址方式进行编号,并建立真实磁盘和虚拟磁盘 的映射关系以及记录他们所属磁盘簇的MAC地址,如表2所示。The control device adaptation layer records the SAS address reported to the disk and virtualizes the disk. The virtual disk is also numbered according to the SAS address mode, and the real disk and virtual disk are created. The mapping relationship and the MAC address of the disk cluster to which they belong, as shown in Table 2.
  Logic SAS addressLogic SAS address Physical SAS addressPhysical SAS address JBOD MAC addressJBOD MAC address
11 Logic SAS addr10Logic SAS addr10 Phy SAS addr0Phy SAS addr0 JBOD MAC addr0 JBOD MAC addr0
22 Logic SAS addr11Logic SAS addr11 Phy SAS addr1Phy SAS addr1 JBOD MAC addr0JBOD MAC addr0
表2 控制设备磁盘地址和JBOD地址映射表Table 2 Control device disk address and JBOD address mapping table
第三部分具体可以包括:The third part can specifically include:
主机侧配置可控的控制设备的MAC地址,并建立连接;The host side configures a controllable MAC address of the control device and establishes a connection;
主机向控制设备发送命令,要求上报可控的磁盘;The host sends a command to the control device to report the controllable disk;
磁盘回响应消息,响应消息中包含虚拟磁盘SAS地址;The disk returns a response message, and the response message includes a virtual disk SAS address;
主机将上报的磁盘按照四元组<host:channel:id:lun>的编号方式将磁盘加入到操作系统。The host adds the disk to the operating system according to the number of the quaternary <host:channel:id:lun>.
同时建立四元组、虚拟磁盘SAS地址、控制设备MAC地址的映射关系表,映射关系表如表3所示:At the same time, a mapping table of the quaternion, the virtual disk SAS address, and the control device MAC address is established. The mapping relationship table is shown in Table 3:
  host:channel:id:lunHost:channel:id:lun Logic SAS addressLogic SAS address Controller MAC addressController MAC address
11 0:02:00:000:02:00:00 SAS addr0SAS addr0 Contr MAC addr0Contr MAC addr0
22 0:02:01:000:02:01:00 SAS addr1SAS addr1 Contr MAC addr0Contr MAC addr0
表3 四元组、控制设备地址和磁盘地址的映射表Table 3 Mapping table of quaternion, control device address and disk address
本实施例读数据的流程具体如下:The flow of reading data in this embodiment is as follows:
如图2所示,图2中的虚线①-④说明了读数据的流程。图2中的前端设备包括主机,控制设备包括控制器,后端存储设备包括JBOD。As shown in FIG. 2, the broken lines 1-4 in FIG. 2 illustrate the flow of reading data. The front end device in FIG. 2 includes a host, the control device includes a controller, and the back end storage device includes a JBOD.
①主机向控制器发送读命令:主机的网络适配器收到读数据的SCSICommod,查询表3找到目的的logic SAS address和controller MAC address。主机的网络适配器将logic SAS address和SCSI Commond填入Command帧,然后将Command帧封装在MAC帧中,发送给对应的控制器。1 The host sends a read command to the controller: the host's network adapter receives the read data SCSICommod, and the query table 3 finds the destination's logic SAS address and controller MAC address. The host's network adapter fills the Command frame with the logic SAS address and SCSI Commond, and then encapsulates the Command frame in the MAC frame and sends it to the corresponding controller.
②控制器向JBOD发送读命令:控制器的适配层接收到主机发送的MAC帧,控制器的适配层解析出SCSI Commond和logic SAS address,查询表2找到 对应的JBOD MAC address和physical SAS address;控制器的适配层将physical SAS address、主机MAC address、SCSI Commond打包成Command帧,然后将Command帧封装在MAC帧中,发送给对应的JBOD。2 The controller sends a read command to the JBOD: the adaptation layer of the controller receives the MAC frame sent by the host, and the adaptation layer of the controller parses out the SCSI Commond and the logic SAS address, and the query table 2 finds Corresponding JBOD MAC address and physical SAS address; The adaptation layer of the controller packs the physical SAS address, the host MAC address, and the SCSI Commond into a Command frame, and then encapsulates the Command frame in the MAC frame and sends it to the corresponding JBOD.
③JBOD通过网络向主机发送数据:JBOD的适配层接收控制器发送的MAC帧,JBOD的适配层解析出SCSI Commond、physical SAS address和主机MAC地址;JBOD的适配层将SCSI Commond转译成SAS Command,转发到对应的磁盘;该磁盘向JBOD的适配层回复数据,JBOD的适配层将数据打包成DATA帧,并封装在MAC帧中,其中目标MAC地址是主机MAC地址,将封装后的数据通过网络直接发送给主机。3JBOD sends data to the host through the network: the adaptation layer of JBOD receives the MAC frame sent by the controller, the adaptation layer of JBOD parses out the SCSI Commond, physical SAS address and the host MAC address; the adaptation layer of JBOD translates the SCSI Commond into SAS Command, forwarded to the corresponding disk; the disk returns data to the adaptation layer of JBOD, and the adaptation layer of JBOD packs the data into a DATA frame and encapsulates it in a MAC frame, where the target MAC address is the host MAC address, which will be encapsulated The subsequent data is sent directly to the host through the network.
④JBOD分别向控制器和主机发送执行完成的应答:JBOD适配层把磁盘响应信息先打包成Response帧,再将Response帧封装在MAC帧中,分别发送给控制器和主机。The 4JBOD sends an execution completion response to the controller and the host respectively: the JBOD adaptation layer first packs the disk response information into a Response frame, and then encapsulates the Response frame in the MAC frame and sends it to the controller and the host respectively.
如图8所示,图8中的虚线①-⑥说明了写数据的流程。图8中的前端设备包括主机,控制设备包括控制器,后端存储设备包括JBOD。As shown in FIG. 8, the dotted lines 1-6 in FIG. 8 illustrate the flow of writing data. The front end device in FIG. 8 includes a host, the control device includes a controller, and the back end storage device includes a JBOD.
①主机向控制器发送写命令:主机的网络适配器收到写数据的SCSI Commod,查询表3找到目的的logic SAS address和controller MAC address;主网络适配器将logic SAS address和SCSI Commond填入Command帧,然后将Command帧封装在MAC帧中,发送给对应的控制器。1 The host sends a write command to the controller: the host's network adapter receives the SCSI Commod that writes the data, the query table 3 finds the destination's logic SAS address and the controller MAC address; the primary network adapter fills the logic SAS address and the SCSI Commond into the Command frame. The Command frame is then encapsulated in a MAC frame and sent to the corresponding controller.
②控制器向JBOD发送写命令:控制器适配层接收到MAC帧,解析出SCSI Commond和logic SAS address,查询表2找到对应的JBOD MAC address和physical SAS address;控制器适配层将physical SAS address、SCSI Commond打包成Command帧,然后将Command帧封装在MAC帧中,发送给对应的JBOD。2 The controller sends a write command to the JBOD: the controller adaptation layer receives the MAC frame, parses out the SCSI Commond and the logic SAS address, and the query table 2 finds the corresponding JBOD MAC address and the physical SAS address; the controller adaptation layer will be the physical SAS Address, SCSI Commond is packaged into a Command frame, and then the Command frame is encapsulated in a MAC frame and sent to the corresponding JBOD.
③JBOD向控制器响应等待Ready:JBOD的适配层接收到控制器发送的MAC帧,JBOD的适配层从中解析出SCSI Commond和physical SAS address;并将SCSI Commond转译成SAS Commond,转发到磁盘;磁盘回复给JBOD的适配层XFER_RDY,JBOD的适配层将XFER_RDY打包成Response帧,并封装在MAC帧中发送给对应的控制器。3JBOD responds to the controller by waiting for Ready: JBOD's adaptation layer receives the MAC frame sent by the controller, and the JBOD adaptation layer parses out the SCSI Commond and physical SAS address; and translates the SCSI Commond into SAS Commond and forwards it to disk. The disk is replied to the adaptation layer XFER_RDY of JBOD, and the adaptation layer of JBOD packs XFER_RDY into a Response frame and encapsulates it in a MAC frame and sends it to the corresponding controller.
④控制器将响应发送给主机:控制器的适配层接收到JBOD发送的MAC 帧,控制器的适配层解析出XFER_RDY响应,将XFER_RDY和JBOD MAC address打包成Response帧,并封装在MAC帧中发送给主机。4 The controller sends a response to the host: the adaptation layer of the controller receives the MAC sent by the JBOD. Frame, the adaptation layer of the controller parses out the XFER_RDY response, packs the XFER_RDY and JBOD MAC address into a Response frame, and encapsulates it in a MAC frame and sends it to the host.
⑤主机将数据发送给JBOD:主机的适配层接收到控制器发送的MAC帧,主机的适配层解析出XFER_RDY响应,将要写的数据打包成DATA帧,并封装在MAC帧中发送给JBOD。5 The host sends the data to the JBOD: the adaptation layer of the host receives the MAC frame sent by the controller, and the adaptation layer of the host parses the XFER_RDY response, packs the data to be written into a DATA frame, and encapsulates it in the MAC frame and sends it to the JBOD. .
⑥JBOD分别向控制器和主机发送执行完成的应答:JBOD适配层接收到MAC帧,JBOD适配层解析出写数据,转发给目标磁盘;写完成后,磁盘向适配层响应写完成,由JBOD适配层把磁盘响应信息打包成Response帧,并封装在MAC帧中分别发送给控制器和主机。The 6JBOD sends a response to the completion of the execution to the controller and the host: the JBOD adaptation layer receives the MAC frame, and the JBOD adaptation layer parses the write data and forwards it to the target disk; after the write is completed, the disk responds to the adaptation layer by the write completion. The JBOD adaptation layer packs the disk response information into a Response frame, and encapsulates it in the MAC frame and sends it to the controller and the host respectively.
如图15所示,本发明实施例提供一种控制设备1001,包括:As shown in FIG. 15, an embodiment of the present invention provides a control device 1001, including:
接收单元1002,用于通过网络接收前端设备发送的第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备1001、所述前端设备与后端存储设备通过所述网络互联;The receiving unit 1002 is configured to receive, by using a network, first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, where the read command is to be read. The data is stored on a disk of the backend storage device; the control device 1001, the front end device and the backend storage device are interconnected by the network;
处理单元1003,用于根据所述接收单元1002接收到的所述第一读信息中的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The processing unit 1003 is configured to acquire address information of the backend storage device to which the disk belongs and the disk according to the logical interface address information of the disk in the first read information received by the receiving unit 1002. Physical interface address information;
发送单元1004,用于根据所述处理单元1003获取到的所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备1001发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。The sending unit 1004 is configured to send the second read information to the backend storage device according to the address information of the backend storage device acquired by the processing unit 1003, where the second read information includes the read command The address information of the front-end device and the physical interface address information of the disk, so that the back-end storage device receives the second read information sent by the control device 1001 through the network, and according to the disk The physical interface address information is used to search for data to be read in the disk, and to send the found data to be read to the front-end device through the network according to the address information of the front-end device.
可选的,处理单元1003,用于根据所述接收单元1002接收到的所述第一读信息中的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:Optionally, the processing unit 1003 is configured to obtain address information of the backend storage device to which the disk belongs according to the logical interface address information of the disk in the first read information received by the receiving unit 1002. The physical interface address information of the disk includes:
用于:根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘 所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。And the method is: acquiring the disk according to logical interface address information and mapping relationship information of the disk Address information of the associated backend storage device and physical interface address information of the disk, the mapping relationship information is used to indicate logical interface address information of the disk and physical interface address information of the disk and the backend storage Correspondence between address information of devices.
可选的,所述发送单元1004还用于在所述接收单元1002通过网络接收前端设备发送的第一读信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备1001上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;Optionally, the sending unit 1004 is further configured to: before the receiving unit 1002 receives the first read information sent by the front end device by using the network, send a broadcast packet to the backend storage device, where the broadcast packet is used to The backend storage device reports the backend storage device information to the control device 1001, where the backend storage device information includes address information of the backend storage device and a physical interface address of a disk of the backend storage device. information;
所述接收单元1002还用于接收所述后端存储设备上报的所述后端存储设备信息;The receiving unit 1002 is further configured to receive the backend storage device information reported by the backend storage device;
所述处理单元1003还用于在所述接收单元1002接收所述后端存储设备上报的所述后端存储设备信息之后,建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The processing unit 1003 is further configured to: after the receiving unit 1002 receives the backend storage device information reported by the backend storage device, establish logical interface address information of the disk and physical interface address information of the disk Corresponding relationship between the address information of the backend storage device.
如图16所示,本发明实施例还提供一种后端存储设备1101,包括:As shown in FIG. 16, the embodiment of the present invention further provides a backend storage device 1101, including:
接收单元1102,用于通过所述网络接收所述控制设备发送的第二读信息,所述第二读信息包括读命令、前端设备的地址信息和磁盘的物理接口地址信息;所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit 1102 is configured to receive, by using the network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; The read data is stored on a disk of the backend storage device; the control device, the front end device and the backend storage device are interconnected by the network;
查找单元1103,用于在所述接收单元1102接收到所述第二读信息之后,根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据;The searching unit 1103 is configured to: after the receiving unit 1102 receives the second read information, search for data to be read in the disk according to physical interface address information of the disk;
发送单元1104,用于在所述查找单元1103查找到所述磁盘中的所要读取的数据之后,根据所述前端设备的地址信息,通过所述网络将查找的所要读取的数据发送给所述前端设备。a sending unit 1104, after the searching unit 1103 finds the data to be read in the disk, according to the address information of the front-end device, sends the searched data to be searched through the network to the The front-end device.
可选的,所述后端存储设备,还包括:获取单元,所述获取单元用于在所述接收单元1102通过所述网络接收所述控制设备发送的第二读信息之前,当所述后端存储设备启动时,获取所述磁盘的物理接口地址信息;Optionally, the backend storage device further includes: an obtaining unit, where the acquiring unit is configured to: before the receiving unit 1102 receives the second read information sent by the control device by using the network, Obtaining the physical interface address information of the disk when the storage device is started;
所述发送单元1104还用于当所述接收单元1102接收到所述控制设备发送 的广播包时,向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。The sending unit 1104 is further configured to: when the receiving unit 1102 receives the sending by the control device The backend storage device information is reported to the control device, and the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device.
可选的,所述发送单元1104还用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二读信息;Optionally, the sending unit 1104 is further configured to receive, by using the network, second read information that is sent by the control device in a multimedia access control MAC frame format;
所述发送单元1104还用于根据所述前端设备的地址,通过所述网络将查找的所要读取的数据以所述MAC帧形式发送给所述前端设备。The sending unit 1104 is further configured to send, by using the network, the searched data to be read by the network to the front-end device in the form of the MAC frame according to an address of the front-end device.
可选的,所述查找单元1103还用于当所述接收单元1102接收到所述读命令之后,若所述读命令为小型计算机系统接口命令,将所述小型计算机系统接口命令转译成串行连接小型计算机系统接口命令;Optionally, the searching unit 1103 is further configured to: after the receiving unit 1102 receives the read command, convert the small computer system interface command into a string if the read command is a small computer system interface command Connect the small computer system interface commands;
所述查找单元1103用于根据所述磁盘的物理接口地址,查找所述磁盘中的所要读取的数据,包括:The searching unit 1103 is configured to search for data to be read in the disk according to the physical interface address of the disk, including:
用于根据所述串行连接小型计算机系统接口命令和所述磁盘的物理接口地址,查找所述磁盘中的所要读取的数据。And searching for data to be read in the disk according to the serial connection small computer system interface command and a physical interface address of the disk.
可选的,所述后端存储设备包括磁盘簇设备。Optionally, the backend storage device comprises a disk cluster device.
如图17所示,本发明实施例还提供一种前端设备1201,包括:As shown in FIG. 17, the embodiment of the present invention further provides a front end device 1201, including:
发送单元1203,用于通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The sending unit 1203 is configured to send, by using a network, first read information to the control device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
接收单元1202,用于在所述发送单元1203通过所述网络向所述控制设备发送所述第一读信息之后,通过所述网络接收所述后端存储设备发送的所要读取的数据。The receiving unit 1202 is configured to receive, by the network, the data to be read sent by the backend storage device after the sending unit 1203 sends the first read information to the control device by using the network.
可选的,发送单元1203,用于通过网络向控制设备发送第一读信息,包括:Optionally, the sending unit 1203 is configured to send the first read information to the control device by using the network, including:
用于通过网络向控制设备以多媒体接入控制MAC帧形式发送第一读信息。And transmitting, by using a network, the first read information in a form of a multimedia access control MAC frame to the control device.
如图2所示,本发明实施例还提供一种存储系统,包括如上实施例所述的 控制设备、如上实施例所述的后端存储设备和如上实施例所述的前端设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联。具体的,一种存储系统,包括:As shown in FIG. 2, an embodiment of the present invention further provides a storage system, including the foregoing embodiment. The control device, the backend storage device described in the above embodiment, and the front-end device described in the foregoing embodiment, the control device, the front-end device, and the back-end storage device are interconnected through the same network. Specifically, a storage system includes:
所述前端设备用于通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front end device is configured to send first read information to the control device over the network; wherein the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
所述控制设备用于通过所述网络接收所述前端设备发送的第一读信息,以及根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,以及根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;The control device is configured to receive, by using the network, the first read information sent by the front-end device, and obtain, according to the logical interface address information of the disk, address information of the back-end storage device to which the disk belongs and the disk The physical interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, an address of the front end device Information and physical interface address information of the disk;
所述后端存储设备用于通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。The backend storage device is configured to receive, by the network, the second read information sent by the control device, and search for data to be read in the disk according to physical interface address information of the disk, and And according to the address information of the front-end device, the found data to be read is sent to the front-end device through the network.
所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:The control device acquires, according to the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk, including:
所述控制设备根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
可选的,所述控制设备还用于在通过所述网络接收所述前端设备发送的第一读信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;Optionally, the control device is further configured to: before receiving the first read information sent by the front end device by using the network, send a broadcast packet to the backend storage device, where the broadcast packet is used to make the The end storage device reports the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述后端存储设备还用于接收所述控制设备发送的广播包,并向所述控制 设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The backend storage device is further configured to receive a broadcast packet sent by the control device, and send the control The device reports the backend storage device information, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述控制设备还用于接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
可选的,所述控制设备通过网络接收前端设备发送的第一读信息,包括:Optionally, the control device receives, by using a network, the first read information sent by the front-end device, including:
控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息;The control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,包括:The control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
控制设备根据所述后端存储设备的地址信息,将第二读信息以所述MAC帧形式发送给所述后端存储设备。The control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
可选的,所述网络包括以下任意一种网络:光纤信道网、以太网、PCIe网。Optionally, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a PCIe network.
如图18所示,一种控制设备1801,其包括:接收单元1802、处理单元1804和发送单元1803。As shown in FIG. 18, a control device 1801 includes a receiving unit 1802, a processing unit 1804, and a transmitting unit 1803.
所述接收单元1802用于通过网络接收前端设备发送的第一写信息;所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit 1802 is configured to receive first write information sent by the front end device by using a network; the first write information includes a write command and logical interface address information of a disk of the backend storage device; the control device, the front end device Interconnecting with the backend storage device through the network;
所述处理单元1804用于根据所述接收单元1802接收到的第一响应信息包含的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The processing unit 1804 is configured to acquire, according to the logical interface address information of the disk that is included in the first response information received by the receiving unit 1802, address information of the backend storage device to which the disk belongs and physical of the disk Interface address information;
所述发送单元1803用于根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信 息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的前端设备发起的写命令的响应;The sending unit 1803 is configured to send the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and The physical interface address information of the disk is such that the backend storage device receives the second write information sent by the control device through the network, and searches for the disk according to the physical interface address information of the disk. And generating first response information, and according to the address letter of the front end device Transmitting, by the network, the first response information to the control device; the first response information indicating a response of a disk of the backend storage device to a received write command initiated by the front end device;
所述接收单元1802还用于接收所述后端存储设备通过所述网络发送的第一响应信息;The receiving unit 1802 is further configured to receive first response information that is sent by the backend storage device by using the network;
所述处理单元1804根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;The processing unit 1804 generates second response information according to the first response information and address information of the backend storage device, where the second response information includes first response information and address information of the backend storage device. ;
所述发送单元1803还用于将第二响应信息发送给所述前端设备,使得所述前端设备接收到所述第二响应信息,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。The sending unit 1803 is further configured to send the second response information to the front end device, so that the front end device receives the second response information, and the data to be written according to the address information of the backend storage device Sending to the backend storage device such that the backend storage device receives the data to be written and writes the data to be written to the disk.
所述发送单元1803还用于在所述接收单元1802通过所述网络接收所述前端设备发送的第一写信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The sending unit 1803 is further configured to send a broadcast packet to the backend storage device before the receiving unit 1802 receives the first write information sent by the front end device by using the network, where the broadcast packet is used to make a The backend storage device reports the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device. ;
所述接收单元1802还用于接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The receiving unit 1802 is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage. Correspondence between address information of devices.
可选的,所述接收单元1802还用于接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的第一响应信息。Optionally, the receiving unit 1802 is further configured to receive first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network.
可选的,所述接收单元1802还用于通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一写信息。Optionally, the receiving unit 1802 is further configured to receive, by using a network, first write information that is sent by the front end device in the form of a multimedia access control MAC frame.
如图19所示,一种前端设备1901,其包括:发送单元1902和接收单元1903。As shown in FIG. 19, a front end device 1901 includes a transmitting unit 1902 and a receiving unit 1903.
所述发送单元1902用于通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息,使得所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘 所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,并将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The sending unit 1902 is configured to send first write information to the control device by using a network, where the first write information includes a write command and logical interface address information of a disk of the backend storage device, so that the control device receives the first Write information, and obtain the disk according to the logical interface address information of the disk The address information of the associated backend storage device and the physical interface address information of the disk; and sending the second write information to the backend storage device according to the address information of the backend storage device, the second write The information includes the write command, the address information of the front-end device, and the physical interface address information of the disk, so that the back-end storage device receives the second write information sent by the control device by using the network, and And searching for the disk according to the physical interface address information of the disk, and generating first response information, and sending, by using the network, the first response information to the control device according to the address information of the front-end device The first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device; the control device is configured according to the first response information and the backend storage device Address information, generating second response information, and transmitting second response information to the front end device; the second response information includes first response information The rear end of the address information storage device; the control device, the front end and the rear storage device via the network interconnection device;
所述接收单元1902用于通过网络接收控制设备发送的第二响应信息;The receiving unit 1902 is configured to receive, by using a network, second response information that is sent by the control device.
所述发送单元1903用于在接收单元接收到所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。The sending unit 1903 is configured to: after the receiving unit receives the second response information, send the data to be written to the backend storage device according to the address information of the backend storage device, so that the back end The storage device receives the data to be written and writes the data to be written to the disk.
可选的,所述接收单元1902还用于通过网络接收控制设备以多媒体接入控制MAC帧形式发送的第二响应信息。Optionally, the receiving unit 1902 is further configured to receive, by using a network, second response information that is sent by the control device in the form of a multimedia access control MAC frame.
可选的,所述发送单元1903还用于通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息。Optionally, the sending unit 1903 is further configured to send the first write information in the form of a multimedia access control MAC frame to the control device by using the network.
如图20所示,一种后端存储设备2001,其包括:发送单元2003、处理单元2004和接收单元2002。As shown in FIG. 20, a backend storage device 2001 includes a transmitting unit 2003, a processing unit 2004, and a receiving unit 2002.
所述接收单元2002用于通过网络接收控制设备发送的所述第二写信息,所述第二写信息包括所述写命令、前端设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit 2002 is configured to receive, by using a network, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and a physical interface of the disk of the backend storage device. Address information; the control device, the front end device, and the backend storage device are interconnected by the network;
所述处理单元2004用于根据所述接收单元2002接收到的所述磁盘的物理 接口地址信息,查找到所述磁盘,并生成第一响应信息;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The processing unit 2004 is configured to: according to the physicality of the disk received by the receiving unit 2002 The interface address information is used to find the disk and generate first response information; the first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device;
所述发送单元2003用于通过网络将第一响应信息发送给控制设备;其中,所述第一响应信息表示所述后端存储设备2001的磁盘对接收到的前端设备发起的写命令的响应;The sending unit 2003 is configured to send the first response information to the control device by using the network, where the first response information indicates a response of the disk of the backend storage device 2001 to the received write command initiated by the front end device;
所述接收单元2002还用于在所述发送单元2003通过所述网络将所述第一响应信息发送给控制设备之后,所述后端存储设备2001通过所述网络接收所述前端设备发送的所述前端设备所要写的数据,并将所述所要写的数据写入所述磁盘。The receiving unit 2002 is further configured to: after the sending unit 2003 sends the first response information to the control device by using the network, the backend storage device 2001 receives, by using the network, the sending by the front-end device. Data to be written by the front-end device, and the data to be written is written to the disk.
可选的,所述发送单元2003还用于通过所述网络将所述第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;Optionally, the sending unit 2003 is further configured to send, by using the network, the first response information to the control device in a multimedia access control MAC frame format;
所述接收单元2002还用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The receiving unit 2002 is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
可选的,所述后端存储设备2001包括磁盘簇设备。Optionally, the backend storage device 2001 includes a disk cluster device.
如图8所示,一种存储系统,其包括:包括如图18所述的控制设备、如图19所述的前端设备和如图20所述的后端存储设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联。As shown in FIG. 8, a storage system includes: a control device as described in FIG. 18, a front end device as described in FIG. 19, and a backend storage device as described in FIG. 20, the control device, the The front-end device and the back-end storage device are interconnected through the same network.
具体的,所述存储系统包括:Specifically, the storage system includes:
前端设备,用于通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;a front-end device, configured to send first write information to the control device by using a network, where the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device, and the back end The storage devices are interconnected by the network;
控制设备,用于接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;a control device, configured to receive the first write information, and obtain, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and physical interface address information of the disk; The address information of the backend storage device is sent to the backend storage device, where the second write information includes the write command, address information of the front end device, and a physical interface address of the disk. information;
后端存储设备,用于通过所述网络接收所述控制设备发送的所述第二写信 息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;a backend storage device, configured to receive, by using the network, the second write sent by the control device And searching for the disk according to the physical interface address information of the disk, and generating first response information, and sending the first response information to the network through the network according to the address information of the front end device. a control device; the first response information indicating a response of the disk of the backend storage device to the received write command initiated by the front end device;
所述控制设备还用于根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,以及将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;The control device is further configured to generate second response information according to the first response information and address information of the backend storage device, and send the second response information to the front end device; the second response information Include first response information and address information of the backend storage device;
所述前端设备还用于通过所述网络接收所述控制设备发送的所述第二响应信息;在获得所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据通过所述网络发送给所述后端存储设备;The front-end device is further configured to receive, by using the network, the second response information that is sent by the control device; after obtaining the second response information, according to address information of the back-end storage device, Data is sent to the backend storage device through the network;
所述后端存储设备接收所要写的数据,并将所要写的数据写入所述磁盘。The backend storage device receives the data to be written and writes the data to be written to the disk.
可选的,所述控制设备还用于在通过网络接收前端设备发送的第一写信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;Optionally, the control device is further configured to: before receiving, by the network, the first write information sent by the front-end device, send a broadcast packet to the back-end storage device, where the broadcast packet is used to cause the back-end storage device to The control device reports the backend storage device information, where the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device;
所述后端存储设备还用于接收所述控制设备发送的所述广播包,并向所述控制设备上报所述后端存储设备信息;The backend storage device is further configured to receive the broadcast packet sent by the control device, and report the backend storage device information to the control device;
所述控制设备还用于接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
可选的,所述控制设备进一步用于接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的所述第一响应信息;Optionally, the control device is further configured to receive, by the backend storage device, the first response information that is sent by using the multimedia access control MAC frame in the network;
可选的,所述控制设备进一步用于所述控制设备通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的所述第一写信息;Optionally, the control device is further configured by the control device to receive, by using the network, the first write information that is sent by the front end device in a multimedia access control MAC frame format;
可选的,所述前端设备进一步用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二响应信息;Optionally, the front end device is further configured to receive, by using the network, the second response information that is sent by the control device in a multimedia access control MAC frame format;
可选的,所述前端设备进一步用于通过所述网络向所述控制设备以多媒体 接入控制MAC帧形式发送第一写信息;Optionally, the front end device is further configured to use the network to provide multimedia to the control device. Sending the first write information in the form of an access control MAC frame;
可选的,所述后端存储设备进一步用于通过所述网络将第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;Optionally, the backend storage device is further configured to send, by using the network, the first response information to the control device in a multimedia access control MAC frame format;
可选的,所述后端存储设备进一步用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。Optionally, the backend storage device is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
可选的,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。Optionally, the network includes any one of the following networks: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储设备中,存储设备可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage device, and the storage device may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
以上对本发明实施例所提供的一种读、写数据的方法及设备、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The method, device and system for reading and writing data provided by the embodiments of the present invention are described in detail. The principles and implementation manners of the present invention are described in the specific examples. The description of the above embodiments is only used. To help understand the method of the present invention and its core ideas; at the same time, those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiments and application scope, in summary, the contents of this specification It should not be construed as limiting the invention.

Claims (47)

  1. 一种读数据的方法,其特征在于,包括:A method of reading data, comprising:
    控制设备通过网络接收前端设备发送的第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;Receiving, by the network, the first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, where the data to be read by the read command is stored in the On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected through the network;
    所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
    所述控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。The control device sends the second read information to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, the address information of the front end device, and the The physical interface address information of the disk is such that the backend storage device receives the second read information sent by the control device by using the network, and searches for the disk according to the physical interface address information of the disk. The data to be read, and the data to be read, which is found by the network, are sent to the front-end device according to the address information of the front-end device.
  2. 根据权利要求1所述的读数据的方法,其特征在于,所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:The method for reading data according to claim 1, wherein the control device acquires address information of the backend storage device to which the disk belongs and a physical interface of the disk according to the logical interface address information of the disk. Address information, including:
    所述控制设备根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  3. 根据权利要求1或2所述的读数据的方法,其特征在于,在所述控制设备通过网络接收前端设备发送的第一读信息之前,所述方法还包括:The method for reading data according to claim 1 or 2, wherein before the controlling device receives the first read information sent by the front-end device through the network, the method further includes:
    所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息; The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
    所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
  4. 根据权利要求1至3任意一项所述的读数据的方法,其特征在于,所述控制设备通过网络接收前端设备发送的第一读信息,包括:The method for reading data according to any one of claims 1 to 3, wherein the control device receives the first read information sent by the front-end device through the network, including:
    控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息;The control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
    控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,包括:The control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
    控制设备根据所述后端存储设备的地址信息,将第二读信息以所述MAC帧形式发送给所述后端存储设备。The control device sends the second read information to the backend storage device in the form of the MAC frame according to the address information of the backend storage device.
  5. 根据权利要求1至4任意一项所述的读数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for reading data according to any one of claims 1 to 4, wherein the network comprises any one of the following networks: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  6. 一种读数据的方法,其特征在于,包括:A method of reading data, comprising:
    后端存储设备通过网络接收控制设备发送的第二读信息,所述第二读信息包括读命令、前端设备的地址信息和磁盘的物理接口地址信息;所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The backend storage device receives, by using a network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
    所述后端存储设备根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找的所要读取的数据发送给所述前端设备。The backend storage device searches for data to be read in the disk according to physical interface address information of the disk, and searches for data to be read through the network according to address information of the front-end device. Sent to the front end device.
  7. 根据权利要求6所述的读数据的方法,其特征在于,在所述后端存储设备通过所述网络接收所述控制设备发送的第二读信息之前,所述方法还包括:The method of reading data according to claim 6, wherein before the receiving, by the backend storage device, the second read information sent by the control device, the method further comprises:
    当所述后端存储设备启动时,所述后端存储设备获取所述磁盘的物理接口地址信息;When the backend storage device is started, the backend storage device acquires physical interface address information of the disk;
    当所述后端存储设备接收到所述控制设备发送的广播包时,向所述控制设 备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。When the backend storage device receives the broadcast packet sent by the control device, to the control device The backend storage device information is reported, and the backend storage device information includes address information of the backend storage device and physical interface address information of a disk of the backend storage device.
  8. 根据权利要求6或7所述的读数据的方法,其特征在于,所述后端存储设备通过所述网络接收所述控制设备发送的第二读信息,包括:The method for reading data according to claim 6 or 7, wherein the receiving, by the backend storage device, the second read information sent by the control device by using the network includes:
    所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二读信息;Receiving, by the backend storage device, the second read information sent by the control device in the form of a multimedia access control MAC frame by using the network;
    所述后端存储设备根据所述前端设备的地址,通过所述网络将查找的所要读取的数据发送给所述前端设备,包括:The back-end storage device sends, to the front-end device, the data to be read by the network, according to the address of the front-end device, including:
    所述后端存储设备根据所述前端设备的地址,通过所述网络将查找的所要读取的数据以所述MAC帧形式发送给所述前端设备。The backend storage device sends the data to be read by the network to the front end device in the form of the MAC frame according to the address of the front end device.
  9. 根据权利要求6至8任意一项所述的读数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for reading data according to any one of claims 6 to 8, wherein the network comprises any one of the following networks: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  10. 一种读数据的方法,其特征在于,包括:A method of reading data, comprising:
    前端设备通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends the first read information to the control device through the network; wherein the first read information includes a read command and logical interface address information of a disk of the back-end storage device, and the data to be read by the read command is stored in the The control device, the front-end device, and the back-end storage device are interconnected by the network;
    所述控制设备通过所述网络接收所述前端设备发送的第一读信息,以及根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,以及根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;Receiving, by the network, the first read information sent by the front-end device, and acquiring the address information of the back-end storage device to which the disk belongs and the physicality of the disk according to the logical interface address information of the disk The interface address information, and the second read information is sent to the backend storage device according to the address information of the backend storage device, where the second read information includes the read command, address information of the front end device, and Physical interface address information of the disk;
    所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。 The backend storage device receives the second read information sent by the control device by using the network, and searches for data to be read in the disk according to physical interface address information of the disk, and according to the The address information of the front-end device is sent to the front-end device by the network to find the data to be read.
  11. 根据权利要求10所述的读数据的方法,其特征在于,所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:The method for reading data according to claim 10, wherein the control device acquires address information of the backend storage device to which the disk belongs and a physical interface of the disk according to the logical interface address information of the disk Address information, including:
    所述控制设备根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate Corresponding relationship between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  12. 根据权利要求10或11所述的读数据的方法,其特征在于,在所述控制设备通过所述网络接收所述前端设备发送的第一读信息之前,所述方法还包括:The method for reading data according to claim 10 or 11, wherein before the controlling device receives the first read information sent by the front end device by using the network, the method further includes:
    所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
    所述后端存储设备接收所述控制设备发送的广播包,并向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and the Physical interface address information of the disk of the end storage device;
    所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
  13. 根据权利要求10至12任意一项所述的读数据的方法,其特征在于,所述控制设备通过网络接收前端设备发送的第一读信息,包括:The method for reading data according to any one of claims 10 to 12, wherein the control device receives the first read information sent by the front-end device through the network, including:
    控制设备通过网络接收前端设备以多媒体接入控制MAC帧形式发送的第一读信息;The control device receives, by using the network, the first read information sent by the front end device in the form of a multimedia access control MAC frame;
    控制设备根据所述后端存储设备的地址信息,将第二读信息发送给所述后端存储设备,包括:The control device sends the second read information to the backend storage device according to the address information of the backend storage device, including:
    控制设备根据所述后端存储设备的地址信息,将第二读信息以所述MAC 帧形式发送给所述后端存储设备。The control device uses the address information of the backend storage device to use the second read information as the MAC address. The frame form is sent to the backend storage device.
  14. 根据权利要求10至13任意一项所述的读数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for reading data according to any one of claims 10 to 13, wherein the network comprises any one of the following: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  15. 一种写数据的方法,其特征在于,包括:A method of writing data, comprising:
    控制设备通过网络接收前端设备发送的第一写信息;所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The control device receives, by using a network, first write information sent by the front-end device; the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device, and the back end The storage devices are interconnected by the network;
    所述控制设备根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The control device acquires address information of the backend storage device to which the disk belongs and physical interface address information of the disk according to the logical interface address information of the disk;
    所述控制设备根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The control device sends the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and the disk The physical interface address information is such that the backend storage device receives the second write information sent by the control device through the network, and finds the disk according to the physical interface address information of the disk, and generates First response information, and transmitting, by the network, the first response information to the control device according to address information of the front end device; the first response information indicating a disk pair reception of the backend storage device a response to a write command initiated by the front end device;
    所述控制设备接收所述后端存储设备通过网络发送的第一响应信息;Receiving, by the control device, first response information that is sent by the backend storage device through a network;
    所述控制设备在接收到所述第一响应信息之后,根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;After receiving the first response information, the control device generates second response information according to the first response information and the address information of the backend storage device, where the second response information includes the first response information. And address information of the backend storage device;
    所述控制设备将第二响应信息发送给所述前端设备,使得所述前端设备接收到所述第二响应信息,根据所述后端存储设备的地址信息,将所要写的数据通过所述网络发送给所述后端存储设备,使得所述后端存储设备接收到所要写的数据,并将所要写的数据写入所述磁盘。The control device sends the second response information to the front-end device, so that the front-end device receives the second response information, and passes the data to be written through the network according to the address information of the back-end storage device. Sending to the backend storage device such that the backend storage device receives the data to be written and writes the data to be written to the disk.
  16. 根据权利要求15所述的写数据的方法,其特征在于,在所述控制设备通过网络接收前端设备发送的第一写信息之前,所述方法还包括: The method for writing data according to claim 15, wherein before the controlling device receives the first write information sent by the front-end device through the network, the method further includes:
    所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
    所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
  17. 根据权利要求15或16所述的写数据的方法,其特征在于,所述控制设备接收所述后端存储设备通过所述网络发送的第一响应信息,包括:The method for writing data according to claim 15 or 16, wherein the control device receives the first response information that is sent by the backend storage device through the network, and includes:
    所述控制设备接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的第一响应信息;Receiving, by the control device, first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network;
    所述控制设备通过所述网络接收所述前端设备发送的第一写信息,包括:Receiving, by the control device, the first write information sent by the front end device by using the network, including:
    所述控制设备通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的第一写信息。The control device receives, by using the network, first write information that is sent by the front end device in the form of a multimedia access control MAC frame.
  18. 根据权利要求15至17任意一项所述的写数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for writing data according to any one of claims 15 to 17, wherein the network comprises any one of the following: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  19. 一种写数据的方法,其特征在于,包括:A method of writing data, comprising:
    前端设备通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息,使得所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所 述前端设备发起的写命令的响应;所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,并将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends the first write information to the control device through the network, where the first write information includes a write command and logical interface address information of the disk of the back-end storage device, so that the control device receives the first write information, and according to the And obtaining, by the logical interface address information of the disk, the address information of the backend storage device to which the disk belongs and the physical interface address information of the disk; and sending the second write information according to the address information of the backend storage device For the backend storage device, the second write information includes the write command, address information of the front end device, and physical interface address information of the disk, so that the backend storage device receives the network through the network The second write information sent by the control device, and searching for the disk according to the physical interface address information of the disk, and generating first response information, and passing the network according to the address information of the front-end device Transmitting the first response information to the control device; the first response information indicating a disk pair of the backend storage device Received a response of the write command initiated by the front-end device; the control device generates second response information according to the first response information and the address information of the back-end storage device, and sends the second response information to the front-end device The second response information includes first response information and address information of the backend storage device; the control device, the front end device, and the backend storage device are interconnected by the network;
    所述前端设备通过所述网络接收所述控制设备发送的第二响应信息;并根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所要写的数据,并将所要写的数据写入所述磁盘。The front-end device receives the second response information sent by the control device by using the network, and sends the data to be written to the back-end storage device according to the address information of the back-end storage device, so that the The end storage device receives the data to be written and writes the data to be written to the disk.
  20. 根据权利要求19所述的写数据的方法,其特征在于,所述前端设备通过所述网络向所述控制设备发送第一写信息,包括:The method of writing data according to claim 19, wherein the sending, by the front-end device, the first write information to the control device by using the network includes:
    所述前端设备通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息;Sending, by the front-end device, the first write information to the control device in the form of a multimedia access control MAC frame through the network;
    所述前端设备通过网络接收所述控制设备发送的第二响应信息,包括:The front-end device receives the second response information sent by the control device by using a network, including:
    所述前端设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二响应信息。The front end device receives, by using the network, second response information that is sent by the control device in the form of a multimedia access control MAC frame.
  21. 根据权利要求19或20所述的写数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for writing data according to claim 19 or 20, wherein the network comprises any one of the following: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  22. 一种写数据的方法,其特征在于,包括:A method of writing data, comprising:
    后端存储设备通过网络接收控制设备发送的所述第二写信息,所述第二写信息包括所述写命令、前端设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;Receiving, by the network device, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk of the backend storage device; The control device, the front end device, and the backend storage device are interconnected by the network;
    所述后端存储设备根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The backend storage device searches for the disk according to the physical interface address information of the disk, and generates first response information; the first response information indicates that the disk of the backend storage device receives the received The response of the write command initiated by the front-end device;
    所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备;其中,所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备 发起的写命令的响应,所述后端存储设备的磁盘用于写入所述写命令所要写的数据;Transmitting, by the backend storage device, the first response information to the control device by using the network, where the first response information indicates that the disk device of the backend storage device receives the front-end device In response to the initiated write command, the disk of the backend storage device is used to write data to be written by the write command;
    在所述后端存储设备通过网络将第一响应信息发送给所述控制设备之后,所述后端存储设备通过所述网络接收所述前端设备发送的所述前端设备所要写的数据,并将所述所要写的数据写入所述磁盘。After the backend storage device sends the first response information to the control device through the network, the backend storage device receives, by the network, data to be written by the front end device sent by the front end device, and The data to be written is written to the disk.
  23. 根据权利要求22所述的写数据的方法,其特征在于,所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备,包括:The method of writing data according to claim 22, wherein the backend storage device sends the first response information to the control device by using the network, including:
    所述后端存储设备通过所述网络将所述第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;The backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
    所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,包括:Receiving, by the backend storage device, the second write information sent by the control device by using the network, including:
    所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
  24. 根据权利要求22或23所述的写数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for writing data according to claim 22 or 23, wherein the network comprises any one of the following: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  25. 一种写数据的方法,其特征在于,包括:A method of writing data, comprising:
    前端设备通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;The front-end device sends first write information to the control device through the network, where the first write information includes a write command and logical interface address information of a disk of the back-end storage device; the control device, the front-end device, and the back-end storage device pass The network interconnection;
    所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息;Receiving, by the control device, the first write information, and acquiring, according to the logical interface address information of the disk, address information of the backend storage device to which the disk belongs and physical interface address information of the disk; The address information of the backend storage device sends the second write information to the backend storage device, where the second write information includes the write command, address information of the front end device, and physical interface address information of the disk ;
    所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息 发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The backend storage device receives the second write information sent by the control device by using the network, and finds the disk according to physical interface address information of the disk, and generates first response information, and according to the Address information of the front end device, the first response information is sent through the network Sending to the control device; the first response information indicates a response of the disk of the backend storage device to the received write command initiated by the front end device;
    所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,以及将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;The control device generates second response information according to the first response information and the address information of the backend storage device, and sends the second response information to the front end device; the second response information includes the first Response information and address information of the backend storage device;
    所述前端设备通过所述网络接收所述控制设备发送的所述第二响应信息;在获得所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据通过所述网络发送给所述后端存储设备;The front-end device receives the second response information sent by the control device by using the network; after obtaining the second response information, the data to be written is passed according to the address information of the back-end storage device. Sending the network to the backend storage device;
    所述后端存储设备接收所要写的数据,并将所要写的数据写入所述磁盘。The backend storage device receives the data to be written and writes the data to be written to the disk.
  26. 根据权利要求25所述的写数据的方法,其特征在于,在所述控制设备通过网络接收前端设备发送的第一写信息之前,所述方法还包括:The method for writing data according to claim 25, wherein before the controlling device receives the first write information sent by the front end device through the network, the method further includes:
    所述控制设备向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device sends a broadcast packet to the backend storage device, where the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes Address information of the backend storage device and physical interface address information of a disk of the backend storage device;
    所述后端存储设备接收所述控制设备发送的所述广播包,并向所述控制设备上报所述后端存储设备信息;Receiving, by the backend storage device, the broadcast packet sent by the control device, and reporting the backend storage device information to the control device;
    所述控制设备接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。Receiving, by the control device, the backend storage device information reported by the backend storage device, and establishing logical interface address information of the disk, physical interface address information of the disk, and address information of the backend storage device Correspondence.
  27. 根据权利要求25或26所述的写数据的方法,其特征在于,所述控制设备接收所述后端存储设备通过所述网络发送的第一响应信息,包括:The method for writing data according to claim 25 or 26, wherein the receiving, by the control device, the first response information that is sent by the backend storage device through the network, includes:
    所述控制设备接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的所述第一响应信息;Receiving, by the control device, the first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network;
    所述控制设备通过所述网络接收所述前端设备发送的第一写信息,包括:Receiving, by the control device, the first write information sent by the front end device by using the network, including:
    所述控制设备通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的所述第一写信息; Receiving, by the control device, the first write information that is sent by the front end device in the form of a multimedia access control MAC frame by using the network;
    所述前端设备通过所述网络接收所述控制设备发送的第二响应信息,包括:Receiving, by the network device, the second response information sent by the control device by using the network, including:
    所述前端设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二响应信息;Receiving, by the front end device, the second response information that is sent by the control device in a form of a multimedia access control MAC frame by using the network;
    所述前端设备通过所述网络向所述控制设备发送第一写信息,包括:Sending, by the front-end device, the first write information to the control device by using the network, including:
    所述前端设备通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息;Sending, by the front-end device, the first write information to the control device in the form of a multimedia access control MAC frame through the network;
    所述后端存储设备通过所述网络将第一响应信息发送给所述控制设备,包括:The backend storage device sends the first response information to the control device by using the network, including:
    所述后端存储设备通过所述网络将第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;The backend storage device sends the first response information to the control device in the form of a multimedia access control MAC frame through the network;
    所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,包括:Receiving, by the backend storage device, the second write information sent by the control device by using the network, including:
    所述后端存储设备通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The backend storage device receives, by the network, the second write information that is sent by the control device in the form of a multimedia access control MAC frame.
  28. 根据权利要求25至27任意一项所述的写数据的方法,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The method for writing data according to any one of claims 25 to 27, wherein the network comprises any one of the following networks: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
  29. 一种控制设备,其特征在于,包括:A control device, comprising:
    接收单元,用于通过网络接收前端设备发送的第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;a receiving unit, configured to receive, by using a network, first read information sent by the front end device, where the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data to be read by the read command Stored on a disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
    处理单元,用于根据所述接收单元接收到的所述第一读信息中的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;a processing unit, configured to acquire, according to logical interface address information of the disk in the first read information received by the receiving unit, address information of a backend storage device to which the disk belongs and a physical interface of the disk Address information;
    发送单元,用于根据所述处理单元获取到的所述后端存储设备的地址信 息,将第二读信息发送给所述后端存储设备,所述第二读信息包括所述读命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二读信息,并根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据,以及根据所述前端设备的地址信息,通过所述网络将查找到的所要读取的数据发送给所述前端设备。a sending unit, configured to receive, according to the processing unit, an address letter of the backend storage device Transmitting, to the backend storage device, the second read information includes the read command, address information of the front end device, and physical interface address information of the disk, so that the back end The storage device receives the second read information sent by the control device by using the network, and searches for data to be read in the disk according to physical interface address information of the disk, and according to the front end device The address information is sent to the front end device by the network to find the data to be read.
  30. 根据权利要求29所述的控制设备,其特征在于,处理单元,用于根据所述接收单元接收到的所述第一读信息中的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,包括:The control device according to claim 29, wherein the processing unit is configured to acquire, according to the logical interface address information of the disk in the first read information received by the receiving unit, the disk to which the disk belongs The address information of the backend storage device and the physical interface address information of the disk, including:
    用于:根据所述磁盘的逻辑接口地址信息和映射关系信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息,所述映射关系信息用于表示所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。And the information about the address of the backend storage device to which the disk belongs and the physical interface address information of the disk are obtained according to the logical interface address information and the mapping relationship information of the disk, where the mapping relationship information is used to indicate the Correspondence between the logical interface address information of the disk and the physical interface address information of the disk and the address information of the backend storage device.
  31. 根据权利要求29或30所述的控制设备,其特征在于,所述发送单元还用于在所述接收单元通过网络接收前端设备发送的第一读信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device according to claim 29 or 30, wherein the transmitting unit is further configured to send a broadcast to the backend storage device before the receiving unit receives the first read information sent by the front end device through the network. a packet, the broadcast packet is used to cause the backend storage device to report the backend storage device information to the control device, where the backend storage device information includes address information of the backend storage device and the back Physical interface address information of the disk of the end storage device;
    所述接收单元还用于接收所述后端存储设备上报的所述后端存储设备信息;The receiving unit is further configured to receive the backend storage device information reported by the backend storage device;
    所述处理单元还用于在所述接收单元接收所述后端存储设备上报的所述后端存储设备信息之后,建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The processing unit is further configured to: after the receiving unit receives the backend storage device information reported by the backend storage device, establish logical interface address information of the disk and physical interface address information of the disk and the The correspondence between the address information of the backend storage device.
  32. 一种后端存储设备,其特征在于,包括:A backend storage device, comprising:
    接收单元,用于通过网络接收控制设备发送的第二读信息,所述第二读信息包括读命令、前端设备的地址信息和磁盘的物理接口地址信息;所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端 设备与所述后端存储设备通过所述网络互联;a receiving unit, configured to receive, by using a network, second read information sent by the control device, where the second read information includes a read command, address information of the front end device, and physical interface address information of the disk; and data storage to be read by the read command On the disk of the backend storage device; the control device, the front end The device and the backend storage device are interconnected by the network;
    查找单元,用于在所述接收单元接收到所述第二读信息之后,根据所述磁盘的物理接口地址信息,查找所述磁盘中的所要读取的数据;a searching unit, configured to: after the receiving unit receives the second read information, search for data to be read in the disk according to physical interface address information of the disk;
    发送单元,用于在所述查找单元查找到所述磁盘中的所要读取的数据之后,根据所述前端设备的地址信息,通过所述网络将查找的所要读取的数据发送给所述前端设备。a sending unit, configured to send the searched data to be read by the network to the front end according to the address information of the front end device after the searching unit searches for the data to be read in the disk device.
  33. 根据权利要求32所述的后端存储设备,其特征在于,还包括:获取单元,所述获取单元用于在所述接收单元通过所述网络接收所述控制设备发送的第二读信息之前,当所述后端存储设备启动时,获取所述磁盘的物理接口地址信息;The backend storage device according to claim 32, further comprising: an obtaining unit, configured to: before the receiving unit receives the second read information sent by the control device by using the network, Obtaining physical interface address information of the disk when the backend storage device is started;
    所述发送单元还用于当所述接收单元接收到所述控制设备发送的广播包时,向所述控制设备上报后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息。The sending unit is further configured to: when the receiving unit receives the broadcast packet sent by the control device, report the backend storage device information to the control device, where the backend storage device information includes the backend storage device Address information and physical interface address information of the disk of the backend storage device.
  34. 根据权利要求32或33所述的后端存储设备,其特征在于,所述发送单元用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二读信息;The backend storage device according to claim 32 or 33, wherein the sending unit is configured to receive, by the network, second read information that is sent by the control device in a multimedia access control MAC frame format;
    所述发送单元用于根据所述前端设备的地址,通过所述网络将查找的所要读取的数据以所述MAC帧形式发送给所述前端设备。The sending unit is configured to send, by using the network, the searched data to be read by the network to the front end device in the form of the MAC frame according to an address of the front end device.
  35. 一种前端设备,其特征在于,包括:A front-end device, comprising:
    发送单元,用于通过网络向控制设备发送第一读信息;其中,所述第一读信息包括读命令和后端存储设备的磁盘的逻辑接口地址信息,所述读命令所要读取的数据存储在所述后端存储设备的磁盘上;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;a sending unit, configured to send first read information to the control device over the network; wherein the first read information includes a read command and logical interface address information of a disk of the backend storage device, and the data storage to be read by the read command On the disk of the backend storage device; the control device, the front-end device, and the back-end storage device are interconnected by the network;
    接收单元,用于在所述发送单元通过所述网络向所述控制设备发送所述第一读信息之后,通过所述网络接收所述后端存储设备发送的所要读取的数据。a receiving unit, configured to receive, by the network, the data to be read sent by the backend storage device after the sending unit sends the first read information to the control device by using the network.
  36. 根据权利要求35所述的前端设备,其特征在于,发送单元,用于通过网络向控制设备发送第一读信息,包括: The front-end device according to claim 35, wherein the sending unit is configured to send the first read information to the control device over the network, including:
    用于通过网络向控制设备以多媒体接入控制MAC帧形式发送第一读信息。And transmitting, by using a network, the first read information in a form of a multimedia access control MAC frame to the control device.
  37. 一种存储系统,其特征在于,包括如权利要求29至31任意一项所述的控制设备、如权利要求32至34任意一项所述的后端存储设备和如权利要求35或36所述的前端设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联。A storage system, comprising the control device according to any one of claims 29 to 31, the backend storage device according to any one of claims 32 to 34, and the method of claim 35 or 36 The front-end device, the control device, the front-end device and the back-end storage device are interconnected through the same network.
  38. 根据权利要求37所述的存储系统,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。The storage system according to claim 37, wherein the network comprises any one of the following: a Fibre Channel network, an Ethernet, and a fast peripheral interconnect standard PCIe network.
  39. 一种控制设备,其特征在于,包括:接收单元、处理单元和发送单元,A control device, comprising: a receiving unit, a processing unit, and a sending unit,
    所述接收单元用于通过网络接收前端设备发送的第一写信息;所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit is configured to receive, by using a network, first write information sent by the front end device; the first write information includes a write command and logical interface address information of a disk of the backend storage device; the control device, the front end device, and The backend storage devices are interconnected by the network;
    所述处理单元用于根据所述接收单元接收到的第一响应信息包含的所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;The processing unit is configured to acquire, according to the logical interface address information of the disk that is included in the first response information received by the receiving unit, address information of a backend storage device to which the disk belongs and a physical interface address of the disk information;
    所述发送单元用于根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的前端设备发起的写命令的响应;The sending unit is configured to send the second write information to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command, address information of the front end device, and the The physical interface address information of the disk is such that the backend storage device receives the second write information sent by the control device through the network, and searches for the disk according to the physical interface address information of the disk. And generating first response information, and sending, by the network, the first response information to the control device according to the address information of the front end device; the first response information indicating a disk of the backend storage device a response to a received write command initiated by the front end device;
    所述接收单元还用于接收所述后端存储设备通过所述网络发送的第一响应信息;The receiving unit is further configured to receive first response information that is sent by the backend storage device by using the network;
    所述处理单元根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息; The processing unit generates second response information according to the first response information and address information of the backend storage device, where the second response information includes first response information and address information of the backend storage device;
    所述发送单元还用于将第二响应信息发送给所述前端设备,使得所述前端设备接收到所述第二响应信息,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。The sending unit is further configured to send the second response information to the front end device, so that the front end device receives the second response information, and sends the data to be written according to the address information of the backend storage device. Giving the backend storage device such that the backend storage device receives the data to be written and writes the data to be written to the disk.
  40. 根据权利要求39所述的控制设备,其特征在于,所述发送单元还用于在所述接收单元通过所述网络接收所述前端设备发送的第一写信息之前,向所述后端存储设备发送广播包,所述广播包用于使所述后端存储设备向所述控制设备上报所述后端存储设备信息,所述后端存储设备信息包括所述后端存储设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;The control device according to claim 39, wherein the sending unit is further configured to: before the receiving unit receives the first write information sent by the front end device by using the network, to the back end storage device Sending a broadcast packet, the broadcast packet is used to report the backend storage device information to the control device, where the backend storage device information includes address information and a location of the backend storage device The physical interface address information of the disk of the backend storage device;
    所述接收单元还用于接收所述后端存储设备上报的所述后端存储设备信息,并建立所述磁盘的逻辑接口地址信息与所述磁盘的物理接口地址信息及所述后端存储设备的地址信息的对应关系。The receiving unit is further configured to receive the backend storage device information reported by the backend storage device, and establish logical interface address information of the disk and physical interface address information of the disk and the backend storage device. Correspondence of address information.
  41. 根据权利要求39或40所述的控制设备,其特征在于,所述接收单元还用于接收所述后端存储设备通过所述网络以多媒体接入控制MAC帧形式发送的第一响应信息;The control device according to claim 39 or 40, wherein the receiving unit is further configured to receive first response information that is sent by the backend storage device in the form of a multimedia access control MAC frame by using the network;
    所述发送单元还用于通过所述网络接收所述前端设备以多媒体接入控制MAC帧形式发送的第一写信息。The sending unit is further configured to receive, by using the network, first write information that is sent by the front end device in a multimedia access control MAC frame format.
  42. 一种前端设备,其特征在于,包括:发送单元和接收单元,其中,所述发送单元用于通过网络向控制设备发送第一写信息,所述第一写信息包括写命令和后端存储设备的磁盘的逻辑接口地址信息,使得所述控制设备接收所述第一写信息,并根据所述磁盘的逻辑接口地址信息,获取所述磁盘所属的后端存储设备的地址信息和所述磁盘的物理接口地址信息;以及根据所述后端存储设备的地址信息,将第二写信息发送给所述后端存储设备,所述第二写信息包括所述写命令、所述前端设备的地址信息和所述磁盘的物理接口地址信息,使得所述后端存储设备通过所述网络接收所述控制设备发送的所述第二写信息,并根据所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息,以及根据所述前端设备的地址信息,通过所述网络将所述第一响应信息发送给所述控制设备;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所 述前端设备发起的写命令的响应;所述控制设备根据所述第一响应信息和所述后端存储设备的地址信息,生成第二响应信息,并将第二响应信息发送给所述前端设备;所述第二响应信息包括第一响应信息和所述后端存储设备的地址信息;所述控制设备、所述前端设备与后端存储设备通过所述网络互联;A front-end device, comprising: a sending unit and a receiving unit, wherein the sending unit is configured to send first write information to a control device by using a network, where the first write information includes a write command and a backend storage device The logical interface address information of the disk is such that the control device receives the first write information, and obtains address information of the backend storage device to which the disk belongs and the disk according to the logical interface address information of the disk. And the second write information is sent to the backend storage device according to the address information of the backend storage device, where the second write information includes the write command and the address information of the front end device. And the physical interface address information of the disk, the backend storage device receives the second write information sent by the control device by using the network, and finds the information according to the physical interface address information of the disk. Disk, and generating first response information, and according to the address information of the front end device, the first response letter is sent through the network Transmitted to the control device; the first response information indicative of the rear end of the disk storage device docking received a response of the write command initiated by the front-end device; the control device generates second response information according to the first response information and the address information of the back-end storage device, and sends the second response information to the front-end device The second response information includes first response information and address information of the backend storage device; the control device, the front end device, and the backend storage device are interconnected by the network;
    所述接收单元用于通过所述网络接收所述控制设备发送的第二响应信息;The receiving unit is configured to receive, by using the network, second response information sent by the control device;
    所述发送单元还用于在接收单元接收到所述第二响应信息之后,根据所述后端存储设备的地址信息,将所要写的数据发送给所述后端存储设备,使得所述后端存储设备接收到所述所要写的数据,并将所述所要写的数据写入所述磁盘。The sending unit is further configured to: after the receiving unit receives the second response information, send the data to be written to the backend storage device according to the address information of the backend storage device, so that the back end The storage device receives the data to be written and writes the data to be written to the disk.
  43. 根据权利要求42所述的前端设备,其特征在于,所述接收单元还用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的第二响应信息;The front-end device according to claim 42, wherein the receiving unit is further configured to receive, by using the network, second response information that is sent by the control device in a multimedia access control MAC frame format;
    所述发送单元还用于通过所述网络向所述控制设备以多媒体接入控制MAC帧形式发送第一写信息。The sending unit is further configured to send, by using the network, the first write information to the control device in the form of a multimedia access control MAC frame.
  44. 一种后端存储设备,其特征在于,包括:发送单元、处理单元和接收单元,A backend storage device, comprising: a sending unit, a processing unit, and a receiving unit,
    所述接收单元用于通过网络接收控制设备发送的所述第二写信息,所述第二写信息包括所述写命令、前端设备的地址信息和所述后端存储设备的磁盘的物理接口地址信息;所述控制设备、所述前端设备与所述后端存储设备通过所述网络互联;The receiving unit is configured to receive, by using a network, the second write information sent by the control device, where the second write information includes the write command, address information of the front end device, and a physical interface address of the disk of the backend storage device. Information; the control device, the front end device, and the backend storage device are interconnected by the network;
    所述处理单元用于根据所述接收单元接收到的所述磁盘的物理接口地址信息,查找到所述磁盘,并生成第一响应信息;所述第一响应信息表示所述后端存储设备的磁盘对接收到的所述前端设备发起的写命令的响应;The processing unit is configured to find the disk according to the physical interface address information of the disk that is received by the receiving unit, and generate first response information; the first response information indicates that the backend storage device is a response of the disk to the received write command initiated by the front end device;
    所述发送单元用于通过所述网络将所述第一响应信息发送给所述控制设备;The sending unit is configured to send the first response information to the control device by using the network;
    所述接收单元还用于在所述发送单元通过网络将所述第一响应信息发送给所述控制设备之后,通过所述网络接收所述前端设备发送的所述前端设备所 要写的数据,并将所述所要写的数据写入所述磁盘。The receiving unit is further configured to: after the sending unit sends the first response information to the control device by using a network, receive, by using the network, the front-end device that is sent by the front-end device The data to be written and write the data to be written to the disk.
  45. 根据权利要求44所述的后端存储设备,其特征在于,A backend storage device according to claim 44, wherein
    所述发送单元还用于通过所述网络将所述第一响应信息以多媒体接入控制MAC帧形式发送给所述控制设备;The sending unit is further configured to send, by using the network, the first response information to the control device in a multimedia access control MAC frame format;
    所述接收单元还用于通过所述网络接收所述控制设备以多媒体接入控制MAC帧形式发送的所述第二写信息。The receiving unit is further configured to receive, by using the network, the second write information that is sent by the control device in a multimedia access control MAC frame format.
  46. 一种存储系统,其特征在于,包括:包括如权利要求39至41任意一项所述的控制设备、如权利要求42或43所述的前端设备和如权利要求44或45所述的后端存储设备,所述控制设备、所述前端设备与后端存储设备通过同一网络互联。A storage system, comprising: a control device according to any one of claims 39 to 41, a front end device according to claim 42 or 43 and a back end according to claim 44 or 45 The storage device, the control device, the front-end device, and the back-end storage device are interconnected through the same network.
  47. 根据权利要求46所述的存储系统,其特征在于,所述网络包括以下任意一种网络:光纤信道网、以太网、快捷外设互联标准PCIe网。 The storage system according to claim 46, wherein the network comprises any one of the following: a fiber channel network, an Ethernet, and a fast peripheral interconnection standard PCIe network.
PCT/CN2015/076661 2014-05-29 2015-04-15 Method and device for reading and writing data, and storage system WO2015180538A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410234015.4 2014-05-29
CN201410234015.4A CN103984662B (en) 2014-05-29 2014-05-29 A kind of method and apparatus of reading and writing data, storage system

Publications (1)

Publication Number Publication Date
WO2015180538A1 true WO2015180538A1 (en) 2015-12-03

Family

ID=51276645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076661 WO2015180538A1 (en) 2014-05-29 2015-04-15 Method and device for reading and writing data, and storage system

Country Status (2)

Country Link
CN (1) CN103984662B (en)
WO (1) WO2015180538A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984662B (en) * 2014-05-29 2017-03-15 华为技术有限公司 A kind of method and apparatus of reading and writing data, storage system
CN104038550B (en) * 2014-06-18 2018-01-23 华为技术有限公司 Data communications method and its device, storage system
JP6272465B2 (en) 2014-08-13 2018-01-31 華為技術有限公司Huawei Technologies Co.,Ltd. Storage system, method and apparatus for processing operational requests
CN105450687B (en) * 2014-08-19 2019-06-07 华为技术有限公司 A kind of label conversion method, device and SAS memory
CN107436904B (en) * 2016-05-27 2020-06-30 北京京东尚科信息技术有限公司 Data acquisition method, data acquisition device, and computer-readable storage medium
WO2018137217A1 (en) 2017-01-25 2018-08-02 华为技术有限公司 Data processing system, method, and corresponding device
CN112015352B (en) * 2020-10-21 2021-01-22 北京首都在线科技股份有限公司 Storage block device identification device, system and storage block device reading and writing method
CN113014662A (en) * 2021-03-11 2021-06-22 联想(北京)有限公司 Data processing method and storage system based on NVMe-oF protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653436A (en) * 2002-05-13 2005-08-10 英特尔公司 DMA controller system including real-time data communication component
CN101046781A (en) * 2006-03-30 2007-10-03 信亿科技股份有限公司 Device for bridge a mainframe to a memory region network
US8347010B1 (en) * 2005-12-02 2013-01-01 Branislav Radovanovic Scalable data storage architecture and methods of eliminating I/O traffic bottlenecks
CN103064795A (en) * 2012-12-31 2013-04-24 华为技术有限公司 Control method of memory device and relevant device
CN103677670A (en) * 2013-12-11 2014-03-26 华为技术有限公司 Method and device for reading data
CN103984662A (en) * 2014-05-29 2014-08-13 华为技术有限公司 Method and device for reading and writing data and storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653436A (en) * 2002-05-13 2005-08-10 英特尔公司 DMA controller system including real-time data communication component
US8347010B1 (en) * 2005-12-02 2013-01-01 Branislav Radovanovic Scalable data storage architecture and methods of eliminating I/O traffic bottlenecks
CN101046781A (en) * 2006-03-30 2007-10-03 信亿科技股份有限公司 Device for bridge a mainframe to a memory region network
CN103064795A (en) * 2012-12-31 2013-04-24 华为技术有限公司 Control method of memory device and relevant device
CN103677670A (en) * 2013-12-11 2014-03-26 华为技术有限公司 Method and device for reading data
CN103984662A (en) * 2014-05-29 2014-08-13 华为技术有限公司 Method and device for reading and writing data and storage system

Also Published As

Publication number Publication date
CN103984662A (en) 2014-08-13
CN103984662B (en) 2017-03-15

Similar Documents

Publication Publication Date Title
WO2015180538A1 (en) Method and device for reading and writing data, and storage system
US20200278880A1 (en) Method, apparatus, and system for accessing storage device
US20140195634A1 (en) System and Method for Multiservice Input/Output
US20170031857A1 (en) Device Management Method and Apparatus
TWI571087B (en) Nvm express controller for remote access of memory and i/o over ethernet-type networks
WO2015197027A1 (en) Method for accessing nvme storage device, and nvme storage device
CN109445905B (en) Virtual machine data communication method and system and virtual machine configuration method and device
CN112130748B (en) Data access method, network card and server
CN103793347B (en) The method and structure of the SAS expander of the routing property of its port of self-configuring
US9213500B2 (en) Data processing method and device
US9973351B2 (en) Data processing method and apparatus, storage controller, and cabinet
WO2015035887A1 (en) Data storage method, apparatus, and system
JP2017513096A (en) Computer, control device and data processing method
US20220222016A1 (en) Method for accessing solid state disk and storage device
US9003077B2 (en) Sharing IOMMU mappings across devices in a DMA group
US20190042161A1 (en) Hard Disk Operation Method and Hard Disk Manager
WO2016101856A1 (en) Data access method and apparatus
CN112817899B (en) PCIE-based data transmission method and device, storage medium and electronic equipment
US9858007B2 (en) Decoupling host and device address maps for a peripheral component interconnect express controller
JP6203272B2 (en) Computer system for virtualization of I / O device, operation method thereof, and HUB device
WO2018099241A1 (en) Disk array controller, and data processing method and device thereof
US10019203B1 (en) Method and system for processing write requests
US9122806B2 (en) SATA data appliance for providing SATA hosts with access to a configurable number of SATA drives residing in a SAS topology
CN110417573A (en) A kind of method and system of data transmission
WO2022141250A1 (en) Data transmission method and related apparatus

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: 15799407

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: 15799407

Country of ref document: EP

Kind code of ref document: A1