Article View: news.software.nntp
Article #63855Re: xBin and PARity files
From: Kjetil Torgrim Homme
Date: Wed, 05 Feb 2003 00:59
Date: Wed, 05 Feb 2003 00:59
97 lines
5353 bytes
5353 bytes
[Curt Welch]: > > That's a point I wouldn't have thought about. Do we know enough > to be in the position to make a strong recommendation [about how > many fragments a PAR file should cover]? well, even if we (I) don't know the workings of PAR intimately, I feel I know enough about probability calculation to analyse the problem. not that I have done so, yet :) > Is it even resonable to pick a single number for everyone to use > as a default? a large number like 100 clearly can't be used for small files. btw, the default would be better specified as the smaller of (number of remaining fragments) and 100. > My instincts tell me that any number we might pick would tend to > become outdated at some point in the future yet the optimal number is a function of the lossiness of Usenet. however, if lossiness gets very low, the entire concept of PAR information gets obsoleted. > everyone that wrote a xBin Message-ID decoder would be required to > add that "100" default into their code for the rest of time. It > doesn't seem right to force any constant (other than 0 or 1) into > a standard when it's not required and likely to be ignored at some > point in the future. this is small potatoes compared to the code to handle the possibly obsolete PAR files ;-) > If N is not optional, then maybe it shoudn't even be a separate > parameter? Maybe both the par file number and the span size > should be encoded into the P value somehow? If the par formula > number is limited to 256, then put that in the lower 8 bits and > the N value into the higher bits and encode it as a single number > which is the ~P parameter? ugh! > > the algorithm I specified will actually produce the sequence > > > > 20 20 20 20 19 19 19 19 19 19 19 19 20 > > > > where the last block is only partially full. I don't think this > > matters much, the PAR file covering the last article will simply > > contain 22500 bytes more than necessary. > > Yeah, the above makes the article sizes closer but creates a minor > problem with the PAR files. If you want to create a PAR file > (using the specification system we are talking about in this > article) that spans the last 5 articles of the above post you > can't do it. The PAR file would end up covering only the first 19 > blocks of that last article. right. I misspoke. > One thing you could do is post those PAR file (which covers > everything expect the last partial block of the file, and then > just re-post the last partial file as is in a small file in case > anyone needed it. But that's getting strange. not very :-) > However, posting the orginal as 20 20 19 19 19 18.5 takes the > strangeness out. The article sizes are not as close together in > size this way, but, the shortest article is the one posted last, > and since smaller articles tend to move though usenet slightly > faster, that's not really a bad thing either - i.e. the last > article posted moving faster and catching up with the previous > ones. this would work as well, of course. the downside is that the delta between smallest and largest article is now two blocks rather than just one. > In the end however, either would work with xBin as we are talking > about it now, so people that write the posting tools could decide > for themself what they think works best and post it either way. true, but I think the recommendation on fragment sizes in the spec is needed, and it should give the preferred result. > As far as what we talk about in the spec, maybe the simpler way > (which produces posts with articles that aren't as close in size) > is the better one to go with because this is very complex already > for a lot of people? Or maybe we could mention both? I don't think the algorithm is that different, I think it may actually be a little more complicated. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Technical Details
Message-ID:
<1ry94vo843.fsf@vingodur.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!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!uio.no!nntp.uio.no!ifi.uio.no!not-for-mailReferences:
<20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@newsreader.com> <20030103212914.998$3s@newsreader.com> <20030130214337.749$eF@newsreader.com> <1ry951werx.fsf@vingodur.ifi.uio.no> <20030202192320.152$Sn@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <1ry94vo843.fsf@vingodur.ifi.uio.no> Subject: Re: xBin and PARity files Date: Wed, 05 Feb 2003 00:59:24 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@newsreader.com> <20030103212914.998$3s@newsreader.com> <20030130214337.749$eF@newsreader.com> <1ry951werx.fsf@vingodur.ifi.uio.no> <20030202192320.152$Sn@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!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail Newsgroups: news.software.nntp Organization: Dept. of Informatics, Univ. of Oslo, Norway Lines: 96 NNTP-Posting-Host: vingodur.ifi.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1044406765 24699 129.240.68.200 (5 Feb 2003 00:59:25 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 5 Feb 2003 00:59:25 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7