Article View: news.software.nntp
Article #60768Re: [FNTP] 'in-completeness'
From: Kjetil Torgrim Homme
Date: Sun, 29 Sep 2002 11:10
Date: Sun, 29 Sep 2002 11:10
59 lines
3767 bytes
3767 bytes
[Klaas]:
> [Bill Cole]:
> > [Curt Welch]:
> > > A good hash would be at least 128 bits (MD5), and in hex you
> > > need 32 characters.
> >
> > But why use hex??? I think 6 bits per character is a better idea than
> > 4, and quite workable. That's 22 characters.
>
> Not only that, but is a 128 bit hash really necessary in the
> MsgID? A 64-bit hash would work very well (especially when
> coupled with file size). That's only 11 characters.
one collision for every 4 billion files (birthday paradox) seems
reasonable for this use, yeah. and let's go for BASE64 (which for
reference uses A..Z a..z 0..9 + /).
<offset'part-size'total-size'hash'id-left@id-right.nntpbin>
total-size ranges from 0 to 1 GiB. today's typical size is quite a
bit smaller since people rely on chopping into multiple RAR-files.
(30 bits => 5 six-bit characters)
offset is on average the same size as total-size, minus one bit (half
the parts will have an offset larger than total-size/2).
(29 bits => 5 six-bit characters)
part-size ranges from 0 to 1 MiB.
(20 bits => 4 six-bit characters)
hash is 32 bits.
(32 bits => 6 six-bit characters)
fixed characters: ' ' ' ' .nntpbin
(12 characters)
in total, 32 characters added to the original Message-ID.
we can reduce the hash to 30 bits, saving one octet, or increase it to
36 bit with no extra cost.
id-left can be reduced in size, though. 4 random characters,
conforming to dot-atom-text, should suffice -- that gives you 40
million possible values. some posters will want to add their own tag
to make it possible to score all articles easily, though, and that
should be allowed.
perhaps .nntp is a better RHS constant than .nntpbin. I feel .bin is
too likely to be used as a TLD in DNS proper.
> I realize that msg-id bits are precious, but I don't see that
> precluding the inclusion of a hash in the msg-id (not as the only
> reason, anyway).
the above shows that the hash is 7 octets out of 32 octets of
"overhead", which seems reasonable to me, but we have to keep in mind
the story about the straw that breaks your camel's back.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Technical Details
Message-ID:
<1rheg959wq.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.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!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> <Xns9297A0C2EA4Enothing@209.98.50.131> <20020928154857.814$ti@newsreader.com> <bill-DB0FCD.17071028092002@newssvr28.news.prodigy.com> <Xns92983FE9E24Bnothing@209.98.50.131>Show Full Headers
Complete Article Headers
Message-ID: <1rheg959wq.fsf@atta.ifi.uio.no> Subject: Re: [FNTP] 'in-completeness' Date: Sun, 29 Sep 2002 11:10:13 +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> <Xns9297A0C2EA4Enothing@209.98.50.131> <20020928154857.814$ti@newsreader.com> <bill-DB0FCD.17071028092002@newssvr28.news.prodigy.com> <Xns92983FE9E24Bnothing@209.98.50.131> 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.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail Newsgroups: news.software.nntp Organization: Dept. of Informatics, Univ. of Oslo, Norway Lines: 58 NNTP-Posting-Host: atta.ifi.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1033297814 11175 129.240.65.208 (29 Sep 2002 11:10:14 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 29 Sep 2002 11:10:14 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7