🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62473

Re: xBin (Power-Post 2003 - requesting input from authorities..)

#62473
From: Kjetil Torgrim Homme
Date: Sat, 28 Dec 2002 11:59
94 lines
5691 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > there is no defence against this, but it is relatively benign from the
>   > user's viewpoint.  it's worse for the server, since its stats on
>   > completeness would be skewed,
>   
>   If someone posts a fake the servers stats are skewed?  How?

the server might try to do some simple analysis on the Message-IDs to
see which files are complete and which ones are not.  first step is to
just add up the number of segments posted in the tuple (hash, rhs).
second step is to consider the actual intervals.  third step is to
look at all the parts and verify the signatures.  for heuristical and
statistical purposes, step one would probably suffice, if fake parts
were just thrown out.

>   > and this makes it harder to do intelligent feeding or expire
>   > tricks.
>   
>   What are you talking about?

if a peer is backlogged, prefer to send him complete files, rather
than just FIFO.  expire incomplete files before others (only a good
idea if you actually have _long_ (weeks) retention.)

>   > it could try to verify the hash and throw it out if its a fake.
>   > this requires the part to include its own hashes, since the
>   > server really don't want to look at several articles to make
>   > decisions.
>   
>   With the xBin system, the server _can_ verify the article without
>   looking at any other articles and toss it out if it's bogus.  And
>   the article does not need to include it's own hashes for that.
>   The server does however have to decode and hash all the data in
>   the article, so it's some work.

geez, I really knew that.  what was I thinking?

>   > okay, this could never happen, since the offset is an odd value
>   > while the segment size is even, but 16 hashes is a real
>   > possibility.
>   
>   It still could.  There is no requirment to divide the file up
>   evenly.

true, especially towards the end.

>   Though it's not very likely and even less so because you are
>   talking about a 6MB article which is seldom done.

yeah.  Rene has done a lot of fine work on this, but I must admit my
eyes sort of glazed over.  what was the conclusion?  worst case is
2*trunc(log2(N)), like above?  or was it worse?  (I can't imagine how
it can be.)  no wait, he was considering the other hashes, of course.
N blocks to a segment, M blocks to the file.  I think is an upper
bound for the others (including the root): 2*log2(ceil(M/N)) - 1.

>   > I'm not sure we need this, though.  isn't a single hash of the
>   > entire segment good enough?
>   
>   nope.
>   
>   If you want to verify all the hash values in the signature, you
>   have to have all partial tree hashes you talked about above.  All
>   those values get hashsed with other values in the signature and if
>   you didn't include these, and instead included some higher value
>   node above these, you would have no way of verifying the other
>   hash values.  The point of including these hash values in the
>   signature is only so you can verify the other values.  If you
>   can't verify the other hash values in the signature, then I don't
>   see any point of including any hash for the blocks included in the
>   post.

the point was to make the verification of a single part easier for the
server or client.  just one invocation of the hashing function, rather
than a lot of tree traversal.  forget it, it's just silly.

>   I think you might be right.  But INN I think had a limit on the
>   max header for any header it had to use.  I believe it unfolds
>   those headers (like Date, Newsgroups:) into a fixed sized buffer
>   of around 1KB and if the unfolded header was too long for one of
>   those headers, it would be rejected.
>   
>   The question is are there any probelems like this for other
>   headers?  How about with XHDR?

good question.  someone will have to go look in INN 1.7.2, 2.2 and 2.3
:-)

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1rk7hugxrj.fsf@tva.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!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223180543.105$Wn@newsreader.com> <20021223185652.700$BS@newsreader.com> <20021223203608.351$Qp@newsreader.com> <20021223223311.286$Mx@newsreader.com> <20021224034919.081$PY@newsreader.com> <20021224151028.847$pv@newsreader.com> <20021225035755.305$XK@newsreader.com> <1ry96bxi7m.fsf@sjau.ifi.uio.no> <20021228010157.435$qN@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rk7hugxrj.fsf@tva.ifi.uio.no>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Sat, 28 Dec 2002 11:59:12 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223180543.105$Wn@newsreader.com> <20021223185652.700$BS@newsreader.com> <20021223203608.351$Qp@newsreader.com> <20021223223311.286$Mx@newsreader.com> <20021224034919.081$PY@newsreader.com> <20021224151028.847$pv@newsreader.com> <20021225035755.305$XK@newsreader.com> <1ry96bxi7m.fsf@sjau.ifi.uio.no> <20021228010157.435$qN@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!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 93
NNTP-Posting-Host: tva.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1041076752 13233 129.240.65.202 (28 Dec 2002 11:59:12 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 28 Dec 2002 11:59:12 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7