Article View: news.software.nntp
Article #64933Re: [BinFor] Splitting extra large files - slice method.
From: Curt Welch
Date: Sat, 19 Apr 2003 04:58
Date: Sat, 19 Apr 2003 04:58
116 lines
7690 bytes
7690 bytes
"Mirco Romanato" <painlord2k@yahoo.it> wrote: > Curt Welch wrote: > You need only a hash value to verify the data in the post to detect > corruption (the TTH of the chunk if it is a power of 2) Right, if you assume the TTH given is valid. You can't assume that on Usenet. The point of all this for Usenet is that people will intentionally try to distrupt the distribution of data by sending out articles which claim to be part of another file (posted by someone else) when in fact they are not. Right now, because articles are matched up only by subject, it's trivial to fool. You just post an article with the correct subject and fill it with crap. But, because most tools only do half the work, and the user is left "looking" at the articles to spot "problems", these jaming attempts are only half effective. But, what we are trying to do with xBin is totaly automate the system which is currently half manual. We don't want people to ever have to look at what was posted to spot, or fix, "problems". We want the tool to have all the power it needs to correctly identify the articles to download and build the full file even if being activly attacked by someone attempting to prevent the system from working. With only the TTH of the data in a given article, we have no way of knowing if the data is really part of the file it claims to be or not. It is nice for checking accidential corruption in transport, but so would any hash. You don't need a tree hash for that. What's important is that we use the TTH of the entire file to identify the file (instead of using a file name), and then, with the correct hash values, it can be proven that the data in the article is in fact part of the file it claims to be part of (and we get to check for corruption as a nice side effect at the same time). > You need one additional hash for every upmost level + one if you want > check the data against the TTH root. Yes, that is what we must do for Usenet. But your count is only truee if the "chunk" contains a number of hash blocks which is a power of two and is also aligned on the same power-of-two boundry in the file. For practical reasons, this will almost never be true for Usenet articles. So you need a few more hash values, depending on the size and the aligment of the chunk included in the article. The max number of hash values possible that you may need to include is something around 2 times the number of levels in the tree. > The Usenet and Gnutella hash data used could be from different parts of > the tree. > But the tree need to be the same. I don't get what you are saying there. > I suppose Usenet will use small chunks checks than Gnutella, because the > post size is limited. Typical usenet articles tend to be in the 400K to 800K range. > But even without post's data integrity checks, the Gnutella client will > be able to check if the data is good. > It only will need to check 2 or 4 or 8 post in the same time. > If the check will fail, it could discard them and try to download the > data from a reposts or from Gnutella. > Or download only the data needed to substitute a chunk and retry the > check and so on. If Gnutella has access the the entire tree of hash values for a file, it can verify any block of data from the file as long as it spans entire hash blocks. Or, the other way, is that it can verify any hash-block chunk of data from the file. If Gnutella is able to transport partial file chunks, what happens when I publish (share?) a partial chunk of a file to Gnutella? If I tell it the the SHA-1 is XYZ for the full file, how does it know I'm not lieing? How does it know that what I have submited for distribution to the world is in fact the real data from that file? If someone requests the file by the SHA-1 name, which is not valid for my data but is valud for another file I'm trying to break, then the network will pass my fake data to the guy which will cause his copy of the full file to be corrupted. So, the point of using a tree hash to identify the file instead of the a full-file flat hash like SHA-1, is that the network and the end-users, can verify that no one is being "tricked" into accepting corrupted data even when only partial files are distributed though the system. > > However, the idea of transfering hash tree data separtely could one > > day be dealt with by the news server. The news servers might collect > > the hash tree data for each file and save it. It could then provide > > a new command for retreving hash tree data about a file separtely > > from the file data. It would then be acting much more like how I > > suspect the P2P servers are working now. The protocol however would > > have to support the concept of transfering partial trees with entire > > sub-trees being undefined. > This is what OCN want do with Web servers. > I think it can work with News servers. > > The problem could be that news servers could be required to filter out > selected hashes (from RIAA and so on). Yeah, this issue has been talked about as a potential down-fall of using hash values to identify files. It's an issue. However, it's trivial to re-package content in a different format to allow it to be distributed under a different hash. So any attempts to block by hash are going to produce very limited results. The number of hash values you have to "block" will just keep growing exponentially and never do much good. On a long-lived P2P network, this may be more of a prolem - you don't want people re-submitting the same data over and over again in slightly different formats. But on Usenet, it's the norm. Nothing is long lived and everything is re-submited over and over again in different formats. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030419005808.367$AE@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<1048a.143208@archiver.winews.net> <mgsp8v8oo1rf5gua0po4ikbmgj18tjd36c@4ax.com> <04018.443200@archiver.winews.net> <9poq8v8cj6ovato7vj015te4bg2truq7ve@4ax.com> <34037.743202@archiver.winews.net> <r_Cka.19194$iy5.537583@twister2.libero.it> <01216.943204@archiver.winews.net> <Xns93582C172A68Dnothing@209.98.50.131> <58128.a43205@archiver.winews.net> <4qbla.24414$iy5.689256@twister2.libero.it> <09527.b43208@archiver.winews.net> <Ckyla.27817$DT4.798840@twister1.libero.it> <5643a.f43203@archiver.winews.net> <GsYma.39933$DT4.1191512@twister1.libero.it> <20030415160127.078$n3@newsreader.com> <Mfuna.45137$DT4.1322594@twister1.libero.it> <20030417183709.912$18@newsreader.com> <IrWna.49665$iy5.1416669@twister2.libero.it>Show Full Headers
Complete Article Headers
Message-ID: <20030419005808.367$AE@newsreader.com>
Subject: Re: [BinFor] Splitting extra large files - slice method.
Date: Sat, 19 Apr 2003 04:58:08 +0000
From: curt@kcwc.com (Curt Welch)
References: <1048a.143208@archiver.winews.net> <mgsp8v8oo1rf5gua0po4ikbmgj18tjd36c@4ax.com> <04018.443200@archiver.winews.net> <9poq8v8cj6ovato7vj015te4bg2truq7ve@4ax.com> <34037.743202@archiver.winews.net> <r_Cka.19194$iy5.537583@twister2.libero.it> <01216.943204@archiver.winews.net> <Xns93582C172A68Dnothing@209.98.50.131> <58128.a43205@archiver.winews.net> <4qbla.24414$iy5.689256@twister2.libero.it> <09527.b43208@archiver.winews.net> <Ckyla.27817$DT4.798840@twister1.libero.it> <5643a.f43203@archiver.winews.net> <GsYma.39933$DT4.1191512@twister1.libero.it> <20030415160127.078$n3@newsreader.com> <Mfuna.45137$DT4.1322594@twister1.libero.it> <20030417183709.912$18@newsreader.com> <IrWna.49665$iy5.1416669@twister2.libero.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com InG-fm@j4kcJl/gv/QYU1YH3@N.J,NooRsY9Z9fM4nf7JHi/
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: 115