🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
24 messages
24 total messages Started by Douglas Cook Tue, 10 Aug 1999 00:00
NNTP protocol question
#39049
Author: Douglas Cook
Date: Tue, 10 Aug 1999 00:00
35 lines
1994 bytes
(This may be the wrong newsgroup for this question.  Please let me know if
you are aware of a newsgroup that fits my topic better.)

I am developing a specialized NNTP client.  When it logs onto a news server,
it needs to know the message ID's of the articles in a particular group.
The easiest way for me to do this is to execute a "NEWNEWS [group] 700101
000000", which returns a listing of the message ID's of all articles in
group since 1970, or in other words, all of them.  However, I realize that
this isn't a good way to do it, since it uses up a lot of the server's
processing power (it has to retrieve each article and parse the article's
date field to verify that it was posted after 1970).  Besides being not-nice
to the server, it means the client is slow as well, since there is a
noticeable delay while the server processes the request, scanning all of the
articles for their posting dates.  Compatibility is a big issue.

One way I've thought about is to
"GROUP [group]"
"STAT" (returns the first article's message-ID)
Repeat "NEXT" until I get a 422.

But this probably isn't all that "nice" to the server either, making it
process n requests instead of 1.

What is the preferred method of getting a list of the message-ID's within a
group?

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=
Douglas Cook - MCP
mailto:cookd@cs.byu.edu
=-=-=-=-=-=-=-=-=-=-=-=-=-=



Re: NNTP protocol question
#39039
Author: Dufus Systems
Date: Tue, 10 Aug 1999 00:00
66 lines
3164 bytes
Douglas,

I'd track the last time I contacted the server by tracking the message
number of the last article pulled (which you have to do on a per server
basis), then I'd user XOVER to extract all overview records from the last
record seen to the current time. The GROUP command response gives you the
min and max record number that the server has for a group. You'll then just
be pulling the new records. First time through you might have to do
something different and this assumes you're storing the headers between
runs. If you're not storing records and each time is like the first time,
I'd also user XOVER but, use the numbers returned by the group command to
specify the range to pull.

You could also use NEWNEWS to do it by tracking the last time you finished
pulling headers from the server for that groups and NEWNEWSing from that
time.

Conrad





Douglas Cook <cookd@cs.byu.edu> wrote in message
news:7oqj34$j662@bbs2.pnl.gov...
> (This may be the wrong newsgroup for this question.  Please let me know if
> you are aware of a newsgroup that fits my topic better.)
>
> I am developing a specialized NNTP client.  When it logs onto a news
server,
> it needs to know the message ID's of the articles in a particular group.
> The easiest way for me to do this is to execute a "NEWNEWS [group] 700101
> 000000", which returns a listing of the message ID's of all articles in
> group since 1970, or in other words, all of them.  However, I realize that
> this isn't a good way to do it, since it uses up a lot of the server's
> processing power (it has to retrieve each article and parse the article's
> date field to verify that it was posted after 1970).  Besides being
not-nice
> to the server, it means the client is slow as well, since there is a
> noticeable delay while the server processes the request, scanning all of
the
> articles for their posting dates.  Compatibility is a big issue.
>
> One way I've thought about is to
> "GROUP [group]"
> "STAT" (returns the first article's message-ID)
> Repeat "NEXT" until I get a 422.
>
> But this probably isn't all that "nice" to the server either, making it
> process n requests instead of 1.
>
> What is the preferred method of getting a list of the message-ID's within
a
> group?
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=
> Douglas Cook - MCP
> mailto:cookd@cs.byu.edu
> =-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>



Re: NNTP protocol question
#39067
Author: Thorfinn
Date: Wed, 11 Aug 1999 00:00
31 lines
1969 bytes
[ followups set to just news.software.nntp ]

In news.software.readers, on Tue, 10 Aug 1999 18:18:28 -0700
Douglas Cook <cookd@cs.byu.edu> wrote:
> What is the preferred method of getting a list of the message-ID's within a
> group?

"Use XHDR, Luke..."

Do the GROUP command, which will tell you what articles are
available...

then do:

XHDR Message-ID <firstarticlenum>-<lastarticlenum>

And that should work nicely.

Or you could request the whole XOVER record, if you like.

Later,

  Thorfinn

-- 
<a href = "http://netizen.com.au/~thorfinn/">thorfinn@netizen.com.au</a>
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.  -- Kernighan

Re: NNTP protocol question
#39078
Author: Andrew Gierth
Date: Wed, 11 Aug 1999 00:00
32 lines
2288 bytes
>>>>> "Douglas" == Douglas Cook <cookd@cs.byu.edu> writes:

 Douglas> I am developing a specialized NNTP client.  When it logs
 Douglas> onto a news server, it needs to know the message ID's of the
 Douglas> articles in a particular group.  The easiest way for me to
 Douglas> do this is

to use the XHDR command to fetch all the Message-ID headers.

 Douglas> to execute a "NEWNEWS [group] 700101 000000", which returns
 Douglas> a listing of the message ID's of all articles in group since
 Douglas> 1970, or in other words, all of them.  However, I realize
 Douglas> that this isn't a good way to do it, since it uses up a lot
 Douglas> of the server's processing power (it has to retrieve each
 Douglas> article and parse the article's date field to verify that it
 Douglas> was posted after 1970).

Actually, what INN would do in such a case would be to scan the whole
history file (which may be a gigabyte or so in size) looking for
articles in the date range (which will be every article on the server)
and then figure out which of those articles are in the correct group
(by fetching the article, _sheesh_) i.e. the problem is many orders of
magnitude worse than you think.

Most other implementations of NEWNEWS are equally poorly implemented.
A more efficient way of doing it has been discussed here in the past,
but no-one seems to have taken much notice.

-- 
Andrew.

Re: NNTP protocol question
#39119
Author: Asle Pedersen
Date: Thu, 12 Aug 1999 00:00
26 lines
1905 bytes
Dufus Systems wrote:

> Douglas,
>
> I'd track the last time I contacted the server by tracking the message
> number of the last article pulled (which you have to do on a per server
> basis), then I'd user XOVER to extract all overview records from the last
> record seen to the current time. The GROUP command response gives you the
> min and max record number that the server has for a group. You'll then just
> be pulling the new records. First time through you might have to do
> something different and this assumes you're storing the headers between
> runs. If you're not storing records and each time is like the first time,
> I'd also user XOVER but, use the numbers returned by the group command to
> specify the range to pull.
>
> You could also use NEWNEWS to do it by tracking the last time you finished
> pulling headers from the server for that groups and NEWNEWSing from that
> time.

I wouldn't use the NEWNEWS command at all, due to the fact that many newsservers
have this feature disabled.

-Asle


Re: NNTP protocol question
#39169
Author: Dmitriy
Date: Sat, 14 Aug 1999 00:00
44 lines
2098 bytes
!!! You are right! Why RFC 977 does not work????
Chaos!!

--

===========
Dmitriy, MCSE
Association of Windows NT System Professionals



Asle Pedersen wrote in message <37B2C58D.4569C005@pc.grm.hia.no>...
>Dufus Systems wrote:
>
>> Douglas,
>>
>> I'd track the last time I contacted the server by tracking the message
>> number of the last article pulled (which you have to do on a per server
>> basis), then I'd user XOVER to extract all overview records from the last
>> record seen to the current time. The GROUP command response gives you the
>> min and max record number that the server has for a group. You'll then
just
>> be pulling the new records. First time through you might have to do
>> something different and this assumes you're storing the headers between
>> runs. If you're not storing records and each time is like the first time,
>> I'd also user XOVER but, use the numbers returned by the group command to
>> specify the range to pull.
>>
>> You could also use NEWNEWS to do it by tracking the last time you
finished
>> pulling headers from the server for that groups and NEWNEWSing from that
>> time.
>
>I wouldn't use the NEWNEWS command at all, due to the fact that many
newsservers
>have this feature disabled.
>
>-Asle
>
>



Re: NNTP protocol question
#39176
Author: Russ Allbery
Date: Sat, 14 Aug 1999 00:00
13 lines
1138 bytes
In news.software.nntp, Dmitriy <dmitriyf@yesic.com> writes:

> !!! You are right! Why RFC 977 does not work????

NEWNEWS is an optional feature in RFC 977, and the type of data storage
required to implement it efficiently isn't the type of storage used by
most news servers, meaning that it tends to be a big load hit on the
server.  So a lot of people turn it off.

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

Re: NNTP protocol question
#39178
Author: Ade Lovett
Date: Sun, 15 Aug 1999 00:00
68 lines
3632 bytes
On 14 Aug 1999 20:16:57 -0700, Russ Allbery <rra@stanford.edu> wrote:
>
>NEWNEWS is an optional feature in RFC 977

Wrong.  RFC977 states:

	3.8.2.	Reponses
	    230 list of new articles by message-id follows

Nowhere does it state that this command is optional.

Almost identical wording is used in draft-ietf-nntpext-base-08.txt

Indeed, grepping through both documents for the word "optional",
reveals nothing at all with regards to NEWNEWS.

>and the type of data storage
>required to implement it efficiently isn't the type of storage used by
>most news servers

Wrong again.  This is absolutely nothing to do with the type of
data storage, just the apparent inability of (most) news server
authors to take a tiny step back from the problem, look at what is
actually required to implement the NEWNEWS command and make another
tiny step to actually implement it.

It really isn't rocket science.  Honestly.  And I know there's a
few used-to-be disbelievers out there (you know who you are :) who
can attest to at least a couple of real-world examples where NEWNEWS
works just fine.

Who knows, maybe when I'm not in the commercial business of implementing
such systems, I'll share the "secrets".  It really is staggeringly
easy to implement -- indeed, the first system that I implemented it
on involved around 40 lines of new code to CNEWS/CR-G, and another 50
into the reference NNTP implementation.  This isn't, as some might
think, a boast, just an indication of how trivial it really is to
"solve" this particular problem.

Of course, a fast NEWNEWS implementation raises other bugbears (you then
have to make damn certain your article retrieval via messageID isn't
a system killer, for example).


>meaning that it tends to be a big load hit on the
>server.  So a lot of people turn it off.

Indeed they do.  Something of a shame, really, since the global
(or near global) implementation of this command would make multi-server
newsreaders a whole lot easier to implement.  In fact, taking things
to their logical conclusion, if it were implemented across-the-board,
becoming the preferred method of article retrieval (do a NEWNEWS on
the groups you're interested in, followed by a bunch of HEAD <id>,
and later on, BODY <id> after local filters have done their work),
a lot of the pain that bigger sites have to deal with in terms of
keeping slave servers in sync would simply disappear.

By all means berate NEWNEWS.. just do it for the right reasons.
The command itself is intrinsically sound, and a very useful part
of the protocol, it's just the well-known implementations that suck.

-aDe

-- 
Ade Lovett, Supernews Inc., San Jose, CA.
mailto:ade@supernews.com   http://www.supernews.com

Re: NNTP protocol question
#39179
Author: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
27 lines
2004 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes:

> I've never disputed that.  However, getting down to the core of "the
> Usenet problem", techniques learnt from implementing a high-end system
> have serious potential elsewhere..  after all, netnews is "just" an
> index-and-retrieval problem.

Certainly true.

> Sometimes, a little bit of time away from implementation, and back into
> concerted design, really does pay off..

Oh yes, definitely, and I don't mean to discourage you from doing that,
just to discourage you from jumping on my case for answering a question
about current practice.  :)

Given about six months of doing nothing but rethinking and reimplementing
INN, I bet I could come up with a server that shared the wide-ranging
portability and flexibility of INN but ran quite a bit faster and scaled a
lot better.  Of course, I'd also go stark-raving mad since I'm
psychologically incapable of working on nothing but one project for six
months....

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

Re: NNTP protocol question
#39180
Author: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
32 lines
2369 bytes
In news.software.readers, Ade Lovett <ade@supernews.com> writes:

> For n percent of news sites (where n is fairly close to 100), none of
> the above matters.  Resources elsewhere make the whole scheme
> prohibitively expensive, and such sites either cut back on their feeds,
> do away with news entirely, or outsource.

> Current publically-available software (either free, or paid-for) try as
> hard as they can, with varying degrees of success (ranging from
> mediocre, to pretty good), to cope with "news".

> Looking at the future, however, it is pretty obvious that, sooner or
> later, all of these systems will fail, in the sense that they can no
> longer keep up with demand.  (death of the net predicted, mpeg at 11,
> yadda, yadda..)

I'm afraid I don't agree.  Those systems will fail to keep up with
binaries, yes, and there are a lot of sites (and I think a growing number)
that are simply giving up on binaries, a trend which I wholeheartedly
welcome.  Taking binaries out of the mix, I think that processor and disk
speed is growing sufficiently fast to keep up with the rate of growth in
text posts.  Even if development of INN completely ceased right where it
is right now, I'd expect it to be able to adequately handle a text-only
feed ten years into the future.

There certainly are people who are currently running ten-year-old news
server installations and handling a text feed without much problems.

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

Re: NNTP protocol question
#39181
Author: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
111 lines
6594 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes:
> On 15 Aug 1999 18:05:03 -0700, Russ Allbery <rra@stanford.edu> wrote:

>> No, I'm sorry, but I'm not wrong here.  To implement NEWNEWS
>> efficiently, while still properly dealing with crossposting

> 977/nntp-base-08 says nothing about crossposts for NEWNEWS.  All it
> talks about is "a list of message-ids of articles .. one per line".

Please take a few moments to try to figure out what I might be talking
about rather than just assuming I'm not making any sense.  The client
gives NEWNEWS a set of newsgroup patterns and expects a list of new news
in those newsgroups.  The implementation had better return articles that
were crossposted as well as articles that were posted to just that
newsgroup.  This becomes an issue because some server implementations, for
reasons related to their article store, treat articles as posted to one
"main group" and a number of other "secondary" groups, and that needs to
be hidden from the client using NEWNEWS.

Obvious, not particularly exciting, but it is something that you have to
think about when you're writing code.

>> and the full syntax of the command (which allows specification of
>> distribution restrictions) requires a data storage that is not present
>> on most news servers.

> Not true.  In it's general sense, a news server is made up of a number
> of articles, and indexing information about those articles.

That's nice.  In it's specific sense, a news server is made up of a
particular type of article store and a particular set of indexes, and the
indexes needed to implement NEWNEWS efficiently are not present on most
news servers.

> This is more an artefact of thinking in terms of *current* news software,
> rather than *future* news software.

Ade, what part of "is not present on most news servers" is not coming
across here?  Would you please either start reading what I'm saying and
respond to it, or if you really want to go off on a tangent about
*potential* news server implementations rather than *actual* news server
implementations (which is what this thread was about), stop accusing me of
saying things that aren't true?  Of *course* I'm thinking in terms of
current news software; that's what the question was about!

> As I've said in other posts, current software is simply going to stop
> scaling.  INN, for example, with its single-threaded core, is eventually
> going to stop working.

You're using a very odd definition of working.  Using a more conventional
definition, INN is never going to stop working as long as there are
Unix-like systems.  The number of articles per second that INN can
currently handle it's still going to be able to handle in ten years.
Nothing is going to cause it to magically stop accepting articles.

Saying that software isn't going to be able to handle another ten-fold
increase in Usenet volume is *not* the same thing as saying that it's
going to stop working.  You have to take into account whether the site
running that server is going to *want* those additional articles to
determine whether it is going to break for their particular needs.

>> Provided you're willing to settle for slop around the edges, given that
>> articles don't arrive at different servers at the same time.

> Well, couple a local client-side messageID database with a little slop
> in sending the date/time part of the NEWNEWS command, and you're pretty
> well sorted.  Certainly a damn sight easier than dealing with the "my
> server just renumbered all their articles" problem.

There are a bunch of different solutions to this problem; I don't think
NEWNEWS is the best one.  I think server-side state a la IMAP (but
hopefully with a better command syntax and protocol) is a better one,
frankly, being largely convinced by a recent conversation with Tim
Showalter on the subject, although that requires a stronger authentication
infrastructure than most news server installations have.  If you store the
state on the server, then you can renumber the stored state when you
renumber your article spool, and the server has all the necessary
information to do that right.

Multiple servers, changing over to a new server, and the like are all hard
problems.  NEWNEWS, as pointed out, suffers from different problems but
still has problems.  (One of which is that overview retrieval by message
ID isn't as efficient as overview retrieval by article number range since
you can't do ranges, and ranges are a big win in both disk I/O and network
traffic.)

> HEAD requires retrieving the headers for an article.  That's not
> necessarily the same as opening the article.  It just happens to be the
> way current servers do it.

The headers are probably 30-50% of the article in the common case.
Opening the article, opening 30% of the article, it's basically the same
difference compared to XOVER, which dumps (or at least can) a preformatted
file to the network and can handle a request for several hundred or
thousand articles at once with a single command.  I really would like to
see the implementation that manages to make 1000 HEAD requests as fast as
an XOVER request for a 1000 article range.

> In addition, there is some useful information that can (and is) being
> used for killfiling purposes, that isn't contained within the "standard"
> overview information

99% of your users don't care because their software isn't capable of it
anyway.  Optimize for the common case.  If they really want to see some
particular header, put it in the overview; that's why the overview is
extensible.

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

The old reorganization topic....
#39186
Author: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
47 lines
2584 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes:

> What we're talking about here is the essence of "news.software.nntp",
> protocol design, server implementation, and the future..  it sure (for
> me), beats the hell out of the bazillion and one posts that should be in
> the I-wish-somebody-would-newgroup-it news.software.inn.

So this comes up from time to time... should I raise it again?  The
news.software.* hierarchy is currently rather ugly; it's got a few groups
which duplicate each other, a few groups which are essentially unused, and
the names leave a bit to be desired.

Currently we have:

        news.software.anu-news
        news.software.b
        news.software.misc
        news.software.nn
        news.software.nntp
        news.software.readers

with .anu-news, .b, and .nn almost unused.  Something like:

        news.software.design
        news.software.misc
        news.software.readers
        news.software.servers.inn
        news.software.servers.misc

would fit the current traffic pattern as I see it quite a bit better,
although a case could be made that news.software.nntp doesn't have enough
traffic to really warrant a split and news.software.servers would do just
fine.

news.software.misc might be better off removed (or renamed to .design).

Maybe retain news.software.nn if the nn folks want it, although it doesn't
seem particularly used and nn questions could easily be picked up by
news.software.readers (which isn't exactly high-traffic).

Dunno if news.admin.technical should be part of any reorganization plans
or not.

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

Re: NNTP protocol question
#39187
Author: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
81 lines
4494 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes:
> On 14 Aug 1999 20:16:57 -0700, Russ Allbery <rra@stanford.edu> wrote:

>> NEWNEWS is an optional feature in RFC 977

> Wrong.

Hurm.  You're right.  That's weird... I could have sworn I'd even read the
text that made it optional at some point.  I must have been completely
imagining things.

>> and the type of data storage required to implement it efficiently isn't
>> the type of storage used by most news servers

> Wrong again.  This is absolutely nothing to do with the type of data
> storage, just the apparent inability of (most) news server authors to
> take a tiny step back from the problem, look at what is actually
> required to implement the NEWNEWS command and make another tiny step to
> actually implement it.

No, I'm sorry, but I'm not wrong here.  To implement NEWNEWS efficiently,
while still properly dealing with crossposting and the full syntax of the
command (which allows specification of distribution restrictions) requires
a data storage that is not present on most news servers.  Doing the
distribution part in particular is difficult because Distribution is not
in the overview database; you'd need to stash it somewhere since opening
every article to check the Distribution header is clearly not what you
want to do.

If you put that aside, it depends on how useful an implementation you
want.  RFC 977 says:

   A list of message-ids of articles posted or received to the specified
   newsgroup since "date" will be listed.

so you're allowed to do it by posting time, which is of course easier
because it's in the overview data.  However, that's of really questionable
utility, since it breaks the semantic of "give me all news arrived since
the last time I checked."  You want to do it by arrival time, which of
course is also not in the overview file by default.

So even not worrying about Distribution, you're stuck looking at both the
overview *and* some other data structure (usually the history equivalent)
that has the arrival times.  Under some implementations, you can pull it
all out of history, but that requires searching through a bunch of lines
for newsgroups that aren't part of the query, since the history database
generally isn't per-newsgroup.

> It really isn't rocket science.  Honestly.

I didn't say it was rocket science.  It's fairly straightforward to figure
out what data structures one would need, and one could even leverage off
overview if one's clients wouldn't get confused by the extra entries.  But
it does require storing additional information that isn't cached by
default.

> Indeed they do.  Something of a shame, really, since the global (or near
> global) implementation of this command would make multi-server
> newsreaders a whole lot easier to implement.

Provided you're willing to settle for slop around the edges, given that
articles don't arrive at different servers at the same time.

> In fact, taking things to their logical conclusion, if it were
> implemented across-the-board, becoming the preferred method of article
> retrieval (do a NEWNEWS on the groups you're interested in, followed by
> a bunch of HEAD <id>, and later on, BODY <id> after local filters have
> done their work),

That would be massively slower than the current overview-driven method in
any news server implementation I can picture.  Maybe I'm wrong, but I'd
need some convincing.  HEAD requires opening the article.

> By all means berate NEWNEWS.. just do it for the right reasons.

I wasn't berating it.  I was answering the gentleman's question.

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

Re: NNTP protocol question
#39192
Author: Kjetil Torgrim Homme
Date: Mon, 16 Aug 1999 00:00
16 lines
1497 bytes
[Ade Lovett]

>   In fact, taking things to their logical conclusion, if [NEWNEWS]
>   were implemented across-the-board, becoming the preferred method
>   of article retrieval [...], a lot of the pain that bigger sites
>   have to deal with in terms of keeping slave servers in sync would
>   simply disappear.

The slaves would now have to agree upon the second when an article
arrived.  The problems with Xref would not disappear (users want
crossposts to work).  So where's the gain?


Kjetil T.

Re: NNTP protocol question
#39194
Author: Ade Lovett
Date: Mon, 16 Aug 1999 00:00
45 lines
2992 bytes
On 15 Aug 1999 18:34:30 -0700, Russ Allbery <rra@stanford.edu> wrote:
>
>I'm afraid I don't agree.  Those systems will fail to keep up with
>binaries, yes, and there are a lot of sites (and I think a growing number)
>that are simply giving up on binaries, a trend which I wholeheartedly
>welcome.

From a personal standpoint, I'd agree with you right there.  However,
netnews is basically split into two parts.  The text-only feed, which is
easy to handle, and the choonz, warez and kittypr0n brigade.

"Getting rid" of the latter, however, is more of a social issue, than
a technological one.  Different segments of the netnews universe pander
to different requirements.  Obviously, with our news hats on, we're
in totally different parts of that universe.  Each has its place.

What we're talking about here is the essence of "news.software.nntp",
protocol design, server implementation, and the future..  it sure
(for me), beats the hell out of the bazillion and one posts that
should be in the I-wish-somebody-would-newgroup-it news.software.inn.

One could also argue, of course, that by only taking a subset of
the information -- say text only, no cancels (use a filter instead),
the amount of information involved would become a lot easier to manage
allowing for implementation of the entire protocol, including NEWNEWS :)


>There certainly are people who are currently running ten-year-old news
>server installations and handling a text feed without much problems.

I've never disputed that.  However, getting down to the core of
"the Usenet problem", techniques learnt from implementing a high-end
system have serious potential elsewhere..  after all, netnews is
"just" an index-and-retrieval problem.

Sometimes, a little bit of time away from implementation, and back
into concerted design, really does pay off..

-aDe

-- 
Ade Lovett, Supernews Inc., San Jose, CA.
mailto:ade@supernews.com   http://www.supernews.com

Re: NNTP protocol question
#39196
Author: Curt Welch
Date: Mon, 16 Aug 1999 00:00
88 lines
5385 bytes
ade@supernews.com (Ade Lovett) wrote:
> Perhaps the following.
>
>   1.  kill off news.software.* entirely
>
>   2.  new hierarchy (news.readers.*)
>
>         news.readers.misc       (current news.software.readers)
>
>       can then be split out on a case-by-case basis for particularly
>       heavily used software..  I'd expect one of the first ones to
>       be news.readers.agent
>
>  3.  new hierarchy (news.servers.*)
>
>         news.servers.misc       (current news.software.nntp)
>         news.servers.design     R&D group, future technology, etc.
>
>      as with news.readers.*, news.servers.* can also be split to
>      multiple groups as and when the traffic permits.
>
> This only differs from the previous suggestion in the removal of
> the .software component, which I believe to be extraneous in this case.
>
> Either way, I think we should build up an RFD.

If anything needs to be changed (which is doubtful) then I'd suggest
changing:

news.software.anu-news  VMS Usenet software from Australian National Univ.
news.software.b         Discussion about Usenet B-news-compatible software.
news.software.misc      Usenet-related software other than readers and servers. news.software.nn        Discussion about the "nn" Usenet news reader package. news.software.nntp      The Network News Transfer Protocol.
news.software.readers   Discussing software for reading network news (Usenet).

to:

news.software.servers   Usenet server software.
news.software.readers   Usenet client software.

The extra groups no long have enough traffic to justify their existance,
and the current groups don't have enough traffic to justify spliting them
up.  So delete the extra groups which just make it harder to find the
"real" groups, and rename .nntp to .servers to make its name better fit
it's current use.

Of course, as discussed before, news.* should be usenet.*, but for historic
reasons, I think trying to change this now would cause more problems than
it would fix.

You don't want to take out the .software component because it would make
these groups much harder to find (mixed in with all the other news.* crap)
and it would force a rename of the news.software.readers group which has a
perfectly good name already.  You shouldn't underestimate the amount of
problems you will cause when you change the name of a group (hundreds of
web pages and FAQs that would need to be updated -- and many that won't be
updated and live on for many many years in their old form).  And then
there's the hundreds of thousands of people who know the news.software.*
names.

news.software.nntp is used as news.software.servers but neither it's name
or description fit it's current use.  Adding the .servers group and
migrating the current .nntp traffic to that group I think would be a worthy
undertaking if you are going to make any changes.

Both the readers and servers group will tend to have traffic which someone
isn't interested in (like Agent questions in .readers that non-agenet users
don't care about, or inn questions in .servers that non inn users don't
care about). But I think it would be un-wise to automatically set up
sub-groups for "current" high-traffic topics.  For one, if you run a news
server, you genrally want to keep current on what other news admins are
using - so just keeping an eye on the volume of questions gives you
valuable insight into the current state of the technology.  Same for
readers.  Two, the current "hot" topics change over time.  A year ago,
every other question in the .readers seemed to be about gravity.  Now it's
xnews.  If a gravity group was created a year ago, it would be basically
dead today.  You don't want to create groups that are may only last a year
or two.

The client/server nature of news software is likely to have a longer life
than any of the current software products (or maybe even longer than nntp),
so I think going with those names would give us a very long lived structure
that won't need to be "fixed" again anytime soon.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP protocol question
#39198
Author: Brad Knowles
Date: Mon, 16 Aug 1999 00:00
47 lines
3193 bytes
In article <yllnbc7cxs.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

> In news.software.nntp, Ade Lovett <ade@supernews.com> writes:

    [ ... deletia ... ]

> > Wrong again.  This is absolutely nothing to do with the type of data
> > storage, just the apparent inability of (most) news server authors to
> > take a tiny step back from the problem, look at what is actually
> > required to implement the NEWNEWS command and make another tiny step to
> > actually implement it.
> 
> No, I'm sorry, but I'm not wrong here.  To implement NEWNEWS efficiently,
> while still properly dealing with crossposting and the full syntax of the
> command (which allows specification of distribution restrictions) requires
> a data storage that is not present on most news servers.

    I don't have anything useful to add to this discussion, but I would
like to point out a couple of things (perhaps I'm just stating the
obvious, but I hope you'll humour me):

        1.  Russ is one of the primary developers of INN at the moment. 
He is obviously quite knowledgeable on the way that this program functions
today.

        2.  Ade, well, I have only heard his name very recently, in
combination with a previous employer and the news routing software he
wrote for them (I think it might have started out as a standard package,
but he made such sweeping modifications that it's now pretty much
unrecognizable).  They are a Top Five site, and I would venture to say
that they are probably the only site in the Top 100 that is running such
highly customized news routing software.  I believe that there is probably
very good reason why he is now employed by remarQ.


    From reading parts of this thread, I have to assume that Russ is
talking about the way INN works today, while Ade is talking about the way
public freely available news servers could operate in the future (based on
his experience of modifications he's made in the past for proprietary
environments).

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: NNTP protocol question
#39199
Author: Ade Lovett
Date: Mon, 16 Aug 1999 00:00
62 lines
3302 bytes
On 16 Aug 1999 02:37:04 -0700, Russ Allbery <rra@stanford.edu> wrote:
>
>Yup.  And I'm happy to agree with him about possible future directions of
>server development if he'll stop disagreeing with me about the current
>state of affairs.  :)

Ok, ok, I get the message :)

Personally speaking, I was hoping this to be just another case of
'thread drift' -- I believe the initial "issue" (NEWNEWS being an
optional part of RFC977) was sorted pretty much in the first few
lines of the first couple of responses, and we then moved on
to a little discussion comparing current technologies (most of
what I mentioned as 'future' does, in fact, already exist in bits
and pieces, here and there).

My pet peeve with software engineering in general (and, because this
is what I do for a living) news server design in particular, is the
assumption that current technology is "it".  In amongst the more
mundane stuff in news.software.nntp, there have recently been some
interesting threads.

I'd consider this one to be interesting too, since it does raise some
issues, not the least of which is that news.software.* could certainly
do with being split down a little.

I'm not sure that an overall news.software.design newsgroup is the
way to go, though, since the engineering issues between developing
a reader, and a server, are somewhat different.

Perhaps the following.

  1.  kill off news.software.* entirely

  2.  new hierarchy (news.readers.*)

	news.readers.misc	(current news.software.readers)

      can then be split out on a case-by-case basis for particularly
      heavily used software..  I'd expect one of the first ones to
      be news.readers.agent

 3.  new hierarchy (news.servers.*)

	news.servers.misc	(current news.software.nntp)
	news.servers.design	R&D group, future technology, etc.

     as with news.readers.*, news.servers.* can also be split to
     multiple groups as and when the traffic permits.

This only differs from the previous suggestion in the removal of
the .software component, which I believe to be extraneous in this case.

Either way, I think we should build up an RFD.

-aDe

-- 
Ade Lovett, Supernews Inc., San Jose, CA.
mailto:ade@supernews.com   http://www.supernews.com

Re: NNTP protocol question
#39203
Author: Ade Lovett
Date: Mon, 16 Aug 1999 00:00
73 lines
4069 bytes
On 15 Aug 1999 18:05:03 -0700, Russ Allbery <rra@stanford.edu> wrote:
>
>No, I'm sorry, but I'm not wrong here.  To implement NEWNEWS efficiently,
>while still properly dealing with crossposting

977/nntp-base-08 says nothing about crossposts for NEWNEWS.  All it talks
about is "a list of message-ids of articles .. one per line".


>and the full syntax of the
>command (which allows specification of distribution restrictions) requires
>a data storage that is not present on most news servers.

Not true.  In it's general sense, a news server is made up of a number
of articles, and indexing information about those articles.

>Doing the
>distribution part in particular is difficult because Distribution is not
>in the overview database;

Think of the "overview database" as a subset of of "indexing information",
and there's no reason why it can't be.  As an aside, it's interesting
to see just how many newsreaders out there assume the response from
XOVER/OVER is in a very specific format, rather than doing a
LIST OVERVIEW.FMT first...  *sigh*

> [snip]
>
>I didn't say it was rocket science.  It's fairly straightforward to figure
>out what data structures one would need, and one could even leverage off
>overview if one's clients wouldn't get confused by the extra entries.  But
>it does require storing additional information that isn't cached by
>default.

This is more an artefact of thinking in terms of *current* news software,
rather than *future* news software.  As I've said in other posts,
current software is simply going to stop scaling.  INN, for example,
with its single-threaded core, is eventually going to stop working.
Even solid-state disks require a finite time to write an article.


>Provided you're willing to settle for slop around the edges, given that
>articles don't arrive at different servers at the same time.

Well, couple a local client-side messageID database with a little
slop in sending the date/time part of the NEWNEWS command, and you're
pretty well sorted.  Certainly a damn sight easier than dealing with
the "my server just renumbered all their articles" problem.


>That would be massively slower than the current overview-driven method in
>any news server implementation I can picture.  Maybe I'm wrong, but I'd
>need some convincing.  HEAD requires opening the article.

HEAD requires retrieving the headers for an article.  That's not
necessarily the same as opening the article.  It just happens to be
the way current servers do it.

In addition, there is some useful information that can (and is) being
used for killfiling purposes, that isn't contained within the "standard"
overview information -- in that particular circumstance, you're faced
with the distinct possibility of a whole bucketload of, say,
"XHDR Path 0-" requests turning up.  All it takes is for one bright
spark at AOLscape, or MS, to offer this kind of extended killfiling
capability, and....  well, you get the picture..

-aDe

-- 
Ade Lovett, Supernews Inc., San Jose, CA.
mailto:ade@supernews.com   http://www.supernews.com

Re: NNTP protocol question
#39207
Author: Ade Lovett
Date: Mon, 16 Aug 1999 00:00
63 lines
3500 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>
>The slaves would now have to agree upon the second when an article
>arrived.  The problems with Xref would not disappear (users want
>crossposts to work).  So where's the gain?

Depends if you think in terms of slaves being complete news systems
in their own right, or holding just enough of the information to
provide the indexing information that the clients need, with a suitable
back-end system dealing with the "spool".

The "standard" way of implementing servers doesn't scale, period.
One cannot consider parts of the protocol in isolation, it needs
a "big-picture" approach.

Taking a step back, using those old-fashioned (and sadly, it would
appear, no longer used, by the current breed of programmers and
designers) data-flow diagrams, and looking at what is involved in
providing a news service, rather than going down the no-win road
of trying to improve systems based on ancient principles to cope
with current and future demand, is the way to go.

For n percent of news sites (where n is fairly close to 100), none
of the above matters.  Resources elsewhere make the whole scheme
prohibitively expensive, and such sites either cut back on their
feeds, do away with news entirely, or outsource.

Current publically-available software (either free, or paid-for)
try as hard as they can, with varying degrees of success (ranging
from mediocre, to pretty good), to cope with "news".

Looking at the future, however, it is pretty obvious that, sooner
or later, all of these systems will fail, in the sense that they
can no longer keep up with demand.  (death of the net predicted,
mpeg at 11, yadda, yadda..)

As designers and implementors of systems, three options are available:

	1.  keep "upgrading"
	2.  pack up and go home.
	3.  figure out ways to do things better.

I hope that (3) will prevail.  Every so often, there has to be a
quantum leap in technology for progress to be made (whether such
progress is good or bad is more of a socio-political question than
anything else).

Sadly, it appears that a considerable number of people are thinking
more along the lines of (1) than (3).  The oft-recurring theme of
NEWNEWS and its implementation is a prime example of this.

Which is a damn shame.

To paraphrase a certain well-known US President, we should be tackling
(3), not because it is easy, but because it is HARD.

-aDe

-- 
Ade Lovett, Supernews Inc., San Jose, CA.
mailto:ade@supernews.com   http://www.supernews.com

Re: NNTP protocol question
#39208
Author: Russ Allbery
Date: Mon, 16 Aug 1999 00:00
16 lines
1488 bytes
In news.software.nntp, Brad Knowles <brad@shub-internet.org> writes:

> From reading parts of this thread, I have to assume that Russ is talking
> about the way INN works today, while Ade is talking about the way public
> freely available news servers could operate in the future (based on his
> experience of modifications he's made in the past for proprietary
> environments).

Yup.  And I'm happy to agree with him about possible future directions of
server development if he'll stop disagreeing with me about the current
state of affairs.  :)

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

Re: The old reorganization topic....
#39210
Author: Brad Knowles
Date: Mon, 16 Aug 1999 00:00
24 lines
1972 bytes
In article <ylwvuw5t6a.fsf_-_@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

> with .anu-news, .b, and .nn almost unused.  Something like:
> 
>         news.software.design
>         news.software.misc
>         news.software.readers
>         news.software.servers.inn
>         news.software.servers.misc

    I see enough of what I would consider to be useful discussion of
Diablo versus INN that I would be loathe to see n.s.s broken up further at
this stage.  IMO, it's just not a high-enough traffic newsgroup to warrant
that kind of a further subdivision.


    So, do we have any kind of informal consensus to start an RFD on this issue?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: NNTP protocol question
#39389
Author: Russ Allbery
Date: Tue, 24 Aug 1999 00:00
24 lines
1908 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes:

> My pet peeve with software engineering in general (and, because this is
> what I do for a living) news server design in particular, is the
> assumption that current technology is "it".  In amongst the more mundane
> stuff in news.software.nntp, there have recently been some interesting
> threads.

Oh, I agree with you.  It's just that I was heavily into answering
questions mode, in which the point is to explain what works now rather
than what it could be like down the road.  If I had my way and enough
time, INN would be a very different and much faster beast than it is
now....

> Either way, I think we should build up an RFD.

Go for it, whoever wants the reorg.  I'd rather not do it myself both
because I don't have the time and because it's a minor conflict of
interests, but I'd probably vote for it.

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

Re: NNTP protocol question
#39440
Author: bill davidsen
Date: Wed, 25 Aug 1999 00:00
22 lines
1773 bytes
In article <yl3dx8re6e.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:

| Go for it, whoever wants the reorg.  I'd rather not do it myself both
| because I don't have the time and because it's a minor conflict of
| interests, but I'd probably vote for it.

I don't object, but I think most of the people here are going to read
all the mundane and theoretical groups anyway, so it may just make more
groups to read rather than fewer articles to scan.

I'm certainly willing to see a proposal, but do suggest that any reorg
should result in a clear choice of subcategory for any topic, lest we
just cross post everything:-(

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads