Article View: news.software.nntp
Article #57561Re: Using Message-ID to store binary file information
From: Curt Welch
Date: Sat, 23 Mar 2002 01:33
Date: Sat, 23 Mar 2002 01:33
79 lines
6055 bytes
6055 bytes
"Klaas" <spamhole@klaas.ca> wrote: > Curt Welch <curt@kcwc.com> wrote in message > news:20020322184519.366$du@newsreader.com... > Sure, it's highly unlikely a specific user will have problems. But > every file will be downloaded by some user, thus be compared against > all the rest. That's the wrong thing to look at. > Or are you arguing something different? I'm saying it's not important that some user is having a problem. What's important is only how often a given user is likely to see a problem. Someone dies in a car accident every day. But that fact doesn't stop most of us from driving in cars because what's important to us is only the odds that WE or someone we know will die in a car accident instead of dieing for other reasons first. Those odds are very very small and that's what's important to us. Likewise, for this discussion, it's not important that 10 out of a million users are having a download problem caused by a hash collision every day. That doesn't prevent us from thinking the system is working perfictly because we know that on the average we would have to use the system for 10 years before we will even hear about one of those problems and we would have to use it for 100 years before we are likely to have it ourself. In that 100 years, how many problems are you likely to have because someone posted a corrupted file and you downloaded it and couldn't make it work? Or posted in a format you couldn't deal with and ended up wasting hours trying to find a way to view the file but in the end threw it way? Anyone downloading files from Usenet has a LOT of problems making things work now. If the hash problem is an order of magnatude less than all the other problems, no one will even think twice about it - i.e it won't be a problem. > I wonder, though, if this discussion is necessary, especially if you > are only looking for group-unique hashes. 6 characters of base64 gives > a 36-bit hash, which is adequate for usenet-global uniqueness when > coupled with file size (assuming there aren't more than 80000 articles > posted to usenet in a year with the same size). 7 characters of > base64 is sufficient to uniquely identify between 600000 articles with > a collision probability of <5%. If all that is needed is a > group-unique hash, 6 characters is plenty. It won't just need to be group unique because you will want your download tool to check a lot of groups to see if the file you were looking for was reposted anywhere. Looking for an MP3 file across all the mp3 groups for example would be an obvious thing to do. The only thing to limit the number of groups you configured your newsreader to scan is the amount of time you were willing to spend downloading headers. And if the Message-ID alone is good enough to spot potential targets, then the groups you scan for mising segments don't even need full XOVER headers, they only needed to be scaned for the Message-Id which is much faster and much less bandwidth so you could add a lot of scan-for-missing-segment groups. It seems to me that many people working with tools that could find missing segments no matter where they were posted would tend to add a lot of groups to their scan list even if they were not willing to scan the headers manually looking for new stuff in that many groups. And if this type of technology became common place on usenet, maybe news servers could start creating indexes (pseudo groups) based on these short hashes. So ubin.a6ft3h was a pseudo group which listed all articles on the server with that hash. The newsreader could scan those groups to find missing file segments for the same file posted to any group on Usenet. This then makes the hash problem usenet-wide instead of group-wide. But if a large hash is in the headers, and only a short hash + file size is in the Message-ID, then the hash only needs to be large enough to prevent the download tool from having too many HEAD commands to eliminate the flase positives, and 36 bits of hash in the Message-ID sure seems like more than enough to solve that problem to me. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020322203350.142$ou@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> <200320022314345462%planb@newsreaders.com> <20020321022856.582$dC@newsreader.com> <210320021224366481%planb@newsreaders.com> <20020321125143.414$Wp@newsreader.com> <a7ddkd$j6s1m$1@ID-26705.news.dfncis.de> <3c9c54a2.1953960@news> <a7e4h9$kvunt$1@ID-26705.news.dfncis.de> <20020322023326.175$pl@newsreader.com> <b8pl9u0lphocim3v2kj5r4ehaqpe27hhrs@4ax.com> <slrna9mefd.2hsu.andrew+nonews@trinity.supernews.net> <20020322184519.366$du@newsreader.com> <a7gjur$lfk11$1@ID-26705.news.dfncis.de>Show Full Headers
Complete Article Headers
Message-ID: <20020322203350.142$ou@newsreader.com>
Subject: Re: Using Message-ID to store binary file information
Date: Sat, 23 Mar 2002 01:33:50 +0000
From: curt@kcwc.com (Curt Welch)
References: <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> <200320022314345462%planb@newsreaders.com> <20020321022856.582$dC@newsreader.com> <210320021224366481%planb@newsreaders.com> <20020321125143.414$Wp@newsreader.com> <a7ddkd$j6s1m$1@ID-26705.news.dfncis.de> <3c9c54a2.1953960@news> <a7e4h9$kvunt$1@ID-26705.news.dfncis.de> <20020322023326.175$pl@newsreader.com> <b8pl9u0lphocim3v2kj5r4ehaqpe27hhrs@4ax.com> <slrna9mefd.2hsu.andrew+nonews@trinity.supernews.net> <20020322184519.366$du@newsreader.com> <a7gjur$lfk11$1@ID-26705.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: alt.usenet.offline-reader.forte-agent,news.software.nntp
X-Trace: NewsReader.Com Ul67o/iz1/rPwExKlm@HBdExMZvAzKnzhXEV3MSz0SOs=H-g
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 78