🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60765

Re: [FNTP] 'in-completeness'

#60765
From: Kjetil Torgrim Homme
Date: Sat, 28 Sep 2002 23:35
78 lines
4310 bytes
[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?

>   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 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? :-)

in reality, you will have a Ogg file, like "01_Angels Turn to
Devils.ogg" which 5967032 octets.  to keep it under the common 512k
transit limit, we choose a maximum part size of 500 000 (unencoded),
leading to 12 parts, each consisting of 497253 octets, but the last
part will be just 497249.  the msgids will be

  <0'79665'5b0cb8'id-left@id-right.nntpbin>
  <79665'79665'5b0cb8'id-left@id-right.nntpbin>
  <f2cca'79665'5b0cb8'id-left@id-right.nntpbin>
  ...
  <537657'79661'5b0cb8'id-left@id-right.nntpbin>

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.

>   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.

>   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.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Technical Details
Message-ID: <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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <1r1y7d7knu.fsf@atta.ifi.uio.no>
Subject: Re: [FNTP] 'in-completeness'
Date: Sat, 28 Sep 2002 23:35:01 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
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>
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!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 77
NNTP-Posting-Host: atta.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1033256103 9116 129.240.65.208 (28 Sep 2002 23:35:03 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 28 Sep 2002 23:35:03 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7