Article View: news.software.nntp
Article #60770Re: [FNTP] 'in-completeness'
From: Curt Welch
Date: Sun, 29 Sep 2002 15:27
Date: Sun, 29 Sep 2002 15:27
105 lines
5774 bytes
5774 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Curt Welch]: > > > > Kjetil Torgrim Homme <kjetilho@ifi.uio.no> wrote: > > > > > my proposal: > > > > > > <offset'part-size'total-size'id-left@id-right.nntpbin> > > > > Yes, that's heading towards the right direction. We discussed > > that at some point in the last year and I had created what I > > thought was a workable Message-ID format. > > hmm, I thought I had followed that debate, but I can't recall your > format. this was part of a suggestion of "misusing" References, > wasn't it? I forget, but we started to talk about it at about the same time were were talking about putting fake IDs in Referecnes: as a way to add more data into the headers that would show up in XOVER. The actual format I came up with is not important. It's the same concept as yours with the addition of the small hash. I think. I'd have to to go find the article on google to be sure I'm not forgetting something. > > > The other thing that would be helpful to put in is small hash of > > the file contents. Not long enough to identify the file (that > > would make the Message-Id just too long) but one which was long > > enough to greatly narrow down the number of articles to search > > when trying to match up parts, or when trying to spot a re-post a > > file which you had missing segments for. > > hmm, a 16-bit CRC like in sum(1)?. of course, like sum(1), the > total-size can be used for narrowing down the list of candidates as > well. If you have a large checksum in the header elsewhere (SHA-1, MD5 etc), then the small checksum should just be N bits from the large checksum instead of a completely different algorithm. > > > if the partsize is (relatively) constant, it's easy to work out > > > how many parts there are in total, and which part number this > > > is. you only have a problem if the tail part is smaller than > > > the others, and there is no reason it should. > > > > Well, it's an estimate at best because there are different ways to > > split up a file. For example, a 31 byte file could be broken into > > size of 5 and 4 bytes each like this: > > > > 5 5 5 4 4 4 4 > > > > or 5 and 1 byte files like this: > > > > 5 5 5 5 5 5 1 > > surely you're not suggesting a part size of 5 bytes? :-) :) > the last part N will never be more than N octets smaller than the > first 1..N-1 parts. it is therefore trivial to calculate the part > number. Yes, you are right. But, with this new information in the Message-ID, it's both possible and useful to be able to repost partial segements of a file. For example, you post a 1MB file in 10 parts of 100K each, and then decide to repost only part 8. But when you repost it, you post the segment not as one part, but as 2 parts of 50K each (to help make sure the guy that lost the first part gets this one). If you tried to recalculate the "part numbers" of those two parts, the routh estimate would show you that they were parts 15 and 16 of a 20 part post but the exact byte numbers would not match up correctly as if you had done the orginal post as 20 parts (though it might be very close). If you were to repost the file segment which covered parts 2 and 3, but this time repost the segment in 3 parts instead of 2, then the reverse calculation of the "part number" wouldn't work at all. It's best to migrate to a system where the sofware keeps tracks of parts by using byte ranges and then it gets so complex that the user can't deal with it (just like the user doesn't have to deal with byte ranages in a TCP stream today). > > The first way is better, but when looking at a single segment, > > it's complex to know for sure how it's divided up because there > > are other options than these. > > this algorithm should be part of the spec. That wouldn't hurt. > > > More imporant is the stimple fact you don't give a shit about the > > part count or the part number if you have offset and size > > information. > > right. it's easier to calculate the percentage downloaded directly > from the octet counts than to go via part numbers. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020929112757.240$mc@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!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <1r1y7d7knu.fsf@atta.ifi.uio.no>Show Full Headers
Complete Article Headers
Message-ID: <20020929112757.240$mc@newsreader.com>
Subject: Re: [FNTP] 'in-completeness'
Date: Sun, 29 Sep 2002 15:27:57 +0000
From: curt@kcwc.com (Curt Welch)
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <1r1y7d7knu.fsf@atta.ifi.uio.no>
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!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com gyc=k9gQi+FdCHKcG7Hh8J.yGTN4pyRqYgD.TXQRMRXPKf
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: 104