CN111241016B - Interface conversion device - Google Patents

Interface conversion device Download PDF

Info

Publication number
CN111241016B
CN111241016B CN201911425775.2A CN201911425775A CN111241016B CN 111241016 B CN111241016 B CN 111241016B CN 201911425775 A CN201911425775 A CN 201911425775A CN 111241016 B CN111241016 B CN 111241016B
Authority
CN
China
Prior art keywords
ata
scsi
instruction
interface
sata
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911425775.2A
Other languages
Chinese (zh)
Other versions
CN111241016A (en
Inventor
陈贤香
刘海銮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sage Microelectronics Corp
Original Assignee
Sage Microelectronics Corp
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 Sage Microelectronics Corp filed Critical Sage Microelectronics Corp
Priority to CN201911425775.2A priority Critical patent/CN111241016B/en
Publication of CN111241016A publication Critical patent/CN111241016A/en
Application granted granted Critical
Publication of CN111241016B publication Critical patent/CN111241016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

The invention discloses an interface conversion device, which comprises: serial connection small computer system SAS interface, SAS interface processor module, conversion module, a plurality of serial advanced technology connect SATA interface processor module and a plurality of SATA interface, wherein: the SAS interface processor module receives a small computer system interface SCSI instruction sent by terminal equipment through the SAS interface; the conversion module converts the SCSI instruction into an Advanced Technology Attachment (ATA) instruction; and the SATA interface processor modules send the ATA instruction to the hard disks through the SATA interfaces. Therefore, on one hand, the purpose of connecting the terminal equipment with the hard disk comprising the SATA interface through the SAS interface can be achieved, and on the other hand, the efficiency of data transmission can be improved as the terminal equipment can be connected with a plurality of hard disks comprising the SATA interface.

Description

Interface conversion device
Technical Field
The present invention relates to the field of data processing, and in particular, to an interface conversion apparatus.
Background
A Serial Attached Small Computer System Interface (SAS) is generally included in a terminal device (such as a Computer), and generally, the terminal device may be connected to a hard disk (hereinafter referred to as an SAS disk) including the SAS Interface through the SAS Interface.
In practical applications, since the price of the SAS disk with the same capacity and the same performance is several times higher than that of a hard disk (hereinafter referred to as SATA disk) of a Serial Advanced Technology Attachment (SATA) interface, when a user connects a terminal device to the hard disk, the user usually selects to connect the terminal device with the SATA disk instead of the SAS disk. However, the SATA interface is a SATA interface, the SATA interface is different from the SAS interface in application protocol, the SATA interface is in application protocol of ATA protocol, the SAS interface is in application protocol of SCSI protocol, and the application software is different from the SAS interface in application protocol, so an effective scheme for connecting the SATA disk and the SAS interface and achieving the purpose that the application protocol and the application software do not need to be changed is needed.
Disclosure of Invention
The embodiment of the invention provides an interface conversion device, which aims to solve the problem that terminal equipment cannot be directly connected with a SATA hard disk through an SAS interface.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an interface conversion apparatus is provided, including: serial connection small computer system SAS interface, SAS interface processor module, conversion module, a plurality of serial advanced technology connect SATA interface processor module and a plurality of SATA interface, wherein:
the SAS interface processor module receives a small computer system interface SCSI instruction sent by terminal equipment through the SAS interface;
the conversion module converts the SCSI instruction into an Advanced Technology Attachment (ATA) instruction;
and the SATA interface processor modules send the ATA instruction to the hard disks through the SATA interfaces.
The interface conversion device provided by the embodiment of the invention comprises a SAS interface, a SAS interface processor module, a conversion module, a plurality of SATA interface processor modules and a plurality of SATA interfaces, wherein the SAS interface processor module can receive a SCSI instruction sent by terminal equipment through the SAS interface, the conversion module can convert the SCSI instruction into an ATA instruction, and the SATA interface processor module can send the ATA instruction to a plurality of hard disks through the SATA interfaces. Therefore, the interface conversion device comprises the SAS interface and the plurality of SATA interfaces, and instruction transmission can be realized in the interface conversion device, so that the purpose of connecting the terminal equipment with the plurality of hard disks comprising the SATA interfaces through the SAS interface can be realized; because the number of the SATA interfaces included in the interface conversion device is multiple, the terminal equipment can be connected with a plurality of hard disks including the SATA interfaces, and therefore when data transmission is carried out on the terminal equipment and the hard disks, the efficiency of data transmission can be improved.
In addition, under the condition that the terminal equipment is connected with a plurality of hard disks comprising SATA interfaces through the interface conversion device provided by the embodiment of the invention, the terminal equipment can only pay attention to tasks on a service level when performing service processing, and complex work such as disaster recovery, backup and distribution of data can be finished by the interface conversion device, so that resources can be saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic structural diagram of an interface conversion apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of address and length allocation by a RAID compute unit according to one embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of the present invention for issuing instructions based on a table to be executed;
fig. 4 is a schematic structural diagram of an interface conversion apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in a possible implementation manner, the interface conversion apparatus provided in the embodiment of the present invention may be referred to as a SAS-SATA array bridge.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an interface conversion apparatus according to an embodiment of the present invention.
As shown in fig. 1, an Interface conversion apparatus provided in an embodiment of the present invention may include a Serial Attached Small Computer System (SAS) Interface, a SAS Interface processor module, a conversion module, multiple Serial Advanced Technology Attachment (SATA) Interface processor modules (only two are shown in fig. 1), and multiple SATA interfaces (only two are shown in fig. 1), where:
the SAS Interface can be connected with an SAS Interface in external terminal equipment, and on the basis of the connection with the terminal equipment, the terminal equipment can send a Small Computer System Interface (SCSI) instruction through the SAS Interface;
the SAS interface processor module can receive a SCSI instruction sent by the terminal equipment through the SAS interface, and can send the SCSI instruction to the conversion module after receiving the SCSI instruction;
the conversion module may convert the SCSI command into an Advanced Technology Attachment (ATA) command, and after obtaining the ATA command, may send the ATA command to the plurality of SATA interface processor modules;
after receiving the ATA command, the SATA interface processor modules may send the ATA command to the hard disks via the SATA interfaces, where the hard disks include SATA interfaces and are connected to the SATA interfaces of the interface converter one by one via the SATA interfaces.
In fig. 1, in order to facilitate the conversion from the SCSI command to the ATA command, the SAS interface may be connected to a SAS interface processor module, the SAS interface processor module may be connected to a conversion module, the conversion module may be connected to a plurality of SATA interface processor modules, and the plurality of SATA interface processor modules are connected to a plurality of SATA interfaces. The number of the plurality of SATA interfaces can be the same as that of the plurality of SATA interface processor modules, and one SATA interface processor module can be connected with one SATA interface.
It should be noted that, in the embodiment of the present invention, the SAS interface processor module may perform encoding and decoding processing on a physical layer, a link layer, an interface layer, and a transport layer of an instruction conforming to an SAS protocol, that is, the SAS interface processor module may decode a SCSI instruction input to the SAS interface and encode a SCSI instruction output to the SAS interface. In addition, the SATA interface processor module can perform encoding and decoding processing on a physical layer, a link layer, an interface layer, and a transport layer that follow instructions of the SATA protocol, that is, the SATA interface processor can decode ATA instructions input to the SATA interface and encode the ATA instructions output from the SATA interface.
Because the SAS interface processor module and the SATA interface processor module may process different communication protocols, the main idea of the embodiment of the present invention is to convert the SCSI command into the ATA command, so that the SAS interface can be substantially converted into the SATA interface. In view of the above, it is desirable to provide a conversion module in the embodiment of the present invention, which is used to convert the SCSI command into an ATA command.
Based on the interface conversion device shown in fig. 1, in a case where the SAS interface processor module is connected to the terminal device through the SAS interface, the terminal device may send a SCSI command to the SAS interface processor module through the SAS interface, the SAS interface processor module may send the SCSI command to the conversion module after receiving the SCSI command sent by the terminal device, the conversion module may convert the SCSI command into an ATA command and send the ATA command to the plurality of SATA interface processor modules, and the plurality of SATA interface processor modules may send the ATA command to the plurality of hard disks through the SATA interface, thereby implementing conversion between the SAS interface and the SATA interface.
Therefore, the SAS interface can be converted into the plurality of SATA interfaces by the interface conversion device, and the transmission of instructions from the terminal equipment to the hard disk can be realized, so that the purpose that the terminal equipment is connected with the plurality of hard disks comprising the SATA interfaces through the SAS interface can be realized, and in addition, the terminal equipment can be connected with the plurality of hard disks comprising the SATA interfaces, so that the efficiency of data transmission can be improved when the terminal equipment and the hard disks carry out data transmission.
In this embodiment of the present invention, in order to facilitate the conversion module to effectively convert the SCSI command received by the SAS interface processor module into an ATA command, the interface conversion apparatus may further include a SCSI protocol device side processor module, where the SCSI protocol device side processor module may be connected to the SCSI command output end of the SAS interface processor module and to the SCSI command input end of the conversion module.
Thus, before the SCSI command is converted into the ATA command by the conversion module, the SAS interface processor module may send the SCSI command to the SCSI protocol device side processor module, and the SCSI protocol device side processor module determines a function of the SCSI command, where the function of the SCSI command may include at least one of a read-write function and a non-read-write function.
After judging the function of the SCSI command, the SCSI protocol device side processor module may send the SCSI command to the conversion module, and the conversion module performs conversion according to the function of the SCSI command. In this embodiment of the present invention, in order to facilitate the conversion module to convert SCSI commands with different functions, the conversion module may include a Redundant Array of Independent Disks (RAID) computing unit and a SCSI-ATA protocol converter unit. The RAID calculation unit is used for determining the distribution parameters (the address and the length distributed to each hard disk) of the SCSI instruction, and the SCSI-ATA protocol conversion unit is used for converting the SCSI instruction into the ATA instruction.
Because the SCSI instruction including the non-read-write function can be directly converted into the ATA instruction, and the SCSI instruction including the read-write function can ensure that each hard disk connected to the interface conversion device can accurately execute read-write operation according to the instruction of the terminal device by calculating the distribution parameter by the RAID computing unit, after judging the function of the SCSI instruction, if the function of the SCSI instruction includes the non-read-write function, the SCSI protocol device end processor module can send the SCSI instruction to the SCSI-ATA protocol converter unit; if the function of the SCSI command includes a read-write function, the SCSI protocol device side processor module may send the SCSI command to the SCSI-ATA protocol converter unit, and also needs to send the address and the length of the SCSI command to the RAID calculation unit, so that the RAID calculation unit calculates the allocation parameter.
In the embodiment of the present invention, after receiving the address and the length of the SCSI command, the RAID computing unit may determine an allocation parameter according to the number of the plurality of hard disks connected to the interface conversion apparatus and the predetermined RAID mode, and the allocation parameter may represent the address and the length allocated to each hard disk.
In this embodiment, the number of the plurality of hard disks and the RAID mode may be determined according to actual situations, where the RAID mode may include, but is not limited to, RAID0, RAID1, RAID5, and JBOD.
Taking the number of the hard disks as 4 and the RAID mode of the RAID computing unit as the RAID0 mode as an example, after the RAID computing unit receives the address and the length of the SCSI command, the address and the length of the SCSI command may be allocated to the 4 hard disks based on the principle of the RAID0 mode, specifically, see fig. 2, where fig. 2 is a schematic diagram of the RAID computing unit allocating the address and the length to the 4 hard disks.
The upper column of cylinders in fig. 2 represents the addresses and lengths to be allocated, where each cylinder may represent a length (for example, one cylinder may represent 4KB) from 0 to 15 to 16 lengths to be allocated, and the lower 4 columns of cylinders in fig. 2 represent the addresses and lengths allocated to 4 hard disks, where the black numbers on the left side of each hard disk represent the addresses, and where, as can be seen from the white numbers recorded on the cylinders, the present embodiment may allocate the 16 lengths to be allocated evenly among the 4 hard disks according to the principle of RAID0 mode, thereby determining the allocation parameters.
After determining the allocation parameters, the RAID calculation unit may send the allocation parameters to the SCSI to ATA protocol converter unit.
It should be noted that, the RAID computing unit may preferably be a hardware structure, so that the interface conversion apparatus provided in this embodiment can not only share the computing task for the terminal device, but also save the computing time of the terminal device, thereby improving the system performance, when the terminal device performs service processing, the terminal device may only focus on the task at the service level, and complex work such as disaster recovery, backup, and allocation of data may be performed by the interface conversion apparatus, thereby saving resources.
It should be noted that, in order to improve the conversion efficiency, the RAID calculation unit may calculate the allocation parameters simultaneously with the SCSI-ATA protocol converter unit converting the SCSI command into the ATA command.
In the embodiment of the invention, when the SCSI-ATA protocol converter unit receives the SCSI command, the SCSI command may be converted into an ATA command, and when the SCSI command is converted into the ATA command, the command code and the command format of the SCSI command may be converted into the command code and the command format of the ATA command. The SCSI-ATA protocol converter unit may further feed back a conversion status of the SCSI command to the terminal device, where the conversion status includes successful conversion of the SCSI command into the ATA command and unsuccessful conversion of the SCSI command into the ATA command.
In this way, since the SCSI-ATA protocol converter unit can feed back the conversion state of the SCSI command to the terminal device, the terminal device can resend the SCSI command to the SCSI-ATA protocol converter unit when determining that the conversion state is not successful in converting the SCSI command into the ATA command based on the conversion state fed back by the SCSI-ATA protocol converter unit, thereby ensuring that the SCSI command is not lost in the data transmission process.
In a case where the SCSI-ATA protocol converter unit converts the SCSI command into an ATA command, when the SCSI-ATA protocol converter unit receives the allocation parameter from the RAID calculation unit, the allocation parameter may be added to the target ATA command, where the target ATA command may be an ATA command obtained by converting a SCSI command including a read/write function. That is, the SCSI to ATA protocol converter unit may add the assignment parameter to the ATA command with read and write functions.
In an embodiment of the present invention, in order to facilitate sending the ATA command to the plurality of hard disks through the plurality of SATA interface processor modules via the plurality of SATA interface processor modules, the interface conversion apparatus may further include an ATA protocol host processor module, where the ATA protocol host processor module may be connected to an SAS command output end of the conversion module and to an SAS command input end of the SATA interface processor module, and specifically may be configured to process the ATA command into a command corresponding to the plurality of SATA interfaces, that is, a command that can be processed by the plurality of SATA interface processor modules.
On the basis that the interface conversion device comprises the ATA protocol host processor module, the conversion module can send the ATA instruction to the ATA protocol host processor module after obtaining the ATA instruction.
It should be noted that, in an implementation manner, the conversion module may convert the SCSI command into an ATA command by means of the table to be executed, and send the ATA command to the ATA-protocol host-side processor module by means of the table to be executed. The table to be executed refers to that asynchronous parallel processing can be performed when a plurality of tasks are executed, that is, in this embodiment, asynchronous operation can be performed through the table to be executed when an instruction is converted, so that the transmission efficiency can be improved.
Specifically, referring to fig. 3, in an embodiment of the present invention, a schematic diagram of sending instructions based on a table to be executed may be shown, in fig. 3, a conversion module may put SCSI instructions into the table to be executed one by one, and after the table to be executed converts the SCSI instructions into ATA instructions, the table to be executed may send the ATA instructions to an ATA protocol host processor module one by one.
For example, the conversion module needs to convert five SCSI commands a, b, c, d, and e and send the SCSI commands to the ATA protocol host processor module, and assuming that the table to be executed can process 4 commands simultaneously, the conversion module may first put the 4 SCSI commands a, b, c, and d into the table to be executed one by one in sequence, and the table to be executed may convert the 4 SCSI commands simultaneously. When c and d are converted into ATA commands and a and b are not converted into ATA commands, the to-be-executed table can send the two ATA commands of c and d to the ATA protocol host processor module one by one without waiting for the completion of the conversion of a and b, and meanwhile, the command e can be put into the to-be-executed table, and at the moment, the to-be-executed table can simultaneously convert the 3 commands of a, b and e.
After receiving the ATA command, the ATA-protocol-host-side processor module may encapsulate the ATA command to obtain commands corresponding to the plurality of SATA interfaces. The packaging process may include adding a dummy header at a front end of the ATA command, and adding a check value at a back end of the ATA command, where the ATA command after adding the dummy header and the check value may be regarded as a command corresponding to the plurality of SATA interfaces.
After the ATA-protocol-host-side processor module obtains the instructions corresponding to the plurality of SATA interfaces, the ATA-protocol-host-side processor module may send the instructions corresponding to the plurality of SATA interfaces to the plurality of SATA interface processor modules. In this way, the plurality of SATA interface processor modules can send the received instructions corresponding to the plurality of SATA interfaces to the plurality of hard disks through the plurality of SATA interfaces.
It should be noted that, after the plurality of SATA interface processor modules send the ATA command to the plurality of hard disks through the plurality of SATA interfaces, the ATA protocol host end processor module may further collect an execution status of the ATA command, where the execution status may include that the ATA command is successfully sent to the plurality of hard disks and the ATA command is not successfully sent to the plurality of hard disks. After determining the execution status of the ATA command, the execution status may be fed back to the terminal device.
Therefore, the ATA protocol host end processor module can feed back the execution state of the ATA instruction to the terminal equipment, so that the terminal equipment can send the instruction based on the execution state fed back by the ATA protocol host end processor module, when the ATA instruction is determined to be unsuccessfully sent to the plurality of hard disks, the terminal equipment can resend the ATA instruction, and after receiving the resending instruction, the ATA protocol host end processor module can resend the ATA instruction to the SATA interface processor module, thereby ensuring that the ATA instruction is not lost in the data transmission process.
To facilitate understanding of the structure of the interface conversion apparatus, refer to fig. 4, where fig. 4 is a schematic structural diagram of an interface conversion apparatus according to an embodiment of the present invention.
In fig. 4, the interface conversion device may include an SAS interface, an SAS interface processor module, a SCSI protocol device side processor module, and a conversion module, where the conversion module includes a RAID computing unit and a SCSI-ATA protocol converter unit, an ATA protocol host side processor module, a plurality of SATA interface processor modules, and a plurality of SATA interfaces.
The SAS interface processor module can be connected with terminal equipment through an SAS interface and can also be connected with an SCSI protocol equipment end processor module, the SCSI protocol equipment end processor module can be connected with an RAID computing unit and an SCSI-ATA protocol converter unit, the RAID computing unit can be connected with the SCSI-ATA protocol converter unit, the SCSI-ATA protocol converter unit can be connected with an ATA protocol host end processor module, the ATA protocol host end processor module can be connected with a plurality of SATA interface processor modules, and the SATA interface processor modules can be connected with a plurality of hard disks through a plurality of SATA interfaces.
When the terminal device needs to communicate with a plurality of hard disks, the terminal device can send a SCSI command to the SAS interface processor module through the SAS interface, the SAS interface processor module can send the SCSI command to the SCSI protocol device end processor module after receiving the SCSI command, and the SCSI protocol device end processor module can determine a function of the SCSI command, where the function of the SCSI command includes at least one of read-write and non-read-write functions.
After judging the function of the SCSI command, the SCSI protocol device side processor module may send the SCSI command to the conversion module, and the conversion module performs conversion according to the function of the SCSI command.
If the function of the SCSI command includes a read/write function, sending the address and length of the SCSI command to the RAID computing unit (path 1 in fig. 4), and sending the SCSI command to the SCSI-ATA protocol converter unit (path 2 in fig. 4); if the function of the SCSI command includes a non-read/write function, the SCSI command is sent to the SCSI to ATA protocol converter unit (Path 2 in FIG. 4).
It should be noted that, after receiving the address and the length of the SCSI command, the RAID computing unit may determine an allocation parameter according to the number of the plurality of hard disks connected to the interface conversion apparatus and a predetermined RAID mode, and the allocation parameter may represent the address and the length allocated to each hard disk. Wherein RAID modes include, but are not limited to RAID0, RAID1, RAID5, JBOD.
It should be further noted that, the RAID computing unit may preferably be a hardware structure, so that the interface conversion apparatus provided in this embodiment may not only share the computing task for the terminal device, but also save the computing time of the terminal device, so as to improve the system performance, and when the terminal device performs service processing, the terminal device may only focus on the task at the service level, and complex work such as disaster recovery, backup, and allocation of data may be performed by the interface conversion apparatus, so as to save resources.
The RAID calculation unit may send the allocation parameters to the SCSI-ATA protocol converter unit after determining the allocation parameters.
In this embodiment, in the process of determining the allocation parameter by the RAID calculation unit, the SCSI-ATA protocol converter unit may convert the received SCSI command, and convert the command code and the command format of the SCSI command into the command code and the command format of the ATA command.
In addition, the SCSI-ATA protocol converter unit may add the received allocation parameter to a target ATA command, where the target ATA command is an ATA command obtained by converting a SCSI command including a read/write function.
It should be noted that, in order to improve the sending efficiency, the conversion module (specifically, the SCSI-ATA protocol converter unit in the conversion module) may put the SCSI commands into the table to be executed one by one, and the table to be executed converts the SCSI commands into the ATA commands, and after the SCSI commands are converted into the ATA commands, the table to be executed may send the ATA commands to the ATA-protocol host processor module one by one.
In this embodiment, the SCSI-ATA protocol converter unit may further feed back a conversion status of the SCSI command to the terminal device, where the conversion status includes successful conversion of the SCSI command to the ATA command and unsuccessful conversion of the SCSI command to the ATA command. Thus, when the transition state is determined that the SCSI command is not successfully converted into the ATA command, the terminal device may resend the SCSI command to the SCSI-ATA protocol converter unit, thereby ensuring that the SCSI command is not lost during data transmission.
After the ATA-protocol-host-side processor module receives the ATA command, the ATA-protocol-host-side processor module may encapsulate the ATA command to obtain commands corresponding to the plurality of SATA interfaces. The process of packaging may be adding a dummy header at a front end of the ATA command, and adding a check value at a back end of the ATA command, where the ATA command added with the dummy header and the check value may be regarded as a command corresponding to the plurality of SATA interfaces.
The ATA protocol host end processor module can send the plurality of instructions corresponding to the SATA interfaces to the SATA interface processor module, and the SATA interface processor module can send the plurality of instructions corresponding to the SATA interfaces to the plurality of hard disks through the SATA interfaces, so that the terminal equipment can be connected with the hard disks of the plurality of SATA interfaces through the SAS interfaces.
The ATA-protocol-host-side processor module may collect an execution status of the ATA command, where the execution status may include that the ATA command is successfully sent to the plurality of hard disks and the ATA command is not successfully sent to the plurality of hard disks. Thus, after the execution state of the ATA instruction is determined, the execution state can be fed back to the terminal equipment, so that the ATA instruction is not lost in the data transmission process.
The interface conversion device provided by the embodiment of the invention comprises a SAS interface, a SAS interface processor module, a conversion module, a plurality of SATA interface processor modules and a plurality of SATA interfaces, wherein the SAS interface processor module can receive a SCSI instruction sent by terminal equipment through the SAS interface, the conversion module can convert the SCSI instruction into an ATA instruction, and the SATA interface processor module can send the ATA instruction to a plurality of hard disks through the SATA interfaces. Therefore, the interface conversion device comprises the SAS interface and the plurality of SATA interfaces, and instruction transmission can be realized in the interface conversion device, so that the purpose of connecting the terminal equipment with the plurality of hard disks comprising the SATA interfaces through the SAS interface can be realized; because the number of the SATA interfaces included in the interface conversion device is multiple, the terminal equipment can be connected with a plurality of hard disks including the SATA interfaces, and therefore when data transmission is carried out on the hard disks, the efficiency of data transmission can be improved, and therefore the utilization efficiency of the terminal equipment can be improved.
In addition, under the condition that the terminal equipment is connected with a plurality of hard disks comprising SATA interfaces through the interface conversion device provided by the embodiment of the invention, the terminal equipment can only pay attention to tasks on a service level when performing service processing, and complex work such as disaster recovery, backup and distribution of data can be finished by the interface conversion device, so that resources can be saved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, operations.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. An interface conversion apparatus, comprising a serial attached small computer system SAS interface, a SAS interface processor module, a small computer system interface SCSI protocol device side processor module, a conversion module, a plurality of serial advanced technology attachment SATA interface processor modules, and a plurality of SATA interfaces, wherein:
the SAS interface processor module receives SCSI instructions sent by terminal equipment through the SAS interface;
the SCSI protocol equipment end processor module judges the function of the SCSI instruction, wherein the function of the SCSI instruction comprises at least one of a read-write function and a non-read-write function;
the conversion module converts the SCSI instruction into an Advanced Technology Attachment (ATA) instruction;
and the SATA interface processor modules send the ATA instruction to the hard disks through the SATA interfaces.
2. The interface converting apparatus according to claim 1, wherein the conversion module comprises an array RAID computing unit with redundancy capability formed by independent disks and a SCSI-ATA protocol converter unit;
after determining the function of the SCSI command, the SCSI protocol device side processor module further includes:
if the function of the SCSI instruction comprises a read-write function, the address and the length of the SCSI instruction are sent to the RAID computing unit, and the SCSI instruction is sent to the SCSI-ATA protocol converter unit;
and if the function of the SCSI instruction comprises a non-read-write function, sending the SCSI instruction to the SCSI-ATA protocol converter unit.
3. Interface converting device according to claim 2,
the SCSI to ATA protocol converter unit converts the SCSI instruction into an ATA instruction.
4. Interface converting device according to claim 3,
the SCSI-ATA protocol converter unit feeds back the conversion state of the SCSI instruction to the terminal equipment, wherein the conversion state comprises that the SCSI instruction is successfully converted into the ATA instruction and the SCSI instruction is not successfully converted into the ATA instruction.
5. The interface converting apparatus according to claim 2, wherein the RAID calculation unit is a hardware structure in which:
the RAID calculation unit determines distribution parameters according to the number of the hard disks and the RAID mode, and the distribution parameters represent the address and the length distributed to each hard disk;
and sending the distribution parameter to the SCSI-ATA protocol converter unit.
6. Interface converting device according to claim 5,
the SCSI-ATA protocol converter unit adds the distribution parameter to a target ATA instruction, wherein the target ATA instruction is an ATA instruction obtained by converting a SCSI instruction comprising a read-write function.
7. The interface converting apparatus according to claim 1, further comprising an ATA-protocol-host-side processor module, wherein:
the conversion module is used for converting the SCSI instruction into an Advanced Technology Attachment (ATA) instruction and then sending the ATA instruction to the ATA protocol host processor module;
the ATA protocol host end processor module encapsulates the ATA instruction to obtain instructions corresponding to the plurality of SATA interfaces;
and sending the instructions corresponding to the plurality of SATA interfaces to the plurality of SATA interface processor modules.
8. The interface converting apparatus according to claim 7, wherein the converting module sends the ATA commands to the ATA-protocol-host-side processor module, comprising:
the conversion module puts the SCSI instructions into a table to be executed one by one, the table to be executed converts the SCSI instructions into ATA instructions, and the ATA instructions are sent to the ATA protocol host processor module one by one.
9. Interface converting apparatus according to claim 7,
after the plurality of SATA interface processor modules send the ATA instruction to the plurality of hard disks through the plurality of SATA interfaces, the ATA protocol host end processor module collects an execution state of the ATA instruction, wherein the execution state comprises that the ATA instruction is successfully sent to the plurality of hard disks and the ATA instruction is not successfully sent to the plurality of hard disks;
and feeding back the execution state to the terminal equipment.
CN201911425775.2A 2019-12-31 2019-12-31 Interface conversion device Active CN111241016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911425775.2A CN111241016B (en) 2019-12-31 2019-12-31 Interface conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911425775.2A CN111241016B (en) 2019-12-31 2019-12-31 Interface conversion device

Publications (2)

Publication Number Publication Date
CN111241016A CN111241016A (en) 2020-06-05
CN111241016B true CN111241016B (en) 2021-06-25

Family

ID=70870767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911425775.2A Active CN111241016B (en) 2019-12-31 2019-12-31 Interface conversion device

Country Status (1)

Country Link
CN (1) CN111241016B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535084B (en) * 2021-06-22 2024-06-21 杭州华澜微电子股份有限公司 Implementation method of high-capacity SAS hard disk
CN117708028B (en) * 2024-02-05 2024-04-26 成都电科星拓科技有限公司 SATA RAID bridging chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655540A (en) * 2003-11-13 2005-08-17 戴尔产品有限公司 System and method for communications in serial attached SCSI storage network
CN101571790A (en) * 2008-04-29 2009-11-04 环达电脑(上海)有限公司 Flash memory controller
CN101611383A (en) * 2006-12-22 2009-12-23 Lsi公司 Serial Advanced Technology Attachment (SATA) and serial attached small computer system interface (SCSI) be bridge joint (SAS)
US7689744B1 (en) * 2005-03-17 2010-03-30 Lsi Corporation Methods and structure for a SAS/SATA converter
CN102236594A (en) * 2010-04-28 2011-11-09 鸿富锦精密工业(深圳)有限公司 SAS (serial attached SCSI) interface test device and test method thereof
CN106990916A (en) * 2017-03-01 2017-07-28 北京腾凌科技有限公司 A kind of processing method and processing device of read-write requests

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063357A (en) * 2009-11-13 2011-05-18 鸿富锦精密工业(深圳)有限公司 Sas interface testing device
CN103135938A (en) * 2011-11-23 2013-06-05 英业达股份有限公司 System and method for control of single-correlation serial advanced technology attachment (SATA) driver with active redundant array of independent disks (RAID)
CN109684250A (en) * 2019-01-10 2019-04-26 中国长城科技集团股份有限公司 The interface circuit and backboard of compatible SAS, SATA, NVME hard disk

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655540A (en) * 2003-11-13 2005-08-17 戴尔产品有限公司 System and method for communications in serial attached SCSI storage network
US7689744B1 (en) * 2005-03-17 2010-03-30 Lsi Corporation Methods and structure for a SAS/SATA converter
CN101611383A (en) * 2006-12-22 2009-12-23 Lsi公司 Serial Advanced Technology Attachment (SATA) and serial attached small computer system interface (SCSI) be bridge joint (SAS)
CN101571790A (en) * 2008-04-29 2009-11-04 环达电脑(上海)有限公司 Flash memory controller
CN102236594A (en) * 2010-04-28 2011-11-09 鸿富锦精密工业(深圳)有限公司 SAS (serial attached SCSI) interface test device and test method thereof
CN106990916A (en) * 2017-03-01 2017-07-28 北京腾凌科技有限公司 A kind of processing method and processing device of read-write requests

Also Published As

Publication number Publication date
CN111241016A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN108363670B (en) Data transmission method, device, equipment and system
JP4383148B2 (en) Magnetic disk array device with processing offload function module
CN111241016B (en) Interface conversion device
CN112214166B (en) Method and apparatus for transmitting data processing requests
US11416166B2 (en) Distributed function processing with estimate-based scheduler
CN103874979A (en) Remote copy system and remote copy control method
US11340986B1 (en) Host-assisted storage device error correction
US20200274943A1 (en) Data Processing Method and Apparatus, Server, and Controller
WO2020019267A1 (en) Data processing method and device
CN112130748A (en) Data access method, network card and server
KR20110123541A (en) Data storage device and method for operating thereof
EP4036732A1 (en) Verification data calculation method and device
CN113687977A (en) Data processing device based on RAID controller to realize calculation performance improvement
CN105487937A (en) RDMA (Remote Direct Memory Access) implementation method and device
CN100552613C (en) A kind of scsi data reading/writing method, system and device
CN115657975A (en) Disk data read-write control method, related components and front-end shared card
CN113687978B (en) Data processing method for memory array controller
CN109597565B (en) Virtual Plane management
US20110208923A1 (en) Storage method and system, terminal service board, control board and storage channel board
CN111679788B (en) NAND memory with auxiliary computing function
CN108121509A (en) The method and SSD of RAID efficiency during a kind of raising SSD read operations
CN110401458B (en) Data check coding method and system
CN104025056B (en) A kind of method and apparatus of date restoring
CN114944967B (en) Encoding method, encoding system, electronic device and storage medium
CN103051679A (en) Data transmission method, interface equipment and cloud optimal control equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant