Storage device simulation test system and method

By introducing network communication and distributed computer equipment into the storage device simulation test system, the communication process between FTL and NAND Flash is simulated, which solves the problem of difficult testing of FTL communication timing and asynchronous operations in ultra-large-capacity storage products, and realizes the testing of ultra-large-capacity storage. Effective simulation testing of products.

CN111752772BActive Publication Date: 2024-10-18ARTMEM TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010393200.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-11
Publication Date
2024-10-18
Estimated Expiration
2040-05-11

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively test the FTL communication timing and asynchronous operation of NAND Flash chips in ultra-large-capacity storage products, and cannot be adapted to simulation testing of storage products at the TB level and above, resulting in difficulties in development and debugging.

Method used

A storage device simulation test system is designed, which uses the communication layer of the host, controller and memory to simulate storage device parameters, simulates the communication process between FTL and NAND Flash through network communication, realizes the simulation of asynchronous operations, and uses distributed computer equipment to conduct Simulation testing of ultra-large capacity storage products.

Benefits of technology

It achieves accurate simulation of FTL and NAND Flash communication timing, reduces the coupling between the emulator and storage products, improves the scalability of simulation testing, and makes simulation testing of ultra-large-capacity storage products possible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111752772B_ABST
    Figure CN111752772B_ABST
Patent Text Reader

Abstract

The present invention relates to a storage device simulation test system and method, which is mainly used for simulation test of large-capacity storage devices, including: simulating multiple parameters of the storage device; generating corresponding test cases according to the parameter configuration, the test cases including instructions and data; converting and parsing the data and instructions into data and instructions that meet the writing requirements according to the test cases, and executing the writing; feeding back the writing results, and analyzing the writing results and generating a test report. The beneficial effects of the present invention are: accurately simulating the communication timing between FTL and NANDFlash, thereby completing the simulation of asynchronous operations; the simulator storage simulation design adopts a distributed design to solve the problem that a single computer storage space is difficult to simulate ultra-large-capacity storage products; the introduction of network communication reduces the coupling between FTL and the simulator, and improves the scalability of the entire simulation test system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer data processing, and in particular to a storage device simulation test system and method. Background Art

[0002] With the development of storage technology, NAND Flash memory has been widely used in various fields due to its large capacity and fast rewrite speed, which is suitable for storing large amounts of data. However, the entire R&D cycle of NAND FLASH chips from design to final productization is very long, which makes the development cycle even longer when developing programs based on NAND Flash. At the same time, different manufacturers and different types of storage particles have different characteristic change curves, error occurrence curves and distributions. When storage products enter the testing phase, the randomness of storage particle errors (uncontrollable) and the long trigger particle characteristic cycle will make it difficult to achieve comprehensive and effective testing of storage products, especially some error superposition and nesting scenarios, which are difficult to test and may cause defects in storage products to be undetectable. Moreover, these characteristics and errors are often uncontrollable and difficult to reproduce, which brings great challenges to the development and debugging of storage products.

[0003] In the existing technical solutions, in order to solve the above problems, NAND Flash emulators are introduced to accelerate the development cycle and testing of storage products. These test solutions take into account the NAND operation sequence, NAND bit flip characteristics, and storage particle documentation when simulating, and provide convenience for the development and debugging of storage products while being as close to NAND Flash as possible. However, these solutions have the following problems:

[0004] (1) The communication timing and asynchronous operation between the emulator and the FTL (Flash translation layer) of the storage product are not considered.

[0005] (2) It cannot adapt to the simulation test of ultra-large capacity (TB level and above) storage products. Existing simulators either use a section of computer memory or disk space to simulate NAND Flash storage. This is obviously impractical for the simulation test of ultra-large capacity storage products. Summary of the invention

[0006] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a storage device simulation test system and device to realize simulation test of ultra-large capacity storage devices.

[0007] The technical solution of the present invention includes a storage device simulation test device, characterized in that the device includes: a host, a controller and a memory; the host, the controller and the memory are all provided with corresponding communication layers, and the communication layer completes the communication between any two of the host, the controller and the memory based on the corresponding communication protocol; the memory is used to simulate multiple parameters of the storage device; the host is used to generate corresponding test cases according to the parameter configuration, and send corresponding instructions and data to the controller according to the test cases; the controller parses the instructions and data, and transfers the parsed data and instructions to the memory according to the write protocol; when the memory writes data, it returns the write result to the host, and the host analyzes the test result.

[0008] According to the storage device simulation test apparatus, the memory is configured as NAND Flash.

[0009] According to the storage device simulation test device, the host includes a FLT communication layer, a test case and a NAND Flash communication layer; the controller includes a Host communication layer, a FLT and a NAND Flash communication layer; the NAND Flash includes a Host communication layer, a NAND Flash simulation layer and a FLT communication layer; the host communicates with the FLT of the controller through the FLT communication layer, and communicates with the Host communication layer of the NAND Flash through the NAND Flash communication layer; the controller communicates with the FLT communication layer of the NAND Flash through the NAND Flash communication layer.

[0010] According to the storage device simulation test device, the communication protocols of the FTL communication layer of the host and the Host communication layer of the controller comply with the communication protocol of the storage device, and the storage products include but are not limited to EMMC, UFS and SSD.

[0011] According to the storage device simulation test device, the communication protocol between the NAND Flash communication layer of the controller and the FTL communication layer of the NAND Flash complies with the ONFI specification.

[0012] According to the storage device simulation test device, the communication protocol between the NAND Flash communication layer of the host and the Host communication layer of the NAND Flash can be customized.

[0013] According to the storage device simulation test apparatus, the data interaction mode among the host, the controller and the NAND Flash memory is a request / response mode.

[0014] According to the storage device simulation test device, the communication mode between the host, the controller and the NAND Flash memory is set to network communication.

[0015] According to the storage device simulation test apparatus, the host, the controller and the NAND Flash memory can be arranged in a distributed computer device, and the distributed computer device includes but is not limited to a computer cluster and a disk array.

[0016] The technical solution of the present invention also includes a storage device simulation test method, characterized in that the method includes: S100, simulating multiple parameters of the storage device; S200, generating corresponding test cases according to the parameter configuration, the test cases including instructions and data; S300, converting and parsing the data and instructions into data and instructions that meet the writing requirements according to the test cases, and executing the writing; S400, providing feedback on the writing results, and analyzing the writing results and generating a test report.

[0017] The beneficial effects of the present invention are as follows: by introducing network communication to simulate the communication process between FTL and NAND Flash, the communication timing between FTL and NAND Flash can be accurately simulated, thereby completing the simulation of asynchronous operations, such as sending commands first and outputting data later; the simulator storage simulation design adopts a distributed design to solve the problem that a single computer storage space is difficult to simulate ultra-large capacity storage products; the introduction of network communication reduces the coupling between FTL and the simulator, improves the scalability of the entire simulation test system, and enables the existing simulator design to be applied to FTL simulation tests of different storage products. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The present invention is further described below in conjunction with the accompanying drawings and embodiments;

[0019] Figure 1 Shown is a system block diagram according to an embodiment of the present invention;

[0020] Figure 2 Shown is a flow chart according to an embodiment of the present invention;

[0021] Figure 3 Shown is a diagram of the simulator system architecture according to an embodiment of the present invention;

[0022] Figure 4 Shown is a timing diagram of writing communication of an emulator according to an embodiment of the present invention;

[0023] Figure 5 Shown is a timing diagram of a simulator writing protocol in real-time mode according to the present invention;

[0024] Figure 6Shown is a schematic diagram of distributed storage simulation of a simulator in real-time mode according to the present invention. DETAILED DESCRIPTION

[0025] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.

[0026] In the description of the present invention, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood as not including the number itself, and “above”, “below”, “within”, etc. are understood as including the number itself.

[0027] Terminology explanation:

[0028] PE cycle: P / E cycle, which indicates one erase / write cycle of a flash memory device;

[0029] Command / Response or CMD / RSP: request / response;

[0030] ONFI specification: A communication protocol specification between modules of flash memory devices;

[0031] EMMC, UFS, SSD: different storage devices based on flash memory technology;

[0032] FTL: Flash Translation Layer, used to complete the mapping from the host logical address space to the physical address space of the flash memory device;

[0033] In the description of the present invention, unless otherwise clearly defined, words such as "setting" should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above words in the present invention in combination with the specific content of the technical solution.

[0034] Figure 1 The system block diagram according to the embodiment of the present invention is shown. The system includes: a host, a controller and a memory; the host, the controller and the memory are all provided with corresponding communication layers, and the communication layers complete the communication between any two of the host, the controller and the memory based on the corresponding communication protocol; the memory is used to simulate multiple parameters of the storage device; the host is used to generate corresponding test cases according to the parameter configuration, and send corresponding instructions and data to the controller according to the test cases; the controller parses the instructions and data, and transmits the parsed data and instructions to the memory according to the write protocol; when the memory writes data, it returns the write result to the host, and the host analyzes the test result.

[0035] Figure 2The flowchart shown is according to an embodiment of the present invention, and the process includes: S100, simulating multiple parameters of the storage device; S200, generating corresponding test cases according to the parameter configuration, and the test cases include instructions and data; S300, converting and parsing the data and instructions into data and instructions that meet the writing requirements according to the test cases, and executing the writing; S400, providing feedback on the writing results, and analyzing the writing results and generating a test report.

[0036] As a pair Figure 1 Improvements in technical solutions, Figure 3 An emulator system with NAND Flash as memory is proposed. The emulator consists of three main modules: host, controller, and NAND Flash memory. The host tests the product FTL through the test cases written by the tester, and the FTL simulates the operation of the actual storage particles through the NAND Flash simulation layer. The NAND Flash simulation layer simulates features such as PE cycle, erase before write, and bad block generation. Each module has two communication layers responsible for communicating with the other two modules in the form of Command / Response. Among them: the communication protocol between the host's FTL communication layer and the controller's host communication layer complies with the communication protocol design of the storage product, and the storage product includes but is not limited to EMMC, UFS, and SSD; the communication protocol between the controller's NAND Flash communication layer and the NAND Flash's FTL communication layer follows the ONFI specification design; the communication protocol between the host's NAND Flash communication layer and the NAND Flash's host communication layer can be freely defined, which is mainly used to configure NAND Flash features and obtain NAND Flash data in real time to analyze the design advantages and disadvantages of FTL.

[0037] The communication process between the host and the controller, and between the controller and the NAND Flash is simulated in the form of network communication, which is closer to the actual communication process of storage products. At the same time, this design method can accurately locate the test trigger point before, during, or after the command is sent, or before, during, or after the data is sent in the power-off test, so as to detect the processing ability of FTL for these scenarios.

[0038] In the simulator system architecture shown, the host, controller and NAND Flash module can be located on different distributed computers, which allows each module to configure different computers according to its own performance and space requirements. When performing ultra-large capacity storage product simulation tests, the NAND Flash module can use methods such as disk arrays and computer clusters to meet the ultra-large capacity storage simulation. For details, refer to Figure 6 .

[0039] In terms of scalability, the design details of FTL and NAND Flash are shielded, and FTL tests of different storage products can be easily adapted. In this design, network communication replaces the function interface calling method of the traditional emulator, so that testers do not need to know how the FTL R&D personnel define the interface, and FTL R&D personnel do not need to know the interface details of the emulator developer. When adapting the simulation test of a new storage product, the FTL R&D personnel only need to complete the communication adaptation according to the specification to carry out the simulation test of the product.

[0040] Taking test data writing as an example, the communication timing on the simulator can be as follows: Figure 4 The main steps are as follows:

[0041] (1) The NAND Flash communication layer of the host sends configuration commands to the host communication layer of the NAND Flash to complete the NAND configuration of the emulator, such as the number of planes, blocks, pages, PE cycles, and bad blocks, and complete the simulation of the specified storage particles;

[0042] (2) After the configuration is completed, the test cases written by the tester pass the commands and data to the host communication layer of the controller through the FTL communication layer of the host according to the established write protocol;

[0043] (3) The host communication layer of the controller parses the commands and data and passes them to the FTL. After a series of processing, the FTL converts them into NAND commands and data that comply with the ONFI specification and passes them to the NAND Flash emulation layer.

[0044] (4) After the emulator writes the data, it transmits the data writing result to the host test case according to the protocol in the sequence of NAND Flash->controller->host;

[0045] (5) If the write is successful, the NAND data can be obtained from the host communication layer of the NAND Flash through the host's NAND Flash communication layer, and the impact of the write on the NAND Flash's PE cycle, bad blocks and other characteristics can be analyzed to determine whether there are deficiencies in the FTL design.

[0046] Furthermore, the command and data transmission timing of the protocol are explained. Here, the write operation command and data communication timing between the host and the controller are taken as an example. The timing can be as follows: Figure 5 The left frame is the command and data sent by the host's FTL communication layer to the controller's Host communication layer, and the right frame is the response from the controller's Host communication layer. The details are as follows:

[0047] After the Host communication layer of the controller receives the write command from the FTL communication layer of the host, it completes the parsing and data reception preparation. After everything is correct, it responds to the host with "preparation completed" to indicate that data reception can begin;

[0048] Since the amount of data to be written may be relatively large, the host will divide the data into multiple packets to be sent separately. When the host communication layer of the controller receives a packet of data, it responds to the host with "ready completed" to indicate that the packet of data has been successfully received, and the host can start sending the next packet of data;

[0049] After the host has sent all the data, it sends a "ready to complete" command to indicate that the data has been sent, and then the host communication layer of the controller follows Figure 3 The timing shown hands the data over to the FTL for processing.

[0050] After the FTL processing is completed, the host communication layer of the controller converts the FTL processing results into protocol-defined responses and returns them to the host, completing the data writing process.

[0051] In the storage simulation of the simulator, a distributed design is adopted to solve the problem that a single computer storage space is difficult to simulate ultra-large capacity storage products. The schematic diagram can be shown as follows Figure 6 Here we focus on two forms that are easier to implement: computer clusters and disk arrays.

[0052] If storage simulation is implemented in the form of a computer cluster, it is necessary to establish a mapping relationship between cluster computers in the simulator, such as IP-Die, that is, one computer corresponds to one Die of NAND flash, and the file storage structure inside the computer is designed according to the structure below Die, that is, the Plane-Block-Page structure. At the same time, a client program is established in each computer to communicate with the simulator to complete the sending and receiving of data.

[0053] If the disk array is used, the mapping relationship of the simulator becomes the mapping with the disk partition, such as partition-Die, and the file storage structure inside the disk partition is also designed in the structure form below Die. At this time, data writing and reading only need to be operated through the file system.

[0054] Through this combination of ideas, simulation tests on ultra-large capacity storage products can be completed.

[0055] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.

Claims

1. A storage device simulation test device, characterized in that: The device includes: Host, controller and storage; The host, the controller and the memory are all provided with corresponding communication layers, and the communication layers complete the communication between any two of the host, the controller and the memory based on the corresponding communication protocol; the memory is used to simulate multiple parameters of the storage device; the host is used to generate corresponding test cases according to the parameter configuration, and send corresponding instructions and data to the controller according to the test cases; the controller parses the instructions and data, and transfers the parsed data and instructions to the memory according to the write protocol; when the memory writes data, it returns the write result to the host, and the host analyzes the test result; Wherein, the memory is configured as NAND Flash, and the communication mode between the host, the controller and the NAND Flash memory is set to network communication; The host includes an FLT communication layer, a test case and a NAND Flash communication layer; The controller includes a Host communication layer, a FLT and a NAND Flash communication layer; The NAND Flash includes a Host communication layer, a NAND Flash simulation layer and a FLT communication layer; The host communicates with the FLT of the controller through the FLT communication layer, and communicates with the Host communication layer of the NAND Flash through the NAND Flash communication layer; the controller communicates with the FLT communication layer of the NAND Flash through the NAND Flash communication layer; The host, controller and NAND Flash memory are arranged in a distributed computer device.

2. The storage device simulation test device according to claim 1, characterized in that: The communication protocols of the FTL communication layer of the host and the Host communication layer of the controller comply with the communication protocols of the storage devices, and the storage devices include EMMC, UFS and SSD.

3. The storage device simulation test device according to claim 1, characterized in that: The communication protocol between the NAND Flash communication layer of the controller and the FTL communication layer of the NAND Flash complies with the ONFI specification.

4. The storage device simulation test device according to claim 1, characterized in that: The communication protocol between the NAND Flash communication layer of the host and the Host communication layer of the NAND Flash can be customized.

5. The storage device simulation test device according to claim 1, characterized in that: The data interaction mode among the host, the controller and the NAND Flash memory is a request / response mode.

6. The storage device simulation test device according to claim 1, characterized in that The distributed computer equipment includes a computer cluster and a disk array.

Citation Information

Patent Citations

  • General simulation testing platform for software of ship equipment and construction method of general simulation testing platform

    CN104461854A

  • Simulation test platform, and automatic simulation test system and method

    CN107065837A

  • Performance testing system and method for storage particle controller and simulation platform

    CN109684150A