The present invention relates generally to systems, apparatus, and methods for distributed data storage, and more particularly to systems, apparatus, and methods for distributed data storage using an information dispersal algorithm so that no one location will store an entire copy of stored data, and more particularly still to systems, apparatus, and methods for ensuring data integrity on a dispersed data storage network.
Storing data in digital form is a well-known problem associated with all computer systems, and numerous solutions to this problem are known in the art. The simplest solution involves merely storing digital data in a single location, such as a punch film, hard drive, or FLASH memory device. However, storage of data in a single location is inherently unreliable. The device storing the data can malfunction or be destroyed through natural disasters, such as a flood, or through a malicious act, such as arson. In addition, digital data is generally stored in a usable file, such as a document that can be opened with the appropriate word processing software, or a financial ledger that can be opened with the appropriate spreadsheet software. Storing an entire usable file in a single location is also inherently insecure as a malicious hacker only need compromise that one location to obtain access to the usable file.
To address reliability concerns, digital data is often “backed-up,” i.e., an additional copy of the digital data is made and maintained in a separate physical location. For example, a backup tape of all network drives may be made by a small office and maintained at the home of a trusted employee. When a backup of digital data exists, the destruction of either the original device holding the digital data or the backup will not compromise the digital data. However, the existence of the backup exacerbates the security problem, as a malicious hacker can choose between two locations from which to obtain the digital data. Further, the site where the backup is stored may be far less secure than the original location of the digital data, such as in the case when an employee stores the tape in her home.
Another method used to address reliability and performance concerns is the use of a Redundant Array of Independent Drives (“RAID”). RAID refers to a collection of data storage schemes that divide and replicate data among multiple storage units. Different configurations of RAID provide increased performance, improved reliability, or both increased performance and improved reliability. In certain configurations of RAID, when digital data is stored, it is split into multiple units, referred to as “stripes,” each of which is stored on a separate drive. Data striping is performed in an algorithmically certain way so that the data can be reconstructed. While certain RAID configurations can improve reliability, RAID does nothing to address security concerns associated with digital data storage.
One method that prior art solutions have addressed security concerns is through the use of encryption. Encrypted data is mathematically coded so that only users with access to a certain key can decrypt and use the data. Common forms of encryption include DES, AES, RSA, and others. While modern encryption methods are difficult to break, numerous instances of successful attacks are known, some of which have resulted in valuable data being compromised.
Digitally stored data is subject to degradation over time, although such degradation tends to be extremely minor and the time periods involved tend to be much longer than for analog data storage. Nonetheless, if a single bit within a file comprised of millions of bits changes from a zero to a one or vice verse, the integrity of the file has been compromised, and its usability becomes suspect. Further, errors occur more frequently when digital data is transmitted due to noise in the transmission medium. Various prior art techniques have been devised to detect when a digital data segment has been compromised. One early form of error detection is known as parity, wherein a single bit is appended to each transmitted byte or word of data. The parity bit is set so that the total number of one bits in the transmitted byte or word is either even or odd. The receiving processor then checks the received byte or word for the appropriate parity, and, if it is incorrect, asks that the byte or word be resent.
Another form of error detection is the use of a checksum. There are many different types of checksums including classic checksums, cryptographic hash functions, digital signatures, cyclic redundancy checks, and the use of human readable “check digits” by the postal service and libraries. All of these techniques involve performing a mathematical calculation over an entire data segment to arrive at a checksum, which is appended to the data segment. For stored data, the checksum for the data segment can be recalculated periodically, and checked against the previously calculated checksum appended to the data segment. For transmitted data, the checksum is calculated by the transmitter and appended to the data segment. The receiver then recalculates the checksum for the received data segment, and if it does not match the checksum appended to the data segment, requests that it be retransmitted.
In 1979, two researchers independently developed a method for splitting data among multiple recipients called “secret sharing.” One of the characteristics of secret sharing is that a piece of data may be split among n recipients, but cannot be known unless at least t recipients share their data, where n≥t. For example, a trivial form of secret sharing can be implemented by assigning a single random byte to every recipient but one, who would receive the actual data byte after it had been bitwise exclusive orred with the random bytes. In other words, for a group of four recipients, three of the recipients would be given random bytes, and the fourth would be given a byte calculated by the following formula:
s′=s⊕ra⊕rb⊕rc,
where s is the original source data, ra, rb, and rc are random bytes given to three of the four recipients, and s′ is the encoded byte given to the fourth recipient. The original byte s can be recovered by bitwise exclusive-orring all four bytes together.
The problem of reconstructing data stored on a digital medium that is subject to damage has also been addressed in the prior art. In particular, Reed-Solomon and Cauchy Reed-Solomon coding are two well-known methods of dividing encoded information into multiple slices so that the original information can be reassembled even if all of the slices are not available. Reed-Solomon coding, Cauchy Reed-Solomon coding, and other data coding techniques are described in “Erasure Codes for Storage Applications,” by Dr. James S. Plank, which is hereby incorporated by reference.
Schemes for implementing dispersed data storage networks (“DDSN”), which are also known as dispersed data storage grids, are also known in the art. In particular, U.S. Pat. No. 5,485,474, issued to Michael O. Rabin, describes a system for splitting a segment of digital information into n data slices, which are stored in separate devices. When the data segment must be retrieved, only m of the original data slices are required to reconstruct the data segment, where n>m.
While DDSN's can theoretically be implemented to provide any desired level of reliability, practical considerations tend to make this impossible in prior art solutions. For example, DDSNs rely on storage media to store data slices. This storage media, like all storage media, will degrade over time. Furthermore, DDSN's rely on numerous transmissions to physically disparate slice servers, and data slices may become corrupted during transmissions. While TCP utilizes a CRC in every transmitted packet, the reliability provided by this CRC is not sufficient for critical data storage.
Accordingly, it is an object of this invention to provide a system, apparatus, and method for ensuring data integrity on a dispersed data storage network.
Another object of this invention is to provide a self-healing dispersed data storage grid.
The disclosed invention achieves its objectives by providing an improved method for insuring the integrity of data stored on a dispersed data storage network. A checksum is calculated for a data segment to be written to a DDSN. The checksum is appended to the data segment, which is sliced into a plurality of data slices. A second set of checksums is calculated for and appended to the different data slices, which are then transmitted to different slice servers. For each receiving slice server, a checksum is calculated for the received data slice, and compared to the checksum appended to the received data slice. If the checksums vary, the receiving slice server marks the data slice as corrupted, and requests that the corrupted data slice be resent.
In another aspect of the disclosed invention, a distributed computer system implements a dispersed data storage network. In this system, a rebuilder application periodically recalculates checksums for data slices stored on a plurality of slice servers. Where the calculated checksum does not match the checksum appended to a stored data slice, the data slice is marked as corrupted. The rebuilder application then identifies the stored data segment associated with the corrupted data slice, and issues read requests to other slice servers holding data slices corresponding to the identified data segment. The data segment is rebuilt and re-sliced, and any slice servers containing corrupted data are sent new data slices to replace the corrupted data slices.
Although the characteristic features of this invention will be particularly pointed out in the claims, the invention itself, and the manner in which it may be made and used, may be better understood by referring to the following description taken in connection with the accompanying drawings forming a part hereof, wherein like reference numerals refer to like parts throughout the several views and in which:
Turning to the Figures, and to
As explained herein, the disclosed invention works to ensure integrity of data stored in a DDSN not only by using checksums on each stored data segment as well as the constituent data slices, but also by reconstructing corrupted data slices as well. In accordance with the disclosed invention, grid access computers 120, 122 will calculate a checksum for each data segment to be stored, and append the checksum to the data segment prior to slicing. The data segment is then sliced in accordance with an information dispersal algorithm, and checksums are calculated and appended to each of the data slices. The data slices are then forwarded to slice servers 150-162, where the data slices are stored.
In addition, grid access computers 120, 122 also recreate data slices that have become corrupted, or were destroyed. If during operation of the DDSN 100, it is detected that a particular data slice has been corrupted or destroyed, a different data slice will be requested from a different slice server 150-162. Assuming that sufficient non-corrupted data slices exist to successfully reconstruct the original data segment, the reconstructed data segment will be re-sliced, and the corrupted data slice will be replaced with a non-corrupted version. Further, a rebuilder application operating within the DDSN periodically walks through all data slices stored on the DDSN. When a corrupted data slice is found, the rebuilder application identifies the data segment corresponding to the corrupted data slice, rebuilds the identified data segment, and rewrites the corrupted slice.
In step 406, a list of slice servers each holding a required data slice that has yet to be received is assembled, and in step 408, the list is ordered by any applicable criteria. Further information on criteria by which the list may be ordered is contained in U.S. patent application Ser. No. 11/973,622, titled “SMART ACCESS TO A DISPERSED DATA STORAGE NETWORK,” filed on Oct. 9, 2007 and assigned to Cleversafe, Inc. In step 410, read requests are issued to the first k slice servers on the assembled list, where k is at least equal to m, the minimum number of data slices needed to reconstruct the requested data segment, but could be as large as n, the number of data slices that have data relevant to the requested data segment. In step 412, r data slices are received, and in step 414 the number of received data slices r is subtracted from the variable m. In step 416, m is compared to zero, and if m is greater than or equal to zero, execution returns to step 406 and proceeds as normal from there. However, if m is equal to zero, a collection of data transformations may optionally be applied to the received slices in step 418. The applied data transformations can include decryption, decompression, and integrity checking. In accordance with the disclosed invention, each data slice includes a cyclical redundancy check (“CRC”), or other form of checksum appended to the data contained in the slice. This checksum will be compared against a checksum calculated by the receiving slice server against the received data to ensure that the data was not corrupted during the transmission process.
In step 420, it is determined if the applied data transformations were successful for all of the received data slices. If the applied data transformations were not successful for some of the received slices, m is incremented by this number in step 422, and execution is resumed at step 406. The data transformations could fail, for example, if an integrity check revealed that a received data slice was corrupted. However, if the applied data transformations were successful for all received data slices, the received slices are assembled into the requested block of data in step 424. The same or different data transformations may optionally be applied to the assembled data block in step 426, which completes the read process. In accordance with the disclosed invention, a checksum for the data segment will be calculated and compared to a checksum appended to the assembled data segment.
In
A number of data transformations may optionally be applied to each block in step 506, and an information dispersal algorithm is applied in step 508. In particular, the Cauchy Reed-Solomon dispersal algorithm could be applied to the data segment, resulting in a predetermined number of data slices. In step 510, a number of data transformations are optionally applied to each data slice.
In the disclosed system, writes are performed transactionally, meaning that a minimum number of data slices t must be successfully written before a write is deemed complete. Normally, the number of data slices that must be successfully written will be set to n, i.e., the number of slices that the data segment was originally divided into. However, this number can be configured by the user to a lesser number, down to the minimum number of slices required to reconstruct the data. This would allow the user to continue using the DDSN during a minor network outage where one or more slice servers were unavailable. Slices that could not be immediately transmitted and stored could be queued and transmitted when the network outage cleared. In step 512, a write transaction is initiated to the data storage grid. As discussed herein, all slice servers are simultaneously contacted, and in step 514, a confirmation that at least t receiving slice servers are prepared to begin the write transaction, i.e., to store each slice, must be received, or the transaction is rolled back in step 516.
In step 520 data slices are transmitted to the slice servers that indicated their ability to receive and store slices. The number of slice servers that successfully received and stored their assigned data slices is checked in step 522, and if less than t slices are successfully stored, the transaction is rolled back in step 516. In step 524, a commit transaction is begun on all servers with successful writes. If the commit transaction fails, an error is logged in step 528. Otherwise, the write transaction was successful.
The foregoing description of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or to limit the invention to the precise form disclosed. The description was selected to best explain the principles of the invention and practical application of these principles to enable others skilled in the art to best utilize the invention in various embodiments and various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention not be limited by the specification, but be defined by the claims set forth below.
Number | Name | Date | Kind |
---|---|---|---|
4092732 | Ouchi | May 1978 | A |
5454101 | Mackay et al. | Sep 1995 | A |
5485474 | Rabin | Jan 1996 | A |
5581690 | Ellis et al. | Dec 1996 | A |
5774643 | Lubbers et al. | Jun 1998 | A |
5802364 | Senator et al. | Sep 1998 | A |
5809285 | Hilland | Sep 1998 | A |
5832000 | Lin et al. | Nov 1998 | A |
5890156 | Rekieta et al. | Mar 1999 | A |
5987622 | Lo Verso et al. | Nov 1999 | A |
5991414 | Garay et al. | Nov 1999 | A |
6012159 | Fischer et al. | Jan 2000 | A |
6058454 | Gerlach et al. | May 2000 | A |
6128277 | Bruck et al. | Oct 2000 | A |
6175571 | Haddock et al. | Jan 2001 | B1 |
6192472 | Garay et al. | Feb 2001 | B1 |
6256688 | Suetaka et al. | Jul 2001 | B1 |
6272658 | Steele et al. | Aug 2001 | B1 |
6301604 | Nojima | Oct 2001 | B1 |
6356949 | Katsandres et al. | Mar 2002 | B1 |
6366995 | Vilkov et al. | Apr 2002 | B1 |
6374336 | Peters et al. | Apr 2002 | B1 |
6397365 | Brewer et al. | May 2002 | B1 |
6415373 | Peters et al. | Jul 2002 | B1 |
6418539 | Walker | Jul 2002 | B1 |
6449688 | Peters et al. | Sep 2002 | B1 |
6567948 | Steele et al. | May 2003 | B2 |
6571282 | Bowman-Amuah | May 2003 | B1 |
6609223 | Wolfgang | Aug 2003 | B1 |
6718361 | Basani et al. | Apr 2004 | B1 |
6760808 | Peters et al. | Jul 2004 | B2 |
6785768 | Peters et al. | Aug 2004 | B2 |
6785783 | Buckland | Aug 2004 | B2 |
6826711 | Moulton et al. | Nov 2004 | B2 |
6879596 | Dooply | Apr 2005 | B1 |
7003688 | Pittelkow et al. | Feb 2006 | B1 |
7024451 | Jorgenson | Apr 2006 | B2 |
7024609 | Wolfgang et al. | Apr 2006 | B2 |
7080101 | Watson et al. | Jul 2006 | B1 |
7103824 | Halford | Sep 2006 | B2 |
7103915 | Redlich et al. | Sep 2006 | B2 |
7111115 | Peters et al. | Sep 2006 | B2 |
7140044 | Redlich et al. | Nov 2006 | B2 |
7146461 | Kiselev et al. | Dec 2006 | B1 |
7146644 | Redlich et al. | Dec 2006 | B2 |
7171493 | Shu et al. | Jan 2007 | B2 |
7222133 | Raipurkar et al. | May 2007 | B1 |
7240236 | Cutts et al. | Jul 2007 | B2 |
7272613 | Sim et al. | Sep 2007 | B2 |
7278067 | Coatney et al. | Oct 2007 | B1 |
7506155 | Stewart et al. | Mar 2009 | B1 |
7516354 | Nguyen et al. | Apr 2009 | B2 |
7636724 | de la Torre et al. | Dec 2009 | B2 |
7721157 | Spitz et al. | May 2010 | B2 |
20020062422 | Butterworth et al. | May 2002 | A1 |
20020166079 | Ulrich et al. | Nov 2002 | A1 |
20030018927 | Gadir et al. | Jan 2003 | A1 |
20030037261 | Meffert et al. | Feb 2003 | A1 |
20030065617 | Watkins et al. | Apr 2003 | A1 |
20030084020 | Shu | May 2003 | A1 |
20030233455 | Leber et al. | Dec 2003 | A1 |
20040024963 | Talagala et al. | Feb 2004 | A1 |
20040122917 | Menon et al. | Jun 2004 | A1 |
20040215998 | Buxton et al. | Oct 2004 | A1 |
20040228493 | Ma et al. | Nov 2004 | A1 |
20050100022 | Ramprashad | May 2005 | A1 |
20050114594 | Corbett et al. | May 2005 | A1 |
20050125593 | Karpoff et al. | Jun 2005 | A1 |
20050131993 | Fatula, Jr. | Jun 2005 | A1 |
20050132070 | Redlich et al. | Jun 2005 | A1 |
20050144382 | Schmisseur | Jun 2005 | A1 |
20050144514 | Ulrich et al. | Jun 2005 | A1 |
20050229069 | Hassner | Oct 2005 | A1 |
20060047907 | Shiga et al. | Mar 2006 | A1 |
20060136448 | Cialini et al. | Jun 2006 | A1 |
20060156059 | Kitamura | Jul 2006 | A1 |
20060224603 | Correll, Jr. | Oct 2006 | A1 |
20070079081 | Gladwin et al. | Apr 2007 | A1 |
20070079082 | Gladwin et al. | Apr 2007 | A1 |
20070079083 | Gladwin et al. | Apr 2007 | A1 |
20070088970 | Buxton et al. | Apr 2007 | A1 |
20070143359 | Uppala | Jun 2007 | A1 |
20070150481 | Song et al. | Jun 2007 | A1 |
20070283167 | Venters, III et al. | Jun 2007 | A1 |
20070174192 | Gladwin et al. | Jul 2007 | A1 |
20070214255 | Spitz et al. | Sep 2007 | A1 |
20070214285 | Au et al. | Sep 2007 | A1 |
20070234110 | Soran et al. | Oct 2007 | A1 |
20070282868 | Wanigasekara-Mohotti et al. | Dec 2007 | A1 |
20080244030 | Leitheiser | Oct 2008 | A1 |
20090094251 | Gladwin et al. | Apr 2009 | A1 |
20090094318 | Gladwin et al. | Apr 2009 | A1 |
20100023524 | Gladwin et al. | Jan 2010 | A1 |
20100218037 | Swartz et al. | Aug 2010 | A1 |
Number | Date | Country |
---|---|---|
1191442 | Mar 2002 | EP |
2007103533 | Sep 2007 | WO |
Entry |
---|
Chung, “An Automatic Data Segmentation Method for 3D Measured Data Points,” National Taiwan University, 1998, pp. 1-8. |
Young, International Search Report and Written Opinion of the International Searching Authority for PCT/US 08/77162, dated Dec. 1, 2008. |
Shamir, “How to Share a Secret” Communications of the ACM, vol. 22, No. 11, Nov. 1979. |
Rabin, “Efficient Dispersal of Information for Security, Load Balancing, and Fault Tolerance” Journal of the Association for Computer Machinery, vol. 36, No. 2, Apr. 1989. |
Xin, et al.; Evaluation of Distributed Recovery in Large-Scale Storage Systems; 13th IEEE International Symposium on High Performance Distributed Computing; Jun. 2004; pp. 172-181. |
Satran, et al.; Internet Small Computer Systems Interface (iSCSI); IETF Network Working Group; RFC 3720; Apr. 2004; pp. 1-257. |
Sermersheim; Lightweight Directory Access Protocol (LDAP): The Protocol; IETF Network Working Group; RFC 4511; Jun. 2006; pp. 1-68. |
Plank, T1: Erasure Codes for Storage Applications; FAST2005, 4th Usenix Conference on File Storage Technologies; Dec. 13-16, 2005; pp. 1-74. |
Wildi; Java iSCSi Initiator; Master Thesis; Department of Computer and Information Science, University of Konstanz; Feb. 2007; 60 pgs. |
Legg; Lightweight Directory Access Protocol (LDAP): Syntaxes and Matching Rules; IETF Network Working Group; RFC 4517; Jun. 2006; pp. 1-50. |
Zeilenga; Lightweight Directory Access Protocol (LDAP): Internationalized String Preparation; IETF Network Working Group; RFC 4518; Jun. 2006; pp. 1-14. |
Smith; Lightweight Directory Access Protocol (LDAP): Uniform Resource Locator; IETF Network Working Group; RFC 4516; Jun. 2006; pp. 1-15. |
Smith; Lightweight Directory Access Protocol (LDAP): String Representation of Search Filters; IETF Network Working Group; RFC 4515; Jun. 2006; pp. 1-12. |
Zeilenga; Lightweight Directory Access Protocol (LDAP): Directory Information Models; IETF Network Working Group; RFC 4512; Jun. 2006; pp. 1-49. |
Sciberras; Lightweight Directory Access Protocol (LDAP): Schema for User Applications; IETF Network Working Group; RFC 4519; Jun. 2006; pp. 1-33. |
Harrison; Lightweight Directory Access Protocol (LDAP): Authentication Methods and Security Mechanisms; IETF Network Working Group; RFC 4513; Jun. 2006; pp. 1-32. |
Zeilenga; Lightweight Directory Access Protocol (LDAP): Technical Specification Road Map; IETF Network Working Group; RFC 4510; Jun. 2006; pp. 1-8. |
Zeilenga; Lightweight Directory Access Protocol (LDAP): String Representation of Distinguished Names; IETF Network Working Group; RFC 4514; Jun. 2006; pp. 1-15. |
European Patent Office; Extended European Search Report; dated Jul. 19, 2012; 7 pages. |
Kubiatowicz, et al.; OceanStore: An Architecture for Global-Scale Persistent Storage; Proceedings of the Ninth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS 2000); Nov. 2000; pp. 1-12. |
European Patent Office; Extended European Search Report; EP Application No. 09727284.3; dated Oct. 29, 2015; 8 pgs. |
Number | Date | Country | |
---|---|---|---|
20090094250 A1 | Apr 2009 | US |