🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61065

Re: [FNTP] 'in-completeness'

#61065
From: Russ Allbery
Date: Sat, 05 Oct 2002 16:52
203 lines
12188 bytes
Curt Welch <curt@kcwc.com> writes:

> That may be so.  But the current mess we have with sites trying to
> filter large binaries by filtering on articles size is giving the users
> the completely wrong message.  It's trainging them that posting in large
> part sizes is "bad", and posting in smaller part sizes is "good".

Yes, I agree.  In fact, I consider the social problems, like that one, to
be the truly significant problem, not the technical problems.

Here's what was occuring to me last night:  Some providers are already
decoding binaries for their users and making them available in decoded
form.  This is additional evidence that NNTP actually sucks for doing what
people are doing with NNTP.  Now, suppose you're an ISP who wants to carry
a full binary feed, and you already peer with a few other sites that also
want to do that.

One of those sites comes to you and says "Look.  We can keep feeding you
encoded binaries in tons of separate parts, or, since we decode those
binaries for our users anyway, we'll decode all the locally posted
binaries, convert those files into MIME-encoded files using the 'binary'
CTE, and put them in dated and timestamped files in a directory.  We'll
then give the IP addresses of your choice access to download from that
directory.  Feel free to run wget or or rsync or something, and then
re-encode the binaries for your local readers if you want or just put them
directly into your decoded binary interface."

What would you do?

Suppose that most of the large sites originating binaries started doing
that.

Now, throw this in:  Users aren't *really* thrilled with posting binaries
themselves.  It's better with yEnc than with uuencoded posts, but it's
still a real pain to upload all that stuff through a slow connection,
particularly if their connection dies or stalls and they have to restart.

So suppose one offers a service like this:  They can post the text portion
of the post with a marker in the body with the file name that they want to
insert, and it goes into a hold queue.  Then they can upload the binaries
into a personal FTP area, using a regular FTP client with resuming of
upload and all of the other nice features of FTP, without having to do any
encoding at all.  The ISP then takes the binary and the text portion and
puts it together, encodes it however, and posts it for them.

Now combine the two ideas.

Before long, you've got a mechanism for distributing binaries that works a
lot better than Usenet.  People upload the files via FTP.  Sites exchange
the files via rsync or wget or some other mirroring protocol, which is
considerably more efficient than NNTP in every way.  If they want, they
recode the articles into base64 or yEnc or whatever and dump the articles
into their local spool, but many sites will then just make the binaries
available to their customers to download via HTTP.

You end up using the right protocols for the work you actually want to do,
and the entire arrangement is more convenient, has better *existing*
tools, and is much less of a pain for everyone involved.  It's just a lot
of hassle to set up the first time.

Now, I don't think this will ever happen, but that's not for technical
reasons.  I don't think it will ever happen because the levels of
indirection and nonsense that happen with binaries over NNTP right now
give providers plausible deniability when it comes to DMCA complaints and
similar issues, and I think sites would be worried about putting up
something like the above because it would make it entirely obvious exactly
what they were doing.

But I think it's *significantly* better from a technical standpoint, and I
highly doubt that *anything* you do to the NNTP protocol will even
approach a setup like the above for convenience, reliability, and ease of
use for the really large binaries.  You can even string together mirroring
arrangements to achieve something very much like the existing flood fill
system, except that on top of that you can even backfill from other
people's posting queues (depending on their retention; I expect a cron job
will periodically blow away the older articles sitting in the mirror spool
for other sites).  And frankly, rsync with some tweaking to only sync the
directories later than the last time you updated is likely to be a lot
more efficient even than streaming news feeds.

Again, I don't do the large volume binary thing, so I may well be missing
something.  I'm very interested in being told where I'm full of shit.  :)

> As long as a bulk of the posters still post huge things in small part
> sizes, we are never going to be able to get people to increase there
> posting size.  Sites that need to control volume will still continue to
> filter by article size.

Filtering by article size does not control volume.  That's the fundamental
problem.  You can filter out everything larger than 1MB and still end up
receiving almost all of the articles that you'd receive with an unlimited
article size, from the statistics that I've heard (although I don't have
them at my fingertips, so I could be surprised).

You have to filter by stuff like whether the article "looks" like a
multipart and then your guesses about how big the combined size would be,
and that's a complete mess.

> Well, that's the point of these message-id conventions.  We are looking
> for simple ways to tranform usenet so that sites that want partial
> binary feeds will have much better options to pick from.  If all the
> binary multipart posts had message-ids that include the full size of the
> binary file, filtering by binary file size (instead of article size)
> becomes trivial.

Don't get me wrong; I'd love to see that.  I'd happily make use of that.
But I think it's an ugly hack to put meta-information into the message ID,
and I'm also very skeptical that this will actually work.

> You do have issues with users refusing to use the convention becuase it
> only causes their posts to be filtered (or continuing to post sets of
> rar files instead of one huge file to get under the per-file limit of
> their server).  But, if you combine these conventions with other feature
> that the users like, and if enough news admins like the features, then
> it can be forced on most of usenet.

The problem is that it strikes me as an equivalent or only a little bit
less work than the system that I describe up above, since there's going to
be a lot more resistance since it isn't as convenient for the users and
they have to update their autoposting software, and just doing something
like I describe above *really* solves the problem and would make
*everyone* happier.

> For example, you could set up feeds to peers that won't feed any article
> over 10K unless it was marked correctly with this new message-Id
> convention.

Not unless you're going to force text posters to use this convention too,
you can't.  And that requires changing a heck of a lot of software.

>> No.  That argues for being able to resume POST as well.

> yeah, but we already have that "fixed" with multipart posts.

No, we've got a horribly hacked-up solution that allows you to "resume" at
500KB boundaries or so, at the cost of it being more common than not for a
site to not get all the parts of the binary, to the degree that people are
inventing parity solutions for their posts to restore missing parts.

Calling that "fixed" even with the quotes is quite a stretch.

> I can see that working for tradational spools without huge code impact
> (cache performance is another issue), but how do you deal with cycbufs.
> You can't write straight to the cycbuf as you receive an article because
> only one thread can write to the spool at a time and you can't afford to
> lock up the entire cycbuf when an incomming article stalls or is
> disconnected mid-article.

Yes, you can, if you have a number of cycbuffs on the order of your
incoming binary streams, but I talked about this more in another message.
(Disconnected isn't a problem; you just roll back to the last successful
write point and start accepting another article.)

> If you write to temp files, it will work, but if you work with articles
> that are on average 10 times larger, you will need 10 times more memory
> in your cache to get the same performance.

For what?

I don't see how this is relevant at all to a reader server.  Is it your
experience that your readers are so fast about downloading new articles
that newly arriving articles are served out to reader connections out of
your disk cache rather than going to disk?

That would surprise me, but then I know that much binary newsgroup reading
is being done by automated programs, so maybe that's really the case.  But
on first glance, it sure sounds like you're worried about feeding articles
out to other sites rather than feeding them to readers, and honestly I
don't see why you care if that's a bit slower.

The transit server can be drastically simpler in many respects than the
machine that serves readers.  It doesn't have to build overview databases,
for one.  Seems like if you threw comparable hardware at it as you throw
at your reader server, it could absorb the cache hit in all the overhead
it's saving by having fewer database commits.

And seriously, for a high-end operation, it's not *that* relatively
expensive to just put 10GB of RAM in your transit server.  Given that I
could consider doing that, and I have practically *no* budget for news, it
would surprise me if that would be a serious issue for a site devoted to
news (although I know Usenet sites are often run on much more of a
shoestring budget than I'd expect).

> I'm not an expert on what life would be like if the article size was 1MB
> instead of 100KB, but it only seems like it's going to make life that
> much harder for my servers to keep up.  Some of that is just the way I
> structed my code, but some is just a fact of life with store and forward
> systems that work better if they don't have to "store" as much before
> they can "forward" and then free up the cache space.

You certainly have a valid point about the effects of caching for transit
servers.  Maybe it ends up weighing more heavily than I expect it to.

But the whole thing overall strikes me as such a waste.  There are so many
better ways to engineer something like this than the God-awful hacks we're
running over NNTP right now.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yld6qosu9b.fsf@windlord.stanford.edu>
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!shelby.stanford.edu!not-for-mail
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <ylofabv431.fsf@windlord.stanford.edu> <4319b.4a2200@archiver.winews.net> <ylzntuxir5.fsf@windlord.stanford.edu> <041020021438385411%planb@newsreaders.com> <yl7kgyrpwd.fsf@windlord.stanford.edu> <041020021954536744%planb@newsreaders.com> <ylwuoxhhhx.fsf@windlord.stanford.edu> <20021005022430.397$TR@newsreader.com> <yld6qpv0rd.fsf@windlord.stanford.edu> <20021005043816.517$kr@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <yld6qosu9b.fsf@windlord.stanford.edu>
Subject: Re: [FNTP] 'in-completeness'
Date: Sat, 05 Oct 2002 09:52:32 -0700
From: Russ Allbery <rra@stanford.edu>
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <ylofabv431.fsf@windlord.stanford.edu> <4319b.4a2200@archiver.winews.net> <ylzntuxir5.fsf@windlord.stanford.edu> <041020021438385411%planb@newsreaders.com> <yl7kgyrpwd.fsf@windlord.stanford.edu> <041020021954536744%planb@newsreaders.com> <ylwuoxhhhx.fsf@windlord.stanford.edu> <20021005022430.397$TR@newsreader.com> <yld6qpv0rd.fsf@windlord.stanford.edu> <20021005043816.517$kr@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!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 202
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1033836752 15335 171.64.13.23 (5 Oct 2002 16:52:32 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:dchnYrdQe9g0ppLjcBYi/g/Xj6Y=