🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80658

Re: basic nntp connections question

#80658
From: Curt Welch
Date: Wed, 22 Apr 2009 19:39
107 lines
7922 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
> wrote: Hi Curt,
>
> > Well, even if for a given server, the lower water mark MUST NEVER
> > decrease, newsreaders MUST (in practice) always be written to deal
> > reasonably with a decrease in either, or both, the low water mark and
> > the high water mark.
>
> In fact the low water mark MUST NEVER decrease in the *same* session.
> And it SHOULD NEVER decrease between sessions.

Yeah, that look correct.  However, when witting a newsreader, you should be
very defensive in your coding and not assume the server, even in the same
session, will follow that rule.  It's the sort of thing you just want to
make sure that your newsreader doesn't blow up on if a second GROUP command
showed a lower value for the low-water mark, but not waste any time writing
code to deal with gracefully with it.

> > It also happens when you use multiple front-end servers, all with their
> > own view of high and low water marks, and which server you connect to
> > each time can be somewhat random.
>
> Yeah, I assume it is what happens with Giganews.
> However, how could we explain the decrease in the same session?  It looks
> as though the active file and the overview are totally out of sync for
> a given front-end.

Yeah, that's just a bug and I have no reason why their server is doing
that.  But it's a bug that's not that unusual in these days of high volume
distributed servers.  To work "correctly" all this server data has to be
maintained in one, and only one physical place.  In INN, the value in the
active file IS the master value for the high and low water marks.  Whether
the user is seeing the data from a group command or a list command, or
indirectly as the error status on article fetch commands, all those
commands are referencing the single master source of the information - the
value in the value (or it's single cached disk copy in memory). But for
large distributed servers, it becomes unreasonable to maintain all that
data in a single master location.  If you do it that way, you have
decreased reliability - when the machine that holds the low water mark for
a group dies, no one can access that group anymore.  To make the machines
more reliable, the data gets cloned across many machines, and some update
system is used to try and keep all the clones in sync.  This systems always
end up with soft-failure modes where the data is still available, but the
update system is effectively "broken" as as a result, the different copies
of the data get out of sync.

> > They "advertised" it on their web site. :)
>
> And people pay for it, without documentation!
>
> > The articles are still available
> > by Message-id using nzb indexes, but the group is simply not getting
> > any new articles at this point.
>
> Because the article number cannot be stored by your news reader?

Because our production servers don't support 64 bit articles and we didn't
want to take the option of renumbering the group.  We have a server that
supports 64 bit articles but we don't trust it enough to put it into
production yet.

> What does it do?  (download the article and display it only?)

Well, my web-based newsreader is the only one I support.  It doesn't
support 64 bit articles but that's not important.  No one uses it to try
and read boneless anyway.  It's just a problem of dealing with the 2^31
limit on the server that we are dealing with.  The server itself can't deal
correctly with article numbers greater than 2^31.

nzb files (in case you don't understand this) are indexes used for
multipart binaries. They list the message-id of all the articles that make
up the multipart posting.  There are multiple indexing sites on the web
that provide (or sell you) nzb index files for the stuff posted to Usenet.
If you can get an nzb file for a post, you don't have to download the
headers.  You just fetch the articles by Message-id, and then combine them
together/decode them to create your large DVD file (for example).

For the time being, we have disabled the front end servers from getting any
new header data for boneless, so the group is stuck with a high water mark
of something like 2^32-4.  But all the articles are still in our spool, and
can still be fetched by Message-ID.  So anyone using nzb files to fetch
multipart posts by Message-ID will still be able to get the articles.

boneless started (as I understand it) as dump group for users using the
Dutch FTD program.  That's a special Usenet client that maintained a
database of binary multipart postings separate from Usenet.  The client
accesses the custom FTD post database to find articles instead of
downloading headers and then fetches articles by message-id so it never
needs to know, or use, article numbers.  With such a system, it's no longer
important where you post the articles.   You could post everything to
alt.test (as long as the retention was as good in that group as others)
since using the external article index database makes the whole header and
newsgroup indexing system redundant.  boneless became a standard default
dump group to pose anything which was being indexed by FTD.  As a result,
it quickly became the single highest volume group on Usenet.  It's got such
a high volume (In a 10 second test I just now did, it grew by 625 articles
- aka 62 articles per second) it's nearly impossible (or just pointless) to
use it as a standard group by downloading headers and looking at to see
what was posted.  At that rate, we are talking 200K+ article each hour.
That's something like 150 Kbps 24x7 just to download the headers.  With a 5
Mbit connection, you have to download headers 46 minutes every day to keep
up with the group (assuming all my math here is correct and assuming my 10
second test was typical of the entire 24 hours).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20090422153610.084$6U@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
References: <gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <gs95ub$165$1@news.trigofacile.com> <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com> <gsah2r$94p$1@news.trigofacile.com> <gsahhb$9ir$1@news.trigofacile.com> <gsb4hm$p61$1@news4.rz.uni-karlsruhe.de> <gsc12f$mbc$1@news.trigofacile.com> <gsdi70$orf$1@news4.rz.uni-karlsruhe.de> <gsdmd8$fct$1@news.trigofacile.com> <gslg8m$uqr$1@news4.rz.uni-karlsruhe.de> <gsmbpt$vrl$1@news.trigofacile.com> <20090422135041.301$n5@newsreader.com> <gsnnbs$8be$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <20090422153610.084$6U@newsreader.com>
Subject: Re: basic nntp connections question
Date: Wed, 22 Apr 2009 19:39:20 +0000
From: curt@kcwc.com (Curt Welch)
References: <gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <gs95ub$165$1@news.trigofacile.com> <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com> <gsah2r$94p$1@news.trigofacile.com> <gsahhb$9ir$1@news.trigofacile.com> <gsb4hm$p61$1@news4.rz.uni-karlsruhe.de> <gsc12f$mbc$1@news.trigofacile.com> <gsdi70$orf$1@news4.rz.uni-karlsruhe.de> <gsdmd8$fct$1@news.trigofacile.com> <gslg8m$uqr$1@news4.rz.uni-karlsruhe.de> <gsmbpt$vrl$1@news.trigofacile.com> <20090422135041.301$n5@newsreader.com> <gsnnbs$8be$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com 8mh_d,L8Ygmdk4cZo3_j0MKh+,7T/Cl4X+Cm.T3fZONTjcM
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 107
NNTP-Posting-Host: 0a6a5973.nr5-q1.newsreader.com
X-Trace: DXC=WAcg`IX3RZ86OKXHYh=?49bgZaH`e<A[9Z?:i9<JJBS>e[j01oNBKT>iJ;
 iV2YAoG5dG[o]efLlS1iBNBdb<62_9
X-Complaints-To: abuse@newsreader.com
X-Original-Bytes: 7498