Data calling method and device, storage medium and electronic device
By checking and repairing the operation matrix of the encoded data block on the data storage device, it ensures the success of the data call and solves the problem that the data stored on the data storage device is abnormal and cannot be called.
Patent Information
- Application Number
- CN202410949998.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-16
AI Technical Summary
On data storage devices, as the disk usage time and pressure increase, the disk damage rate increases, and the copy data is easily damaged at the same time, resulting in data loss and the inability to recall the stored data.
By receiving the data calling request, the security of the operation matrix of the stored encoded data block is verified. If it is consistent, the target data is extracted and the target data block is generated and sent to the data calling device. If it is inconsistent, the exception matrix is repaired to ensure that the data is available.
Even if the encoded data block stored on the data storage device is abnormal, the desired data can still be restored through the safe operation matrix and the abnormal encoded data block, which solves the problem of being unable to call the data stored on the data storage device when there is an abnormality. .
Smart Images

Figure CN118484152B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data storage, and more specifically, to a data calling method and device, a storage medium, and an electronic device. Background Art
[0002] When storing data on a data storage device, ensuring the security and reliability of the data is a crucial link. For example, distributed storage is mainly divided into replica storage pools and erasure storage pools, which ensure data security by storing multiple copies of data and encoding the data in blocks.
[0003] When writing data, distributed storage calculates a check block for every 4k of data. When reading, it calculates the check block again for the read data. By comparing the check blocks, it is determined whether the data is damaged. If the check value of the read data is different from the check value of the write data, it is confirmed that the data is damaged and can be repaired by reading this data from other replica disks.
[0004] In the related art, in order to ensure data security, storage applications will generate as many copies of data as possible. However, the copy data not only takes up a lot of space, but also increases the disk damage rate as the disk is used for a longer time and the pressure increases. It is easy for multiple disks to fail at the same time, which may cause the redundant copies to be damaged. In this case, data loss will occur and the stored data can no longer be called. Summary of the invention
[0005] The embodiments of the present application provide a method and device for calling data, a storage medium and an electronic device, so as to at least solve the problem in the related art that data cannot be called when an abnormality occurs in the data stored on the data storage device.
[0006] According to an embodiment of the present application, a data calling method is provided, comprising: a data system comprising a data calling device and a data storage device, the method being applied to the data storage device, the method comprising: receiving a data calling request initiated by the data calling device, wherein the data calling request is used to request to call target data from the data storage device; in response to the data calling request, verifying the security of a first operation matrix currently corresponding to a stored coded data block, wherein the coded data block is obtained by encoding a second operation matrix and an original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; in the case where it is verified that the security is used to indicate that the first operation matrix is consistent with the second operation matrix, extracting a target coded data block corresponding to the target data from the coded data block; generating a target data block using the first operation matrix and the target coded data block; and sending the target data block as the target data to the data calling device.
[0007] In an exemplary embodiment, the coded data block includes N coded data blocks, and corresponding N1 operation matrices are stored in the N coded data blocks, the first operation matrix includes the N1 operation matrix, the second operation matrix includes N2 operation matrices, N1 equals N2 equals N, and N is a positive integer, and the security of the first operation matrix currently corresponding to the stored coded data block is verified, including: verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block in the N stored coded data blocks by executing the following steps, where i is a positive integer less than or equal to N: selecting M coded data blocks from the coded data blocks other than the i-th coded data block in the N coded data blocks; extracting from the i-th coded data block an i1th operation matrix, and extracts M operation matrices from the M coded data blocks; based on the i1th operation matrix and the M operation matrices, verifies the security of the i1th operation matrix currently corresponding to the i-th coded data block, wherein the i-th coded data block is obtained by encoding the i2th operation matrix with the i-th original data block among the N original data blocks to be stored on the data storage device through the target encoding method, the security of the i1th operation matrix is used to indicate whether the i1th operation matrix is consistent with the i2th operation matrix, the original data blocks include the N original data blocks, the N2 operation matrices include the i2th operation matrix, and i1 is equal to i2 is equal to i.
[0008] In an exemplary embodiment, the selecting M coded data blocks from the coded data blocks other than the i-th coded data block in the N coded data blocks includes: randomly selecting the M coded data blocks from the coded data blocks other than the i-th coded data block in the N coded data blocks; or randomly selecting the M coded data blocks from Q coded data blocks in the N coded data blocks, wherein the Q coded data blocks are coded data blocks whose security is used to indicate that Q1 operation matrices are consistent with Q2 operation matrices in the coded data blocks other than the i-th coded data block in the N coded data blocks, the N1 operation matrices include the Q1 operation matrix, the N2 operation matrices include the Q2 operation matrix, the Q coded data blocks are obtained by encoding the Q2 operation matrix and Q original data blocks in the N original data blocks to be stored on the data storage device through the target encoding method, Q is a positive integer less than or equal to N, Q1 is equal to Q2, and Q1 is equal to Q.
[0009] In an exemplary embodiment, verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block based on the i1th operation matrix and the M operation matrices includes: calculating the i-th check value corresponding to the i1th operation matrix, and calculating the M check values corresponding to the M operation matrices; and verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block based on the i-th check value and the M check values.
[0010] In an exemplary embodiment, verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block based on the i-th check value and the M check values includes: comparing the i-th check value and the M check values to obtain a comparison result; when the comparison result is used to indicate that the i-th check value and the M check values are the same, verifying the security of the i1th operation matrix to indicate that the i1th operation matrix is consistent with the i2th operation matrix.
[0011] In an exemplary embodiment, when the comparison result is used to indicate that the i-th check value is different from at least one of the M check values, the method further includes: while randomly selecting the M coded data blocks from the N coded data blocks except the i-th coded data block, selecting R coded data blocks from the N coded data blocks except the M coded data blocks and the i-th coded data block, wherein R is a positive integer less than or equal to NM; extracting R operation matrices from the R coded data blocks; and verifying the security of the i1-th operation matrix currently corresponding to the i-th coded data block based on the i1-th operation matrix and the R operation matrices.
[0012] In an exemplary embodiment, when the comparison result is used to indicate that the i-th check value is different from at least one of the M check values, the method further includes: repairing the j-th operation matrix by performing the following steps, wherein the j-th operation matrix is the operation matrix corresponding to the j-th check value in the M operation matrices, the j-th check value is different from the i-th check value, and / or the j-th check value is different from the M-1 check values, and the M-1 check values are the check values of the M check values other than the j-th check value: the j-th check value corresponding to the j-th check value in the M coded data blocks A target label is set for each coded data block, wherein the target label is used to indicate that an abnormality occurs in the j-th operation matrix stored in the j-th coded data block; when the security of the i1-th operation matrix is used to indicate that the i1-th operation matrix is consistent with the i2-th operation matrix, the j-th coded data block corresponding to the target label is searched from the N coded data blocks, and the j-th operation matrix is repaired using the i1-th operation matrix; when the j-th operation matrix is repaired using the i1-th operation matrix, the target label set for the j-th coded data block is deleted.
[0013] In an exemplary embodiment, the repairing the j-th operation matrix using the i1-th operation matrix includes: receiving a matrix repair request initiated by the data calling device, wherein the matrix repair request is used to request repair of the j-th operation matrix; and responding to the matrix repair request, replacing the j-th operation matrix with the i1-th operation matrix.
[0014] In an exemplary embodiment, replacing the j-th operation matrix with the i1-th operation matrix includes: performing a copy operation on the i1-th operation matrix to obtain an i1-th backup operation matrix; deleting the j-th operation matrix stored in the j-th coding data block, and storing the i1-th backup operation matrix in the j-th coding data block.
[0015] In an exemplary embodiment, the data storage device includes a target storage pool, in which the original data block, the coded data block and the backup data block are stored, the backup data block being obtained by encoding the original data block in an original encoding manner, and the verification of the security of the first operation matrix currently corresponding to the stored coded data block includes: in response to the data call request, extracting the target data block corresponding to the target data from the original data block; verifying whether the target data block is abnormal; and in the case where it is detected that the target data block is abnormal and the coded data block is abnormal, and the target data block cannot be restored through the original data block and the backup data block, verifying the security of the first operation matrix currently corresponding to the coded data block.
[0016] In an exemplary embodiment, the checking whether the target data block has an abnormality includes: receiving a first check request initiated by the data calling device, wherein the first check request is used to request a check whether the target data block has an abnormality; responding to the first check request, checking the consistency of the target data block, wherein the consistency is used to indicate whether the target data block is consistent with a candidate data block, and the target data block is a data block obtained by storing the candidate data block to be stored on the data storage device on the data storage device.
[0017] In an exemplary embodiment, verifying the security of the first operation matrix currently corresponding to the encoded data block includes: receiving a second verification request initiated by the data calling device, wherein the second verification request is used to request verification of the security of the first operation matrix currently corresponding to the encoded data block; and responding to the second verification request to verify the security of the first operation matrix currently corresponding to the encoded data block.
[0018] In an exemplary embodiment, after checking whether the target data block is abnormal, the method further comprises: if it is checked that the target data block is not abnormal, sending the target data block as the target data to the data calling device.
[0019] In an exemplary embodiment, extracting the target coded data block corresponding to the target data from the coded data block includes: determining a candidate coded data block storing the target data from the coded data block; and extracting the target coded data block for storing the target data from the candidate coded data blocks.
[0020] In an exemplary embodiment, the coded data blocks include N coded data blocks, and determining the candidate coded data blocks storing the target data from the coded data blocks includes: extracting the target data identifier of the target data carried in the data call request; and obtaining the candidate coded data block corresponding to the target data identifier from data identifiers and data blocks having a corresponding relationship.
[0021] In an exemplary embodiment, the use of the first operation matrix and the target coded data block to generate a target data block includes: decoding the target coded data block by a target decoding method corresponding to the target coding method to obtain a target decoded data block, wherein the target decoding method is a decoding method that relies on the operation result between the operation matrix and the data for decoding; and operating the first operation matrix and the target decoded data block to obtain the target data block.
[0022] In an exemplary embodiment, before receiving the data call request initiated by the data call device, the method further includes: receiving a data storage request initiated by the data call device, wherein the data storage request is used to request to store reference data on the data storage device; in response to the data storage request, verifying the security of a first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding a second operation matrix and an original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; in the case where it is verified that the security is used to indicate that the first operation matrix is consistent with the second operation matrix, using the first operation matrix and the reference data to generate a reference coded data block; storing the reference coded data block on the data storage device to obtain a storage result; and sending the storage result to the data call device.
[0023] In an exemplary embodiment, the use of the first operation matrix and the reference data to generate a reference coding data block includes: operating the first operation matrix and the reference data to obtain a reference operation data block, encoding the reference operation data block through the target encoding method to obtain the reference coding data block; after storing the reference coding data block on the data storage device, the method also includes: storing the first operation matrix in the reference coding data block.
[0024] According to another embodiment of the present application, a data calling device is provided, comprising: a data system comprising a data calling device and a data storage device, the device being applied to the data storage device, the device comprising: a first receiving module, for receiving a data calling request initiated by the data calling device, wherein the data calling request is used to request to call target data from the data storage device; a first checking module, for responding to the data calling request, and checking the security of a first operation matrix currently corresponding to a stored coded data block, wherein the coded data block is obtained by encoding a second operation matrix and an original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the result of an operation between an operation matrix and data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; a first extraction module, for extracting a target coded data block corresponding to the target data from the coded data block when it is verified that the security is used to indicate that the first operation matrix is consistent with the second operation matrix; a first generation module, for generating a target data block using the first operation matrix and the target coded data block; and a first sending module, for sending the target data block as the target data to the data calling device.
[0025] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0026] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0027] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0028] Through the present application, in the case of wanting to call data from a data storage device, if the first operation matrix currently corresponding to the coded data block stored on the data storage device is consistent with the second operation matrix used to generate the coded data block, it can be indicated that the first operation matrix is safe. In this case, the data desired to be called can be generated by using, but not limited to, the first operation matrix and the coded data block. It can be understood that even if an abnormality occurs in the coded data block stored on the data storage device, the data desired to be called can be restored through the safe operation matrix and the coded data block with the abnormality. In this way, the data desired to be called can be successfully called when an abnormality occurs in the data stored on the data storage device. Therefore, the problem of being unable to call data when an abnormality occurs in the data stored on the data storage device can be solved, and the effect of being able to successfully call data when an abnormality occurs in the data stored on the data storage device can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a hardware structure block diagram of a server device of a data calling method according to an embodiment of the present application;
[0030] Figure 2 This is an application scenario diagram of the data calling method according to an embodiment of the present application;
[0031] Figure 3 is a flowchart of a method for calling data according to an embodiment of the present application;
[0032] Figure 4 is a schematic diagram of an optional encoding and decoding according to an embodiment of the present application;
[0033] Figure 5 is an optional Turbo coding structure diagram according to an embodiment of the present application;
[0034] Figure 6 is a schematic diagram of an optional encoder according to an embodiment of the present application;
[0035] Figure 7 is a schematic diagram of an optional method of storing and reading data according to an embodiment of the present application;
[0036] Figure 8 is a schematic diagram of an optional method of checking an interleaving matrix according to an embodiment of the present application;
[0037] Fig. 9 This is an example of an optional method for recovering abnormal data according to an embodiment of the present application. Figure 1 ;
[0038] Fig.10This is an example of an optional method for recovering abnormal data according to an embodiment of the present application. Figure 2 ;
[0039] Fig.11 is a schematic diagram of generating a target data block by a target decoding method according to an optional embodiment of the present application;
[0040] Fig.12 It is a structural block diagram of a data calling device according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0043] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a data calling method in an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0044] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for calling data in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0045] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0046] First, the terms involved in the embodiments of the present application are explained as follows:
[0047] Data verification: A method of verifying data.
[0048] Turbo code: Turbo code is a parallel concatenated convolutional code with error correction capability.
[0049] Interleaving: permuting and rotating the original data.
[0050] Deinterleaving: Restoring interleaved data to its original state.
[0051] Interleaving matrix: The sparse matrix on which Turbo coding relies.
[0052] Turbo storage pool: A storage pool that stores data using Turbo encoding and decoding technology.
[0053] Three copies: The storage pool stores three copies of data to ensure data security.
[0054] Fault domain: The domain in which the storage pool ensures that data will not be lost.
[0055] In this embodiment, a data calling method is provided. The data system includes a data calling device and a data storage device. The data storage device may store, but is not limited to, a coded data block. The coded data block may store, but is not limited to, a first operation matrix. The above method is applied to the data storage device. Figure 2 is an application scenario diagram of the method for calling data according to an embodiment of the present application, such as Figure 2 As shown, the target data can be called through, but is not limited to, the following steps:
[0056] Step S202, receiving a data call request initiated by a data call device, wherein the data call request is used to request to call target data from a data storage device;
[0057] Step S204, in response to the data call request, verifying the security of the first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix;
[0058] Step S206, extracting a target coded data block corresponding to the target data from the coded data block when the security is verified to indicate that the first operation matrix is consistent with the second operation matrix;
[0059] Step S208, generating a target data block using the first operation matrix and the target coding data block;
[0060] Step S210: sending the target data block as target data to the data calling device.
[0061] In this embodiment, a data calling method is provided. The data system includes a data calling device and a data storage device. The method is applied to the data storage device. Figure 3 is a flow chart of a method for calling data according to an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:
[0062] Step S302, receiving a data calling request initiated by the data calling device, wherein the data calling request is used to request to call target data from the data storage device;
[0063] Step S304, in response to the data call request, verifying the security of the first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix;
[0064] Step S306, extracting a target coded data block corresponding to the target data from the coded data block when it is verified that the security indicates that the first operation matrix is consistent with the second operation matrix;
[0065] Step S308, generating a target data block using the first operation matrix and the target coded data block;
[0066] Step S310: sending the target data block as the target data to the data calling device.
[0067] Through the above steps, in the case of wanting to call data from the data storage device, if the first operation matrix currently corresponding to the coded data block stored on the data storage device is consistent with the second operation matrix used to generate the coded data block, it can be indicated that the first operation matrix is safe. In this case, the data desired to be called can be generated by using but not limited to the first operation matrix and the coded data block. It can be understood that even if an abnormality occurs in the coded data block stored on the data storage device, the data desired to be called can be restored through the safe operation matrix and the coded data block with the abnormality. In this way, the data desired to be called can be successfully called when an abnormality occurs in the data stored on the data storage device. Therefore, the problem of being unable to call data when an abnormality occurs in the data stored on the data storage device can be solved, and the effect of successfully calling data when an abnormality occurs in the data stored on the data storage device can be achieved.
[0068] In the technical solution provided in the above step S302, the data storage device may include but is not limited to distributed storage devices (for example, replica storage pools and erasure storage pools, etc.), or other storage devices. As an optional example, the data storage device may include but is not limited to hard disks or RAID (Redundant Array of Independent Disks) for storing data, etc.
[0069] Optionally, in this embodiment, one or more data blocks are stored in the data storage device. For example, a data block in the data storage device may include, but is not limited to, data of a preset amount of data, for example, 4K. The data storage device may receive, but is not limited to, a data call request initiated by a data call device, wherein the data call request is used to request to call target data from data stored on the data storage device.
[0070] In an exemplary embodiment, before receiving the data call request initiated by the data call device, the method further includes: receiving a data storage request initiated by the data call device, wherein the data storage request is used to request to store reference data on the data storage device; in response to the data storage request, verifying the security of a first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding a second operation matrix and an original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; in the case where it is verified that the security is used to indicate that the first operation matrix is consistent with the second operation matrix, using the first operation matrix and the reference data to generate a reference coded data block; storing the reference coded data block on the data storage device to obtain a storage result; and sending the storage result to the data call device.
[0071] Optionally, in this embodiment, before storing data on the data storage device, the security of the first operation matrix currently corresponding to the stored coded data block can be verified but is not limited to being verified. It can be understood that when the security is verified to indicate that the first operation matrix is consistent with the second operation matrix, it can be indicated that the coded data blocks stored on the data storage device all correspond to the same first operation matrix.
[0072] Optionally, in this embodiment, when it is verified that the security is used to indicate that the first operation matrix is inconsistent with the second operation matrix, it is possible but not limited to suspending the response to the data storage request, and repairing the first operation matrix currently corresponding to the stored coded data block, and continuing to respond to the data storage request when the first operation matrix currently corresponding to the stored coded data block is completed.
[0073] Optionally, in this embodiment, the target encoding method may include, but is not limited to, an encoding method that relies on the operation result between the operation matrix and the data for encoding. It can be understood that before encoding the data by the target encoding method, the operation matrix and the data to be encoded need to be operated first, and then the result of the operation can be encoded by the target encoding method. The target encoding method cannot directly encode the original data block. As an optional example, the target encoding method may include, but is not limited to, Turbo encoding. In this case, the first operation matrix may include, but is not limited to, an interleaving matrix.
[0074] In an exemplary embodiment, the first operation matrix and the reference data may be used to generate a reference coding data block in the following manner, but is not limited to: operating the first operation matrix and the reference data to obtain a reference operation data block, encoding the reference operation data block using the target encoding method to obtain the reference coding data block; after storing the reference coding data block on the data storage device, the method further includes: storing the first operation matrix in the reference coding data block.
[0075] In order to better understand the process of encoding data in the embodiments of the present application, the encoding process of data in the embodiments of the present application can be explained and illustrated by taking, but not limited to, the target encoding method including the Turbo encoding algorithm and the first operation matrix including the interleaving matrix as an example.
[0076] The process of Turbo coding mainly includes interleaving and encoding, and the process of Turbo decoding mainly includes decoding and iteration. Among them, interleaving is used to permute and rotate the original data, and deinterleaving is used to restore the interleaved data. Figure 4 is a schematic diagram of an optional encoding and decoding according to an embodiment of the present application, such as Figure 4 As shown, first, the original data is interleaved for permutation and rotation, and the interleaved data is passed through a component encoder to obtain encoded data; then the encoded data is iteratively decoded by a component decoder for multiple times, and finally deinterleaved to obtain the original data.
[0077] Among them, interleaving plays an important role in the encoding and decoding process. The role of interleaving is to reduce the correlation between check bits, thereby improving the decoding performance in the decoding process. A good interleaving matrix can effectively improve the performance of encoding and decoding, and has a great impact on the performance of Turbo codes. At present, there are many interleaving matrices with good performance.
[0078] Figure 5 is an optional Turbo coding structure diagram according to an embodiment of the present application, such as Figure 5As shown, it can include, but is not limited to, an interleaver, two component encoders (for example, component encoder RSC1 and component encoder RSC2), a puncturing matrix, and a multiplexing module. The interleaver is used to disrupt the order of the original information sequence and output a new information sequence according to the rules of the interleaver; the component encoder encodes the input information codewords; the puncturing matrix is determined by the code rate of the Turbo code, and the coded check codewords are selectively deleted; the multiplexing module recombines the input original information codewords with the punctured check codewords, and then outputs them as required.
[0079] is the input sequence (or information sequence), is the check sequence output by component encoder RSC1, for The sequence after the interleaver, is the check sequence output by the component encoder RSC2. When the encoding rate is 1 / 3, the encoding output Depend on , and Composition. and Selectively delete some check bits through the redundancy matrix, and then combine the output sequence , which can improve the bit rate. The 1 / 3 bit rate Turbo coding structure uses (2,1,4)RSC (Recursive Systematic Convolutional Code) as the component encoder, and the generator matrix is . If the puncturing matrix is used: , that is, delete Check digits in even positions and After the check bits at the odd positions, a Turbo code with a code rate of 1 / 2 is obtained.
[0080] Figure 6 is a schematic diagram of an optional encoder according to an embodiment of the present application, combined with Figure 5 , Figure 6 As shown, the component encoder RSC1 may include but is not limited to encoding modules D1 to D4, and the component encoder RSC2 may include but is not limited to encoding modules D1 to D4. Assume ,but , assuming ,but The Turbo coding sequence with a code rate of 1 / 3 is ; According to the puncturing matrix, the Turbo coding sequence with a code rate of 1 / 2 is .
[0081] In the technical solution provided in the above step S304, different encoding methods may have but are not limited to corresponding operation matrices. It can be understood that the encoded data block may include but is not limited to including encoding obtained by operating the operation matrix corresponding to the target encoding method and the original data block to be stored on the data storage device through the target encoding method.
[0082] Optionally, in this embodiment, the data storage device may store, but is not limited to, one or more coded data blocks, and each of the one or more coded data blocks stores a first operation matrix.
[0083] Optionally, in this embodiment, the second operation matrix may include, but is not limited to, an operation matrix that is actually operated on the original data block before the original data block is encoded by the target encoding method, and the first operation matrix and the second operation matrix may be consistent (for example, the same) or inconsistent (for example, different). As an optional example, security is used to indicate whether the first operation matrix and the second operation matrix are the same.
[0084] In an exemplary embodiment, the coded data block includes N coded data blocks, and corresponding N1 operation matrices are stored in the N coded data blocks. The first operation matrix includes the N1 operation matrix, and the second operation matrix includes N2 operation matrices, N1 equals N2 equals N, and N is a positive integer. The security of the i1th operation matrix currently corresponding to the i-th coded data block in the stored N coded data blocks can be verified by, but not limited to, performing the following steps, where i is a positive integer less than or equal to N: selecting M coded data blocks from the coded data blocks other than the i-th coded data block in the N coded data blocks; extracting the i1th operation matrix from the i-th coded data block, and extracting the i1th operation matrix from the M extracting M operation matrices from a coded data block; verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block according to the i1th operation matrix and the M operation matrices, wherein the i-th coded data block is obtained by encoding the i2th operation matrix with the i-th original data block among the N original data blocks to be stored on the data storage device through the target encoding method, the security of the i1th operation matrix is used to indicate whether the i1th operation matrix is consistent with the i2th operation matrix, the original data blocks include the N original data blocks, the N2 operation matrices include the i2th operation matrix, and i1 is equal to i2 and equal to i.
[0085] Optionally, in this embodiment, the i1th operation matrix is stored in the i1th coded data block, and the corresponding M operation matrices are stored in the M coded data blocks. In this case, the security of the i1th operation matrix can be verified based on, but not limited to, the i1th operation matrix and the M operation matrices. For example, it is verified whether the i1th operation matrix is the same as each of the M operation matrices.
[0086] In an exemplary embodiment, M coded data blocks may be selected from the coded data blocks other than the i-th coded data block in the N coded data blocks in the following manner, but not limited to: randomly selecting the M coded data blocks from the coded data blocks other than the i-th coded data block in the N coded data blocks; or randomly selecting the M coded data blocks from Q coded data blocks in the N coded data blocks, wherein the Q coded data blocks are coded data blocks whose security is used to indicate that Q1 operation matrices are consistent with Q2 operation matrices in the coded data blocks other than the i-th coded data block in the N coded data blocks, the N1 operation matrices include the Q1 operation matrix, the N2 operation matrices include the Q2 operation matrix, the Q coded data blocks are obtained by encoding the Q2 operation matrix and Q original data blocks in the N original data blocks to be stored on the data storage device through the target encoding method, Q is a positive integer less than or equal to N, Q1 is equal to Q2, and Q1 is equal to Q.
[0087] Optionally, in this embodiment, Q1 operation matrices corresponding to the Q coded data blocks have been verified to be consistent with Q2 operation matrices. It can be understood that the Q1 operation matrices corresponding to the Q coded data blocks are reliable and undamaged. In this case, the number of operation matrices required to be screened to verify the i1th operation matrix is reduced.
[0088] In an exemplary embodiment, the security of the i1th operation matrix currently corresponding to the i-th coded data block can be verified based on the i1th operation matrix and the M operation matrices in the following manner, but is not limited to: calculating the i-th check value corresponding to the i1th operation matrix, and calculating the M check values corresponding to the M operation matrices; and verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block based on the i-th check value and the M check values.
[0089] Optionally, in this embodiment, the i-th check value corresponding to the i1-th operation matrix and the M check values corresponding to the M operation matrices can be calculated in the following manner but is not limited to: using the i1-th operation matrix to generate the i-th check value through a target check algorithm, and using M operation matrices to generate M check values through a target check algorithm.
[0090] As an optional example, the target verification algorithm may include but is not limited to the MD5 (Message Digest Algorithm) message digest algorithm, and the verification value may include but is not limited to the MD5 value. The present application does not limit the target verification algorithm used.
[0091] In an exemplary embodiment, the security of the i1th operation matrix currently corresponding to the i-th coded data block can be verified according to the i-th check value and the M check values in the following manner, but is not limited to: comparing the i-th check value and the M check values to obtain a comparison result; when the comparison result is used to indicate that the i-th check value and the M check values are the same, the security of the i1th operation matrix is verified to indicate that the i1th operation matrix is consistent with the i2th operation matrix.
[0092] Optionally, in this embodiment, when the comparison result is used to indicate that the i-th check value and at least one of the M check values are different, the security check of the i1-th operation matrix is used to indicate that the i1-th operation matrix is inconsistent with the i2-th operation matrix.
[0093] In an exemplary embodiment, when the comparison result is used to indicate that the i-th check value is different from at least one of the M check values, the method further includes: while randomly selecting the M coded data blocks from the N coded data blocks except the i-th coded data block, selecting R coded data blocks from the N coded data blocks except the M coded data blocks and the i-th coded data block, wherein R is a positive integer less than or equal to NM; extracting R operation matrices from the R coded data blocks; and verifying the security of the i1-th operation matrix currently corresponding to the i-th coded data block based on the i1-th operation matrix and the R operation matrices.
[0094] Optionally, in this embodiment, R coded data blocks may be selected from the coded data blocks other than the M coded data blocks and the i-th coded data block in the N coded data blocks, but not limited to, in the following manner: R coded data blocks are randomly selected from the coded data blocks other than the M coded data blocks and the i-th coded data block in the N coded data blocks. As an optional example, the number of R coded data blocks may be, but not limited to, the same as or different from the number of M coded data blocks, and this application does not impose any limitation on this.
[0095] Optionally, in this embodiment, the M coded data blocks are randomly selected from Q coded data blocks among the N coded data blocks, and when the comparison result is used to indicate that the i-th check value and at least one of the M check values are different, the i1-th operation matrix is replaced by any one of the Q1 operation matrices.
[0096] In an exemplary embodiment, the j-th operation matrix may be repaired by, but not limited to, executing the following steps, wherein the j-th operation matrix is the operation matrix corresponding to the j-th check value in the M operation matrices, the j-th check value is different from the i-th check value, and / or the j-th check value is different from the M-1 check value, and the M-1 check value is the check value of the M check values other than the j-th check value: setting a target label for the j-th coded data block corresponding to the j-th check value in the M coded data blocks, wherein the target label Used to indicate that an abnormality occurs in the j-th operation matrix stored in the j-th coded data block; when the security of the i1-th operation matrix is used to indicate that the i1-th operation matrix is consistent with the i2-th operation matrix, search the j-th coded data block corresponding to the target label from the N coded data blocks, and use the i1-th operation matrix to repair the j-th operation matrix; when the j-th operation matrix is repaired using the i1-th operation matrix, delete the target label set for the j-th coded data block.
[0097] Optionally, in this embodiment, when the jth operation matrix may be abnormal, it can be indicated that the jth operation matrix may be damaged. In this case, when the security of the i1th operation matrix is used to indicate that the i1th operation matrix is consistent with the i2th operation matrix, the i1th operation matrix is used to compare the jth operation matrix. In this way, the consistency of the operation matrices stored in each encoded data block in the data storage device is ensured.
[0098] In an exemplary embodiment, the jth operation matrix can be repaired using the i1th operation matrix in the following manner, but is not limited to: receiving a matrix repair request initiated by the data calling device, wherein the matrix repair request is used to request repair of the jth operation matrix; and in response to the matrix repair request, replacing the jth operation matrix with the i1th operation matrix.
[0099] Optionally, in this embodiment, when T operation matrices stored in the data storage device are abnormal, a matrix repair request initiated by the data calling device is received, wherein the matrix repair request is used to request the repair of the T operation matrices; in response to the matrix repair request, each operation matrix in the T operation matrices is replaced with the i1th operation matrix. In this way, batch repair of abnormal operation matrices stored in the data storage device is achieved, and the efficiency of repairing abnormal operation matrices is improved.
[0100] In an exemplary embodiment, the j-th operation matrix can be replaced with the i1-th operation matrix in the following manner, but is not limited to: performing a copy operation on the i1-th operation matrix to obtain an i1-th backup operation matrix; deleting the j-th operation matrix stored in the j-th coding data block, and storing the i1-th backup operation matrix in the j-th coding data block.
[0101] Optionally, in this embodiment, each operation matrix in the T operation matrices can be replaced with the i1th operation matrix in the following manner but is not limited to: performing a copy operation on the i1th operation matrix to obtain T backup operation matrices; deleting the T operation matrices stored in the T encoded data blocks, and storing the T backup operation matrices in the T encoded data blocks respectively.
[0102] In order to better understand the process of repairing an abnormal operation matrix in the embodiment of the present application, the following is combined with optional embodiments, which can be but not limited to taking the target encoding method including the Turbo encoding algorithm as an example, and the first operation matrix including the interleaving matrix as an example, to explain and illustrate the process of repairing an abnormal operation matrix in the embodiment of the present application, which can be but not limited to being applicable to the embodiment of the present application.
[0103] Although the Turbo coding algorithm has a certain error correction capability, redundant data is still needed for recovery when a bad disk needs to be replaced in the system. Therefore, one copy of data is not enough, and at least two copies of data are needed to ensure data redundancy. In this regard, a Turbo storage pool is proposed in the embodiment of the present application, and a storage pool that uses the Turbo coding algorithm to store data is called a Turbo storage pool. The Turbo storage pool (equivalent to the target storage pool) performs Turbo encoding on the original data based on the copy storage pool or the erasure storage pool, which includes two processes: encoding and decoding: after the original data is calculated to obtain the check block, the original data is interleaved through the interleaving matrix and then Turbo encoded, and the encoded data is stored on the disk, which is called the encoding process; during decoding, the encoded data passes through the component decoder and is deinterleaved through the interleaving matrix, and the method of restoring the original data is called the decoding process. The Turbo storage pool has the same redundancy as the ordinary storage pool, but when the copy storage pool or the erasure storage pool exceeds the fault domain, the Turbo storage pool can still recover the data through the decoding algorithm. Compared with the ordinary storage pool, the Turbo storage pool has higher fault tolerance and higher security.
[0104] It is understandable that the encoding process of Turbo code needs to rely on the interleaving matrix, and the decoding process uses the same interleaving matrix as the encoding process for deinterleaving. If the interleaving matrix is damaged during long-term storage, the original data cannot be restored, so it is particularly important to ensure the security of the interleaving matrix. In the embodiment of the present application, it is proposed to divide a small partition on each disk under the Turbo storage pool to store the interleaving matrix. The interleaving matrices of each disk can be uniformly checked, and multiple copies of data can effectively ensure the security of the interleaving matrix. Therefore, in order to ensure the correctness of the interleaving matrix, the interleaving matrices on all disks need to be uniformly checked before each encoding and decoding, and the encoding and decoding can continue only after the interleaving matrix is correct. The interleaving matrix is backed up multiple times, which effectively ensures the security of the interleaving matrix.
[0105] Figure 7 is a schematic diagram of an optional storage data and reading data according to an embodiment of the present application, such as Figure 7 As shown, when storing data, the system (equivalent to a data storage device) first calculates a check block for each 4k original data, and then uniformly checks the interleaving matrix. After the check passes, the 4k original data block is permuted and rotated according to the interleaving matrix, and then Turbo encoding is performed, and the encoded data is stored on the disk.
[0106] When reading data, the system first performs a unified check of the interleaving matrix. After the check passes, Turbo decoding (equivalent to the target decoding method) is performed, and then the original data is obtained by deinterleaving. The data block is checked again with the obtained original data and the check block. After the verification passes, the reading is successful.
[0107] Since the encoding and decoding algorithms all rely on the interleaving matrix, the interleaving matrix on each disk needs to be uniformly checked before encoding and decoding to ensure that the interleaving matrix is not damaged. Figure 8 is a schematic diagram of an optional method of checking an interleaving matrix according to an embodiment of the present application, such as Figure 8 As shown, the interleaving matrix can be verified by, but is not limited to, the following steps: before encoding and decoding, each disk randomly reads the interleaving matrices of the other two disks in the Turbo storage pool to calculate the md5 value for comparison. If the verification passes, the encoding and decoding module can continue to be called. If it fails, the three disks are marked for subsequent error correction, and then two disks are randomly selected again for verification until it passes. By correcting the interleaving matrix of the marked disk, the correctness of the interleaving matrix on all disks is guaranteed. The interleaving matrix of the corrected disk can be normally encoded and decoded by the turbo encoding module and turbo decoding module. This method can effectively ensure the security of the interleaving matrix.
[0108] Through the embodiments of the present application, as long as the interleaving matrix is not damaged, the normal operation of Turbo coding can be ensured. The interleaving matrix takes up less space and is convenient to store and read, and does not cause pressure on the system. Therefore, when the data is slightly damaged or the disk has bad sectors, the storage pool based on Turbo code data storage can recover the data of the bad sectors by decoding, thereby ensuring the security of the data.
[0109] In an exemplary embodiment, the data storage device includes a target storage pool, in which the original data blocks, the coded data blocks and the backup data blocks are stored, wherein the backup data blocks are obtained by encoding the original data blocks by the original coding method, and the security of the first operation matrix currently corresponding to the stored coded data blocks can be verified in the following manner, but is not limited to: in response to the data call request, extracting the target data block corresponding to the target data from the original data block; verifying whether the target data block is abnormal; and in the case where it is detected that the target data block is abnormal and the coded data block is abnormal, and the target data block cannot be restored by the original data block and the backup data block, verifying the security of the first operation matrix currently corresponding to the coded data block.
[0110] Optionally, in this embodiment, when it is detected that the target data block is abnormal and the encoded data block is abnormal, and the target data block can be restored through the original data block and the backup data block, the target data block is restored through the original data block and the backup data block.
[0111] In an exemplary embodiment, the target data block can be checked for abnormality in the following manner, but is not limited to: receiving a first check request initiated by the data calling device, wherein the first check request is used to request a check for abnormality in the target data block; and responding to the first check request to check the consistency of the target data block, wherein the consistency is used to indicate whether the target data block is consistent with a candidate data block, the target data block being a data block obtained by storing the candidate data block to be stored on the data storage device on the data storage device.
[0112] Optionally, in this embodiment, the consistency of the target data block can be verified in the following manner but is not limited to: calculating the target hash value corresponding to the target data block through a target hash algorithm, and detecting whether the target hash value is consistent with a reference hash value, wherein the reference hash value is a hash value obtained by calculating the candidate data block through the target hash algorithm, and when it is detected that the target hash value is consistent with the reference hash value, the consistency of the target data block is verified to be consistent with the candidate data block.
[0113] In an exemplary embodiment, the security of the first operation matrix currently corresponding to the encoded data block can be verified in the following manner but is not limited to: receiving a second verification request initiated by the data calling device, wherein the second verification request is used to request verification of the security of the first operation matrix currently corresponding to the encoded data block; and responding to the second verification request to verify the security of the first operation matrix currently corresponding to the encoded data block.
[0114] Optionally, in this embodiment, the data storage device may, but is not limited to, receive a second verification request generated by a data calling device, and the data storage device may, but is not limited to, respond to the second verification request to verify the security of the first operation matrix, and the first operation matrix may, but is not limited to, include one or more operation matrices, thereby realizing batch verification of the security of multiple operation matrices.
[0115] In an exemplary embodiment, after checking whether the target data block is abnormal, the method further includes: if it is checked that the target data block is not abnormal, sending the target data block as the target data to the data calling device.
[0116] Optionally, in this embodiment, when it is detected that there is no abnormality in the target data block, it can be indicated that the target data block is not damaged. In this case, it is possible but not limited to directly returning the target data block to the data calling device.
[0117] In order to better understand the process of repairing abnormal data blocks in the embodiment of the present application, the process of repairing abnormal data blocks in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.
[0118] In related technologies, the erasure storage pool divides a piece of data into K data blocks (equivalent to the original data blocks), encodes the K data blocks to obtain M chunks (equivalent to the backup data blocks), where K is the number of data blocks and M is the number of encoding blocks, and stores K+M copies of data in different devices or nodes. When the number of damaged data is less than or equal to M, the original data can be restored through any k data blocks, but when the number of damaged data is greater than M, the original data cannot be restored beyond the fault domain, resulting in data loss.
[0119] It should be noted that the data calling method in the embodiment of the present application is also applicable to the application scenario of the replica storage pool. In the replica storage pool, data security is ensured by backing up data on different devices or nodes. When a copy of data is damaged, the replica data will be read to repair the damaged data, but when the replica is also damaged, the storage pool exceeds the fault domain and the replica cannot be repaired, resulting in data loss.
[0120] It is understandable that in the related art, the repair of damaged data depends on the backup data stored in the storage pool. If the backup data is damaged, the damaged data cannot be repaired. The Turbo storage pool in the embodiment of the present application, based on the replica or erasure storage pool, performs Turbo encoding on the data to be stored on the disk, stores the encoded data on the disk, and restores the data before encoding after Turbo decoding. When data is damaged in the Turbo storage pool, there is no need to read the replica data like in the ordinary storage pool, and Turbo decoding can repair the damaged data by itself.
[0121] Fig. 9 This is an example of an optional method for recovering abnormal data according to an embodiment of the present application. Figure 1 ,like Fig. 9 As shown, compared with the replica storage pool in the related art, the Turbo storage pool in the embodiment of the present application stores multiple copies of Turbo encoded data (equivalent to encoded data blocks, for example, two copies of Turbo encoded data are stored). When a read operation is performed on the Turbo encoded data, if it is found that the Turbo encoded data is damaged, for example, when the replica storage pool exceeds the fault domain, the Turbo decoding algorithm (equivalent to the target decoding method) can repair the damaged data. As long as one of the damaged data is successfully repaired, the original data can be restored to avoid the risk of data loss.
[0122] Fig.10This is an example of an optional method for recovering abnormal data according to an embodiment of the present application. Figure 2 ,like Fig.10 As shown, compared with the erasure storage pool in the related art, the k+m Turbo erasure storage pool (equivalent to the target storage pool) in the embodiment of the present application stores k copies of data and m copies of verification data, the k copies of data may include but are not limited to k copies of Turbo encoded data, and the m copies of verification data may include but are not limited to m copies of Turbo encoded data. When a read operation is performed on the k copies of Turbo encoded data, it is found that the k copies of Turbo encoded data are damaged, and when the damaged m+1 copies of data are beyond the fault domain, the Turbo decoding algorithm can decode and repair the damaged m+1 copies of data. As long as any one of the m+1 copies of data is repaired, the original data can be restored through the k copies of data to avoid the risk of data loss.
[0123] Therefore, the Turbo storage pool can still recover the original data through the Turbo decoding algorithm (equivalent to the target decoding method) after the ordinary storage pool exceeds the fault domain, and has higher security. The data calling method in the embodiment of the present application does not affect the various functions of the replica and erasure storage pool itself, and is compatible with both storage pools. By protecting data through Turbo encoding and decoding, the two copies of the Turbo storage pool can achieve the security of three copies or even higher of the ordinary storage pool, reducing the number of data copies and saving space. Compared with the ordinary storage method in the related art, when the damaged data exceeds the fault domain, the Turbo storage pool can still decode and recover the data, will not cause data loss, and has stronger disaster recovery capabilities. The storage and verification method of the interleaving matrix H ensures the correctness of the interleaving matrix H, thereby ensuring the accurate encoding and decoding.
[0124] In the technical solution provided in the above step S306, the target coded data block corresponding to the target data extracted from the coded data block may include but is not limited to one or more coded data blocks. It can be understood that the target data may be stored in one or more coded data blocks in the data storage device.
[0125] In an exemplary embodiment, the target coded data block corresponding to the target data may be extracted from the coded data block in the following manner, but is not limited to: determining a candidate coded data block storing the target data from the coded data block; and extracting the target coded data block for storing the target data from the candidate coded data blocks.
[0126] Optionally, in this embodiment, a candidate coded data block storing the target data is determined from the coded data blocks; when the number of candidate coded data blocks is 1, the candidate coded data block is determined as the target coded data block; when the number of candidate coded data blocks is greater than or equal to 2, a partial data block for storing the target data is extracted from the candidate coded data blocks to obtain the target coded data block.
[0127] In the technical solution provided in the above step S308, the target data block can be generated by using the first operation matrix and the target coded data block, but is not limited to. In this way, when an abnormality occurs in the target coded data block, the target coded data block can also be restored to the target data block through the first operation matrix. In this way, the success rate of repairing the abnormal data block is improved.
[0128] In an exemplary embodiment, the target data block can be generated using the first operation matrix and the target coded data block in the following manner, but is not limited to: decoding the target coded data block by a target decoding method corresponding to the target coding method to obtain a target decoded data block, wherein the target decoding method is a decoding method that relies on the operation result between the operation matrix and the data for decoding; and operating the first operation matrix and the target decoded data block to obtain the target data block.
[0129] In order to better understand the process of generating the target data block in the embodiment of the present application, the process of generating the target data block in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.
[0130] Fig.11 is a schematic diagram of generating a target data block by a target decoding method according to an optional embodiment of the present application, such as Fig.11 As shown, Turbo decoding can be used but is not limited to Iterative decoding of The algorithm not only realizes the interaction of soft information between component decoders, but also increases the decoding gain. It may include, but is not limited to, component decoder 1, an interleaver, a deinterleaver, and component decoder 2.
[0131] in, : information symbol; : codeword symbol; :enter; : output; : Interleaved mapping sequence; : or Probability information of : or The probability log-likelihood ratio (LLR) information; : Probability log-likelihood ratio of external LLR information; : The probability log-likelihood ratio of the prior LLR information.
[0132] The Turbo codewords are: ,in, represents the original sequence, represents the check sequence, yes The sequence obtained after modulation is yes The sequence obtained after modulation is yes The sequence obtained after modulation is and The relationship satisfies: Among them, it is assumed that is the symbol power, then When an error occurs, the received signal is read as , yes The sequence obtained after channel transmission is represent The sequence obtained after channel transmission is represent The sequence obtained after channel transmission is:
[0133]
[0134] Assumptions are random variables with the same and independent variances, with mean 0 and variance , is the bilateral power spectral density of Gaussian white noise.
[0135] After converting the read sequence, we get:
[0136] (1) System sequence: ,in, represents the received sequence, N represents the length of the sequence, Represents the first data received. Indicates the second data received. Indicates the Nth data received.
[0137] (2) Check sequence for input component decoder 1: ,in, represents the check sequence of input component decoder 1, N represents the length of the sequence, represents the first data in the check sequence input to component decoder 1, represents the second data in the check sequence input to component decoder 1, Represents the Nth data in the check sequence input to component decoder 1.
[0138] (3) Check sequence for input component decoder 2: ,in, represents the check sequence of the input component decoder 2, N represents the length of the sequence, represents the first data in the check sequence input to component decoder 2, represents the second data in the check sequence input to component decoder 2, Represents the 1Nth data in the check sequence input to component decoder 2.
[0139] Will Respectively and confidence Weighted to get the system information sequence , check information and . .
[0140] The input to each component decoder consists of: , and .in, Represents the weighted information sequence in the input sequence The log-likelihood ratio of probability is Represents the check sequence after the i-th decoder The log-likelihood ratio of probability is It means that after the i-th decoder The log-likelihood ratio of probability is represents the original sequence part in the coded sequence in the prior LLR information. It can be understood that and In Indicates When performing Turbo iterative decoding, the output of the first component decoder (or component decoder 1) It can be expressed as:
[0141]
[0142] in, yes Deinterleaved value. After interleaving, it is the prior information of component decoder 2. During the first iterative decoding, , so . Represents the weighted information sequence in the input sequence The log-likelihood ratio of probability is represents the probability log-likelihood ratio of the original sequence part in the prior LLR information of the first component decoder, Represents the probability log-likelihood ratio of the original sequence part in the external LLR information of the first component decoder.
[0143] The output of the second component decoder (or component decoder 2) It can be expressed as:
[0144]
[0145] in, . Represents the original sequence in the output sequence after the second component decoder The log-likelihood ratio of probability is represents the weight of the information sequence in the input sequence of component decoder 1 The log-likelihood ratio of probability is represents the probability log-likelihood ratio of the original sequence part in the prior LLR information of the second component decoder. After deinterleaving is completed, a round of iteration is completed. The decoding performance is positively correlated with the number of iterations, but the decoding performance will not increase infinitely with the increase of the number of iterations. When a certain number of iterations is reached, the decoding performance gradually stabilizes. Make hard decisions and output decoding results.
[0146] In the technical solution provided in the above step S310, the target data block can be sent as target data to the data calling device, but is not limited to. When the data calling device receives the target data, it can use the target data to execute the target business, but is not limited to.
[0147] In the embodiments of the present application, Turbo codes are combined with distributed storage systems to perform Turbo coding on data for storage, thereby improving data security. For example, a Turbo storage pool protects data through Turbo coding, and the decoding algorithm can restore the original data when the coded data is partially damaged without the help of other copies, making data storage more secure. For old storage systems, as the pressure of disk use and age increase, the disk damage rate increases significantly, and it is very likely that multiple copies will be damaged at the same time beyond the fault domain, causing data loss. Therefore, the method of storing data with Turbo coding can effectively reduce the occurrence of this probability and greatly improve the reliability and security of the system. At the same time, with a smaller number of copies, the security effect of an ordinary storage pool with more copies can still be achieved, and the number of copies can be reduced to effectively reduce the use of space.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can 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 a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0149] In the present embodiment, a data calling device is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0150] In this embodiment, a data calling device is also provided. The data system includes a data calling device and a data storage device. The device is applied to the data storage device. Fig.12 is a structural block diagram of a data calling device according to an embodiment of the present application, such as Fig.12 As shown, the device comprises:
[0151] A first receiving module 1202 is used to receive a data calling request initiated by the data calling device, wherein the data calling request is used to request to call target data from the data storage device;
[0152] A first verification module 1204 is used to respond to the data call request and verify the security of the first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, and the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix;
[0153] A first extraction module 1206, configured to extract a target coded data block corresponding to the target data from the coded data block when it is verified that the security indicates that the first operation matrix is consistent with the second operation matrix;
[0154] A first generating module 1208, configured to generate a target data block using the first operation matrix and the target coded data block;
[0155] The first sending module 1210 is configured to send the target data block as the target data to the data calling device.
[0156] Through the above-mentioned device, in the case of wanting to call data from the data storage device, if the first operation matrix currently corresponding to the coded data block stored on the data storage device is consistent with the second operation matrix used to generate the coded data block, it can be indicated that the first operation matrix is safe. In this case, the data desired to be called can be generated by using but not limited to the first operation matrix and the coded data block. It can be understood that even if an abnormality occurs in the coded data block stored on the data storage device, the data desired to be called can be restored through the safe operation matrix and the coded data block with the abnormality. In this way, the data desired to be called can be successfully called when an abnormality occurs in the data stored on the data storage device. Therefore, the problem of being unable to call data when an abnormality occurs in the data stored on the data storage device can be solved, and the effect of successfully calling data when an abnormality occurs in the data stored on the data storage device can be achieved.
[0157] In an exemplary embodiment, the coded data block includes N coded data blocks, the N coded data blocks store corresponding N1 operation matrices, the first operation matrix includes the N1 operation matrix, the second operation matrix includes N2 operation matrices, N1 equals N2 equals N, and N is a positive integer.
[0158] The first verification module includes:
[0159] The security of the i1th operation matrix currently corresponding to the i-th coded data block among the N stored coded data blocks is verified by executing the following steps, where i is a positive integer less than or equal to N:
[0160] A screening unit, configured to screen M coded data blocks from the coded data blocks except the i-th coded data block in the N coded data blocks;
[0161] A first extraction unit, configured to extract an i1th operation matrix from the i-th coded data block, and extract M operation matrices from the M coded data blocks;
[0162] A first verification unit is used to verify the security of the i1th operation matrix currently corresponding to the i-th coded data block based on the i1th operation matrix and the M operation matrices, wherein the i-th coded data block is obtained by encoding the i2th operation matrix with the i-th original data block among the N original data blocks to be stored on the data storage device through the target encoding method, and the security of the i1th operation matrix is used to indicate whether the i1th operation matrix is consistent with the i2th operation matrix, the original data blocks include the N original data blocks, the N2 operation matrices include the i2th operation matrix, and i1 is equal to i2 and equal to i.
[0163] In an exemplary embodiment, the screening unit is used to:
[0164] Randomly select the M coded data blocks from the coded data blocks except the i-th coded data block in the N coded data blocks; or,
[0165] The M coded data blocks are randomly selected from Q coded data blocks among the N coded data blocks, wherein the Q coded data blocks are coded data blocks whose security is used to indicate that Q1 operation matrices are consistent with Q2 operation matrices among the N coded data blocks except the i-th coded data block, the N1 operation matrices include the Q1 operation matrix, the N2 operation matrices include the Q2 operation matrix, the Q coded data blocks are obtained by encoding the Q2 operation matrix and then operating the Q2 operation matrix with Q original data blocks among the N original data blocks to be stored on the data storage device through the target encoding method, Q is a positive integer less than or equal to N, Q1 is equal to Q2, and Q1 is equal to Q.
[0166] In an exemplary embodiment, the first verification unit is used to:
[0167] Calculate the i-th check value corresponding to the i1-th operation matrix, and calculate the M check values corresponding to the M operation matrices;
[0168] The security of the i1th operation matrix currently corresponding to the i-th coded data block is verified according to the i-th check value and the M check values.
[0169] In an exemplary embodiment, the first verification unit is used to:
[0170] Comparing the i-th check value with the M check values to obtain a comparison result;
[0171] When the comparison result indicates that the i-th check value and the M check values are the same, the security of the i1-th operation matrix is checked to indicate that the i1-th operation matrix is consistent with the i2-th operation matrix.
[0172] In an exemplary embodiment, the apparatus further comprises:
[0173] a screening module, configured to, when the comparison result indicates that the i-th check value is different from at least one of the M check values, screen R coded data blocks from coded data blocks other than the M coded data blocks and the i-th coded data block among the N coded data blocks, while randomly screening the M coded data blocks from coded data blocks other than the i-th coded data block, wherein R is a positive integer less than or equal to NM;
[0174] A second extraction module, used for extracting R operation matrices from the R coded data blocks;
[0175] The second verification module is used to verify the security of the i1th operation matrix currently corresponding to the i-th coded data block based on the i1th operation matrix and the R operation matrices.
[0176] In an exemplary embodiment, the apparatus further comprises:
[0177] In a case where the comparison result is used to indicate that the i-th check value is different from at least one of the M check values, the j-th operation matrix is repaired by performing the following steps, wherein the j-th operation matrix is an operation matrix corresponding to the j-th check value in the M operation matrices, the j-th check value is different from the i-th check value, and / or the j-th check value is different from the M-1 check values, and the M-1 check values are check values in the M check values excluding the j-th check value:
[0178] A setting module, used for setting a target tag for the j-th coded data block corresponding to the j-th check value in the M coded data blocks, wherein the target tag is used to indicate that an abnormality occurs in the j-th operation matrix stored in the j-th coded data block;
[0179] A repair module, configured to search the j-th coded data block corresponding to the target label from the N coded data blocks, and repair the j-th coded data block using the i1-th coded matrix, when the security of the i1-th coded matrix indicates that the i1-th coded matrix is consistent with the i2-th coded matrix;
[0180] A deleting module is used to delete the target label set for the jth coded data block when the jth operation matrix is repaired using the i1th operation matrix.
[0181] In an exemplary embodiment, the repair module includes:
[0182] A receiving unit, configured to receive a matrix repair request initiated by the data calling device, wherein the matrix repair request is used to request repair of the j-th operation matrix;
[0183] A replacement unit is used to respond to the matrix repair request and replace the j-th operation matrix with the i1-th operation matrix.
[0184] In an exemplary embodiment, the replacement unit is used to:
[0185] Performing a copy operation on the i1th operation matrix to obtain an i1th backup operation matrix;
[0186] The j-th operation matrix stored in the j-th coded data block is deleted, and the i1-th backup operation matrix is stored in the j-th coded data block.
[0187] In an exemplary embodiment, the data storage device includes a target storage pool, the target storage pool stores the original data block, the coded data block and the backup data block, the backup data block is obtained by encoding the original data block in an original coding manner, and the first verification module includes:
[0188] A second extraction unit, configured to extract a target data block corresponding to the target data from the original data block in response to the data call request;
[0189] A second verification unit, used to verify whether the target data block is abnormal;
[0190] The third verification unit is used to verify the security of the first operation matrix currently corresponding to the encoded data block when it is detected that the target data block is abnormal and the encoded data block is abnormal, and the target data block cannot be restored through the original data block and the backup data block.
[0191] In an exemplary embodiment, the second verification unit is used to:
[0192] Receiving a first verification request initiated by the data calling device, wherein the first verification request is used to request verification of whether an abnormality occurs in the target data block;
[0193] In response to the first verification request, the consistency of the target data block is verified, wherein the consistency is used to indicate whether the target data block is consistent with the candidate data block, and the target data block is a data block obtained by storing the candidate data block to be stored on the data storage device on the data storage device.
[0194] In an exemplary embodiment, the third verification unit is used to:
[0195] Receiving a second verification request initiated by the data calling device, wherein the second verification request is used to request verification of the security of the first operation matrix currently corresponding to the encoded data block;
[0196] In response to the second verification request, the security of the first operation matrix currently corresponding to the encoded data block is verified.
[0197] In an exemplary embodiment, the apparatus further comprises:
[0198] The second sending module is used for sending the target data block as the target data to the data calling device after checking whether the target data block is abnormal and if it is found that the target data block is not abnormal.
[0199] In an exemplary embodiment, the first extraction module includes:
[0200] a determining unit, configured to determine, from the coded data blocks, a candidate coded data block storing the target data;
[0201] The third extraction unit is used to extract the target coded data block for storing the target data from the candidate coded data blocks.
[0202] In an exemplary embodiment, the coded data block includes N coded data blocks, and the determining unit is configured to:
[0203] Extracting the target data identifier of the target data carried in the data call request;
[0204] The candidate coded data block corresponding to the target data identifier is obtained from data identifiers and data blocks having a corresponding relationship.
[0205] In an exemplary embodiment, the first generating module includes:
[0206] A decoding unit, used for decoding the target coded data block by a target decoding method corresponding to the target coding method to obtain a target decoded data block, wherein the target decoding method is a decoding method that performs decoding by relying on a calculation result between a calculation matrix and data;
[0207] The operation unit is used to operate the first operation matrix and the target decoding data block to obtain the target data block.
[0208] In an exemplary embodiment, the apparatus further comprises:
[0209] A second receiving module is used to receive a data storage request initiated by the data calling device before receiving the data calling request initiated by the data calling device, wherein the data storage request is used to request to store the reference data on the data storage device;
[0210] a third verification module, configured to respond to the data storage request and verify the security of a first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix;
[0211] A second generating module is used to generate a reference coding data block using the first operation matrix and the reference data when the security is verified to indicate that the first operation matrix is consistent with the second operation matrix;
[0212] A first storage module, used for storing the reference coded data block on the data storage device to obtain a storage result;
[0213] The third sending module is used to send the storage result to the data calling device.
[0214] In an exemplary embodiment, the second generating module is used to: operate the first operation matrix and the reference data to obtain a reference operation data block, and encode the reference operation data block by the target encoding method to obtain the reference encoded data block;
[0215] The apparatus further includes: a second storage module, configured to store the first operation matrix in the reference coding data block after storing the reference coding data block in the data storage device.
[0216] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0217] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0218] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0219] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0220] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0221] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0222] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0223] An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0224] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0225] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0226] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for calling data, characterized in that: The data system includes a data calling device and a data storage device, and the method is applied to the data storage device, and the method includes: Receiving a data calling request initiated by the data calling device, wherein the data calling request is used to request to call target data from the data storage device; In response to the data call request, verify the security of the first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, and the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; When it is verified that the security indicates that the first operation matrix is consistent with the second operation matrix, extracting a target coded data block corresponding to the target data from the coded data block; Generate a target data block using the first operation matrix and the target coded data block; The target data block is sent as the target data to the data calling device.
2. The method according to claim 1, characterized in that The coded data block includes N coded data blocks, the N coded data blocks store corresponding N1 operation matrices, the first operation matrix includes the N1 operation matrix, the second operation matrix includes N2 operation matrices, N1 equals N2 equals N, and N is a positive integer, The checking of the security of the first operation matrix currently corresponding to the stored coded data block includes: The security of the i1th operation matrix currently corresponding to the i-th coded data block among the N stored coded data blocks is verified by executing the following steps, where i is a positive integer less than or equal to N: Selecting M coded data blocks from the coded data blocks except the i-th coded data block in the N coded data blocks; Extracting an i1th operation matrix from the i-th coded data block, and extracting M operation matrices from the M coded data blocks; According to the i1th operation matrix and the M operation matrices, the security of the i1th operation matrix currently corresponding to the i-th coded data block is verified, wherein the i-th coded data block is obtained by encoding the i2th operation matrix through the target encoding method after operating the i2th operation matrix with the i-th original data block among the N original data blocks to be stored on the data storage device, and the security of the i1th operation matrix is used to indicate whether the i1th operation matrix is consistent with the i2th operation matrix, the original data blocks include the N original data blocks, the N2 operation matrices include the i2th operation matrix, and i1 is equal to i2 and equal to i.
3. The method according to claim 2, characterized in that The selecting M coded data blocks from the coded data blocks except the i-th coded data block in the N coded data blocks comprises: Randomly select the M coded data blocks from the coded data blocks except the i-th coded data block in the N coded data blocks; or, The M coded data blocks are randomly selected from Q coded data blocks among the N coded data blocks, wherein the Q coded data blocks are coded data blocks whose security is used to indicate that Q1 operation matrices are consistent with Q2 operation matrices among the N coded data blocks except the i-th coded data block, the N1 operation matrices include the Q1 operation matrix, the N2 operation matrices include the Q2 operation matrix, the Q coded data blocks are obtained by encoding the Q2 operation matrix and then operating the Q2 operation matrix with Q original data blocks among the N original data blocks to be stored on the data storage device through the target encoding method, Q is a positive integer less than or equal to N, Q1 is equal to Q2, and Q1 is equal to Q.
4. The method according to claim 2, characterized in that: The step of verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block according to the i1th operation matrix and the M operation matrices includes: Calculate the i-th check value corresponding to the i1-th operation matrix, and calculate the M check values corresponding to the M operation matrices; The security of the i1th operation matrix currently corresponding to the i-th coded data block is verified according to the i-th check value and the M check values.
5. The method according to claim 4, characterized in that The step of verifying the security of the i1th operation matrix currently corresponding to the i-th coded data block according to the i-th check value and the M check values includes: Comparing the i-th check value with the M check values to obtain a comparison result; When the comparison result indicates that the i-th check value and the M check values are the same, the security of the i1-th operation matrix is checked to indicate that the i1-th operation matrix is consistent with the i2-th operation matrix.
6. The method according to claim 5, characterized in that In a case where the comparison result is used to indicate that the i-th check value is different from at least one of the M check values, the method further includes: In the case where the M coded data blocks are randomly selected from the coded data blocks other than the i-th coded data block in the N coded data blocks, R coded data blocks are selected from the coded data blocks other than the M coded data blocks and the i-th coded data block in the N coded data blocks, where R is a positive integer less than or equal to NM; Extracting R operation matrices from the R coded data blocks; According to the i1th operation matrix and the R operation matrices, the security of the i1th operation matrix currently corresponding to the i-th coded data block is verified.
7. The method according to claim 5, characterized in that In a case where the comparison result is used to indicate that the i-th check value is different from at least one of the M check values, the method further includes: The j-th operation matrix is repaired by performing the following steps, wherein the j-th operation matrix is the operation matrix corresponding to the j-th check value in the M operation matrices, the j-th check value is different from the i-th check value, and / or the j-th check value is different from the M-1 check values, and the M-1 check values are the check values in the M check values except the j-th check value: Setting a target tag for the j-th coded data block corresponding to the j-th check value in the M coded data blocks, wherein the target tag is used to indicate that an abnormality occurs in the j-th operation matrix stored in the j-th coded data block; When the security of the i1th operation matrix indicates that the i1th operation matrix is consistent with the i2th operation matrix, searching the jth coded data block corresponding to the target label from the N coded data blocks, and repairing the jth operation matrix using the i1th operation matrix; When the j-th operation matrix is repaired using the i1-th operation matrix, the target label set for the j-th coded data block is deleted.
8. The method according to claim 7, characterized in that The repairing the j-th operation matrix by using the i1-th operation matrix comprises: receiving a matrix repair request initiated by the data calling device, wherein the matrix repair request is used to request repair of the j-th operation matrix; In response to the matrix repair request, the j-th operation matrix is replaced by the i1-th operation matrix.
9. The method according to claim 8, characterized in that The step of replacing the j-th operation matrix with the i1-th operation matrix comprises: Performing a copy operation on the i1th operation matrix to obtain an i1th backup operation matrix; The j-th operation matrix stored in the j-th coded data block is deleted, and the i1-th backup operation matrix is stored in the j-th coded data block.
10. The method according to claim 1, characterized in that The data storage device comprises a target storage pool, in which the original data block, the coded data block and the backup data block are stored, wherein the backup data block is obtained by encoding the original data block in an original coding manner, The checking of the security of the first operation matrix currently corresponding to the stored coded data block includes: In response to the data call request, extracting a target data block corresponding to the target data from the original data block; Checking whether the target data block is abnormal; When it is detected that the target data block is abnormal and the coded data block is abnormal, and the target data block cannot be restored through the original data block and the backup data block, the security of the first operation matrix currently corresponding to the coded data block is verified.
11. The method according to claim 10, characterized in that The checking whether the target data block is abnormal includes: Receiving a first verification request initiated by the data calling device, wherein the first verification request is used to request verification of whether an abnormality occurs in the target data block; In response to the first verification request, the consistency of the target data block is verified, wherein the consistency is used to indicate whether the target data block is consistent with the candidate data block, and the target data block is a data block obtained by storing the candidate data block to be stored on the data storage device on the data storage device.
12. The method according to claim 10, characterized in that The verifying the security of the first operation matrix currently corresponding to the coded data block includes: Receiving a second verification request initiated by the data calling device, wherein the second verification request is used to request verification of the security of the first operation matrix currently corresponding to the encoded data block; In response to the second verification request, the security of the first operation matrix currently corresponding to the encoded data block is verified.
13. The method according to claim 10, characterized in that After checking whether the target data block is abnormal, the method further includes: When it is verified that the target data block has no abnormality, the target data block is sent to the data calling device as the target data.
14. The method according to claim 1, characterized in that The step of extracting a target coded data block corresponding to the target data from the coded data block comprises: Determining a candidate coded data block storing the target data from the coded data blocks; The target coded data block for storing the target data is extracted from the candidate coded data blocks.
15. The method according to claim 14, characterized in that The coded data block includes N coded data blocks, The determining, from the coded data blocks, a candidate coded data block storing the target data comprises: Extracting the target data identifier of the target data carried in the data call request; The candidate coded data block corresponding to the target data identifier is obtained from data identifiers and data blocks having a corresponding relationship.
16. The method according to claim 1, characterized in that The step of generating a target data block using the first operation matrix and the target coded data block comprises: Decoding the target coded data block by a target decoding method corresponding to the target coding method to obtain a target decoded data block, wherein the target decoding method is a decoding method that performs decoding based on a calculation result between a calculation matrix and data; The first operation matrix and the target decoding data block are operated to obtain the target data block.
17. The method according to claim 1, characterized in that Before receiving the data calling request initiated by the data calling device, the method further includes: Receiving a data storage request initiated by the data calling device, wherein the data storage request is used to request to store reference data on the data storage device; In response to the data storage request, verify the security of a first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; In a case where it is verified that the security indicates that the first operation matrix is consistent with the second operation matrix, using the first operation matrix and the reference data to generate a reference coded data block; Storing the reference coded data block on the data storage device to obtain a storage result; The storage result is sent to the data calling device.
18. The method according to claim 17, characterized in that The using the first operation matrix and the reference data to generate a reference coded data block includes: operating the first operation matrix and the reference data to obtain a reference operation data block, encoding the reference operation data block by the target encoding method to obtain the reference coded data block; After storing the reference encoded data block on the data storage device, the method further includes: storing the first operation matrix in the reference encoded data block.
19. A data calling device, characterized in that: The data system includes a data calling device and a data storage device, and the device is applied to the data storage device, and the device includes: A first receiving module, configured to receive a data calling request initiated by the data calling device, wherein the data calling request is used to request to call target data from the data storage device; A first verification module, configured to respond to the data call request and verify the security of a first operation matrix currently corresponding to the stored coded data block, wherein the coded data block is obtained by encoding the second operation matrix and the original data block to be stored on the data storage device through a target encoding method, the target encoding method is an encoding method that relies on the operation result between the operation matrix and the data for encoding, and the security is used to indicate whether the first operation matrix is consistent with the second operation matrix; A first extraction module, configured to extract a target coded data block corresponding to the target data from the coded data block when the security is verified to indicate that the first operation matrix is consistent with the second operation matrix; A first generating module, configured to generate a target data block using the first operation matrix and the target coded data block; The first sending module is used to send the target data block as the target data to the data calling device.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 18 when executed by a processor.
21. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 18 are implemented.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 18 are implemented.
