-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patherasure_example.html
181 lines (176 loc) · 3.26 KB
/
erasure_example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<HTML><TITLE>Toy example of erasure coding</TITLE>
<h3>Toy example of erasure coding</h3>
<hr>
Last (m * w) rows of the Generator Matrix: (G^T):
<pre>
111 001 101
100 101 111
110 010 011
001 111 010
101 100 011
010 110 101
101 010 111
111 011 100
011 101 110
010 101 001
011 111 101
101 011 010
</pre><hr>
Encoding Complete - Here is the state of the system
<p>
<center><table border=3 cellpadding=3><tr><td></td>
<td align=center>D0</td>
<td align=center>D1</td>
<td align=center>D2</td>
</tr>
<td align=right><pre>Packet 0
Packet 1
Packet 2
</pre></td>
<td><pre>a93b44dc 3b7be488
516906b9 83659977
e4e7f8a3 7a884b98
</td>
<td><pre>39523dc4 8eb0ad4e
33561a07 47fdddfc
d5e71312 bd9833f5
</td>
<td><pre>845c0b97 92bf1b7f
fce809fa 862d61d1
d71df437 1d90087a
</td>
</tr></table></center>
<p>
<center><table border=3 cellpadding=3><tr><td></td>
<td align=center>C0</td>
<td align=center>C1</td>
<td align=center>C2</td>
<td align=center>C3</td>
</tr>
<td align=right><pre>Packet 0
Packet 1
Packet 2
</pre></td>
<td><pre>9a135674 f0211697
ea279c50 015108e7
e0f1a5af 645ec9a8
</td>
<td><pre>c7ecc588 8870690e
5f7b7c76 54fe6bf5
082cdeda c507fac0
</td>
<td><pre>d1235022 0f0c0038
7e58b844 aa4cc311
218fd2a1 de5736fa
</td>
<td><pre>6ac1dc58 addd0fb6
392c356b 021782ad
5785bc90 3dbb20c8
</td>
</tr></table></center>
<hr>
Erased 4 random devices: C0 D0 D2 C2. Here is the state of the system:
<p>
<center><table border=3 cellpadding=3><tr><td></td>
<td align=center>D0</td>
<td align=center>D1</td>
<td align=center>D2</td>
</tr>
<td align=right><pre>Packet 0
Packet 1
Packet 2
</pre></td>
<td><pre>00000000 00000000
00000000 00000000
00000000 00000000
</td>
<td><pre>39523dc4 8eb0ad4e
33561a07 47fdddfc
d5e71312 bd9833f5
</td>
<td><pre>00000000 00000000
00000000 00000000
00000000 00000000
</td>
</tr></table></center>
<p>
<center><table border=3 cellpadding=3><tr><td></td>
<td align=center>C0</td>
<td align=center>C1</td>
<td align=center>C2</td>
<td align=center>C3</td>
</tr>
<td align=right><pre>Packet 0
Packet 1
Packet 2
</pre></td>
<td><pre>00000000 00000000
00000000 00000000
00000000 00000000
</td>
<td><pre>c7ecc588 8870690e
5f7b7c76 54fe6bf5
082cdeda c507fac0
</td>
<td><pre>00000000 00000000
00000000 00000000
00000000 00000000
</td>
<td><pre>6ac1dc58 addd0fb6
392c356b 021782ad
5785bc90 3dbb20c8
</td>
</tr></table></center>
<hr>
Here is the state of the system after decoding:
<p>
<center><table border=3 cellpadding=3><tr><td></td>
<td align=center>D0</td>
<td align=center>D1</td>
<td align=center>D2</td>
</tr>
<td align=right><pre>Packet 0
Packet 1
Packet 2
</pre></td>
<td><pre>a93b44dc 3b7be488
516906b9 83659977
e4e7f8a3 7a884b98
</td>
<td><pre>39523dc4 8eb0ad4e
33561a07 47fdddfc
d5e71312 bd9833f5
</td>
<td><pre>845c0b97 92bf1b7f
fce809fa 862d61d1
d71df437 1d90087a
</td>
</tr></table></center>
<p>
<center><table border=3 cellpadding=3><tr><td></td>
<td align=center>C0</td>
<td align=center>C1</td>
<td align=center>C2</td>
<td align=center>C3</td>
</tr>
<td align=right><pre>Packet 0
Packet 1
Packet 2
</pre></td>
<td><pre>9a135674 f0211697
ea279c50 015108e7
e0f1a5af 645ec9a8
</td>
<td><pre>c7ecc588 8870690e
5f7b7c76 54fe6bf5
082cdeda c507fac0
</td>
<td><pre>d1235022 0f0c0038
7e58b844 aa4cc311
218fd2a1 de5736fa
</td>
<td><pre>6ac1dc58 addd0fb6
392c356b 021782ad
5785bc90 3dbb20c8
</td>
</tr></table></center>