11 Apr 2006 07:49
We need a Bittorrent style hash file
Nate <fileman <at> fastmail.fm>
2006-04-11 05:49:54 GMT
2006-04-11 05:49:54 GMT
To properly do multisource we are going to need to have a Bittorrent style hash file. The way things are set up now, one small glitch in a file and you have to wait until the final hash check to find out your file is corrupted. I suggest that each 1MB section of a file have a simple 16 bit CRC generated. When asking for info on a file, a list of all the CRCs are sent back so the downloader can check each 1MB section as it comes in. If one of the 1MB sections is found to be bad, the client can retry from that source again and/or switch to a different source to obtain a correct section. Later on there could be a verified list of files and their CRC lists put up on some web site out there to weed out the bad files. Until then there will always be the possibility that the first source you find for a file may have a corrupted CRC list and the client would just keep on trying until you manually pick a new initial source. If the info file format was kept simple, like the CRC in hex (four characters) and then a comma, then the next CRC, for a 600MB file the info file packet would only be about 3K. I suggest a CRC because it's very fast to generate and check on the fly. A complete hash check is always done when finished, like we do now. -- -- http://www.fastmail.fm - A no graphics, no pop-ups email service -------------------------------------------------------(Continue reading)
RSS Feed