Solid-state drive data protection system based on error checking

By introducing hash value generation, extraction, traversal and sorting modules into solid-state drives, refined verification of data blocks, pages and storage units is achieved, solving the problems of low data protection accuracy and efficiency in the existing technology, and improving data integrity and security.

CN118520517BActive Publication Date: 2024-10-01JIANGSU HUACUN ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995944.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing technology can only perform data verification at the block level, resulting in low accuracy and efficiency of data protection.

Method used

By introducing the hash value generation module to be verified, the standard hash value extraction module, the storage structure tree activation module, the traversal module and the sorting module into the solid state drive, refined hash values ​​for data blocks, pages and storage units are achieved. Verification, constructing anomaly detection data path identification and sending it to the user end.

Benefits of technology

It improves the accuracy and efficiency of data protection, enables more precise location and verification of data anomalies, and improves data integrity and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520517B_ABST
    Figure CN118520517B_ABST
Patent Text Reader

Abstract

The present invention discloses a solid state hard disk data protection system based on error checking, and relates to the field of data protection technology, including: generating a first hash value to be checked for block data to be checked and extracting a first standard hash value when an error checking cycle is met; activating a storage structure tree of the block to be checked when the standard hash value and the hash value to be checked are not the same; traversing the area list to perform hash value checking to obtain a first hash value checking result; sorting the page list to obtain the page to be checked; traversing the page to be checked to perform hash value checking to obtain a second hash value checking result; sorting the storage unit list to obtain the storage unit to be checked; traversing the storage unit to be checked to perform hash value checking to obtain a third hash value checking result, constructing an abnormal detection data path identifier, and sending it to a user end. The present invention solves the technical problem that the prior art can only perform checking at the block level, resulting in low accuracy and efficiency of data protection, and achieves the technical effect of improving the accuracy and efficiency of data protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data protection, and in particular to a solid state hard disk data protection system based on error checking. Background Art

[0002] With the rapid development of information technology, data storage and management have been widely used in various fields, especially in finance, medical care, scientific research and other fields, where data integrity and security are of vital importance. However, with the continuous expansion of data scale and the complexity of storage systems, the demand for data protection and error checking is also facing increasing challenges. Traditional error data checking methods usually check data accuracy based on blocks. This method can only determine whether there are anomalies in the entire block of data, but cannot locate the abnormal data in the block, resulting in low accuracy and efficiency of data protection. Summary of the invention

[0003] The present application provides a solid-state hard disk data protection system based on error checking, which is used to solve the technical problem that the prior art can only perform checking at the block level, resulting in low accuracy and efficiency of data protection.

[0004] In view of the above problems, the present application provides a solid state drive data protection system based on error checking.

[0005] The present application provides a solid state hard disk data protection system based on error checking, the system comprising:

[0006] A hash value generation module to be checked, the hash value generation module to be checked is used to call the block data to be checked of the solid state drive and input it into the first hash function to generate a first hash value to be checked when the error checking cycle is met; a standard hash value extraction module, the standard hash value extraction module is used to extract the first standard hash value of the block data to be checked from the standard hash value storage table, wherein the first standard hash value is the result of the block data to be checked being processed by the first hash function before being stored in the solid state drive; a storage structure tree activation module, the storage structure tree activation module is used to activate the storage structure tree of the block to be checked when the first standard hash value and the first hash value to be checked are different, wherein the storage structure tree of the block to be checked includes a zone list, a page list, and a storage unit list; a first traversal module, the first traversal module is used to Traversing the zone list to perform hash value verification and obtain a first hash value verification result; a first sorting module, the first sorting module is used to sort the page list according to the first hash value verification result to obtain the page to be verified; a second traversal module, the second traversal module is used to traverse the page to be verified to perform hash value verification and obtain a second hash value verification result; a second sorting module, the second sorting module is used to sort the storage unit list according to the second hash value verification result to obtain the storage unit to be verified; a third traversal module, the third traversal module is used to traverse the storage unit to be verified to perform hash value verification and obtain a third hash value verification result; an identification module, the identification module is used to construct an abnormal detection data path identification according to the third hash value verification result, and send it to the user end.

[0007] The technical solution provided in this application has at least the following technical effects or advantages:

[0008] When the error check cycle is met, the present application retrieves the block data to be checked of the solid state drive and inputs it into the first hash function to generate a first hash value to be checked; extracts the first standard hash value of the block data to be checked from the standard hash value storage table, wherein the first standard hash value is the result of processing the block data to be checked by the first hash function before the block data to be checked is stored in the solid state drive; when the first standard hash value and the first hash value to be checked are different, activates the block storage structure tree to be checked, wherein the block storage structure tree to be checked includes an area list, a page list, and a storage unit list; traverses the area list to perform hash value verification to obtain a first hash value verification result; sorts the page list according to the first hash value verification result to obtain the page to be checked; traverses the page to be checked to perform hash value verification to obtain a second hash value verification result; sorts the storage unit list according to the second hash value verification result to obtain the storage unit to be checked; traverses the storage unit to be checked to perform hash value verification to obtain a third hash value verification result; and constructs an abnormal detection data path identifier according to the third hash value verification result and sends it to the user end. The present invention solves the technical problem that the prior art can only perform verification at the block level, resulting in low accuracy and efficiency of data protection, and achieves the technical effect of improving the accuracy and efficiency of data protection by refining the data verification steps. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram of the structure of a solid state drive data protection system based on error checking provided in an embodiment of the present application;

[0011] Figure 2 A schematic flow chart of a solid state drive data protection method based on error checking provided in an embodiment of the present application.

[0012] Explanation of the reference numerals: a hash value generation module 11 to be verified, a standard hash value extraction module 12, a storage structure tree activation module 13, a first traversal module 14, a first sorting module 15, a second traversal module 16, a second sorting module 17, a third traversal module 18, and an identification module 19. DETAILED DESCRIPTION

[0013] The present application provides a solid-state hard disk data protection system based on error checking, aiming to solve the technical problem that the prior art can only perform checking at the block level, resulting in low accuracy and efficiency of data protection. By refining the data checking steps, the technical effect of improving the accuracy and efficiency of data protection is achieved.

[0014] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0015] It should be noted that any variations of the terms "include" and "have" are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or inherent to these processes, methods, products or devices.

[0016] Embodiment 1

[0017] like Figure 1 As shown, the present application provides a solid state drive data protection system based on error checking, which is used to perform the following steps: Figure 2 The solid state drive data protection method based on error checking is shown, and the system includes:

[0018] The hash value generation module 11 to be checked is used to retrieve the block data to be checked of the solid state drive and input it into a first hash function to generate a first hash value to be checked when an error checking cycle is met.

[0019] In an embodiment of the present application, when it is detected that a predefined error check cycle has been reached, the hash value generation module to be checked begins to perform a data verification operation. The error check cycle is a set time interval or condition used to determine when the data on the solid-state drive should be checked for integrity. Specifically, the hash value generation module to be checked first retrieves specific data blocks that need to be verified from the solid-state drive. These data blocks are predefined storage units that contain important or sensitive information. The retrieved block data to be checked is then input into the first hash function. The first hash function is a specific hash algorithm used in the system, such as MD5, SHA-1, or SHA-256.

[0020] After the block data to be verified is processed by the first Hash function, a unique Hash value with a fixed length is generated, and this Hash value is called the first Hash value to be verified.

[0021] The standard hash value extraction module 12 is used to extract the first standard hash value of the block data to be checked from the standard hash value storage table, wherein the first standard hash value is the result of processing the block data to be checked by the first hash function before being stored in the solid state drive.

[0022] In the embodiment of the present application, the standard hash value storage table stores the standard hash values ​​of all data blocks on the solid state drive. These hash values ​​are generated after the data blocks are processed by the first hash function before they are initially stored in the solid state drive.

[0023] When a block of data to be checked needs to be checked, the standard hash value extraction module accesses the standard hash value storage table and locates and extracts the first standard hash value of the data block from the standard hash value storage table according to the identifier of the block of data to be checked.

[0024] The storage structure tree activation module 13 is used to activate the storage structure tree of the block to be checked when the first standard hash value and the first hash value to be checked are different, wherein the storage structure tree of the block to be checked includes a zone list, a page list, and a storage unit list.

[0025] In the embodiment of the present application, when it is found through comparison that the first standard hash value and the first hash value to be checked are different, the storage structure tree activation module activates the storage structure tree of the block to be checked.

[0026] The storage structure tree of the block to be verified includes a zone list, a page list, and a storage unit list. The zone list is the top level of the storage structure tree, which contains lists of multiple zones. Each zone may consist of multiple pages and is the basic unit of data storage. The page list is a sublist under each zone, containing information about all pages in the zone. The storage unit list is a sublist under each page, containing information about all storage units in the page.

[0027] The first traversal module 14 is used to traverse the zone list to perform hash value verification and obtain a first hash value verification result.

[0028] In an embodiment of the present application, each zone in the zone list is traversed by a first traversal module. Specifically, the first traversal module extracts data blocks of each zone from the zone list. After extracting the data blocks, the first traversal module uses a first hash function to perform hash value verification on the data blocks, inputs the data block of the current zone into the first hash function, generates a hash value of the current data block, and then compares the generated hash value with the standard hash value to generate a first hash value verification result. The first hash value verification result records whether the data block of each zone has passed the hash value verification.

[0029] The first sorting module 15 is used to sort the page list according to the first hash value verification result to obtain the page to be verified.

[0030] In the embodiment of the present application, when the first sorting module sorts the page list, it first uses the JSON or XML parsing library to extract the first hash value verification result and identifies the areas where the hash values ​​do not match. During the parsing process, these areas where the hash values ​​do not match are identified, and these areas represent storage areas that may contain abnormal data.

[0031] Next, the first sorting module extracts the page list of each zone marked as abnormal from the storage structure tree through database query or memory mapping file. For each zone marked as abnormal, the page list in the zone is analyzed one by one. Specifically, the hash value of the data block of each page is recalculated and compared with the stored standard hash value. In this way, it is determined which pages contain abnormal data blocks. Finally, based on the comparison result of the recalculated hash value and the standard hash value, the pages containing abnormal data blocks are identified, and these pages are called pages to be checked.

[0032] The second traversal module 16 is used for traversing the to-be-checked page to perform hash value verification and obtain a second hash value verification result.

[0033] In an embodiment of the present application, the second traversal module extracts the data blocks in each page to be verified. For each data block, a hash value of the data block is recalculated using a predefined hash function. The recalculated hash value is called the current hash value. The current hash value is compared with the previously stored standard hash value. By comparing the current hash value with the standard hash value, it is determined whether the data block has changed. If the two hash values ​​are consistent, it means that the data block has not been modified and the data is complete; if they are inconsistent, it indicates that the data block may have been damaged or tampered with.

[0034] Through the above process, a second Hash value verification result is generated.

[0035] The second sorting module 17 is used to sort the storage unit list according to the second Hash value verification result to obtain the storage unit to be verified.

[0036] In an embodiment of the present application, the second sorting module uses a JSON or XML parsing library to parse the second hash value verification result to identify which data blocks have failed the hash value verification. Next, the storage unit list is analyzed one by one, and for each storage unit, combined with the second hash value verification result, it is determined whether the storage unit contains abnormal data blocks. During the judgment process, an efficient hash algorithm, such as SHA-256, is used to recalculate the hash value of the data block in each storage unit. The recalculated hash value will be compared with the standard hash value. If the hash value of the data block of a storage unit is inconsistent with the standard hash value, the storage unit will be marked as a storage unit to be verified.

[0037] The third traversal module 18 is used to traverse the storage unit to be verified to perform hash value verification and obtain a third hash value verification result.

[0038] In an embodiment of the present application, the third traversal module extracts each storage unit from the list of storage units to be verified. For each storage unit to be verified, the hash value of the data block contained therein is recalculated. The calculated hash value is compared with the standard hash value. If the current hash value is consistent with the standard hash value, it indicates that the data block has not been modified and the data is complete; if they are inconsistent, it indicates that the data block may have been damaged or tampered with. Through this process, the third traversal module generates a third hash value verification result.

[0039] The identification module 19 constructs an abnormality detection data path identification according to the third hash value verification result and sends it to the user end.

[0040] In an embodiment of the present application, the identification module first parses the third hash value verification result, uses a JSON parsing library or an XML parsing library to identify which data blocks fail the verification, and marks these data blocks as abnormal data blocks.

[0041] Next, the abnormal detection data path identifier is constructed. The abnormal detection data path identifier is used to identify the specific location and path of the abnormal data block in the storage system. To construct the abnormal detection data path identifier, the identification module integrates the storage path, storage unit location and related hash value verification results of each abnormal data block into a complete identification information, and uses string processing and formatting technology to combine the storage path and verification results into a data format that is easy to understand and transmit, such as JSON or XML. At the same time, a data structure is used to organize and store this information. The construction of the abnormal detection data path identifier is completed through this process.

[0042] Finally, network communication technology such as HTTP is used to send the abnormality detection data path identifier to the user end.

[0043] Furthermore, the system provided in the application embodiment:

[0044] When the error checking cycle is not satisfied, the solid state hard disk status monitoring information of the preset collection time zone is received, wherein the solid state hard disk status monitoring information at least includes temperature monitoring value, humidity monitoring value, unexpected power failure number monitoring value, cumulative write amount monitoring value, media wear indicator monitoring value, ECC correction count monitoring value, bad block number monitoring value; the preset collection time zone is from the end of the last error checking cycle to the current moment; the temperature monitoring value, the humidity monitoring value, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value are used to perform disk abnormality probability analysis to obtain an abnormal probability calibration value; when the abnormal probability calibration value is greater than or equal to the abnormal probability calibration threshold, error checking is enabled in advance.

[0045] In an embodiment of the present application, when the error check cycle is not satisfied, the solid state hard disk status monitoring information of the preset collection time zone is received. The preset collection time zone refers to the time period from the end of the last error check cycle to the current moment. During this period, the collected solid state hard disk status monitoring information includes at least temperature monitoring value, humidity monitoring value, unexpected power failure number monitoring value, cumulative write amount monitoring value, media wear indicator monitoring value, ECC correction count monitoring value and bad block number monitoring value. These monitoring values ​​are collected through the self-monitoring, analysis and reporting technical functions of the hard disk.

[0046] Next, we conduct disk anomaly probability analysis and input the collected SSD status monitoring information into a pre-trained machine learning model to obtain an anomaly probability calibration value.

[0047] The obtained abnormal probability calibration value is compared with the abnormal probability calibration threshold value pre-set by technical experts. If the abnormal probability calibration value is greater than or equal to the abnormal probability calibration threshold value, error checking is enabled in advance.

[0048] Furthermore, in the system provided by the embodiment of the application, when the error checking period is not satisfied, receiving the solid state hard disk status monitoring information includes:

[0049] When the error checking cycle is not satisfied, the temperature monitoring value timing information, the humidity monitoring value timing information, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value of the preset acquisition time zone are received; a reference temperature interval and a reference humidity interval are loaded; from the temperature monitoring value timing information, a set of temperature monitoring record values ​​greater than the upper limit temperature of the reference temperature interval is extracted, and a majority evaluation is performed on the set of temperature monitoring record values ​​to generate the temperature monitoring value; from the humidity monitoring value timing information, a set of humidity monitoring record values ​​greater than or equal to the upper limit value of the reference humidity interval is extracted, and a majority evaluation is performed on the set of humidity monitoring record values ​​to generate the humidity monitoring value.

[0050] In an embodiment of the present application, when the error check cycle is not met, the temperature monitoring value timing information, humidity monitoring value timing information, unexpected power failure number monitoring value, cumulative write amount monitoring value, media wear indicator monitoring value, ECC correction count monitoring value, and bad block number monitoring value of the preset collection time zone are collected through the self-monitoring, analysis and reporting technical functions of the hard disk.

[0051] Next, the reference temperature interval and reference humidity interval are loaded. These reference intervals are predefined temperature and humidity ranges of normal working environments, which are stored in the system's configuration file or database.

[0052] A set of temperature monitoring record values ​​greater than the upper limit of the reference temperature interval is extracted from the temperature monitoring value time series information. The temperature monitoring value time series information refers to the record of the temperature change of the solid state drive over time within the preset acquisition time zone. After extracting the set of temperature monitoring record values ​​greater than the upper limit of the reference temperature interval, a mode evaluation is performed on these record value sets, and the value with the highest frequency in the temperature monitoring record value set is found through the mode evaluation, and this value is used as the temperature monitoring value.

[0053] Similarly, a set of humidity monitoring record values ​​greater than or equal to the upper limit of the reference humidity interval is extracted from the humidity monitoring value time series information. Similarly, the value with the highest frequency in the humidity monitoring record value set is found through mode evaluation, and the value is used as the humidity monitoring value.

[0054] Further, in the system provided by the embodiment of the application, the temperature monitoring value, the humidity monitoring value, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value are used to perform disk abnormality probability analysis to obtain an abnormality probability calibration value, including:

[0055] Based on the solid state drive model, a disk anomaly probability analysis network is activated, wherein the disk anomaly probability analysis network construction step includes:

[0056] Taking the solid state drive model as a constraint condition, taking temperature, humidity, number of unexpected power failures, cumulative write volume, media wear indicator, ECC correction count and number of bad blocks as a type of retrieval target to collect data, and obtaining a type of retrieval target data set, wherein any group of the type of retrieval target data includes temperature retrieval value, humidity retrieval value, number of unexpected power failures retrieval value, cumulative write volume retrieval value, media wear indicator retrieval value, ECC correction count retrieval value and bad block number retrieval value; taking the solid state drive model as a constraint condition, traversing the type of retrieval target data set, taking the disk abnormal state as a second type of retrieval target to perform data statistics, and obtaining a set of disk abnormality probability identification values; based on the set of disk abnormality probability identification values ​​and the type of retrieval target data set, building the disk abnormality probability analysis network; according to the disk abnormality probability analysis network, processing the temperature monitoring value, the humidity monitoring value, the number of unexpected power failures monitoring value, the cumulative write volume monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value and the bad block number monitoring value, and generating the abnormal probability calibration value.

[0057] In the embodiment of the present application, data collection is first performed with the SSD model as a constraint condition, and various monitoring values ​​related to the hard disk operation status are obtained through the self-monitoring, analysis and reporting technical functions of the hard disk, including temperature, humidity, number of unexpected power failures, cumulative write volume, media wear indicator, ECC correction count and number of bad blocks. Next, these data are classified according to the SSD model, and with this as a constraint condition, a type of retrieval target data set is generated, including temperature retrieval value, humidity retrieval value, number of unexpected power failures retrieval value, cumulative write volume retrieval value, media wear indicator retrieval value, ECC correction count retrieval value and bad block number retrieval value.

[0058] Next, we traverse the first-class retrieval target data set and take the disk abnormal state as the second-class retrieval target for data statistics. The disk abnormal state refers to the failure or abnormality that may occur in the hard disk during operation, such as hard disk failure, data corruption, etc. By counting these data, we obtain a set of disk abnormality probability identification values. The disk abnormality probability identification value indicates the probability of the hard disk being abnormal under each combination of monitoring values.

[0059] Based on the disk anomaly probability identification value set and a type of retrieval target data set, the disk anomaly probability analysis network is built. The disk anomaly probability analysis network is a machine learning model used to predict the anomaly probability of the hard disk. When building the disk anomaly probability analysis network, a machine learning framework such as TensorFlow or scikit-learn is used, and an appropriate model structure such as random forest, support vector machine or neural network is adopted. During the training process, the disk anomaly probability identification value and a type of retrieval target data set are used for training. These data reflect the various monitoring values ​​and corresponding failure probabilities of the hard disk under different operating conditions. By learning the patterns and relationships in these historical data, the machine learning model can capture the key factors that affect the hard disk anomaly. Through this process, the construction of the disk anomaly probability analysis network is completed.

[0060] Finally, the real-time monitoring data, including temperature monitoring value, humidity monitoring value, unexpected power failure number monitoring value, cumulative write volume monitoring value, media wear indicator monitoring value, ECC correction count monitoring value and bad block number monitoring value, are input into the disk anomaly probability analysis network for processing to generate an anomaly probability calibration value.

[0061] Furthermore, in the system provided by the embodiment of the application, the solid state drive model is used as a constraint condition, the first type of search target data set is traversed, and the disk abnormality state is used as the second type of search target for data statistics to obtain a disk abnormality probability identification value set, including:

[0062] According to the first group of first-category retrieval target data of the first-category retrieval target data set, data collection is performed several times with the disk abnormality status as the second-category retrieval target to obtain several disk abnormality status retrieval values, wherein the disk abnormality status retrieval value is 0 or 1, 0 represents abnormality, and 1 represents normality; the number of 0 value proportions of the several disk abnormality status retrieval values ​​is statistically analyzed and set as the first disk abnormality probability identification value; the first disk abnormality probability identification value is added to the disk abnormality probability identification value set.

[0063] In the embodiment of the present application, a group of data is first randomly extracted from a class of retrieval target data sets as the first group of class one retrieval target data. Then, the disk abnormal state is taken as the second class retrieval target, and multiple data collections are performed on the first group of class one retrieval target data. The disk abnormal state indicates whether the operating state of the hard disk is normal, and the abnormal state of the hard disk is recorded in each data collection. The result of each collection is called the disk abnormal state retrieval value, which is 0 or 1, where 0 indicates that the hard disk is abnormal and 1 indicates that the hard disk is normal.

[0064] Perform statistical analysis on the disk abnormal status retrieval values ​​collected several times. Specifically, count the percentage of 0 values. The percentage of 0 values ​​indicates the frequency of hard disk abnormalities in all collection results. For example, if 100 data collections are performed, and 20 of them are recorded as 0, the percentage of 0 values ​​is 20%. Set this percentage of 0 values ​​as the first disk abnormality probability identification value, which indicates the probability of a hard disk abnormality under a specific monitoring value combination. Finally, add the calculated first disk abnormality probability identification value to the disk abnormality probability identification value set.

[0065] Further, in the system provided in the embodiment of the application, traversing the zone list to perform hash value verification to obtain a first hash value verification result includes:

[0066] According to the zone list, extract the data to be verified in the first zone, input the first hash function, and generate a second hash value to be verified; extract the second standard hash value of the data to be verified in the first zone from the standard hash value; when the second hash value to be verified and the second standard hash value are different, mark the hash value verification result of the first zone as abnormal; when the second hash value to be verified and the second standard hash value are the same, mark the hash value verification result of the first zone as normal; add the hash value verification result identifier of the first zone to the first hash value verification result.

[0067] In the embodiment of the present application, firstly, the first zone data to be verified is obtained by using a database query or a file system call according to the zone list, and the extracted first zone data to be verified is input into a first hash function to generate a hash value, which is called a second hash value to be verified.

[0068] Next, the second standard hash value corresponding to the first zone data to be verified is extracted from the pre-stored standard hash value. The second hash value to be verified is compared with the second standard hash value. Specifically, the two strings are directly compared. If the two hash values ​​are different, it means that the data may have changed. At this time, the first zone hash value verification result is marked as abnormal. If the two hash values ​​are the same, it means that the data remains intact, and the first zone hash value verification result is marked as normal.

[0069] Finally, the first zone hash value verification result identifier is added to the first hash value verification result.

[0070] Furthermore, in the system provided in the embodiment of the application, the page list is sorted according to the first hash value verification result to obtain the page to be verified, including:

[0071] Obtain a distribution area list of the page list; extract a verification result as an abnormal area set based on the distribution area list according to the first hash value verification result; extract pages belonging to the abnormal area set from the page list and add them into the pages to be verified.

[0072] In the embodiment of the present application, the distribution area list is first extracted from the page list using a database query or a memory data structure. The page list records the information of all pages, and the distribution area list records the distribution of these pages in the storage medium.

[0073] Next, according to the first hash value verification result, a set of regions with abnormal verification results is extracted based on the distribution area list. Through filtering operations, such as list derivation in Python or DataFrame filtering in Pandas, those blocks with abnormal verification results are extracted from the distribution area list. For example, the distribution area list is traversed, and the verification results of each area are checked, and all blocks with abnormal verification results are extracted to form an abnormal area set.

[0074] Finally, extract the pages that belong to the abnormal area set from the page list and add these pages to the pages to be verified. Specifically, use loops and conditional judgments for filtering. For example, traverse each page in the page list and check whether the area it belongs to is in the abnormal area set. If so, mark the page as a page to be verified.

[0075] Furthermore, in the system provided by the embodiment of the application, the step of constructing the standard hash value storage table includes:

[0076] When the solid state drive stores data, a storage structure tree of storage data blocks is received; the storage structure tree of storage data blocks is traversed, and the standard hash value storage table is constructed through the first hash function.

[0077] In the embodiment of the present application, when the solid state drive stores data, the system first receives a storage structure tree for storing data blocks. The storage structure tree is a data structure that records the distribution and organization of data blocks in the storage medium, and uses a tree structure to represent the hierarchical relationship between data blocks.

[0078] Next, the storage structure tree of the storage data blocks is traversed to access each data block. The traversal of the tree structure is implemented by a recursive or iterative method. For example, when implemented by an iterative method, a loop is used to traverse the tree structure layer by layer. Each data block in the storage structure tree is accessed one by one by traversing. When traversing each data block, a hash value of the data block is calculated by a first hash function. Each data block is input into the hash function, and a corresponding hash value is calculated and generated. Finally, the calculated hash value is used to construct a standard hash value storage table.

[0079] In the embodiments of the present application, in summary, the embodiments of the present application have at least the following technical effects:

[0080] When the error check cycle is met, the present application retrieves the block data to be checked of the solid state drive and inputs it into the first hash function to generate a first hash value to be checked; extracts the first standard hash value of the block data to be checked from the standard hash value storage table, wherein the first standard hash value is the result of processing the block data to be checked by the first hash function before the block data to be checked is stored in the solid state drive; when the first standard hash value and the first hash value to be checked are different, activates the block storage structure tree to be checked, wherein the block storage structure tree to be checked includes an area list, a page list, and a storage unit list; traverses the area list to perform hash value verification to obtain a first hash value verification result; sorts the page list according to the first hash value verification result to obtain the page to be checked; traverses the page to be checked to perform hash value verification to obtain a second hash value verification result; sorts the storage unit list according to the second hash value verification result to obtain the storage unit to be checked; traverses the storage unit to be checked to perform hash value verification to obtain a third hash value verification result; and constructs an abnormal detection data path identifier according to the third hash value verification result and sends it to the user end. The present invention solves the technical problem that the prior art can only perform verification at the block level, resulting in low accuracy and efficiency of data protection, and achieves the technical effect of improving the accuracy and efficiency of data protection by refining the data verification steps.

[0081] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. The processes depicted in the accompanying drawings do not necessarily require the specific order and continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0082] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

[0083] This specification and drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.

Claims

1. A solid state hard disk data protection system based on error checking, characterized in that: include: A hash value generation module to be checked, wherein the hash value generation module to be checked is used to retrieve the block data to be checked of the solid state drive and input it into a first hash function to generate a first hash value to be checked when an error checking cycle is met; A standard hash value extraction module, the standard hash value extraction module is used to extract a first standard hash value of the block data to be checked from the standard hash value storage table, wherein the first standard hash value is a result of processing the block data to be checked by the first hash function before being stored in the solid state drive; A storage structure tree activation module, wherein the storage structure tree activation module is used to activate the storage structure tree of the block to be checked when the first standard hash value and the first hash value to be checked are different, wherein the storage structure tree of the block to be checked includes a zone list, a page list, and a storage unit list; A first traversal module, the first traversal module is used to traverse the zone list to perform hash value verification and obtain a first hash value verification result; A first sorting module, the first sorting module is used to sort the page list according to the first hash value verification result to obtain the page to be verified; A second traversal module, the second traversal module is used to traverse the to-be-verified page to perform hash value verification and obtain a second hash value verification result; A second sorting module, the second sorting module is used to sort the storage unit list according to the second Hash value verification result to obtain the storage unit to be verified; A third traversal module, the third traversal module is used to traverse the storage unit to be verified to perform hash value verification and obtain a third hash value verification result; An identification module, the identification module is used to construct an abnormal detection data path identification according to the third hash value verification result, and send it to the user end; The step of traversing the zone list to perform hash value verification and obtaining a first hash value verification result includes: Extracting the first zone data to be verified according to the zone list, inputting the first hash function, and generating a second hash value to be verified; Extracting a second standard hash value of the first area data to be verified from the standard hash value storage table; When the second hash value to be verified is different from the second standard hash value, marking the first zone hash value verification result as abnormal; When the second hash value to be verified is the same as the second standard hash value, marking the first zone hash value verification result as normal; Adding the first zone hash value verification result identifier to the first hash value verification result; Sorting the page list according to the first hash value verification result to obtain pages to be verified includes: Obtaining a distribution area list of the page list; According to the first Hash value verification result, extracting the verification result as an abnormal area set based on the distribution area list; Extracting pages belonging to the abnormal area set from the page list and adding them into the pages to be checked; The standard hash value storage table construction step includes: When the solid state hard disk stores data, receiving a storage data block storage structure tree; The storage structure tree of the storage data block is traversed, and the standard hash value storage table is constructed through the first hash function.

2. The solid state hard disk data protection system based on error checking as claimed in claim 1, characterized in that: Also includes: When the error checking cycle is not satisfied, receiving the solid state hard disk status monitoring information of the preset collection time zone, wherein the solid state hard disk status monitoring information at least includes a temperature monitoring value, a humidity monitoring value, a monitoring value of the number of unexpected power failures, a monitoring value of the cumulative amount of writes, a monitoring value of a media wear indicator, a monitoring value of an ECC correction count, and a monitoring value of the number of bad blocks; The preset acquisition time zone is from the end of the last error checking cycle to the current time; Perform disk abnormality probability analysis based on the temperature monitoring value, the humidity monitoring value, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value to obtain an abnormality probability calibration value; When the abnormal probability calibration value is greater than or equal to the abnormal probability calibration threshold, error checking is enabled in advance.

3. The solid state hard disk data protection system based on error checking as claimed in claim 2, characterized in that: When the error checking period is not satisfied, receiving solid state hard disk status monitoring information includes: When the error checking cycle is not satisfied, receiving the temperature monitoring value timing information, the humidity monitoring value timing information, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value of the preset acquisition time zone; Load the reference temperature range and reference humidity range; Extracting a set of temperature monitoring record values ​​greater than an upper limit temperature of a reference temperature interval from the temperature monitoring value time series information, performing a mode evaluation on the set of temperature monitoring record values, and generating the temperature monitoring value; A set of humidity monitoring record values ​​greater than or equal to an upper limit value of a reference humidity interval is extracted from the humidity monitoring value time series information, and a mode evaluation is performed on the humidity monitoring record value set to generate the humidity monitoring value.

4. The solid state hard disk data protection system based on error checking as claimed in claim 2, characterized in that: Performing disk abnormality probability analysis based on the temperature monitoring value, the humidity monitoring value, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value to obtain an abnormality probability calibration value includes: Based on the solid state drive model, a disk anomaly probability analysis network is activated, wherein the disk anomaly probability analysis network construction step includes: Taking the solid state drive model as a constraint condition, taking temperature, humidity, number of unexpected power failures, cumulative write volume, media wear indicator, ECC correction count and number of bad blocks as a type of retrieval target to collect data, and obtaining a type of retrieval target data set, wherein any set of the type of retrieval target data includes a temperature retrieval value, a humidity retrieval value, a number of unexpected power failures retrieval value, a cumulative write volume retrieval value, a media wear indicator retrieval value, an ECC correction count retrieval value and a bad block number retrieval value; Taking the solid state drive model as a constraint condition, traversing the first type of search target data set, taking the disk abnormality state as the second type of search target to perform data statistics, and obtaining a disk abnormality probability identification value set; Based on the disk anomaly probability identification value set and the first type of search target data set, building the disk anomaly probability analysis network; According to the disk abnormality probability analysis network, the temperature monitoring value, the humidity monitoring value, the unexpected power failure number monitoring value, the cumulative write amount monitoring value, the media wear indicator monitoring value, the ECC correction count monitoring value, and the bad block number monitoring value are processed to generate the abnormality probability calibration value.

5. The solid state hard disk data protection system based on error checking as claimed in claim 4, characterized in that: Taking the solid state drive model as a constraint condition, traverse the first type of search target data set, take the disk abnormality status as the second type of search target to perform data statistics, and obtain a set of disk abnormality probability identification values, including: According to the first group of the first-class search target data of the first-class search target data set, data collection is performed several times with the disk abnormality status as the second-class search target to obtain several disk abnormality status search values, wherein the disk abnormality status search value is 0 or 1, 0 represents abnormality, and 1 represents normality; Performing statistics on the proportion of the number of 0 values ​​for the plurality of disk abnormal status search values, and setting the statistics as the first disk abnormality probability identification value; The first disk anomaly probability identification value is added to the disk anomaly probability identification value set.