Method and apparatus for encoding and decoding data - Patents.com

The Babylon encoding method optimizes data storage systems by reducing repair bandwidth and disk I/O costs through efficient data reconstruction, maintaining reliability and fault tolerance in distributed storage systems.

JP7555821B2Active Publication Date: 2024-09-25INSTITUT MINES TELECOM TELECOM BRETAGNE
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020555866
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-04-13
Filing Date
2019-04-10
Publication Date
2024-09-25
Estimated Expiration
2039-04-10

AI Technical Summary

Technical Problem

Existing data storage systems face challenges in efficiently reconstructing lost data after failures while maintaining storage efficiency and reducing repair bandwidth and disk I/O costs, with existing erasure codes either compromising reliability or incurring significant overhead.

Method used

The proposed Babylon encoding method divides data into k blocks and generates r parity functions, including a primary and r-1 quadratic parity functions, allowing for efficient data reconstruction by minimizing the data blocks required for repair, thus reducing bandwidth and I/O costs.

Benefits of technology

The Babylon encoding method effectively reduces repair bandwidth and disk I/O costs by up to 50% compared to traditional RS codes, while maintaining the same level of reliability and fault tolerance, enabling efficient data reconstruction in distributed storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007555821000009
    Figure 0007555821000009
  • Figure 0007555821000010
    Figure 0007555821000010
  • Figure 0007555821000011
    Figure 0007555821000011
Patent Text Reader

Abstract

The present invention relates to a method for encoding (k, r) pieces of data and a method for reconstructing the data, which comprises the following steps: i and dividing the k data blocks into r-1 subsets S of data blocks. j - grouping each subset S into j For each subset S j A linear function g defined as a linear combination of the data blocks assigned to j (a) generating k data blocks a i The first-order parity function f0(a) as a linear combination of the j (a) is the linear parity function f0(a) and the linear function g j (a) generating r parity functions, including r-1 quadratic parity functions defined as the sum of (a)
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the general field of data storage systems and fault management in such systems, and more particularly to a method and apparatus for encoding and decoding data that allows for optimizing the data read / write operations required to repair a storage system after a fault has occurred, and optimizing the amount of data transferred. [Background technology]

[0002] In recent years, the amount of digital data has increased significantly due to the use of applications such as social networks, e-mail, file sharing, and video sharing. Therefore, companies providing online services are increasingly handling data in the form of tens of petabytes (1PB=10 15 It is necessary to manage large amounts of data (bytes) and to store this data reliably, as the amount of data grows exponentially every year.

[0003] Distributed storage systems (DSS) are widely used nowadays to provide an open and reliable storage solution. These architectures include multiple storage nodes (110, 112, 114) where data is stored in a distributed manner, as shown in Figure 1. A storage node may include one (112) or multiple storage devices (110, 114). Each storage device of a node that includes multiple storage devices is itself referred to as a storage node. Generally, the storage devices are storage disks. A controller (102) enables management of communication to and from the nodes, including disk read / write operations based on requests received from a computer (106) coupled to a communication network (104).

[0004] Disk, device or storage node failures are not rare today, with an average of tens of failures reported every day for thousands of nodes. A distributed storage system must guarantee data protection in the event of one or more node or storage device or disk failures.

[0005] To ensure data reliability and availability, standard implementations incorporate solutions based on data redundancy to make lost data retrievable in the event of a failure.

[0006] Below are listed some ways in which it is possible to provide reliability to a storage system.

[0007] Replication is one of the most widely used methods. It involves replicating the same data block across multiple storage nodes. In general, the same data block is stored in n different nodes, making it possible to tolerate n-1 failures. In fact, each data block is stored in three different nodes, making it possible to tolerate two failures. Even though replication provides good failure tolerance, it has the disadvantage that replication incurs a storage overhead that is estimated at 200% for three nodes.

[0008] Erasure Codes. This approach is based on the use of well-known Reed-Solomon (RS) codes. Each data file is divided into k data blocks to which r parity function blocks are added to generate k+r data blocks, and a term code RS(k,r) is used. The k+r data blocks are stored in k+r different nodes, where k nodes store the k original blocks and r parity nodes store the r parity function blocks. The code RS(k,r) has two basic properties: any k data blocks out of the k+r blocks are sufficient to regenerate the original data, and it can tolerate r failures, regardless of the type of failure. In practice, for the code RS(10,4), each data file is divided into 10 blocks to generate 4 parity function blocks, making it possible to tolerate up to 4 failures. RS codes offer better storage efficiency compared to replication, with a storage overhead estimated at 40% for the code RS(10,4).

[0009] In a data storage system, in case of a failure, the reconstruction of data involves reading the data stored in the redundant node and then transferring the data from the node providing the data, also called "provider" in the network, to a new storage node, also called "newcomer". In case of a single node failure, even if only a single provider is needed in the case of replication, k providers are needed in the case of the code RS(k,r), and then the transfer of data from the k providers over the network is included. Repairing a single failure can therefore involve reading and transmitting hundreds of terabytes (TB). Also, the repair and read / write costs in terms of bandwidth can be significant.

[0010] Some solutions listed below aim to reduce the bandwidth required during the repair phase, i.e. "bandwidth repair".

[0011] Regenerating codes are an example. The main idea, as described in the paper "Network coding for distributed storage systems", Alexandros G Dimakis, P Brighten Godfrey, Yunnan Wu, Martin J Wainwright, and Kannan Ramchandran, IEEE Transactions on Information Theory 56(9):4539-4551, 2010, is that each node generates a linear combination of data from the data blocks available to it. The amount of data transferred from each provider node is therefore less than the amount of data stored in each node, thus reducing the bandwidth required for repair. However, for regenerating codes, the information retrieved at the new node is a linear combination of the transferred data and therefore is not necessarily equal to the lost data block.

[0012] Exact regenerating codes have been proposed to retrieve identical data blocks to the ones that were lost. The main idea is to use the concept of interference alignment to remove unnecessary data blocks, as shown in the paper "Optimal exact-regenerating codes for distributed storage at the MSR and MBR points via a product-matrix construction", Rashmi, Korlakai Vinayak, Nihar B.Shah, and P.Vijay Kumar, IEEE Transactions on Information Theory 57(8):5227-5239, 2011. Even though exact regenerating codes can significantly reduce the repair bandwidth, they do not optimize the cost of disk input / output ("I / O overhead"). In fact, to repair a single failure, exact regenerating codes require all data stored in all read-target nodes to be read.

[0013] Solutions have been proposed to reduce the costs of both repair bandwidth and disk I / O.

[0014] For example, the main idea of ​​using hierarchical codes, as shown in the paper "Hierarchical codes: How to make erasure codes attractive for peer-to-peer storage systems", Alessandro Duminuco and Ernst Biersack, P2P'08, 8th IEEE International Conference on Peer-to-Peer Computing, pages 89-98, is to generate a specific parity function hierarchically from codes smaller than the original code. A hierarchical code (k,r) is a code that can be used to repair a single failure.

number

[0015] Hitchhiker codes are codes that maintain the same properties as RS codes and make it possible to perform fault repair at a lower cost in terms of bandwidth and disk I / O. The main idea described in "A hitchhiker's guide to fast and efficient data reconstruction in erasure-coded data centers", KV Rashmi, Nihar B Shah, Dikang Gu, Hairong Kuang, Dhruba Borthakur, and Kannan Ramchandran, ACM SIGCOMM Computer Communication Review, 44(4):331-342, 2015, is to reduce the number of data blocks required to repair a single fault. The hitchhiker approach considers two RS sub-codes with the same structure (k,r). A specific parity function that depends on the second code and the first code is generated within the second RS sub-code. These interleaved parity functions allow to reduce the amount of data that is read and transferred to repair a data block. The hitchhiker code (10,4) can reduce repair bandwidth and disk I / O costs by 30% to 35%.

[0016] The following references propose data encoding methods that reduce bandwidth: - Cheng Huang et al.: "Erasure Coding in Windows Azure Storage", USE-NIX, 11 April 2013 (2013-04-11), pages 1-12, XP061013941. The LRC(k,l,r) method is based on generating a local parity function that is stored in the storage node. However, LRC codes incur a storage overhead due to the additional storage of the local parity function. - Cheng Huang et al.: "Pyramid Codes: Flexible Schemes to Trade Spaces for Access Efficiency in Reliable Data Storage systems", Proc. Sixth IEEE International Symposium on Network Computing and Applications 2007, IEEE, 1 July 2007 (2007-01-07), pages 79-86, XP031119281, ISBN: 978-0-7695-2922-6. This method proposes an alternative to the LRC method. However, like LRC codes, pyramid codes incur a storage overhead compared to traditional erasure codes and Babylon codes.

[0017] These approaches do not provide the same storage efficiency as traditional erasure codes, as opposed to hitchhiker codes, regenerating codes, and hierarchical codes, which allow for bandwidth reduction while maintaining the same storage efficiency as traditional erasure codes.

[0018] Contrary to the above-mentioned approach based on the definition of new erasure codes, the solution proposed in patent application US2016 / 211869A1 by Blaum Mario et al. proposes a dynamic storage system incorporating multiple erasure codes that can switch between different codes as an objective function. The system decides between reducing repair bandwidth or reducing storage overhead as a function of the frequency of reference of a file. The system supports two codes in particular: LRC (mentioned above) and "Product Code" (PC).

[0019] There is a need, and is increasing in view of repair bandwidth costs and disk I / O costs, for a data encoding / decoding solution that reconstructs data lost or damaged upon failure of one or more data storage elements while maintaining the same storage efficiency as traditional erasure codes.

[0020] Furthermore, with the emergence of SSD (Solid State Drive) disks, storage elements are becoming increasingly faster, each disk being capable of generating tens of gigabytes per second in read mode. The bit rate of the interfaces connecting the storage elements is therefore of particular importance and represents a bottleneck in the storage system. The reduction of the flows exchanged during reconstruction is therefore of particular importance. There is therefore a need for a solution that allows optimizing the amount of data transferred when repairing a storage system after a failure.

[0021] The present invention addresses the various needs set forth above. [Prior art documents] [Patent documents]

[0022] [Patent Document 1] US Patent Application Publication No. 2016 / 211869 [Non-patent literature]

[0023] [Non-Patent Document 1] "Network coding for distributed storage systems", Alexandros G Dimakis, P Brighten Godfrey, Yunnan Wu, Martin J Wainwright, and Kannan Ramchandran, IEEE Transactions on Information Theory 56(9):4539-4551, 2010 [Non-Patent Document 2] Rashmi, Korlakai Vinayak, Nihar B. Shah, and P. Vijay Kumar, IEEE Transactions on Information Theory 57(8):5227-5239,2011

Outdoor Tools3

Outdoor Tools 4

Direct Environment 5

Outdoor Configuration6

[0024] The present invention aims to overcome the limitations of the known art by proposing a data encoding and decoding method and device making it possible to optimize the amount of data transferred and the read / write operations required to repair a storage system after a failure. [Means for solving the problem]

[0025] Advantageously, the present invention allows for a reduction in both repair bandwidth and disk I / O costs while maintaining storage efficiency and reliability properties that tolerate all r out of k+r failures.

[0026] One object of the present invention is to provide a method for encoding data. In particular, a method for encoding (k, r) pieces of data is proposed, the method comprising the steps of: - Initial data a is divided into k data blocks a i and dividing the - k data blocks are divided into r-1 subsets S j and - each subset S j For each of the subsets S j A linear function g defined as a linear combination of the data blocks assigned to jgenerating (a); - k data blocks a i The first-order parity function f0(a) as a linear combination of the first-order parity function f j (a) is the linear parity function f0(a) and the linear function g j (a) generating r parity functions, including r-1 quadratic parity functions defined as a sum of (a)

[0027] We propose a solution that reduces both repair bandwidth and disk I / O costs.

[0028] For example, the main idea of ​​using hierarchical codes, as shown in the paper "Hierarchical codes: How to make erasure codes attractive for peer-to-peer storage systems", Alessandro Duminuco and Ernst Biersack, P2P'08, 8th IEEE International Conference on Peer-to-Peer Computing, pages 89-98, is to generate a specific parity function hierarchically from codes smaller than the original code. A hierarchical code (k,r) is a code that can be used to repair a single failure.

number

[0029] Hitchhiker codes are codes that maintain the same properties as RS codes and make it possible to perform fault repair at a lower cost in terms of bandwidth and disk I / O. The main idea described in "A hitchhiker's guide to fast and efficient data reconstruction in erasure-coded data centers", KV Rashmi, Nihar B Shah, Dikang Gu, Hairong Kuang, Dhruba Borthakur, and Kannan Ramchandran, ACM SIGCOMM Computer Communication Review, 44(4):331-342, 2015, is to reduce the number of data blocks required to repair a single fault. The hitchhiker approach considers two RS sub-codes with the same structure (k,r). A specific parity function that depends on the second code and the first code is generated within the second RS sub-code. These interleaved parity functions allow to reduce the amount of data that is read and transferred to repair a data block. The hitchhiker code (10,4) can reduce repair bandwidth and disk I / O costs by 30% to 35%.

[0030] The following references propose data encoding methods that reduce bandwidth: - Cheng Huang et al.: "Erasure Coding in Windows Azure Storage", USE-NIX, 11 April 2013 (2013-04-11), pages 1-12, XP061013941. The LRC(k,l,r) method is based on the generation of a local parity function that is stored in the storage node. However, LRC codes incur a storage overhead due to the additional storage of the local parity function. - Cheng Huang et al.: "Pyramid Codes: Flexible Schemes to Trade Spaces for Access Efficiency in Reliable Data Storage systems", Proc. Sixth IEEE International Symposium on Network Computing and Applications 2007, IEEE, 1 July 2007 (2007-01-07), pages 79-86, XP031119281, ISBN: 978-0-7695-2922-6. This method proposes an alternative to the LRC method. However, like LRC codes, pyramid codes incur a storage overhead compared to traditional erasure codes and Babylon codes.

[0031] These approaches do not provide the same storage efficiency as traditional erasure codes, as opposed to hitchhiker codes, regenerating codes, and hierarchical codes, which allow for bandwidth reduction while maintaining the same storage efficiency as traditional erasure codes.

[0032] Contrary to the above-mentioned approach based on the definition of new erasure codes, the solution proposed in patent application US2016 / 211869A1 by Blaum Mario et al. proposes a dynamic storage system incorporating multiple erasure codes that can switch between different codes as an objective function. The system decides between reducing repair bandwidth or reducing storage overhead as a function of the frequency of reference of a file. The system supports two codes in particular: LRC (mentioned above) and "Product Code" (PC).

[0033] It can be seen that there is a need, and is increasing in view of repair bandwidth costs and disk I / O costs, for a data encoding / decoding solution that reconstructs data lost or damaged upon failure of one or more data storage elements while maintaining the same storage efficiency as conventional erasure codes.

[0034] According to an alternative or combined embodiment of the encoding method, generating r parity functions comprises generating r encoded vectors, the encoded vectors being - k primary coding coefficients c 0,1 ~c 0,k A primary coding vector C0 including - each quadratic coding vector has k quadratic coding coefficients c j,1 ~c j,k r-1 quadratic encoded vectors C j (1≦j≦r-1), - each primary coding coefficient c 0,i corresponds to a non-zero random number, and the secondary coding coefficient c j,i is the data block a i is a subset S j corresponds to a non-zero or zero random number depending on whether it belongs to - Linear function g j The step of generating (a) is to generate k data blocks (a1,...,a k ) and the quadratic encoding vector C j generating a linear combination of - k=10 and r=4.

[0035] The data encoding method of the present invention is particularly suitable for distributing data among several storage devices with the aim of reconstructing data lost following a storage device failure. Also claimed is a method for storing k+r data, the method comprising: storing k systemized storage devices N i ,i∈{1,..,k} has k data blocks a i , and r parity storage devices N i , i∈{k+1,..,k+r}, the method includes at least one step including a step of storing r parity functions obtained in accordance with the claimed data encoding method.

[0036] The invention is also directed to a data encoding device comprising means for carrying out the steps of the claimed data encoding method.

[0037] Another object of the invention relates to a method for reconstructing or replicating the contents of a device storing data encoded by the encoding method according to the claims, in particular for k data blocks a i k system storage devices N i ,i∈{1,..,k}, and r parity functions f j (a) r parity storage devices N i , i∈{k+1,..,k+r}, wherein the k data blocks and r parity functions are obtained according to the claimed data encoding method, the reconstruction method comprising at least the following steps: - determining whether the storage device whose contents are to be reconstructed is a systematic or parity storage device; - the device is a systemized storage device N i If ,i∈{1,..,k}, - which data subset S of the data block of the device j Determine whether it belongs to - obtaining the primary and secondary parity functions stored in the parity storage units k+1 and k+1+j; - subset S j The linear function g associated with j Calculate (a), - Block A i A subset S other than j Get the data block of - the systemized storage device N i ,i∈{1,..,k},reconstructing the contents of - said device is a parity storage device N i , i∈{k+1, .., k+r}, determine an index i that identifies the storage device; - if the index i is equal to k+1, Parity storage unit with index i=k+2 and data block a of subset S1 i Obtain the quadratic parity function f(a) stored in Compute the linear function g1(a) associated with the subset S1 to decode the linear parity function f0(a), reconstructing the contents of said parity unit with index i=k+1; - if index i is greater than k+1, Parity storage for index i=k+1 and subset S i-k+1 Data block a i Obtain the first-order parity function f0(a) stored in ·Subset S i-k+1 The linear function g associated with i-k+1 (a) Calculate the quadratic parity function f i-k+1 Decrypt (a) to get Reconstructing the contents of said parity units with index i>k+1.

[0038] The content reconstruction method is particularly suitable for reconstructing the content of data lost following a storage device failure.

[0039] According to an alternative or combined embodiment of the reconstruction method, - obtaining the parity function includes transferring data from a corresponding storage device to a data collection device; - Reconstruct the system node i, i∈{1,..,k}, by dividing the subset S j The linear function g associated with j The step of calculating (a) is performed by using the storage device N k+1+j From the secondary parity function stored in the storage device N k+1 a first-order parity function stored in - calculating a linear function g(a) associated with the subset S1 to reconstruct the parity node i, where i=k+1, comprises generating a linear combination from the data blocks of the subset S1 and the coding vector C1; - Reconstruct parity node i, where i∈{k+2,..,k+r}, by dividing the subset S j The linear function g associated with jThe step of calculating (a) is j The data block and the coding vector C j generating a linear combination from - the step of reconstructing the contents of the systemized storage device is carried out by a linear function g j (a) to data block a i Decrypting the - reconstructing the content of said parity store i, for i=k+1, comprises decoding a secondary parity function of said parity store with index i=k+1 from the calculated primary function g1(a), The step of reconstructing the contents of said parity storage unit i, i>k+1, is carried out by a calculated linear function g i-k+1 The method includes the step of decoding the secondary parity functions of said parity units for indices i>k+1 from (a).

[0040] The present invention also provides a method for determining whether k data blocks a i k system storage devices N i ,i∈{1,..,k}, and r parity functions f j (a) r parity storage devices N i The present invention also relates to an apparatus for reconstructing the contents of one of a number of devices storing k data blocks and r parity functions in a plurality of devices, i∈{k+1,..,k+r}, wherein the k data blocks and r parity functions are obtained according to the encoding method described in the claims, and the apparatus includes means for performing the steps of the method described in the claims for reconstructing the contents of the storage device.

[0041] The invention may be implemented in hardware and / or software elements such as integrated circuits of the ASIC or FPGA type.

[0042] The invention also relates to a computer program comprising code instructions enabling the steps of the claimed encoding method to be carried out and / or comprising code instructions enabling the steps of the claimed content reconstruction method to be carried out when said program is executed on a computer.

[0043] The invention may be available as a processor-readable storage medium having stored thereon a program comprising code instructions for performing the encoding method and / or the content reconstructing method as claimed.

[0044] One advantageous use of the claimed content reconstructing method is a distributed storage system comprising a plurality of data storage nodes capable of storing data encoded according to the claimed encoding method.

[0045] Another advantageous use of the claimed content reconstruction method is a local storage system comprising a data storage disk capable of storing data encoded according to the claimed encoding method.

[0046] Various aspects and advantages of the present invention will become apparent upon review of the following description of preferred, but non-limiting, implementations of the invention with reference to the drawings, in which: [Brief description of the drawings]

[0047] [Figure 1] 1 illustrates a distributed system environment in which the present invention may be implemented in one embodiment. [Diagram 2] 2 illustrates a representation of the storage of data in one embodiment of the present invention. [Diagram 3] 2 illustrates steps of the encoding method of the present invention in one embodiment. [Figure 4] 1 illustrates the generation of a primary encoded vector in accordance with the principles of the present invention. [Diagram 5] 1 illustrates the generation of a secondary encoded vector in accordance with the principles of the present invention. [Figure 6] 1 illustrates the generation of a primary parity function and a secondary parity function in accordance with the principles of the present invention. [Figure 7a] 1 illustrates the steps of rebuilding a systematic parity node according to the principles of the present invention. [Figure 7b] 1 illustrates the steps of rebuilding a systematic parity node according to the principles of the present invention. [Figure 7c]1 illustrates the steps of rebuilding a systematic parity node according to the principles of the present invention. [Figure 8] 1 is a table comparing the performance levels of different codes. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0048] Throughout the following description, the expression "storage node" is used in a general sense to denote a storage entity, whether it is a single disk or a group of storage devices forming a node. The described embodiments of the invention are applicable to any variation of the distributed storage system shown in FIG. 1, which is merely one example of an environment in which the invention may be implemented. Thus, this example is not limiting and the described principles are applicable to any other environment incorporating a storage system, whether distributed or not, such as cloud systems, data centers, distributed file systems, whether file or object based. The invention is also applicable to non-distributed storage systems, such as "disk arrays". Furthermore, the storage nodes that store data derived from the initial data are referred to as "systemized nodes" and the storage nodes that store the parity function are referred to as "parity nodes".

[0049] To facilitate understanding of the principles of the invention, the encoding method is first described for the specific example of a code (k=10, r=4) and then generalized to any code (k, r). EXAMPLES

[0050] Description of the encoding method for the example code (10,4) 2 shows a representation of the storage of data by application of the encoding method of the invention, based on the example of codes k=10 and r=4. In the following description, the encoding step of the invention can be represented by the expression "Babylon Code" or "Babylon Coding". If the initial data a is divided into k=10 parts (200) or a i ,i∈{1,..,10}, the data block (a1,...,a 10 ), and the data (a1,...,a 10) which is hereinafter referred to as f0(a), f1(a), f2(a), f3(a) or f0(a) and f j (a), r = 4 parity blocks or parity functions f0, f1, f2, and f3, denoted by j ∈ {1, 2, 3}, are added. The parity function f0(a) is called the primary parity function, and the parity function f j (a) is called the secondary parity function. The primary and secondary parity functions are generated by the Babylon encoding (202) of the present invention and stored in the storage node (204).

[0051] Systemized data block a1~a 10 (N1~N 10 ), and the primary f0(a) and secondary f1(a), f2(a), f3(a) parity functions are stored in ten corresponding systematic storage nodes (206), denoted as N 11 ~N 14 The parity data are stored in four corresponding parity storage nodes (208), denoted as

[0052] Figure 3 shows the steps of the inventive encoding method (300) for one embodiment of a code (k = 10, r = 4). The method first divides the initial data a into 10 data blocks (a1,...,a 10 ), which then allows the generation of three data subsets (S1, S2, S3) in a next step (304). Each data subset contains a different data block from the generated ten blocks. In one embodiment, two subsets (S1, S2) contain three data blocks each, and the third subset (S3) contains four data blocks. The first subset S1 contains the first three blocks (a1, a2, a3) taken from the initial data, the second subset S2 contains the next three blocks (a4, a5, a6), and the last subset S3 contains the last four remaining blocks (a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31, a32, a33, a34, a35, a36, a37, a38, a39, a40, a41, a42, a43, a44, a45, a46, a47, a48, a49, a49, a50, a51, a52, a53, a54, a55, a56, a57, a58, a59, a61, a62, a63, a64, a65, a66, a67, a68, a79, a71, a72, a73, a74, a75, a76, a77, a78, a79, a79, a79, a79, a81, a82, a83, a84, a85, a86, a87, a88, a89, a91, a92, a93, a94, a95, a96, a97, a98, a99, a99, a 10 )

[0053] In the next step (306), the method allows generating four coding vectors of length (k=10) corresponding to the four parity nodes. The coding vectors denoted C0 to C4 correspond to the primary coding vector C0 and the three secondary coding vectors C1, C2, C3.

[0054] 4 and 5 detail the steps for generating an encoded vector according to the principles of the present invention.

[0055] FIG. 4 illustrates the generation of a primary coding vector C0 (400) in one embodiment. The primary coding vector C0 is made up of ten primary coding coefficients c 0,1 ~c 0,10 Each primary coding coefficient c 0,i (402-i) corresponds to a non-zero random number (404-i).

[0056] FIG. 5 shows a secondary encoding vector C in one embodiment (500). j (1≦j≦3) is generated. j is the 10 secondary coding coefficients c j,1 ~c j,10 Contains:

[0057] Vector C j To generate i Every block a i is a subset S j If the result is positive (yes branch), the method j,i Block a can be associated with a non-zero random number (506-i). i is a subset S j If it does not belong to (no branch), the method j,i , so that a zero random number (508-i) can be associated with it.

[0058] For example, to generate the encoded vector C1, the method 10Since the data blocks a1, a2, and a3 belong to the subset S1, the method therefore checks whether the coefficient c 1,1 ,c 1,2 and c 1,3 Generate nonzero random numbers for data blocks a4,...,a 10 Since does not belong to S1, this method uses coefficient c 1,4 ...c 1,10 Generate a zero random number associated with .

[0059] Therefore, for the subset S1, the method 1,1 ,c 1,2 ,c 1,3 ,0,0,0,0,0,0,0,0), where c 1,1 , c 1,2 and c 1,3 is a nonzero random number.

[0060] For the subset S2, the method 2,4 ,c 2,5 ,c 2,6 ,0,0,0,0), where c 2,4 , c 2,5 and c 2,6 is a nonzero random number.

[0061] For subset S3, the method 3,7 ,c 3,8 ,c 3,9 ,c 3,10 ), where c 3,7 , c 3,8 ,c 3,9 and c 3,10 is a nonzero random number.

[0062] Returning to FIG. 3, after the step of generating the encoded vector, the method further comprises generating a data block (a1,...,a2) including a primary parity function f0(a) and three secondary parity functions f1(a), f2(a) and f3(a). 10) to generate (308) the four parity functions as linear combinations of

[0063] FIG. 6 shows the first parity function f0(a) and the second parity function f j (a) Detailed generation of j ∈ {1, 2, 3}. The primary parity function (602) is 10 ) and the parity node N 11 Each data block a i The coding coefficient c of the primary coding vector C0(400) is 0,i The first-order parity function f0(a) can be written as - f0(a)=c 0,1 *a1+c 0,2 *a2+c 0,3 *a3+c 0,4 *a4+c 0,5 *a5+c 0,6 *a6+c 0,7 *a7+c 0,8 *a8+c 0,9 *a9+c 0,10 *a 10 Here, the coefficient c 0,1 ,c 0,2 ,...,c 0,10 is a nonzero random number.

[0064] As shown in Figure 6, three quadratic parity functions f j (a) (1≦j≦3) To generate (604), the method first computes three linear functions g j (a) (1≦j≦3) (606) is generated. Each linear function g j (a) is a set of 10 data blocks (a1,...,a 10 ) and the coding vector C j It is a linear combination of (1≦j≦3)(500).

[0065] The linear function g1(a) is a function of 10 data blocks (a1,...,a 10 ) and the coding vector C1, which can be written as follows: - g1(a)=c 1,1 *a1+c 1,2 *a2+c 1,3 *a3

[0066] The linear function g2(a) is a function of 10 data blocks (a1,...,a 10 ) and the coding vector C2, which can be written as follows: - g2(a)=c 2,4 *a4+c 2,5 *a5+c 2,6 *a6

[0067] Similarly, the linear function g3(a) is 10 ) and the coding vector C3, which can be written as follows: - g3(a)=c 3,7 *a7+c 3,8 *a8+c 3,9 *a9+c 3,10 *a 10

[0068] Function g j Once (a) (1≦j≦3) has been generated, the method allows for the generation of secondary parity functions f1(a), f2(a) and f3(a). The secondary parity function f1(a) is obtained by the sum of the primary parity function f0(a) and the primary function g1(a) and can be expressed as follows: - f1(a)=f0(a)+g1(a)

[0069] Similarly, the secondary parity function f2(a) is obtained by adding the primary parity function f0(a) and the primary function g2(a), and can be expressed as follows: - f2(a)=f0(a)+g2(a)

[0070] Similarly, the secondary parity function f3(a) is obtained by adding the primary parity function f0(a) and the primary function g3(a), and can be expressed as follows: - f3(a)=f0(a)+g3(a)

[0071] The quadratic parity functions f1(a), f2(a), and f3(a) are 12 , N 13 and N 14 It is stored in (208).

[0072] Advantageously, the linear functions g1(a), g2(a), g3(a) and the linear parity function f0(a) are generated to be linearly independent of each other. Furthermore, the sum of any two of these functions is also linearly independent of the others. Finally, advantageously, Babylon Codes maintain the same properties as RS Codes, since all data blocks are linearly independent.

[0073] 7a-7c illustrate steps for detecting failures and reconstructing the contents of systemized and parity nodes in accordance with the principles of the present invention.

[0074] As shown in Figure 7a, the method begins when information is available (702) regarding the detection of failures in the storage system, indicating the number of failures (704). If the number of failures is 5 or more, the repair method may be inoperable and the system is considered faulty (706). If the number of failures is between 2 and 4, then 2, 3 or 4 failed nodes can be reconstructed according to known repair methods of erasure code or Reed-Solomon type (708).

[0075] The method claimed by Babylon Code works in the event of failure of a single storage node of a local or distributed storage system. A recovery step allows other storage nodes to retrieve the lost data contained in the failed node and reconstruct a new storage node with the same data. After the failure is detected, the method determines the nature of the failed (710) node, i.e. whether it is a system node or a parity node.

[0076] To facilitate understanding of the principles of the present invention, and without limitation, the reconstruction method is first described for the specific example of a code (k=10, r=4) and then generalized to any code (k, r).

[0077] Description of the decoding method of the invention for an example of a storage system using the code (10,4) Failure occurs at system node N i ,i∈{1,..,10}, i.e. data block a i If it concerns a node storing , the reconstruction (712) is performed according to the method steps described in FIG. 7b.

[0078] The failure occurred on parity node N. i ,i∈{ 11 ,.., 14}, i.e. if it concerns a node storing the parity function, then reconstruction (714) is performed according to the method steps described in FIG. 7c.

[0079] FIG. 7b illustrates the reconfiguration steps of a systemized node of the present invention.

[0080] To explain the method, assume that block a1 located on node N1 is lost and needs to be reconstructed. In a first step (716), the method i Data a i The subset S of data to which j , j∈[1,2,3]. In this example, data block a1 belongs to subset S1 that contains data (a1,a2,a3). In the next step (718), the method 11 Obtaining the data of the primary parity function f0(a) stored in node N 12 The second parity function f(a) corresponding to the subscript of the identified subset S1 stored in the storage node S1 enables retrieval of data of the second parity function f(a). The expression "retrieve data" is used to represent a data transfer operation from the storage node to the data collector. The data collector may be incorporated in a general purpose storage system controller capable of executing the node reconstruction method. The retrieval of data also includes read / write operations between the memory elements of the storage node and the data collector.

[0081] After the data collection step, the method makes it possible to calculate (720) a linear function g(a) associated with a subset of data S1 from the acquired data. In one embodiment, the linear function g j (a) is node N 12 From the quadratic parity function f1(a) located at node N 11 It is obtained by subtracting the first-order parity function f0(a) located at

[0082] In the next step (722), the method enables loading of data blocks (a2, a3) of the subset S1 other than the lost block a1. By subtracting these data from the linear function g1(a), the data a1 is obtained and the primary storage node N1 of the lost data block a1 is reconstructed (724).

[0083] The reconstruction of a node in a1 requires only four data blocks {a2, a3, f0(a), f1(a)}, instead of the 10 blocks required by the conventional RS code, i.e., a 60% saving. Similarly, for any data block a, where i∈{1,2,3}, i The reconstruction of the systemized nodes of also has the index i∈{1,2,3}\{i}, i.e., the reconstruction of the failed node N i Since data blocks other than the data block with index i corresponding to i are used, and data blocks of the primary parity f0(a) and secondary parity f1(a) functions are used, only four blocks are required.

[0084] Any data block a with i∈{4,5,6} i The reconstruction of the systemized node of requires four blocks since it uses data blocks with index i∈{4,5,6}\{i} and uses data blocks of the primary parity f0(a) and secondary parity f2(a) functions.

[0085] Any data block a with i∈{7,8,9,10} iThe reconstruction of the systemized node of requires five blocks since it uses data blocks with index i∈{7,8,9,10}\{i} and uses data blocks of the primary parity f0(a) and secondary parity f3(a) functions.

[0086] FIG. 7c illustrates the parity node reconstruction steps of the present invention.

[0087] Node N i ,i∈[11,14] contains the primary f0(a) and secondary f1(a), f2(a), f3(a) parity functions. The method first selects N nodes whose nodes to be repaired contain the primary parity function f0(a). 11 If yes, the method transfers data f1(a) and the data of the subset S1 including a1, a2, and a3 to node N. 12 , N1, N2 and N3 (728). In the next step (730), the method allows the generation of a linear function g1(a) using the data a1, a2, a3, and then the decoding of the linear parity function f0(a) by subtracting the linear function g1(a) from the parity function f1(a). The method then transfers the linear function g1(a) to the nodes N 11 Make it reconstructible.

[0088] For node i, i∈{1,..,10}, N 11 Repairing requires only four data blocks (f1(a), a1, a2, a3).

[0089] Returning to step (726), if the node to be repaired is a parity node N such that i ∈ [12, 14] i If so, the method is to find the node N 11 Load the data (734) and the subset S i-11 In the next step (736), the method further comprises: i-11 Using the data of linear function g i-11 Generation of (a), and linear parity function f0(a) and linear function g i-11(a) is summed to find the parity function f i-11 The method then enables the node N i ,i∈[12,14], which allows reconstruction (738).

[0090] Therefore, the node N containing the quadratic parity function f1(a) 12 To reconstruct 11 In the first step, the data a1, a2, and a3 of the subset S1 are used to generate the parity function g1(a). Then, the secondary parity function f1(a) is decoded and the data of the subset S1 is loaded (a1 from node N1, a2 from node N2, and a3 from node N3) into the second parity function f1(a) by summing f0(a) and g1(a). 12 Reconstruct.

[0091] Similarly, node N containing the quadratic parity function f2(a) 13 To reconstruct 11 In the first stage, the data a4, a5, and a6 of the subset S2 are used to generate the parity function g2(a). Then, the secondary parity function f2(a) is decoded by summing f0(a) and g2(a) to the node N. 13 Reconstruct.

[0092] Finally, the node N containing the quadratic parity function f3(a) 14 To reconstruct 11 In the first stage, the parity function f0(a) and the data of the subset S3 included in the 10 Then, the secondary parity function f3(a) is decoded by summing f0(a) and g3(a) to obtain the parity function g3(a) at node N. 14 Reconstruct.

[0093] Node N 12 and N13 The repair of node N requires only four data blocks {f0(a), a1, a2, a3} and {f0(a), a4, a5, a6} to be transferred. 14 The repair of f0(a), a7, a8, a9, a 10 Note that this requires forwarding of}.

[0094] Therefore, advantageously, the claimed reconstruction method requires only 4 or 5 data blocks for reconstruction of any node i∈{1,..,14}, which allows a 50%-60% reduction in bandwidth and I / O compared to RS codes.

[0095] The general principle of the encoding method of the present invention is described below for any code (k, r).

[0096] Starting with data of size M as input, the general principle of the invention is to compute k data blocks (a1,...,a2) where each block is of size M / k. k ) to divide the data into nodes N i Each data block a stored in i The size of is fixed as m = M / k.

[0097] The following notation is appropriate for the following descriptions:

number

number

[0098] The Babylon encoding method encodes k data blocks (a1,...,a k ) to S j ,1≦j≦r-1, denoted as (r-1) subsets (S1, S2, ..., S r-1), where k is a multiple of r-1, then these subsets have the same size k / r-1. If k is not a multiple of r-1, then each of the first r-1-q subsets has a size of t f The remaining q subsets contain t c It contains data blocks such that:

number

[0099] The first subset S1 is (a1, .., a tf ) contains the data blocks belonging to the jth subset S j (a (j-1)tf+1 ,...,a jtf ), where 1≦j≦r-1.

[0100] The second step of the method is to extract the primary encoded vector C0 and r-1 secondary encoded vectors C j Generate r coded vectors containing (1≦j≦r-1).

[0101] The primary coding vector C0 is 0,i k coding coefficients c 0,1 ~c 0,k Contains:

[0102] Secondary encoding vector C j is the k coding coefficients c j,1 ~c j,k The secondary coding vector C j To generate i Every block a i is a subset S j If so, the method checks whether the coefficient c j,i associate a nonzero random number with block a i is a subset S j If it does not belong to the coefficient c j,ito be associated with a zero random number.

[0103] Encoding vectors C0~C r-1 The structure is represented as follows: c0=[c 0,1 ,c 0,2 ,..,c 0,k ] c1=[c 1,1 ,c 1,2 ,c 1,tf ,....,0,..,0] c2=[0,..,0,c 2,tf+1 ,..,c 2,2tf ,0,..,0] ... c r-q =[0,..,0,c r-q,(r-q-1)tf+1 ,..,c r-q,(r-q)tc ,0,..,0] c r-q+1 =[0,..,0,c r-q+1,(r-q)tc+1 ,..,c r-q+1,(r-q)tc ,0,..,0] ... c r-1 =[0,..,..,..,0,c r-1,rtc+1 ,..,c r-1,k ]

[0104] After the step of generating the encoded vector, the method further comprises: k ), where f(a) is a linear combination of a primary parity function f0(a) and r-1 secondary parity functions f1(a),..,f r-1 Make it possible to generate r parity functions including (a).

[0105] The primary parity function is k ), with indices k+1, N k+1 Each data block a is stored in the parity node of i The coding coefficient c of the primary coding vector C0 is 0,i The first-order parity function f0(a) can be written as - f0(a)=c 0,1 *a1+c0,2 *a2+......c 0,k *a k Here, coefficient c 0,1 ,c 0,2 ,...,c 0,k is a nonzero random number.

[0106] r-1 quadratic parity functions f j (a) To generate (1≦j≦r−1), the method first selects r−1 linear functions g j (a) All of (1≦j≦r-1) can be generated. Each linear function g j (a) is a set of k data blocks (a1,...,a k ) and the coding vector C j (1≦j≦r-1) is a linear combination of the linear function g j (a) Once (1≦j≦r−1) has been generated, the method further comprises: j (a) is added to obtain the quadratic parity function f j (a), make it possible to generate quadratic parity functions f1(a), f2(a)...fr-1(a) such that 1≦j≦r-1. -f j (a) = f0(a) + g j (a)

[0107] The data blocks and parity functions generated by the encoding of the present invention are stored in the storage nodes of a local or distributed storage system. k ) is a system of k system nodes N i , i∈{1,..,k}, and each of the r parity blocks obtained by the parity function is stored in parity node N i ,i∈{k+1,..,k+r}.

[0108] [Table 1]

[0109] Advantageously, the linear function gj (a), 1≦j≦r−1, and the linear parity function f0(a) are generated to be linearly independent of each other. Furthermore, the sum of any two of these functions is also linearly independent of the others. Finally, advantageously, all data blocks are linearly independent, and Babylon Codes maintain the same properties as RS Codes.

[0110] The general principle of the reconstruction method of the invention is described below for any symbol (k,r). The reconstruction method is initiated when information is available about the detection of a failure in the storage system. The method can be initiated to replicate the contents of a node. The reconstruction method in the event of a failure works when a single storage node in a local or distributed storage system fails. A recovery step allows the retrieval, in other storage nodes, of the lost data contained in the failed node and the reconstruction of a new storage node with the same data.

[0111] If a failure is detected, the method determines the nature of the failed node, ie, whether it is a system node or a parity node.

[0112] Failure occurs at system node N i ,i∈{1,..,k}, i.e. data block a i For a node storing ,the reconstruction is done according to case 1 described below.

[0113] The failure occurred on parity node N. i ,i∈{k+1,..,k+r}, i.e. for nodes that store the parity function, the reconstruction is done according to case 2 described below.

[0114] - Case 1: Node N i ,i∈{1,..,k},reconstruction Node N i a stored in i ∈S j And (1≦j <r)であるデータa i Considering the repair of (1≦i≦k), the method first repairs the node N(k+1 ) and the node N with subscript k + 1 + j (k+1+j) to enable the transfer of the data contained therein. Next, the data f0(a) stored in the node N( k+1 ) with subscript k + 1 is subtracted from the data f (k+1+j) (a) stored in the node N with subscript k + 1 + j to recover the linear function g j (a) associated with the subset S j . The method then enables the transfer of the data of the subset S j \{a j}, i.e., the data other than the data block a i . By using the linear function g i (a), the lost data a j can be decoded. The number of data blocks required for the reconstruction of a i is thus (t i + 1) when i belongs to the first (r - 1 - q) subsets. When i belongs to the last q subsets, the total number of data blocks required is (t f + 1). c

[0115] - Case 2: Reconstruction of the node N i , i ∈ {k + 1,.., k + r} Similar to the previous case, to reconstruct the node N i (k + 1 < i ≤ k + r), the method enables the transfer of the data f0(a) stored in the node N with subscript k + 1 and the data located in the subset S (k+1) . The linear function g i-k+1 (a) is obtained from the data of the subset S i-k+1 . Next, the decoding is performed by obtaining the quadratic function f i-k+1 (a) (actually, f i-k+1 (a) = f0(a) + g i-k+1 (a)) using the linear function f0(a) and the linear function g i-k+1 (a). If (i - k + 1) belongs to the first (r - 1 - q) blocks, (t i-k+1 + 1) is required for repair. If (i - k + 1) belongs to the last q blocks, the total number of data blocks required for repair is (t f ​Note that if (i-k+1)∈{rq,..,r-1}, then repair requires (t c +1) blocks.

[0116] Node N with index k+1 containing the first-order parity function f0(a) k+1 In the particular case of , the method transfers the first subset S1 to generate the linear function g1(a). The method then transfers the first subset S1 to the node N with index k+2 that contains the quadratic parity function f1(a). k+2 The primary parity function f0(a) is decoded by subtracting the primary function g1(a) from the secondary parity function f1(a) (actually, f0(a)=f1(a)-g1(a)). (t f +1) data blocks, the node N with index k+1 containing the first-order parity function f0(a) k+1 The data is obtained.

[0117] In general, the average amount of data transferred and read for reconstruction / repair is given by the following formula, regardless of the type of node.

number

[0118] Note that the description gives an example of a value of r ≥ 3. For a value of r = 1, the Babylon Code functions as a conventional RS code. For a value of r = 2, the data is split into two subsets S1 and S2, where S1 is the first t s blocks, S2 is the last kt s blocks, where

number

[0119] Advantageously, the method of the invention makes it possible to avoid using all the nodes in the reconstruction process. Moreover, the nodes that contribute to the reconstruction do not need to perform any calculations, but simply transfer their content to a data collector where the decoding operation is performed. The data collector may be a new storage node replacing a failed node.

[0120] Further advantageously, the Babylon encoding method reduces reconstruction time compared to matrix-based methods in which all of the k-node data blocks need to be reconstructed.

[0121] 8 is a performance level comparison table comparing the results of different known codes with the results obtained with the Babylon code of the present invention. In table (800), the first column lists the codes that were compared: RS, Regenerator, Exact Regenerator, Hierarchical, Hitchhiker, and Babylon.

[0122] For all codes, we consider files of the same size M bytes that were encoded using the (k=10, r=4) configuration.

[0123] An evaluation was performed for each code in the same storage efficiency column (804) (71%) for different parameters: average repair bandwidth (806), disk I / O (808) and fault tolerance (810). Bandwidth and disk I / O are expressed as a percentage of the size M of the original file. The percentages in the table were calculated taking into account repairs of system nodes and parity nodes.

[0124] The results are as follows. - In the case of RS coding, repairing a single fault requires reading and transferring Mbytes, which is equal to 100% of the underlying size of the file. - For the same storage efficiency, the bandwidth required by the regenerator code and the precise regenerator code was calculated. The bandwidth used to repair a fault is equal to 32.5% on average. However, the disk I / O is not optimized. To repair a single fault, the regenerator code requires that all data stored in the node be read before it can be transferred. - Hierarchical codes optimize both bandwidth and disk I / O. The amount of data read and transferred in the network is equal to 33.57%. However, hierarchical codes do not maintain the same level of fault tolerance as RS codes. In fact, it is not possible to tolerate any four faults using hierarchical codes. - Hitchhiker codes allow optimizing both bandwidth and disk I / O while maintaining the same level of fault tolerance as RS codes: in this case, the amount of data read and transferred is equal to 76.42%. - Babylon Code requires an average of 43.57% of the size of the original file to repair a single failure, both in terms of bandwidth and disk I / O. Babylon Code also allows the system to tolerate the failure of any 4 out of 14 nodes.

[0125] The present invention can be implemented by hardware and / or software elements. The present invention may be available as a computer program product on a computer readable medium. The medium may be electronic, magnetic, optical or electromagnetic. In one embodiment, the method is implemented by a computer. A computer program product is described, the computer program including code instructions that enable the program to execute one or more steps of the method when the program runs on a computer. In one embodiment, an apparatus implementing the present invention includes a computer readable storage medium (RAM, ROM, flash memory or other memory technology, such as a disk medium or other non-transitory computer readable storage medium) encoded with a computer program (i.e. executable instructions) that, when run on one or more processors, performs the functions of the above-described embodiments. As an example of a hardware architecture suitable for implementing the present invention, an apparatus may include a communication bus connected to a central processing unit or microprocessor (CPU, short for Central Processing Unit), which may be "multi-core" or "many-core", a read-only memory (ROM) capable of storing a program required for implementing the present invention, a random access memory or cache memory (RAM) including registers suitable for storing variables and parameters created and modified during execution of said program, and a communication or I / O (input / output) interface suitable for transmitting and receiving data. When the present invention is installed on a reprogrammable computing device (e.g., an FPGA circuit), the corresponding program (i.e., a set of instructions) may be stored in a removable storage medium (e.g., an SD card, or a hard disk, mass storage such as an SSD, etc.) or a non-removable, volatile or non-volatile storage medium, which may be read in part or in whole by a computer or a processor. The computer-readable medium may be transportable or communicable or mobile or transmittable (i.e., via 2G, 3G, 4G, Wifi, BLE, fiber optics, or other communication networks).Reference to a computer program that, in operation, performs any one of the above-mentioned functions is not limited to an application program running on a single host computer. On the contrary, the terms "computer program" and "software" are used in a general sense herein to refer to any type of computer code (e.g., application software, firmware, microcode, or any other form of computer instructions, such as web services or SOA, or via a program interface API) that can be used to program one or more processors to perform aspects of the technology described herein. The computer means or resources may be distributed ("cloud computing"), in particular, possibly in conjunction with or according to peer-to-peer and / or visualization technologies. The software code may be executed on any suitable processor (e.g., a microprocessor) or processor core or set of processors, whether provided on a single computing device or distributed across multiple computing devices (possibly accessible in the environment of the devices). Security technologies (cryptographic processors, authentication, encryption, chip cards, etc.) may be used.

Claims

1. A method for encoding (k, r) pieces of data, comprising the steps of: - The initial data a is divided into k data blocks a of the same size. i (302) dividing the The k data blocks a i Let S be the r-1 disconnected subsets of the data block. j A step of grouping (304) into (1≦j≦r−1); - Each subset S j For each of the subsets S j A linear function g defined as a linear combination of the data blocks assigned to j (a) generating (606); The k data blocks a i The linear parity function f as a linear combination of 0 (a), and each quadratic parity function f j (a) is the first-order parity function f 0 (a) and linear function g j (a) generating r parity functions, including r-1 quadratic parity functions defined as a sum of (604).

2. The step of generating r parity functions (308) comprises the step of generating r encoded vectors (306), the encoded vectors being - k primary coding coefficients c 0,1 ~c 0,k A primary coding vector C 0 and, Each secondary coding vector has k secondary coding coefficients c j,1 ~c j,k r-1 secondary encoded vectors C j 2. The method of claim 1 , comprising: (1≦j≦r−1).

3. Each primary coding coefficient c 0,i corresponds to a non-zero random number, and the secondary coding coefficient c j,i is the data block a i is the subset S j 3. The method of claim 2, wherein the random number corresponds to a non-zero or zero random number depending on whether the random number belongs to

4. The linear function g j The step of generating (a) includes generating k data blocks (a 1 , . . . , a k ) and the secondary encoding vector C j The k secondary coding coefficients c j,1 ~c j,k The method of claim 3 , further comprising generating a linear combination from

5. The method according to any one of claims 1 to 4, wherein k=10 and r=4.

6. A method for storing k+r pieces of data, comprising: k systemized storage devices N i , i∈{1, . . , k}, where i , and r parity storage devices N i , i∈{k+1 6. A method comprising at least one step including the step of storing, in {k+r,...,k+r}, r parity functions obtained according to the data encoding method of any one of claims 1 to 5.

7. A data encoding device comprising means suitable for carrying out the steps of the data encoding method according to any one of claims 1 to 5.

8. k data blocks a i Let k be the system storage devices N i , i ∈ {1, . . . , k}, and r parity functions f j (a) is a set of r parity storage devices N i , i∈{k+1 , . . . , k+r}, the method comprising: i and r parity functions are obtained according to the method of any one of claims 1 to 5, said reconstruction method comprising at least the following steps: - determining (710) whether the storage device from which the content is to be reconstructed is a systematic or parity storage device; said device being a systemized storage device N i , i∈{1, . . . , k}, - which data subset S the data block of said device belongs to j (716), said parity storage device N k+1 and N k+1+j obtain (718) the parity function f j (a) stored in - Said subset S j The linear function g associated with j Calculate (720) (a); - Block a i The subset S other than j 722, said systemized storage device N i , i∈{1, . . . , k} (724); said device being a parity storage device N i , i∈{k+1 , . . , k+r}, determine 726 the index i that identifies the storage device; if said index i is equal to k+1, A secondary parity function f stored in the parity storage device with index i=k+2 1 (a) and the subset S 1 The data block a i Obtain (728), ・Subset S 1 The linear function g associated with 1 (a) is calculated (730) to obtain the first-order parity function f 0 (a) is decoded to obtain Reconstructing the contents of the parity store with index i=k+1 (732); if the index i is greater than k+1, The primary parity function f stored in the parity storage unit with index i=k+1 0 (a) and the subset S i-k+1 The data block a i (734), ・Subset S i-k+1 The linear function g associated with i-k+1 Calculate (a) (736) the quadratic parity function f i-k+1 (a) is decoded to obtain - Reconstructing (738) the contents of said parity stores for index i>k+1.

9. The method of claim 8 , wherein obtaining the parity function comprises transferring data from a corresponding storage device to a data collection device.

10. To reconstruct systemization node i, where i ∈ {1, . . . , k}, we use the subset S j The linear function g associated with j The step of calculating (a) is performed by the parity storage device N k+1+j The parity storage device N k+1 10. The method of claim 8 or 9, further comprising the step of subtracting a first-order parity function stored in

11. To reconstruct parity node i, where i=k+1, we use the subset S 1 The linear function g associated with 1 The step of calculating (a) is 1 and the coding vector C 1 , k+r}, and generating a linear combination from the subset S j The linear function g associated with j The step of calculating (a) is j and the secondary coding vector C j A method according to any one of claims 8 to 10, comprising generating a linear combination from

12. The step of reconstructing the content of the systemized storage device N i is carried out by using the linear function g j (a) to the data block a i The method according to any one of claims 8 to 11, further comprising the step of:

13. The step of reconstructing the contents of the parity storage device for i=k+1 comprises: 1 (a) includes a step of decoding the secondary parity function of the parity store with index i=k+1, and reconstructing the contents of the parity store with i>k+1 by decoding the calculated primary function g i-k+1 A method according to any one of claims 8 to 11, comprising the step of decoding the secondary parity functions of the parity stores for indices i>k+1 from (a).

14. k data blocks a i Let k be the system storage devices N i , i ∈ {1, . . . , k}, and r parity functions f j (a) is a set of r parity storage devices N i , i∈{k+1 14. An apparatus for reconstructing the contents of a storage device of a plurality of devices storing k data blocks and r parity functions in a plurality of storage devices {k,...,k+r}, wherein the k data blocks and r parity functions are obtained according to the method of any one of claims 1 to 5, said apparatus comprising means suitable for performing the steps of the method of any one of claims 8 to 13 for reconstructing the contents of the storage device.

15. A computer program comprising a program, the program comprising code instructions enabling the steps of the method according to any one of claims 1 to 5 to be carried out and / or the program comprising code instructions enabling the steps of the method according to any one of claims 8 to 13 to be carried out when the program is run on a computer.

16. An integrated circuit of ASIC or FPGA type comprising at least one device according to claim 7 and / or claim 14.

17. Use of the content reconstructing method according to any one of claims 8 to 13 in a distributed storage system, said distributed storage system comprising a plurality of data storage nodes capable of storing data encoded according to the encoding method according to any one of claims 1 to 5.

18. Use of the content reconstructing method according to any one of claims 8 to 13 in a local storage system, said local storage system comprising a data storage disk capable of storing data encoded according to the encoding method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multiple erasure code for distributed storage

    JP2018507462A

  • Multiple Erasure Codes for Distributed Storage

    US20160211869A1

  • Distributed storage system

    WO2016052665A1