Download presentation

Presentation is loading. Please wait.

Published byDanny Chesterman Modified over 3 years ago

1
1 A triple erasure Reed-Solomon code, and fast rebuilding Mark Manasse, Chandu Thekkath Microsoft Research - Silicon Valley Alice Silverberg Ohio State University 6/3/2014

2
Motivation Large-scale storage systems can be expensive to build and maintain Erasure codes reduce the system costs below those of mirroring Erasure codes increase the complexity of recovering from failure In this talk, we present Construction of a triple-erasure correcting code Fast and agile computation for erasure recovery

3
3 A triple erasure correcting code Galois fields Vandermonde matrices Definition and determinant Inductive proof of determinant formula Reed-Solomon Erasure Codes Existing practice Simplified construction for up to three erasures Definition Handling 0 or 1 data erasures Handling 2 or 3 data erasures Why it stops at three erasures, and works only for GF(2 k )

4
4 Galois fields The Galois Field of order p k (for p prime) is formed by considering polynomials in Z/Z p [x] modulo a primitive polynomial of degree k. Facts x is a generator of the field (because of primitivity). Any primitive polynomial will do; all the resulting fields are isomorphic. We write GF(p k ) to denote one such field. Everything you know about algebra is still true. In practice, well be interested only in GF(2 8k ), so multiple bytes turn into equivalent-length groups of bytes

5
5 Vandermonde matrices A Vandermonde matrix V k is of the form and has determinant

6
6 Inductive step proving the determinant of a Vandermonde matrix is the product of the differences. Determinant here is 1. Expand on first column; after removing common factors from second through last entries in each column, whats left is V k-1, with shifted variables.

7
7 Reed-Solomon Erasure Codes 2. Suppose data disks 2,3 and check disk 3 fail. 4. Multiplying both sides by R -1, we recover all the data. 3. Omitting failed rows, we get an invertible n×n matrix R. 1. We use an n×(n+k) coding matrix to store data on n data disks and k check disks. (k=3 in our example)

8
8 Existing practice The use of the identity in the top of the matrix makes the code systematic, which means that data encodes itself Typically, one takes a matrix with the right properties for the invertibility of submatrices (like a Vandermonde or Cauchy matrix) and diagonalizes it This produces a matrix, hard to remember or invert, limited to n+k < 257 in GF(256) A simple trick extends to n+k < 258

9
9 A simple triple-erasure code The matrix to the right is simple: an n×n identity matrix for n < 256, and the first three rows of a transposed Vandermonde matrix of size 3×n, using 1, x, and x 2, where x is any generator of the multiplicative group For k=3, in GF(256), we need n+k < 259

10
10 General invertibility background Consider the matrix after deleting 3 rows To check invertibility, test the determinant To compute the determinant Most rows will contain all zeroes, except for a one in what used to be the diagonal element Expanding along such a row, we get (up to sign), that the determinant is the determinant of the minor excluding the ones row and column

11
11 Handling 0 or 1 data erasures If the 3 deleted rows are the check rows, we know how to compute the check values from the data values Otherwise, what remains is a minor of the Vandermonde rows If 2 deleted rows are check rows, the remaining minor is a single element, which is a power of x, hence non-zero.

12
12 Handling 2 or 3 data erasures, and beyond If the deleted rows are data rows a, b, and c, the minor is a 3×3 Vandermonde matrix, which is invertible If one deleted row is a check row, and the others are rows a and b, possible minors are displayed: The first is Vandermonde, as is the second, after factoring out x a and x b The third is Vandermonde, but we need to show that x 2a and x 2b differ In GF(2 k ), the order of the multiplicative group is 2 k -1, relatively prime to 2, so they do In other characteristics, 1 has two square roots, so we have to keep b - a small If we had added more than three check rows, a 3×3 minor generally would not be Vandermonde, and its not hard to construct non-invertible minors

13
13 Fast and agile computation for erasure recovery

14
14 Reed-Solomon reconstruction For each failed disk, the matrix multiplication resolves to a dot-product If each data source (data disk or check disk) has an associated processor, the multiplications can be performed locally Accumulating the sum in GF(2 k ) is just exclusive-or Want high throughput (so disks are rebuilt quickly), low-latency (so blocks can be delivered on demand, when necessary)

15
15 Computational environment In what follows, we assume that we have a synchronous network of processors, each with an array of data packets In each time step, each processor can Receive one packet, and XOR the contents with a known packet for the same array index Send one packet to another processor or to the final destination

16
16 High throughput, but high latency A bucket brigade of n processors has unit throughput, but linear latency On step i+k, processor i sends accumulated packet k to processor i+k, and receives packet k+1 from processor i-1, adding the received value to known packet k+1 Processor 0 only sends Processor n is the destination After n steps of latency, processor n receives one packet per step Node 0 Node 1 Node 2 …… Node n-2 Node n-1 Node n (sink)

17
17 Low latency, but low throughput Build an in-place binary tree Let n = 2 k For i

18
18 Moderate throughput, moderate latency Instead of an in-place binary tree, use a rooted binary tree On step 2(k+l), node 2 l (4s+1) sends packet k to node 2 l (4s+2) On step 2(k+l)+1, node 2 l (4s+3) sends packet k to node 2 l (4s+2) Throughput ½, latency 2log n, for n = 2 k -1 Output every other step, because of input limits Node 1 Node 2 Node 3 Node 4 Node 5 Node 6 Node 7 Steps 0,2,… Steps 1,3,… Steps 2,4,… Steps 3,5,…

19
19 General observations The patterns of communication described so far all combine the values of consecutive nodes Statically known if incoming block contains values from higher numbered nodes or lower numbered, so can apply XOR left-to-right Not interesting for a commutative operator like XOR, but this can apply to non-commutative monoids (which dont arise in erasure codes, but are cool anyway)

20
20 Recursive construction: base case For one node, on step i, send block i from node 0 to destination node 1; this is G0 For two nodes, on step i, send block i from node 0 to node 1. On step i+1, send block i from node 1 to node 2 Denote edges in graph as 4-tuples Graph G1 is {, } Node 0Node 1 Node 2 Steps 0,1,2,… Blocks 0,1,2,… Steps 1,2,3,… Blocks 0,1,2,…

21
21 Inductive hypotheses for G k Nodes from 0 to n=2 k Node 0 is only a source; is in G k for all i (recall: step, block, source, dest) Node n is only a destination, in G k, so log k+1 delay, full throughput If in G k, for d < n, then for some t and u d, but u/2 = d/2, either and are in G k or and are in G k For all blocks, the edges form an unrooted binary tree; the k-level descendants of a node have node numbers matching the first k bits of the node Node 0Node 2 Node 4 Node 1Node 3

22
22 Recursive construction: doubling up Given G k, produce G k+1 by doubling the number of nodes to 2n. Add edges for s

23
23 Chains / step but in-place trees / block 02 Node 4 13 0 2 1 3 Steps i=0,2,4,…: Steps i=1,3,5,…: Block i-2 Block i-1 Block i inside every bubble 0 2 Node 4 1 3 02 13 Blocks i=0,2,4,…: Blocks i=1,3,5,…: Step i+2 Step i+1 Step i inside every bubble

24
24 High throughput, low latency From that recursive construction, weve doubled the number of nodes We sometimes have to add on the left and sometimes on the right, but the inputs accumulated on any input step are always a contiguous subset adjacent to the contiguous subset currently known to the destination, so associativity is sufficient 2i and 2i+1 are always linked for block b at step b; if we condense some of these nodes, we can reduce the number of nodes to get non-powers of 2

25
25 Further results Current patterns of communication repeat every 2 log log n blocks We have alternative constructions with slightly worse latency, but full throughput, that are much simpler (repeating patterns every 2 or 3 steps) These constructions require commutativity Generalizations of rooted tree constructions, improving throughput

Similar presentations

OK

1 Forward Error Correction Shimrit Tzur-David School of Computer Science and Engineering Hebrew University of Jerusalem.

1 Forward Error Correction Shimrit Tzur-David School of Computer Science and Engineering Hebrew University of Jerusalem.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Science ppt on crop production and management Converter pub to ppt online shopping Ppt on space complexity Ppt on child labour in english Introduction to liquid crystal display ppt on tv Ppt on business life cycle Free ppt on forest society and colonialism notes Ppt on successes and failures quotes Ppt online open school Ppt on cross-sectional study meaning