Method for constructing storage rack-aware regeneration code

By building storage rack-aware regeneration codes, the encoding framework is used to convert MSR codes into MSRR codes, solving the optimal compromise between cross-rack repair bandwidth and storage redundancy, and achieving lower cross-rack repair bandwidth and the simplified encoding process improves the storage efficiency of the data center.

CN111796966BActive Publication Date: 2024-11-05CLOUD LINK TECH (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing storage systems have difficulty achieving optimal compromises between cross-rack repair bandwidth and storage redundancy, especially in hierarchical data centers. Traditional erasure coding repair methods increase network bandwidth and I/O cost.

Method used

By building storage rack-aware regeneration codes, the encoding framework is used to convert MSR codes into MSRR codes, reducing cross-rack repair bandwidth, and minimizing cross-rack repair bandwidth under the conditions of minimum storage redundancy, meeting the MDS characteristics.

Benefits of technology

It achieves lower cross-rack repair bandwidth, simplifies the encoding process, reduces computing complexity, and minimizes cross-rack repair bandwidth under minimal storage redundancy, improving storage efficiency in data centers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111796966B_ABST
    Figure CN111796966B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the field of improvement of coding regeneration technology, and provides a method for constructing a storage rack-aware regeneration code, including: S1, calculating each global coding symbol by encoding all B data symbols; S2, selecting #imgabs0# data symbols from the B data symbols for encoding to calculate #imgabs1# intermediate coding symbols and grouping; S3, calculating #imgabs6# local coding symbols by encoding #imgabs2# intermediate coding symbols and all #imgabs5# global coding symbols of #imgabs4# nodes stored in #imgabs3# nodes of the corresponding rack. The regeneration code is simple to construct, and the MSRR code has fewer sub-packets than the existing MSRR code, has low computational complexity, high computational accuracy, and can minimize the cross-rack repair bandwidth under the condition of minimum storage redundancy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of improvement of encoding and regeneration technologies, and particularly relates to a construction method of a storage rack-aware regenerated code. Background Art

[0002] Compared with traditional replication, erasure codes are widely adopted in modern storage systems to provide higher fault tolerance and lower storage redundancy. The most common erasure code is the Reed-Solomon (RS) code, which encodes a data file consisting of k symbols (i.e., the unit of the erasure encoding operation) in a finite field to obtain n symbols (where k < n), and these n symbols are distributed on n different nodes. The RS code satisfies the maximum distance separable (MDS) property, that is, the data file can be reconstructed from any k of the n nodes. However, when a node fails, the traditional repair method of the RS code is to first reconstruct the data file and then encode it to reconstruct the lost symbols. This increases the network bandwidth and I / O cost.

[0003] [2] proposed the regenerated code (RC) to minimize the network bandwidth for repairing a single-node failure under a given storage cost. In [2], the RC achieved an optimal trade-off between the repair bandwidth (i.e., the total number of symbols transmitted when repairing a failed node) and the storage redundancy. Two special RC structures, namely the minimum storage regeneration (MSR) code and the minimum bandwidth regeneration (MBR) code, correspond to the minimum storage regeneration point and the minimum bandwidth regeneration point respectively on the optimal trade-off curve. Subsequent studies [3]-[8] proposed different structures of the MSR code and the MBR code.

[0004] Modern data centers often implement a hierarchical topology by organizing nodes in racks, where the cross-rack communication cost is much higher than the intra-rack communication cost [9]. Although the RC achieves the minimum repair bandwidth in a flat network, its cross-rack repair bandwidth (i.e., the total number of symbols transmitted across racks during single-node repair) is generally suboptimal. This has inspired some research dedicated to solving the repair problem in hierarchical data centers. For example, under the condition of achieving the minimum storage redundancy, the dual regenerated code (DRC)

[10] ,

[11] minimizes the cross-rack repair bandwidth; the rack-aware regenerated code (RRC)

[12] generalizes the DRC and achieves an optimal trade-off between the storage redundancy and the cross-rack repair bandwidth.

[0005] Specifically, RRC

[12] evenly divides n nodes into r racks, with each rack having n / r nodes, where n is a multiple of r. It encodes a data file of B symbols into nα symbols, which are stored in n nodes, with each node having α symbols. It satisfies the MDS property, meaning that any k of the n nodes can reconstruct the data file. Suppose a node fails and its α symbols are lost. To repair the α lost symbols, RRC first identifies a new node in the same rack as the failed node (referred to as the home rack). The new node first reads the (n / r - 1)α symbols stored in the n / r - 1 surviving nodes located in the home rack and selects d (d < r) other racks, downloading β symbols from each rack. Then the cross-rack repair bandwidth is dβ, which is the total number of symbols downloaded from d other racks. The optimal trade-off between the cross-rack repair bandwidth dβ and the storage redundancy α is:

[0006]

[0007] Here In the optimal trade-off of formula (1), there are two extreme points, called the Minimum Storage Rack-Aware Regeneration point (MSSR) and the Minimum Bandwidth Rack-Aware Regeneration point (MSSB), corresponding to minimum storage and minimum cross-rack repair respectively. The MSRR point corresponds to

[0008]

[0009] The MBRR point corresponds to

[0010]

[0011] Note that when r = n, the MSRR code and the MBRR code reduce to the MSR code and the MBR code respectively.

[0012] References

[0013] [1] I.S. Reed and G. Solomon, “Polynomial Codes over Certain Finite Fields,” Journal of the Society for Industrial & Applied Mathematics, vol. 8, no. 2, pp. 300–304, 1960.

[0014] [2] A. Dimakis, P. Godfrey, Y. Wu, M. Wainwright, and K. Ramchandran,

[0015] “Network Coding for Distributed Storage Systems,”IEEETrans.Information Theory,vol.56,no.9,pp.4539–4551,Sep.2010.

[0016] [3]I.Tamo,Z.Wang,and J.Bruck,“Zigzag Codes:MDS Array Codes withOptimal Rebuilding,”IEEE Trans.Information Theory,vol.59,no.3,pp.

[0017] 1597–1616,2012.

[0018] [4]K.V.Rashmi,N.B.Shah,and P.V.Kumar,“Optimal Exact-RegeneratingCodesfor Distributed Storage at the MSR and MBR Points via a Product MatrixConstruction,”IEEE Trans.Information Theory,vol.57,no.8,pp.5227–5239,August2011.

[0019] [5]H.Hou,K.W.Shum,M.Chen,and H.Li,“BASIC Codes:Low ComplexityRegeneratingCodes for Distributed Storage Systems,”IEEE Trans.InformationTheory,vol.62,no.6,pp.3053–3069,2016.

[0020] [6]J.Li,X.Tang,and C.Tian,“A Generic Transformation for OptimalRepair Bandwidth and RebuildingAccess in MDS Codes,”in Proc.IEEEInt.Symp.Inf.Theory,2017,pp.1623–1627.

[0021] [7]M.Ye and A.Barg,“Explicit Constructions of High-Rate MDS ArrayCodes with Optimal Repair Bandwidth,”IEEE Trans.Information Theory,vol.63,no.4,pp.2001–2014,2017.

[0022] [8]H.Hou,P.P.Lee,and Y.S.Han,“Multi-Layer Transformed MDS Codes withOptimal Repair Access and Low Sub-Packetization,”arXiv preprint arXiv:1907.08938,2019.

[0023] [9]M.Isard,V.Prabhakaran,J.Currey,U.Wieder,K.Talwar,and A.Goldberg,“Quincy:Fair schedulingfor distributed computingclusters,”in Proc.of ACMSOSP,2009.

[0024]

[10] Y.Hu,P.P.C.Lee,and X.Zhang,“Double Regenerating Codes forHierarchical Data Centers,”in Proc.IEEE Int.Symp.Inf.Theory(ISIT),2016,pp.245–249.

[0025]

[11] Y.Hu,X.Li,M.Zhang,P.P.C.Lee,X.Zhang,P.Zhou,and D.Feng,“OptimalRepair Layering for Erasure-Coded Data Centers:From Theory to Practice,”ACMTransactions on Storage,vol.13,no.4,pp.33–56,2017.

[0026]

[12] H.Hou,P.P.Lee,K.W.Shum,and Y.Hu,“Rack-Aware Regenerating Codesfor Data Centers,”IEEE Trans.Information Theory,vol.65,no.8,pp.4730–4745,Aug.2019.

[0027]

[13] Z.Chen and A.Barg,“Explicit Constructions of MSR Codes forClustered Distributed Storage:The Rack-Aware Storage Model,”Accepted in IEEETrans.Information Theory,2019.

[0028]

[14] L.Jin,G.Luo,and C.Xing,“Optimal Repairing Schemes for ReedSolomon Codes with Alphabet Sizes Linear in Lengths under the Rack AwareModel,”arXiv preprint arXiv:1911.08016,2019.

[0029]

[15] B.Gaston,J.Pujol,and M.Villanueva,“A Realistic DistributedStorage System That Minimizes Data Storage And Repair Bandwidth,”arXivpreprint arXiv:1301.1549,2013.

[0030]

[16] J.Pernas,C.Yuen,B.Gaston,and J.Pujol,“Non-Homogeneous Two-RackModel for Distributed Storage Systems,”in Proc.IEEE Int.Symp.Inf.Theory,2013,pp.1237–1241.

[0031]

[17] M.A.Tebbi,T.H.Chan,and C.W.Sung,“A Code Design Framework forMulti-Rack Distributed Storage,”in Proc.IEEE Inf.Theory Workshop(ITW),2014,pp.55–59.

[0032]

[18] J.-y.Sohn,B.Choi,S.W.Yoon,and J.Moon,“Capacity of ClusteredDistributed Storage,”IEEE Trans.Information Theory,vol.65,no.1,pp.81–107,2019.

[0033]

[19] N.Prakash,V.Abdrashitov,and M.Medard,“The Storage versus Repair-Bandwidth Trade-off for Clustered Storage Systems,”IEEE Trans.InformationTheory,vol.64,no.8,pp.5783–5805,August 2018.

[0034]

[20] Y.Wu and A.G.Dimakis,“Reducing Repair Traffific for ErasureCoding Based Storage via Interference Alignment,”in Proc.IEEEInt.Symp.Inf.Theory,Seoul,July 2009,pp.2276–2280.

[0035]

[21] R.Motwani and P.Raghavan,Randomized Algorithms.CambridgeUniversity Press,1995.

[0036]

[22] H.Hou and P.P.Lee,“Binary MDS Array Codes with Optimal Repair,”Accepted in IEEE Trans.Information Theory,2019.

[0037]

[23] H. Hou, P. P. C. Lee, Y. S. Han, and Y. Hu, “Triple-Fault-Tolerant Binary MDS Array Codes with Asymptotically Optimal Repair,” in Proc. IEEE Int. Symp. Inf. Theory, Aachen, June 2017.

[0038]

[24] H. Hou, Y. S. Han, P. P. Lee, Y. Hu, and H. Li, “A New Design of Binary MDS Array Codes with Asymptotically Weak-Optimal Repair,” IEEE Trans. Information Theory, vol. 65, no. 11, pp. 7095–7113, 2019.

[0039]

[25] E. E. Gad, R. Mateescu, F. Blagojevic, C. Guyot, and Z. Bandic,

[0040] “Repair Optimal MDS Array Codes over GF(2),” in Proc. IEEE Int. Symp. Inf. Theory, 2013, pp. 887–891.

[0041]

[26] H. Hou and Y. S. Han, “A New Construction and an Efficient Decoding Method for Rabin-Like Codes,” IEEE Trans. Communications, vol. 66, no. 2, pp. 521–533, 2018.

[0042]

[27] H. Hou, Y. S. Han, K. W. Shum, and H. Li, “A Unified Form of EVEN-ODD and RDP Codes and Their Efficient Decoding,” IEEE Trans. Communications, vol. 66, no. 11, pp. 5053–5066, 2018. Summary of the Invention

[0043] The purpose of the present invention is to provide a method for constructing a storage rack-aware regeneration code, aiming to solve the above-mentioned technical problems.

[0044] The present invention is implemented by providing a method for constructing a storage rack-aware regeneration code, wherein the method for constructing the storage rack-aware regeneration code comprises:

[0045] S1. Calculate each global coding symbol by encoding all B data symbols;

[0046] S2, selecting mα data symbols from B data symbols for encoding to calculate rα intermediate encoding symbols and grouping them;

[0047] S3, calculate α local coding symbols by encoding each group of α intermediate coding symbols and all (n / r-1)α global coding symbols of n / r-1 nodes stored in n / r nodes of the corresponding rack;

[0048] Among them, B represents the number of data symbols corresponding to the file, r represents the number of racks in the storage system, α represents the number of symbols stored in each node, n represents the number of nodes in the storage system, and m represents the number of racks storing data symbols.

[0049] A further technical solution of the present invention is: in step S1, n / r-1 nodes are selected from each r rack, and the obtained (nr)α global coding symbol is stored in the selected nr nodes, and each node stores the α global coding symbol.

[0050] A further technical solution of the present invention is: in the step S2, the selected data symbols are encoded using the MSR code to calculate intermediate coding symbols and group them.

[0051] A further technical solution of the present invention is: in the step S3, the calculated α local coding symbol is stored in the remaining nodes of the corresponding rack.

[0052] A further technical solution of the present invention is: in step S2, the rα intermediate coding symbols are divided into r groups, each group has α symbols and each group corresponds to a different rack.

[0053] A further technical solution of the present invention is: in a finite field greater than When , the B data symbol can be reconstructed according to any k of the n nodes, where k represents the number of nodes storing the data symbol.

[0054] A further technical solution of the present invention is: converting the MSR code into a corresponding MSRR code having the minimum cross-rack repair bandwidth for any node according to the constructed regeneration code.

[0055] The beneficial effects of the present invention are as follows: the regeneration code is simple to construct, the MSRR code has fewer sub-packets than the existing MSRR code, the calculation complexity is low, the calculation accuracy is high, and the cross-rack repair bandwidth can be minimized under the condition of minimum storage redundancy. DETAILED DESCRIPTION

[0056] A general coding framework is proposed, which can convert MSR codes into MSRR codes with minimal cross-rack repair bandwidth. Previous studies [3]-[8] proposed different MSR code structures. Therefore, we can obtain as many MSSR code structures as available MSR code structures through our coding framework. To this end, we can obtain a series of MSRR code structures for all admissible parameters by applying our coding framework to existing MSR codes [7], [8] that support all admissible parameters. In particular, the MSRR code structures obtained from our coding framework have much lower subpacketization α than existing MSRR codes

[13] .

[0057] The main idea of ​​our coding framework is as follows. Let MSR(n,k,d) denote an MSR code where any k out of n nodes can reconstruct all data symbols and each node can be repaired by connecting d nodes. Therefore, we can repair any node of the MSR(r,m,d) code with a repair bandwidth dα / (d-m+1), which is equal to the cross-rack repair bandwidth of the MSRR(n,k,r,d) code (i.e., any m out of r nodes can reconstruct all data symbols). Therefore, we can store rα symbols of the MSR(r,m,d) code in r nodes, where each node is selected from each rack to preserve the minimum cross-rack repair bandwidth of the MSRR(n,k,r,d) code, and at the same time, we ensure that the MDS property is satisfied by appropriately constructing the coded symbols.

[0058] There are several exact repair structures for MSRR codes

[10] ,

[11] ,

[13] and MBRR codes

[12] in the literature; exact repair here means that the symbols lost in the failed node are the same as the symbols repaired to the new node. The DRC in

[10] ,

[11] can be seen as a special construction of MSRR codes with some special parameters, while Hou et al.

[12] proposed constructions for MBRR codes for all admissible parameters (n, k, r, d) and for MSRR codes for all parameters satisfying α = 1. Chen and Barg

[13] proposed a family of MSRR structures that minimizes the cross-rack repair bandwidth for all admissible parameters, but at the cost of incurring an extremely high level of subpacketization (i.e., the size of α). Jin et al.

[14] designed a repair scheme for RS codes over certain specific finite fields that minimizes the cross-rack repair bandwidth of MSRR codes, but the structure cannot support all admissible parameters. Note that when kr / n is an integer, the cross-rack repair bandwidth of MSRR codes is the same as that of MSR codes; in other words, if kr / n is an integer, all existing MSR codes can be regarded as MSRR codes. Therefore, in this paper, we focus on the exact repair structure of MSRR codes when kr / n is not an integer.

[0059] Several studies have focused on reducing the cross-rack repair bandwidth in rack-based data centers in different settings, such as the dual-rack setting

[15] ,

[16] or the setting based on locally repairable codes

[17] . Two studies closely related to RRC are those by Sohn et al.

[18] and Prkash et al.

[19] . The repair models in RRC and

[18] are different: RRC allows encoding of symbols within the same rack during repair, but this is not allowed in

[18] . For the model in

[19] , the MDS property is not satisfied; the reason is that repairing a data file requires retrieving data from a certain number of racks, while the MDS property (i.e., any k out of n nodes can reconstruct the data file) is not a necessary condition.

[0060] A coding framework is proposed, which can transform any MSR code structure into the corresponding MSSR code structure.

[0061] Framework Design

[0062] Recalling the MSRR code, which contains B data symbols, according to formula (2) we have

[0063] B=kα=k(d-m+1)β.

[0064] In addition, there are three types of encoding symbols: (1) global encoding symbols, which are generated by the linear combination of all B data symbols; (2) local encoding symbols, which are generated by the linear combination of symbols within the rack; (3) intermediate encoding symbols, which are generated in the middle of the operation. The global and local encoding symbols are finally stored, while the intermediate encoding symbols are used for calculation and are not stored.

[0065] We first proposed a brief overview of the coding framework as follows:

[0066] We compute (nr)α global encoding symbols by encoding all B data symbols. We select n / r-1 nodes from each r rack (i.e., a total of nr nodes). We store the resulting (nr)α global encoding symbols in the selected nr nodes, with each node storing α global encoding symbols.

[0067] We select mα from B data symbols and encode the selected mα data symbols using MSR(r,d,m) code to calculate rα intermediate coded symbols. We divide the rα intermediate coded symbols into r groups, each with α symbols. Each group corresponds to a different rack.

[0068] For each group, we compute α local encoding symbols by encoding α intermediate encoding symbols and all (n / r-1)α global encoding symbols of n / r-1 nodes stored in n / r nodes of the corresponding rack. The computed α local encoding symbols are stored in the remaining nodes of the corresponding rack.

[0069] Next we will elaborate on the details of our coding framework.

[0070] [s 1 s 2 …s B ]

[0071] represents the B data symbol. We first calculate the (nr)α global encoding symbol, using c 1 ,c 2 ,…,c (n-r)α It is calculated as follows:

[0072] [c 1 c 2 …c (n-r)α ]=[s 1 s 2 …s B ]Q,

[0073] Here Q is a B×(nr)α matrix of rank (nr)α. The resulting (nr)α global coded symbols are then stored in nr nodes in r racks, where we select n / r-1 nodes from each r rack and each node stores α symbols. In general, we can choose Q to be a Cauchy matrix or a Vandermonde matrix so that any k of the nr nodes are sufficient to reconstruct the B data symbols (nr>k).

[0074] Let P be an mα×rα coefficient matrix (rank mα) of an MSR(r,m,d) code, where the lth column is represented as We calculate the intermediate code symbol rα through the MSR (r, m, d) code and use g 1 ,g 2 ,…,g rα It is calculated as follows:

[0075] [g 1 g 2 …g rα ]=[s 1 s 2 …s mα ]P.

[0076]

[0077] Example of MSRR code with (n,k,r,d)=(12,8,4,3)

[0078] We divide the generated rα intermediate coded symbols into r groups, each with α symbols, and the i-th (i=1,2,…,r) group contains α symbols g (i-1)α+1 ,g (i-1)α+2 ,…,g iα According to the MDS property of MSR (r, m, d) code, we can reconstruct mα data symbols s from m groups of r groups. 1 ,s 2 ,…,s mα In addition, according to the repair process of MSR (r, m, d) code, we can reconstruct α intermediate coded symbols in any group by downloading β symbols from d groups selected from r-1 groups.

[0079] Let φ be a ((n / r-1)α+1)×rα matrix, the i-th (i=1,2,…,rα) column can be expressed as

[0080]

[0081] We compute α local encoding symbols, each of which is the encoding symbol g (h-1)α+iand the linear combination of all (n / r-1)α symbols of n / r-1 nodes stored in rack h, where h = 1, 2, …, r, that is,

[0082]

[0083] Here i = 1, 2, ..., α. The calculated α local encoding symbols are stored in the remaining nodes in rack h (recall that the other n / r-1 nodes are used to store global encoding symbols).

[0084] The MSRR code example of (n,k,r,d)=(12,8,4,3) shows an example of (n,k,r,d)=(12,8,4,3) and β=1. Then we have And B = 16. The 16 data symbols are s 1 ,s 2 ,…,s 16 First we calculate (nr)α=16 global code symbols c by multiplying 16 data symbols and a 16×16 Cauchy matrix 1 ,c 2 ,…,c 16 , the global coding symbols will be stored in two nodes in each rack. Then, we create an MSR (r = 4, m = 2, d = 3) code by encoding mα = 4 data symbols. Here, we use the MSR code in

[20] to calculate rα = 8 intermediate coding symbols:

[0085]

[0086] Finally, we compute and store the following α = 2 local encoding symbols

[0087]

[0088] In the remaining nodes in h (h=1,2,3,4) racks.

[0089] Repair method

[0090] We now show that we can recover the α symbols stored in any node by selecting other d racks, downloading β symbols from each rack separately and accessing all other (n / r-1)α symbols in the main rack.

[0091] Assume that a node in rack f fails, where f∈{1,2,…,r}. The new node connects to any d helper racks h with i=1,2. i (i=1,2,…d). Review rack h i The following αn / r symbols are stored:

[0092]

[0093] Therefore, we can use the rack h i , and retrieve the following α symbols:

[0094]

[0095] Review 1 g 2 … g rα ] is the codeword of MSR(r,m,d) code. According to the repair scheme of MSR(r,m,d) code, we obtain the codeword of MSR(r,m,d) code by 1 ,h 2 ,...,h d ) Download β symbols to repair the following α symbols:

[0096] g (f-1)α+1 ,g (f-1)α+2 ,…,g (f-1)α+α . (3)

[0097] Once we obtain the α symbols in formula (3), we can recover the α symbols lost in rack f by accessing the other (n / r-1)α symbols stored in rack f and the symbols in formula (3). Therefore, we can select d nodes from the rack, download β symbols from each node to repair any failed node, and store the repair data in the new node. The cross-rack repair bandwidth is optimal.

[0098] MDS Features

[0099] We first review the Schwartz-Zippel lemma before showing the property of MDS (i.e., that a data file can be reconstructed from any k of n nodes).

[0100] Lemma 1. (Schwartz-Zippel

[21] ) Let Q(x 1 ,...,x n )∈F q [x 1 ,...,x n ] is a non-zero multivariate polynomial with total degree d. Let r 1 ,...,r n is from a finite field F q are randomly and uniformly selected from a subset S of , then:

[0101]

[0102] The next theorem shows that the MDS property can be satisfied when the domain size is large enough.

[0103] Lemma 2. If the size of the finite field is greater than

[0104]

[0105] Then any k nodes can reconstruct the data symbol B.

[0106] Proof: We need to prove that any k of the n nodes can reconstruct the B data symbols. Assume that the data collector is connected to k nodes. If each of the selected k nodes stores the global coding symbols, then we can get the B data symbols, because any square submatrix of the Cauchy matrix is ​​non-singular. Consider that the data collector is connected to kl nodes storing global coding symbols and l nodes storing local coding symbols, where l = 1, 2, …, min (k, r). The resulting B = kα can be represented by a B×B coding matrix. If we regard each entry (column) of P and Φ as a non-zero variable, then we can determine that the determinant of B×B is a non-zero polynomial whose total degree is at most B, with a total of

[0107] options.

[0108] The multiplication of all determinants is a polynomial of total degree at most (5). Therefore, by the Schwarz-Zippel Lemma, if the finite field size is greater than the value in equation (5), then B data symbols can be decoded from any k nodes.

[0109] Although the upper bound of the field size in Theorem 2 is exponential in k, we can directly check by computer search whether there is a smaller field on which k nodes can reconstruct the B-data symbol. For example, in the case of (n, k, r, d) = (12, 8, 4, 3), when the finite field size is 41, we can always find matrices P and Φ such that any k nodes can reconstruct the B-data symbol by computer search.

[0110] Examples

[0111] Continuing with the example of the MSRR code with (n,k,r,d)=(12,8,4,3), we can recover two symbols in any node by downloading three symbols from the other three racks. Suppose the node storing the locally encoded symbols in the first rack fails. We need to recover the following two symbols:

[0112]

[0113] Recall that the second rack stores the following six symbols:

[0114] g 3 φ 1,3+c 5 f 2,3 +c 6 f 3,3 +c 7 f 4,3 +c 8 f 5,3 ,

[0115] g 4 f 1,4 +c 5 f 2,4 +c 6 f 3,4 +c 7 f 4,4 +c 8 f 5,3 ,

[0116] c 5 ,c 6 ,c 7 ,c 8 .

[0117] The second machine can be calculated first:

[0118] g 3 f 1,3 =(g 3 f 1,3 +c 5 f 2,3 +c 6 f 3,3 +c 7 f 4,3 +c 8 f 5,3 )

[0119] -(c 5 f 2,3 +c 6 f 3,3 +c 7 f 4,3 +c 8 f 5,3 ),

[0120] g 4 f 1,4 =(g 4 f 1,4 +c 5 f 2,4 +c 6 f 3,4 +c 7 f 4,4 +c 8 f 5,4 )

[0121] -(c 5 f2,4 +c 6 φ 3,4 +c 7 φ 4,4 +c 8 φ 5,4 ),

[0122] Then due to φ 1,3 ≠0,φ 1,4 ≠0, we can calculate g 3 ,g 4 Perform the same steps for the third and fourth racks. Rack three can calculate g 5 ,g 6 and rack four can calculate g 7 ,g 8 Finally, the second rack sends a symbol g 3 +g 4 =s 3 +s 4 To the new node, the third rack sends a symbol g 5 +g 6 =(s 1 +s 3 )+(2s 2 +s 4 ) to the new node and the fourth rack sends a symbol g 7 +g 8 =(2s 1 +s 3 )+(2s 2 +s 4 ) to the new node. We can move (s 1 +s 3 )+(2s 2 +s 4 ) and (2s 1 +s 3 )+(2s 2 +s 4 ) 3 +s 4 Eliminate. Then solve for g from the two linearly independent equations 1 =s 1 and g 2 =s 2 Therefore, the new node can be obtained from the symbol g 1 ,g 2 ,c 1 ,c 2 ,c 3 ,c 4 Restore the following two symbols of failed nodes:

[0123] g 1 φ1,1 +c 1 φ 2,1 +c 2 φ 3,1 +c 2 φ 4,1 +c 4 φ 5,1

[0124] g 2 φ 1,4 +c 1 φ 2,2 +c 2 φ 3,2 +c 3 φ 4,2 +c 4 φ 5,2

[0125] Another node can be recovered similarly by downloading three symbols from the other three racks.

[0126] discuss

[0127] Low computational complexity is another practical issue in data centers. One way to reduce computational complexity is to replace intra-domain operations with XOR operations and the corresponding codes are called binary MDS array codes. Although we have given the coding framework of MSR codes over finite fields, we can replace MSR codes over finite fields with binary MDS array codes with minimum repair bandwidth; the idea is to replace all intra-domain operations with cyclic shifts and XOR operations to obtain a coding framework that can convert binary MDS array codes with minimum repair bandwidth into MSRR codes with lower computational complexity. Some existing constructions of binary MDS array codes with minimum or asymptotically minimum repair bandwidth can be found in previous works

[22] -

[25] .

[0128] When the B data symbol needs to be retrieved, we can connect k nodes from the m+1 rack. In the m+1 rack, all mn / r nodes in any m rack and the k-mn / r nodes storing the global coding symbols in the remaining racks are connected. Using the above k nodes, existing efficient decoding methods can be adopted in the decoding process. For example, assume that the connected k nodes are the mn / r nodes from the first rack and the k-mn / r nodes of the m+1th rack storing the global coding symbols. Then rack h (h = 1, 2, ..., r) can access all αn / r symbols and obtain the following αn / r symbols:

[0129] g (h-1)α+1 ,g (h-1)α+2 ,…,g (h-1)α+α ,

[0130] c (h-1)(n / r-1)α+1 ,c(h-1)(n / r-1)α+2 ,…,c h(n / r-1)α .

[0131] Review 1 ,g 2 ,…,g rα ] is the codeword of the MSR(r,m,d) code. So we can get the symbol [g 1 ,g 2 ,…,g mα ] to retrieve all mα data symbols and all rα symbols of MSR(r,m,d). In the m+1th rack, the (k-mn / r)α global variables stored in the k-mn / r nodes are:

[0132] c ((2m+1)(n / r)+1-k)α+1 ,c ((2m+1)(n / r)+1-k)α+2 ,...,c (m+1)(n / r)α .

[0133] Given the mα(n / r-1) global encoding symbols stored in the first m racks and the mα data symbols to be decoded, we can obtain all the other B-mα data symbols by solving the (B-mα)×(B-mα) linear system whose encoding matrix is ​​a Cauchy matrix or a Vandermonde matrix. Existing decoding methods that solve the Cauchy linear system

[26] or the Vandermonde linear system

[27] can be used to reduce the decoding complexity.

[0134] By applying the proposed coding framework, we can convert existing MSR codes into corresponding MSRR codes with minimum cross-rack repair bandwidth for any node. It is worth mentioning that low-rate (k / n≤0.5) MSR codes, such as the product matrix construction of n=2k-1,2k [4], can be converted into high-rate (k / n>0.5) MSRR codes, because kr / n is not an integer. For example, in the example of MSRR code with (n,k,r,d)=(12,8,4,3), we convert the MSR(n=4,k=2) code (low rate) into the MSRR code with (n,k,r,d)=(12,8,4,3) (high rate).

[0135] Compare

[0136] In this section, we compare the MSRR codes that apply the coding framework proposed in Section 2 with the structures of existing MSRR codes in

[10] -

[14] , comparing the number of sub-packets and supported parameters of both sides.

[0137] Lemma 3. Apply the coding framework given in Section 2 to the MSR codes in [4], [6], and [8], then the number of subpackets of their MSRR codes is d-m+1, (d-m+1) respectively. r / (d-m+1) and

[0138] Proof: According to the coding framework given in Section 2, the sub-packetization of our MSRR code is the same as the used MSR(r,m,d) code. Recall that the sub-packetization of MSR(r,m,d) in [4], [6] and [8] is d-k+1, (d-k+1) respectively. n / (d-k+1) and Therefore, the MSR codes in [4], [6] and [8] apply the coding framework given in Section 2, and the number of sub-packets of their MSRR codes are d-m+1, (d-m+1) respectively. r / (d-m+1) and

[0139] Table 1 shows the comparison between existing constructions of MSRR codes in terms of supported parameters and sub-packetization. Among the existing constructions, only the code in

[13] can support all admissible parameters, while the other constructions focus on only some parameters. The number of sub-packets of the MSRR code in

[13] is (d-m+1) r , which is greater than the number of subpackets required for our MSRR code obtained by applying our coding framework to the MSR codes of [4], [6], and [8].

[0140] Table II shows the number of subpackets of the proposed code and the code in

[13] under some parameters.

[0141] Table 1: Comparison of related work

[0142]

[0143]

[0144] Table 2: The number and number of subpackets of our code obtained by applying our structure to the code in [4]

[0145] The number of sub-packets required for the code in

[0146] Knot

[0147] Parameters (n, k, r, d) (12,8,4,3) (20,15,5,4) (35,24,7,6) In

[13] , α 16 32 37=2187 After using [4], our code α 2 2 3

[0148] Discussion and future work

[0149] In this paper, we propose a coding framework that can transform any MSR code into an MSRR code with optimal cross-rack repair bandwidth for any single node. By adopting the proposed coding framework to the existing MSR code structure, we can obtain many structures of MSRR codes. With a slight modification, we can also design the coding framework for binary MDS array codes with optimal repair bandwidth to obtain the corresponding binary MDS array codes with optimal cross-rack repair bandwidth for any single node. In addition, in general parameters, the proposed MSRR codes have fewer subpacket numbers than existing MSRR codes. In addition to the cross-rack repair bandwidth, another important metric in the repair process is the repair access, which is defined as the total number of symbols accessed when repairing a single faulty node. How to design MSRR codes with small subpacket numbers and fewer repair accesses is one of our future work. Another future work is how to determine a strict lower bound on the number of subpacket numbers of MSRR codes. Note that using the coding framework, the constructed MSRR codes exist, not exactly. We can only prove that the construction of MSRR codes exists for given parameters and a sufficiently large finite field, and we need to use computer software to check whether the code satisfies the MDS property. How to obtain the exact MSRR code structure that can tolerate all parameters with small subpacket number and small finite field will be an interesting future work.

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

Claims

1. A method for constructing a storage rack-aware regeneration code, characterized in that: The method for constructing the stored rack-aware regeneration code includes: S1. Calculate each global coding symbol by encoding all B data symbols; S2, selecting mα data symbols from B data symbols for encoding to calculate rα intermediate coding symbols and grouping them; S3, calculate α local coding symbols by encoding α intermediate coding symbols and all (n / r-1)α global coding symbols of n / r-1 nodes stored in n / r nodes of the corresponding rack; Where B represents the number of data symbols corresponding to the file, r represents the number of racks in the storage system, α represents the number of symbols stored in each node, n represents the number of nodes in the storage system, and m represents the number of racks storing data symbols; In the step S1, (nr)α global coding symbols are first calculated by the formula [c1 c2 ... c(nr)α] = [s1 s2 ... sB]Q, where the (nr)α global coding symbols are represented by c1, c2, ..., c(nr)α, s1, s2, ..., sB represent B data symbols, and Q is a B×(nr)α Vandermonde matrix with a rank of (nr)α. Then, the obtained (nr)α global coding symbols are stored in nr nodes of r racks, and n / r-1 nodes are selected from each rack of the r racks, and each node stores α global coding symbols; In the step S2, rα intermediate coding symbols are calculated by the formula [g1 g2 … grα] = [s1 s2 … smα]P, where the rα intermediate coding symbols are represented by g1, g2, ..., grα, P is an mα×rα coefficient matrix of an MSR code rank of mα, and s1, s2, ..., smα are mα data symbols.

2. The method for constructing a storage rack-aware regeneration code according to claim 1, characterized in that: In the step S2, the selected mα data symbols are encoded using the MSR code to calculate rα intermediate coding symbols and group them.

3. The method for constructing a storage rack-aware regeneration code according to claim 2, characterized in that: In step S3, the calculated α local coding symbols are stored in the remaining nodes of the corresponding rack.

4. The method for constructing a storage rack-aware regeneration code according to claim 3, characterized in that: In step S2, rα intermediate coding symbols are divided into r groups, each group has α symbols and each group corresponds to a different rack.

5. The method for constructing a storage rack-aware regeneration code according to claim 4, characterized in that: In a finite field greater than When , B data symbols can be reconstructed according to any k of the n nodes, where k represents the number of nodes storing the data symbols.

6. The method for constructing a storage rack-aware regeneration code according to claim 5, characterized in that: The MSR code is converted into a corresponding MSRR code with the minimum cross-rack repair bandwidth for any node according to the constructed regeneration code.