SATA Storage Device Information Transmission Method, Apparatus and SATA Switch

By realizing direct device-to-device communication in the SATA switch, the problem of inefficient information transmission between SATA storage devices is solved, data transmission efficiency is improved and host resources are saved.

CN120223781BActive Publication Date: 2025-08-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510699146.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-08-01
Estimated Expiration
2045-05-28

AI Technical Summary

Technical Problem

The information transmission method between existing SATA storage devices is inefficient and resource waste is severe.

Method used

By realizing the determination of the frame information structure type and direct communication between the device to the device in the SATA switch, it is avoided to directly transmit information between the SATA storage devices through the storage controller or memory processing.

Benefits of technology

It improves data transmission efficiency and saves host resource usage, and is suitable for low-latency and high-concurrency data storage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223781B_ABST
    Figure CN120223781B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and SATA switch for information transmission of a SATA storage device, relating to the field of computer technologies. The method includes: in response to receiving an information transmission request message sent by a storage controller, determining a frame information structure type according to the information transmission request message; in response to the frame information structure type being a device-to-device type, determining a source device and a destination device according to the information transmission request message, and forwarding the information transmission request message to the source device; the source device being a first SATA storage device that sends first storage device information; the destination device being the first SATA storage device or a second SATA storage device that receives the first storage device information; in response to receiving the first storage device information sent by the source device, outputting the first storage device information to the destination device, solving problems such as low efficiency or resource waste, realizing direct communication between the source device and the destination device, and improving data transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a method and apparatus for transmitting information of a SATA storage device, and a SATA switch. Background Art

[0002] In today's digital age, the demand for data processing is increasing day by day, especially in the fields of artificial intelligence, big data analysis, and network communication. Devices for mass storage are mainly divided into SATA (Serial ATA) storage devices and PCIe (peripheral component interconnect express) storage devices. Due to the recoverability of its magnetic storage medium, high DSATA Retention performance, and low cost, SATA storage devices often play an irreplaceable role in scenarios that pay more attention to stability and are price-sensitive, such as small-scale data centers, university databases, security video servers, etc.

[0003] However, the current information transmission method between SATA storage devices has problems such as low efficiency or resource waste. Summary of the Invention

[0004] This application provides a method and apparatus for transmitting information of a SATA storage device, a SATA switch, a SATA storage system, and a storage medium, so as to at least solve the problems of low efficiency or resource waste in related technologies.

[0005] In a first aspect, this application provides a method for transmitting information of a SATA storage device. The method is applied to a first SATA switch. The method includes:

[0006] In response to receiving an information transmission request message sent by a storage controller, determining a frame information structure type according to the information transmission request message;

[0007] In response to the frame information structure type being a device-to-device type, determining a source device and a target device according to the information transmission request message, and forwarding the information transmission request message to the source device; the source device is a first SATA storage device that sends first storage device information; the target device is a first SATA storage device or a second SATA storage device that receives the first storage device information; the first SATA storage device is connected to the first SATA switch; the second SATA storage device is connected to the second SATA switch;

[0008] In response to receiving the first storage device information sent by the source device, outputting the first storage device information to the target device.

[0009] In one embodiment, the frame information structure type includes device - to - device type, host - to - device type, or device - to - host type; determining the frame information structure type according to the information transmission request message includes: analyzing the information transmission request message to obtain the request type; wherein, the request type includes requests between SATA storage devices; in response to the request type being a request between SATA storage devices, parsing the information transmission request message to obtain the frame information structure type and modifying the frame information structure type to the device - to - device type.

[0010] In one embodiment, determining the frame information structure type according to the information transmission request message includes: in response to the request type not being a request between SATA storage devices, parsing the information transmission request message to obtain the frame information structure type.

[0011] In one embodiment, the method further includes: in response to the frame information structure type being host - to - device type, determining the information receiving device according to the information transmission request message, parsing the information transmission request message to obtain the information of the host device to be transmitted; the information receiving device is the first SATA storage device that receives the information of the host device to be transmitted; forwarding the information of the host device to be transmitted to the information receiving device.

[0012] In one embodiment, the method further includes: in response to the frame information structure type being device - to - host type, determining the information sending device according to the information transmission request message and forwarding the information transmission request message to the information sending device; the information sending device is the first SATA storage device that sends the information of the second storage device; in response to receiving the information of the second storage device sent by the information sending device, sending an information transmission instruction and the information of the second storage device to the storage controller; the information transmission instruction is used to instruct the storage controller to transfer the second storage device to the host device.

[0013] In one embodiment, determining the source device and the target device according to the information transmission request message includes: parsing the information transmission request message to obtain the first device virtual address of the source device and the second device virtual address of the target device; determining the source device according to the first device virtual address; determining the target device according to the second device virtual address.

[0014] In one embodiment, forwarding the information transmission request message to the source device includes broadcasting the information transmission request message according to the first device virtual address so that the information transmission request message is forwarded to the source device; wherein, outputting the information of the first storage device to the target device includes: determining the switch connected to the target device according to the target device; in response to the switch connected to the target device being the first SATA switch, broadcasting the information of the first storage device according to the second device virtual address so that the information of the first storage device is output to the target device.

[0015] In one embodiment, outputting the first storage device information to the target device further includes: in response to the switch connected to the target device being the second SATA switch, forwarding the first storage device information to the second SATA switch, and sending an information broadcast instruction to the second SATA switch; wherein, the information broadcast instruction is used to instruct the second SATA switch to broadcast the first storage device information to the target device according to the second device virtual address; the first SATA switch and the second SATA switch are cascaded.

[0016] In a second aspect, the present application further provides a SATA storage device information transmission device, and the device is applied to the first SATA switch; the device includes a structure type determination module, a request message forwarding module, and a device information transmission module.

[0017] Among them, the structure type determination module is used to determine the frame information structure type according to the information transmission request message in response to receiving the information transmission request message sent by the storage controller; the request message forwarding module is used to determine the source device and the target device according to the information transmission request message in response to the frame information structure type being the device-to-device type, and forward the information transmission request message to the source device; the source device is the first SATA storage device that sends the first storage device information; the target device is the first SATA storage device or the second SATA storage device that receives the first storage device information; the first SATA storage device is connected to the first SATA switch; the second SATA storage device is connected to the second SATA switch; the device information transmission module is used to output the first storage device information to the target device in response to receiving the first storage device information sent by the source device.

[0018] In a third aspect, the present application further provides a SATA switch, including: a memory for storing a computer program; a processor for implementing the steps of any of the above SATA storage device information transmission methods when executing the computer program.

[0019] In a fourth aspect, the present application further provides a SATA storage system, and the SATA storage system includes a storage controller, a first SATA switch, a second SATA switch, each first SATA storage device, and each second SATA storage device; wherein, the storage controller is connected to the first SATA switch and the second SATA switch, the first SATA switch is connected to each first SATA storage device, the second SATA switch is connected to each second SATA storage device, and the first SATA switch and the second SATA switch are cascaded; the storage controller is used to connect to the host device; the first SATA switch is used to implement the steps of any of the above SATA storage device information transmission methods when executing the computer program.

[0020] In one embodiment, the storage controller is configured to receive an information transmission request sent by a host device, perform format conversion processing on the information transmission request to obtain an information transmission request message; the storage controller is further configured to send the information transmission request message to a first SATA switch.

[0021] In one embodiment, the first SATA storage device and the second SATA storage device include a solid-state SATA hard disk and a mechanical SATA hard disk.

[0022] In a fifth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above-mentioned SATA storage device information transmission methods are implemented.

[0023] In a sixth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned SATA storage device information transmission methods are implemented.

[0024] For the above-mentioned SATA storage device information transmission method, in response to receiving the information transmission request message sent by the storage controller, the frame information structure type is determined according to the information transmission request message; then, in response to the frame information structure type being the device-to-device type, the source device and the target device are determined according to the information transmission request message, and the information transmission request message is forwarded to the source device; the source device is the first SATA storage device that sends the first storage device information; the target device is the first SATA storage device or the second SATA storage device that receives the first storage device information; the first SATA storage device is connected to the first SATA switch; the second SATA storage device is connected to the second SATA switch; then, in response to receiving the first storage device information sent by the source device, the first storage device information is output to the target device, solving the problems of low efficiency or resource waste in the related art, realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupation, and being applicable to data storage scenarios with low latency and high concurrency. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 It is an application environment diagram of the SATA storage device information transmission method in an embodiment;

[0027] Figure 2 It is the first process schematic diagram of the SATA storage device information transmission method in an embodiment;

[0028] Figure 3 It is the process schematic diagram of determining the frame information structure type according to the information transmission request message in an embodiment;

[0029] Figure 4 It is the process schematic diagram of determining the source device and the target device according to the information transmission request message in an embodiment;

[0030] Figure 5 It is the second process schematic diagram of the SATA storage device information transmission method in another embodiment;

[0031] Figure 6 It is the structural block diagram of the SATA storage device information transmission device in an embodiment. Detailed implementation manners

[0032] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0033] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0034] In order to enable those skilled in the art of this technology to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.

[0035] Next, the application environment of the SATA storage device information transmission method provided by the embodiments of the present application will be briefly described.

[0036] Such as Figure 1As shown in the figure, the application environment is a SATA storage system, which includes a storage controller 100, a first SATA switch (SATA Switch) 200, a second SATA switch 300, each first SATA storage device 400, and each second SATA storage device 500. Among them, the storage controller 100 is connected to the first SATA switch 200 and the second SATA switch 300. The first SATA switch 200 is connected to each first SATA storage device 400, and the second SATA switch 300 is connected to each second SATA storage device 500. The first SATA switch 200 is cascaded with the second SATA switch 300. The storage controller 100 is used to connect to the host device 600.

[0037] In a first aspect, as Figure 2 shown, a method for transmitting SATA storage device information is provided. Taking the first SATA switch 200 in Figure 1 as an example, the method includes the following steps 201 to 203.

[0038] Step 201: In response to receiving an information transmission request message sent by the storage controller, determine the frame information structure type according to the information transmission request message.

[0039] Specifically, the storage controller 100 receives an information transmission request sent by the host device 600, performs format conversion processing on the information transmission request to obtain an information transmission request message, and sends the information transmission request message to the first SATA switch 200. Then, the first SATA switch 200 receives the information transmission request message sent by the storage controller and determines the frame information structure (Frame Information Structure, FIS) type according to the information transmission request message.

[0040] In one embodiment, as Figure 3 shown, the frame information structure type includes a device-to-device type, a host-to-device type, or a device-to-host type. Determining the frame information structure type according to the information transmission request message includes steps 301 to 302.

[0041] Step 301: Analyze the information transmission request message to obtain the request type.

[0042] Step 302: In response to the request type being a SATA storage device-to-device request, parse the information transmission request message to obtain the frame information structure type, and modify the frame information structure type to the device-to-device type.

[0043] Among them, the request types include requests between SATA storage devices. The requests between SATA storage devices are used to represent requests for information transmission between SATA storage devices. It can be understood that a custom frame information structure type, namely the device-to-device type, is pre-configured in the first SATA switch 200.

[0044] Specifically, the first SATA switch 200 analyzes the information transmission request message to obtain the request type; then, in response to the request type being a request between SATA storage devices, it parses the information transmission request message to obtain the frame information structure type, and modifies the frame information structure type to the device-to-device type, improving the convenience and efficiency of determining the frame information structure type.

[0045] In one embodiment, as Figure 3 shown, determining the frame information structure type according to the information transmission request message includes step 303.

[0046] Step 303, in response to the request type not being a request between SATA storage devices, parse the information transmission request message to obtain the frame information structure type.

[0047] Specifically, the first SATA switch 200, in response to the request type not being a request between SATA storage devices, parses the information transmission request message to obtain the frame information structure type, improving the convenience and efficiency of determining the frame information structure type.

[0048] In this embodiment, in response to the request type not being a request between SATA storage devices, parsing the information transmission request message to obtain the frame information structure type improves the convenience and efficiency of determining the frame information structure type.

[0049] Step 202, in response to the frame information structure type being the device-to-device type, determine the source device and the destination device according to the information transmission request message, and forward the information transmission request message to the source device.

[0050] Among them, the source device is the first SATA storage device 400 that sends the first storage device information; the destination device is the first SATA storage device 400 or the second SATA storage device 500 that receives the first storage device information; the first SATA storage device 400 is connected to the first SATA switch 200; the second SATA storage device 500 is connected to the second SATA switch 300.

[0051] Specifically, when the first SATA switch 200 identifies that the frame information structure type is the device-to-device type, it determines the source device and the target device according to the information transmission request message, and forwards the information transmission request message to the source device, so that the source device obtains the first storage device information according to the information transmission request message and sends the first storage device information to the first SATA switch 200.

[0052] In one embodiment, as Figure 4 shown, determining the source device and the target device according to the information transmission request message includes steps 401 to 403.

[0053] Step 401, parse the information transmission request message to obtain the first device virtual address of the source device and the second device virtual address of the target device;

[0054] Step 402, determine the source device according to the first device virtual address;

[0055] Step 403, determine the target device according to the second device virtual address.

[0056] Specifically, the first SATA switch 200 parses the information transmission request message to obtain the first device virtual address of the source device and the second device virtual address of the target device; then, determines the source device according to the first device virtual address; and then, determines the target device according to the second device virtual address, improving the efficiency and convenience of determining the source device and the target device. In addition, the first device virtual address and the second device virtual address can be but are not limited to broadcast common addresses.

[0057] In this embodiment, the information transmission request message is parsed to obtain the first device virtual address of the source device and the second device virtual address of the target device; then, the source device is determined according to the first device virtual address; and then, the target device is determined according to the second device virtual address, improving the efficiency and convenience of determining the source device and the target device.

[0058] Step 203, in response to receiving the first storage device information sent by the source device, output the first storage device information to the target device.

[0059] Specifically, when the first SATA switch 200 receives the first storage device information sent by the source device, it outputs the first storage device information to the target device, thereby realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, and thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupation, and being applicable to data storage scenarios with low latency and high concurrency.

[0060] In one embodiment, forwarding the information transmission request message to the source device includes broadcasting the information transmission request message according to the first device virtual address, so that the information transmission request message is forwarded to the source device; wherein, outputting the first storage device information to the target device includes:

[0061] Determining the switch connected to the target device according to the target device;

[0062] In response to the switch connected to the target device being the first SATA switch, broadcasting the first storage device information according to the second device virtual address, so that the first storage device information is output to the target device.

[0063] Specifically, the first SATA switch 200 broadcasts the information transmission request message according to the first device virtual address, so that the information transmission request message is forwarded to the source device; then, when the switch connected to the target device is the first SATA switch 200, that is, when the switch connected to the target device is the same as the switch connected to the source device at this time, the first SATA switch 200 can directly broadcast the first storage device information according to the second device virtual address, so that the first storage device information is output to the target device, improving the efficiency and convenience of the first storage device information transmission, realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, and thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupancy, and being applicable to low-latency and high-concurrency data storage scenarios.

[0064] In this embodiment, the information transmission request message is broadcast according to the first device virtual address, so that the information transmission request message is forwarded to the source device; then, when the switch connected to the target device is the first SATA switch 200, that is, when the switch connected to the target device is the same as the switch connected to the source device at this time, the first SATA switch 200 can directly broadcast the first storage device information according to the second device virtual address, so that the first storage device information is output to the target device, improving the efficiency and convenience of the first storage device information transmission, realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, and thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupancy, and being applicable to low-latency and high-concurrency data storage scenarios.

[0065] In one embodiment, outputting the first storage device information to the target device further includes:

[0066] In response to the switch connected to the target device being the second SATA switch, forwarding the first storage device information to the second SATA switch, and sending an information broadcast instruction to the second SATA switch.

[0067] The information broadcast instruction is used to instruct the second SATA switch 300 to broadcast the first storage device information to the target device according to the second device virtual address; the first SATA switch 200 is cascaded with the second SATA switch 300.

[0068] Specifically, when the switch connected to the target device is the second SATA switch 300, that is, when the switch connected to the target device is different from the switch connected to the source device at this time, the first SATA switch 200 needs to first forward the first storage device information to the second SATA switch 300, and then send an information broadcast instruction to the second SATA switch 300, so that the second SATA switch 300 broadcasts the first storage device information to the target device according to the second device virtual address, realizing direct communication between SATA storage devices under different SATA switches, improving the efficiency and convenience of the first storage device information transmission, realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, and thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupancy, and being applicable to data storage scenarios with low latency and high concurrency.

[0069] In this embodiment, in response to the switch connected to the target device being the second SATA switch 300, forwarding the first storage device information to the second SATA switch 300, and sending an information broadcast instruction to the second SATA switch 300, so that the second SATA switch 300 broadcasts the first storage device information to the target device according to the second device virtual address, realizing direct communication between SATA storage devices under different SATA switches, improving the efficiency and convenience of the first storage device information transmission, realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, and thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupancy, and being applicable to data storage scenarios with low latency and high concurrency.

[0070] Based on this, for the above SATA storage device information transmission method, in response to receiving an information transmission request message sent by the storage controller, the frame information structure type is determined according to the information transmission request message; then, in response to the frame information structure type being the device-to-device type, the source device and the target device are determined according to the information transmission request message, and the information transmission request message is forwarded to the source device; the source device is the first SATA storage device 400 that sends the first storage device information; the target device is the first SATA storage device 400 or the second SATA storage device 500 that receives the first storage device information; the first SATA storage device 400 is connected to the first SATA switch 200; the second SATA storage device 500 is connected to the second SATA switch 300; then, in response to receiving the first storage device information sent by the source device, the first storage device information is output to the target device, thereby realizing that the first storage device information sent by the source device is output to the target device through the first SATA switch 200 without passing through the storage controller 100 or memory processing, realizing direct communication between the source device and the target device, and thus realizing the P2P function of SATA to SATA, improving the data transmission efficiency, saving the host resource occupancy, and being applicable to data storage scenarios with low latency and high concurrency.

[0071] In one embodiment, as Figure 5 shown, the method further includes step 501 and step 502.

[0072] Step 501, in response to the frame information structure type being the host-to-device type, determine the information receiving device according to the information transmission request message, and obtain the host device information to be transmitted after parsing the information transmission request message;

[0073] Step 502, forward the host device information to be transmitted to the information receiving device.

[0074] Among them, the information receiving device is the first SATA storage device 400 that receives the host device information to be transmitted. Specifically, in response to the frame information structure type being the host-to-device type, the first SATA switch 200 determines the information receiving device according to the information transmission request message, and obtains the host device information to be transmitted after parsing the information transmission request message; then, forwards the host device information to be transmitted to the information receiving device, thereby realizing the information transmission between the host device 600 and the SATA storage device, and improving the efficiency and convenience of the SATA storage device information transmission.

[0075] In this embodiment, in response to the frame information structure type being the host-to-device type, the information receiving device is determined according to the information transmission request message, and the information of the host device to be transmitted is obtained after parsing the information transmission request message; then, the information of the host device to be transmitted is forwarded to the information receiving device, thereby realizing the information transmission between the host device 600 and the SATA storage device, and improving the efficiency and convenience of the information transmission of the SATA storage device.

[0076] In one embodiment, as Figure 5 shown, the method further includes step 503 and step 504.

[0077] Step 503, in response to the frame information structure type being the device-to-host type, determine the information sending device according to the information transmission request message, and forward the information transmission request message to the information sending device;

[0078] Step 504, in response to receiving the second storage device information sent by the information sending device, send an information transmission instruction and the second storage device information to the storage controller.

[0079] Among them, the information sending device is the first SATA storage device 400 that sends the second storage device information; the information transmission instruction is used to instruct the storage controller to transmit the second storage device to the host device. Specifically, the first SATA switch 200, in response to the frame information structure type being the device-to-host type, determines the information sending device according to the information transmission request message, and forwards the information transmission request message to the information sending device; then, in response to receiving the second storage device information sent by the information sending device, sends an information transmission instruction and the second storage device information to the storage controller, thereby realizing the information transmission between the SATA storage device and the host device 600, and improving the efficiency and convenience of the information transmission of the SATA storage device.

[0080] In this embodiment, in response to the frame information structure type being the device-to-host type, determine the information sending device according to the information transmission request message, and forward the information transmission request message to the information sending device; then, in response to receiving the second storage device information sent by the information sending device, send an information transmission instruction and the second storage device information to the storage controller, thereby realizing the information transmission between the SATA storage device and the host device 600, and improving the efficiency and convenience of the information transmission of the SATA storage device.

[0081] In a specific example, outputting the first storage device information to the target device includes:

[0082] Performing data encryption processing on the first storage device information to obtain the encrypted first storage device information;

[0083] Perform data compression processing on the encrypted first storage device information to obtain the compressed first storage device information;

[0084] Perform data verification processing on the compressed first storage device information to obtain the verified first storage device information;

[0085] Perform data encapsulation processing on the verified first storage device information to obtain the encapsulated first storage device information;

[0086] Output the encapsulated first storage device information to the target device, which improves the efficiency, accuracy, and convenience of the transmission of SATA storage device information. The above is only a specific example, and in actual applications, it can be flexibly set according to user needs and is not limited here.

[0087] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. It should be understood that although Figures 2 - 5 the steps in the flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order restriction, and these steps can be executed in other orders. Moreover, Figures 2 - 5 at least a part of the steps in

[0088] may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

[0088] Second, as Figure 6 shown, the present application also provides a SATA storage device information transmission device, which is applied to the first SATA switch; the device includes a structure type determination module 610, a request message forwarding module 620, and a device information transmission module 630.

[0089] Among them, the structure type determination module 610 is configured to determine the frame information structure type according to the information transmission request message in response to receiving the information transmission request message sent by the storage controller; the request message forwarding module 620 is configured to determine the source device and the target device according to the information transmission request message in response to the frame information structure type being the device-to-device type, and forward the information transmission request message to the source device; the source device is the first SATA storage device that sends the first storage device information; the target device is the first SATA storage device or the second SATA storage device that receives the first storage device information; the first SATA storage device is connected to the first SATA switch; the second SATA storage device is connected to the second SATA switch; the device information transmission module 630 is configured to output the first storage device information to the target device in response to receiving the first storage device information sent by the source device.

[0090] In one embodiment, the frame information structure type includes the device-to-device type, the host-to-device type, or the device-to-host type; the structure type determination module 610 includes a structure type determination unit.

[0091] Among them, the structure type determination unit is configured to analyze the information transmission request message to obtain the request type; among them, the request type includes a request between SATA storage devices; the structure type determination unit is configured to, in response to the request type being a request between SATA storage devices, parse the information transmission request message to obtain the frame information structure type, and modify the frame information structure type to the device-to-device type.

[0092] In one embodiment, the structure type determination unit is configured to, in response to the request type not being a request between SATA storage devices, parse the information transmission request message to obtain the frame information structure type.

[0093] In one embodiment, the device further includes a host device information transmission module.

[0094] Among them, the host device information transmission module is configured to determine the information receiving device according to the information transmission request message in response to the frame information structure type being the host-to-device type, parse the information transmission request message to obtain the host device information to be transmitted; the information receiving device is the first SATA storage device that receives the host device information to be transmitted; the host device information transmission module is configured to forward the host device information to be transmitted to the information receiving device.

[0095] In one embodiment, the device further includes an information transmission instruction sending module.

[0096] Among them, the information transmission instruction sending module is used to, in response to the frame information structure type being device-to-host type, determine the information sending device according to the information transmission request message, and forward the information transmission request message to the information sending device; the information sending device is the first SATA storage device that sends the second storage device information; the information transmission instruction sending module is used to, in response to receiving the second storage device information sent by the information sending device, send an information transmission instruction and the second storage device information to the storage controller; the information transmission instruction is used to instruct the storage controller to transfer the second storage device to the host device.

[0097] In one embodiment, the request message forwarding module 620 includes a device determination unit.

[0098] Among them, the device determination unit is used to parse the information transmission request message to obtain the first device virtual address of the source device and the second device virtual address of the target device; the device determination unit is used to determine the source device according to the first device virtual address; the device determination unit is used to determine the target device according to the second device virtual address.

[0099] In one embodiment, the request message forwarding module 620 includes a request message forwarding unit.

[0100] Among them, the request message forwarding unit is used to broadcast the information transmission request message according to the first device virtual address, so that the information transmission request message is forwarded to the source device;

[0101] Among them, the device information transmission module 630 includes a device information transmission unit.

[0102] Among them, the device information transmission unit is used to determine the switch connected to the target device according to the target device; the device information transmission unit is used to, in response to the switch connected to the target device being the first SATA switch, broadcast the first storage device information according to the second device virtual address, so that the first storage device information is output to the target device.

[0103] In one embodiment, the device information transmission unit is used to, in response to the switch connected to the target device being the second SATA switch, forward the first storage device information to the second SATA switch, and send an information broadcast instruction to the second SATA switch; among them, the information broadcast instruction is used to instruct the second SATA switch to broadcast the first storage device information to the target device according to the second device virtual address; the first SATA switch and the second SATA switch are cascaded.

[0104] For the specific limitations of the SATA storage device information transmission device, reference can be made to the limitations of the SATA storage device information transmission method in the above text, which will not be elaborated here. Each module in the above SATA storage device information transmission device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0105] In a third aspect, the present application also provides a SATA switch, including: a memory for storing a computer program; a processor for implementing the steps of any one of the above SATA storage device information transmission methods when executing the computer program.

[0106] In a specific example, the processor of the SATA switch can be, but is not limited to, a chip or device with logical programming functions. Chips or devices with logical programming functions include FPGA chips and / or ASIC chips. The above are only specific examples, and in actual applications, they are flexibly set according to user needs and are not limited here.

[0107] In a specific example, the SATA switch is set on an integrated backplane, set on a SATA Switch adapter board, or integrated in a storage controller. The above are only specific examples, and in actual applications, they are flexibly set according to user needs and are not limited here.

[0108] In a specific example, the SATA switch can be, but is not limited to, configured with uplink and downlink interfaces and monitoring and debugging external interfaces. The monitoring and debugging external interfaces include USB and JTAG. The memory in the SATA switch includes Eeprom. The above are only specific examples, and in actual applications, they are flexibly set according to user needs and are not limited here.

[0109] Fourth aspect, as Figure 1As shown in the figure, the present application also provides a SATA storage system, which includes a storage controller 100, a first SATA switch (SATA Switch) 200, a second SATA switch 300, each first SATA storage device 400, and each second SATA storage device 500. Among them, the storage controller 100 is connected to the first SATA switch 200 and the second SATA switch 300. The first SATA switch 200 is connected to each first SATA storage device 400, and the second SATA switch 300 is connected to each second SATA storage device 500. The first SATA switch 200 and the second SATA switch 300 are cascaded. The storage controller 100 is used to connect to the host device 600. The first SATA switch 200 is used to implement the steps of any of the above SATA storage device information transmission methods when executing a computer program.

[0110] In one embodiment, the storage controller 100 is configured to receive an information transmission request sent by the host device, and perform format conversion processing on the information transmission request to obtain an information transmission request message. The storage controller 100 is further configured to send the information transmission request message to the first SATA switch, which improves the transmission accuracy and efficiency of the information transmission request.

[0111] In a specific example, the storage controller 100 includes one or more combinations of RAID, HBA, FC, and on-board integrated controllers. The above are only specific examples, and in actual applications, it is flexibly set according to user needs and will not be limited here.

[0112] In a specific example, the storage controller 100 is connected to the first SATA switch 200 and the second SATA switch 300 through cables or in-board traces. The above are only specific examples, and in actual applications, it is flexibly set according to user needs and will not be limited here.

[0113] In one embodiment, the first SATA storage device and the second SATA storage device include solid-state SATA hard disks and mechanical SATA hard disks.

[0114] In a fifth aspect, the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it implements the steps of any of the above SATA storage device information transmission methods.

[0115] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media that can store computer programs such as USB flash drives, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disks, magnetic disks, or optical discs.

[0116] In a sixth aspect, the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the above SATA storage device information transmission methods are implemented.

[0117] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, where the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the embodiments of any one of the above SATA storage device information transmission methods are implemented.

[0118] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present application.

[0119] The above has introduced in detail a SATA storage device information transmission method, device, SATA switch, SATA storage system, and storage medium provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A method for transmitting SATA storage device information, which is applied to a first SATA switch; the method includes: Responding to receiving an information transmission request message sent by a storage controller, determining a frame information structure type according to the information transmission request message; Responding to the frame information structure type being the device-to-device type, determining a source device and a target device according to the information transmission request message, and forwarding the information transmission request message to the source device; the source device is a first SATA storage device that sends first storage device information; The target device is the first SATA storage device or the second SATA storage device that receives the first storage device information; The first SATA storage device is connected to the first SATA switch; the second SATA storage device is connected to a second SATA switch; Responding to receiving the first storage device information sent by the source device, outputting the first storage device information to the target device.

2. The method according to claim 1, wherein The frame information structure type includes the device-to-device type, the host-to-device type, or the device-to-host type; determining the frame information structure type according to the information transmission request message includes: Analyzing the information transmission request message to obtain a request type; wherein, the request type includes a request between SATA storage devices; Responding to the request type being the request between SATA storage devices, parsing the information transmission request message to obtain a frame information structure type, and modifying the frame information structure type to the device-to-device type.

3. The method according to claim 2, wherein Determining the frame information structure type according to the information transmission request message includes: Responding to the request type not being the request between SATA storage devices, parsing the information transmission request message to obtain the frame information structure type.

4. The method according to claim 2, characterized in that, The method further includes: Responding to the frame information structure type being the host-to-device type, determining an information receiving device according to the information transmission request message, and parsing the information transmission request message to obtain information of a host device to be transmitted; the information receiving device is the first SATA storage device that receives the information of the host device to be transmitted; Forwarding the information of the host device to be transmitted to the information receiving device.

5. The method according to claim 2, characterized in that, The method further includes: Responding to the frame information structure type being the device-to-host type, determining an information sending device according to the information transmission request message, and forwarding the information transmission request message to the information sending device; the information sending device is the first SATA storage device that sends second storage device information; Responding to receiving the second storage device information sent by the information sending device, sending an information transmission instruction and the second storage device information to the storage controller; the information transmission instruction is used to instruct the storage controller to transmit the second storage device to a host device.

6. The method according to claim 1, wherein Determining the source device and the target device according to the information transmission request message includes: Parse the information transmission request message to obtain the first device virtual address of the source device and the second device virtual address of the target device; Determine the source device according to the first device virtual address; Determine the target device according to the second device virtual address.

7. The method according to claim 6, wherein The forwarding of the information transmission request message to the source device includes broadcasting the information transmission request message according to the first device virtual address so that the information transmission request message is forwarded to the source device; wherein, the outputting of the first storage device information to the target device includes: Determine the switch connected to the target device according to the target device; In response to the switch connected to the target device being the first SATA switch, broadcast the first storage device information according to the second device virtual address so that the first storage device information is output to the target device.

8. The method according to claim 7, wherein The outputting of the first storage device information to the target device further includes: In response to the switch connected to the target device being the second SATA switch, forward the first storage device information to the second SATA switch and send an information broadcast instruction to the second SATA switch; wherein, the information broadcast instruction is used to instruct the second SATA switch to broadcast the first storage device information to the target device according to the second device virtual address; the first SATA switch is cascaded with the second SATA switch.

9. A SATA storage device information transmission device, characterized in that, The device is applied to a first SATA switch; the device includes: A structure type determination module, configured to, in response to receiving an information transmission request message sent by a storage controller, determine a frame information structure type according to the information transmission request message; A request message forwarding module, configured to, in response to the frame information structure type being a device-to-device type, determine a source device and a target device according to the information transmission request message, and forward the information transmission request message to the source device; the source device is a first SATA storage device that sends first storage device information; the target device is the first SATA storage device or the second SATA storage device that receives the first storage device information; the first SATA storage device is connected to the first SATA switch; the second SATA storage device is connected to the second SATA switch; A device information transmission module, configured to, in response to receiving the first storage device information sent by the source device, output the first storage device information to the target device.

10. A SATA switch, characterized in that, including: A memory for storing a computer program; A processor, configured to implement the steps of the SATA storage device information transmission method according to any one of claims 1 to 8 when executing the computer program.

11. A SATA storage system, characterized in that, The SATA storage system includes a storage controller, a first SATA switch, a second SATA switch, each first SATA storage device, and each second SATA storage device; wherein, the storage controller is connected to the first SATA switch and the second SATA switch, the first SATA switch is connected to each of the first SATA storage devices, the second SATA switch is connected to each of the second SATA storage devices, and the first SATA switch is cascaded with the second SATA switch; the storage controller is used to connect to a host device; the first SATA switch is used to implement the steps of the SATA storage device information transmission method according to any one of claims 1 to 8 when executing a computer program.

12. The SATA storage system according to claim 11, wherein, The storage controller is used to receive an information transmission request sent by the host device, perform format conversion processing on the information transmission request to obtain an information transmission request message; the storage controller is further used to send the information transmission request message to the first SATA switch.

13. The SATA storage system according to claim 11, wherein, The first SATA storage device and the second SATA storage device include a solid-state SATA hard disk and a mechanical SATA hard disk.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the SATA storage device information transmission method according to any one of claims 1 to 8.

15. A computer program product, comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the steps of the SATA storage device information transmission method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • System and method for serial interface memory using switched architecture

    CN113728386A

  • Serial advanced technology attachment (sata) switch

    CN1574753A