🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
23 messages
23 total messages Started by The Archiver Wed, 13 Feb 2002 08:02
Limiting XOVER by date ?
#56481
Author: The Archiver
Date: Wed, 13 Feb 2002 08:02
52 lines
2681 bytes
After receiving headers for a bunch of newsgroups since Sept 2001
from GigaNews (approx 500.000) I would like to ask you for your ideas:

There is an inherent problem with the XOVER-command:
It depends only on the article-numbers.
So whenever a new news-server is added to a newsreader
(or news-retrieval program) then it is possible to either
- start retrieving Overviews from today (forget history)
- or from the beginning on that host
- or limiting the number of headers.

In most cases it is unwanted to skip the entire history.
And retrieval from the beginning can deliver thousands 
(or more) headers.
Limiting the number does not respect high/low volume
of a group - and the retention is usually unknown in advance.

The real "wanted" behaviour would be:
Deliver headers since the day which was lately expired.
Someting like:
   XOVER [2002-02-01]   
which should deliver the xover since Feb, 1st 2002.
or:
   XOVER [-30 days]

which should deliver headers which are not older than 30 days.

It seems that the only way to get headers this way would be
to download a few of them (bisection) and try to calculate 
from where to begin downloading.


Did anybody make experiments with "XOVER by days" ?
Or are there any other ideas how to reach what I want ?
(Limiting to 10.000 does not solve the problem).


Some Usenet hosts are now carrying text-messages for half
a year - and my own toy (MyNews) can also be used to 
extend the retention up to "endless".
Some binary groups are now having >100.000 headers in the
Xover.

This is an upcoming topic - not urgent but perhaps worth 
to keep in mind and subject to further exploration.

Any ideas, experiences or recommendations ?

-- 
Juergen

Re: Limiting XOVER by date ?
#56490
Author: A Meowbot
Date: Wed, 13 Feb 2002 09:56
9 lines
1198 bytes
The Archiver wrote:
> There is an inherent problem with the XOVER-command:
> It depends only on the article-numbers.

NEWNEWS already exists for date searches, and XOVER can be used to get a 
reasonable estimate (do a binary search on the dates, perhaps grabbing 
small ranges on each sample and using some form of averaging to smooth 
out the effects of propagation delays).
Re: Limiting XOVER by date ?
#56491
Author: Curt Welch
Date: Wed, 13 Feb 2002 14:37
32 lines
2705 bytes
archiver@i3w.com (The Archiver) wrote:
> Did anybody make experiments with "XOVER by days" ?
> Or are there any other ideas how to reach what I want ?
> (Limiting to 10.000 does not solve the problem).

Why not?  The most important reasons for not downloading all the headers is
because a) they take too long to download, or b) they take up to much local
resources (memory, processing time to sort and thread etc).

It seems to me that the best way to limit the problem is to simply limit
based on the number of headers and not on the date.  If you have an
announce group that gets about 3 messages a month, and it holds 1 years
worth of messages (36), who wouldn't want to download a years worth of
headers from the group?

There is some use in limiting by date.  But the newsreader can do that on
it's own if it wants to like you mention using bisection (a simple binary
search). Because the feature in my mind is one which most people don't care
about (simply because limiting by number of headers tends to be the better
solution in the first place), and because the newsreader can do it already
using the standard NNTP protocol, I don't see much value in trying to
extend NNTP to add a date limiting argument.

Besides, most servers I suspect will simply be forced to do the same binary
search on the overviews that the newsreader could do, so there's really
little justification that the code "should" be in the server because it's
easier for the server to do it.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Limiting XOVER by date ?
#56494
Author: berg
Date: Wed, 13 Feb 2002 18:10
21 lines
1653 bytes
curt@kcwc.com (Curt Welch) wrote:

>It seems to me that the best way to limit the problem is to simply limit
>based on the number of headers and not on the date.  If you have an
>announce group that gets about 3 messages a month, and it holds 1 years
>worth of messages (36), who wouldn't want to download a years worth of
>headers from the group?

I agree with this. I'd like there to be a way
to get the "last" N headers starting from some
article number (decreasing article numbers). I'd
also like the reverse (increasing article numbers).
This would allow for getting the most recent N
articles or the oldest N articles.

Simply specifying article ranges fails because of
holes in the article numbering.

-- 
Mike
Re: Limiting XOVER by date ?
#56495
Author: Curt Welch
Date: Wed, 13 Feb 2002 18:44
51 lines
3735 bytes
berg@nospam.invalid wrote:
> curt@kcwc.com (Curt Welch) wrote:
>
> >It seems to me that the best way to limit the problem is to simply limit
> >based on the number of headers and not on the date.  If you have an
> >announce group that gets about 3 messages a month, and it holds 1 years
> >worth of messages (36), who wouldn't want to download a years worth of
> >headers from the group?

Oh, and there is the other more serious problem that I somehow missed the
first time.  Servers don't normally keep track of when articles show
up (at least not in the XOVER data), so returning articles based on when
they arrive could require some big changes.  And returning them based on
the date in the article is mostly worthless for time measurements to the
accuracy I believe you were looking for (+- 1 day for example).

> I agree with this. I'd like there to be a way
> to get the "last" N headers starting from some
> article number (decreasing article numbers). I'd
> also like the reverse (increasing article numbers).
> This would allow for getting the most recent N
> articles or the oldest N articles.
>
> Simply specifying article ranges fails because of
> holes in the article numbering.

That's true.  And it would be easy to implement a fetch based on the number
of articles instead of the article range using XOVER on the server side.
But I fail to see it as important enough to even consider.  Clients can be
written to deal with that fairly effecently without any changes to the
protocol.  They just ask by article range and when they don't get enough
because of holes, they ask for more.

It can be tricky making code like that work well when a server has large
unpredictable gaps of missing articles (either because of expire policy or
other reasons), but those cases tend to be rare.  And if they are not, you
can code around it (like using NEXT/XOVER combinations or by asking for a
lot and then dropping the connection when you get too much or by making use
of commands like LISTGROUP or giving the user an ABORT button to hit when
when the header download is taking too long for a group).

However, I think most applications find that limiting the maximum
articles by range is all that's needed.  i.e., the user sets a 50,000
article limit and the newsreader simply never tires to download a range
larger than that, even if the 50,000 article range turns out to hold only
20 articles.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Limiting XOVER by date ?
#56505
Author: The Archiver
Date: Thu, 14 Feb 2002 07:32
25 lines
1723 bytes
A Meowbot <meowbot@meowing.net> wrote:

>The Archiver wrote:
>> There is an inherent problem with the XOVER-command:
>> It depends only on the article-numbers.
>
>NEWNEWS already exists for date searches, 

I'm afraid that this command is not widely supported.
Perhaps this has changed in the last few years.

>and XOVER can be used to get a 
>reasonable estimate (do a binary search on the dates, perhaps grabbing 
>small ranges on each sample and using some form of averaging to smooth 
>out the effects of propagation delays).

I'm still having problems with this "some form of averaging"
- but your are right.

Thanks for taking the time to answer.

-- 
Juergen

Re: Limiting XOVER by date ?
#56506
Author: The Archiver
Date: Thu, 14 Feb 2002 08:14
84 lines
4544 bytes
curt@kcwc.com (Curt Welch) wrote:

>archiver@i3w.com (The Archiver) wrote:
>> Did anybody make experiments with "XOVER by days" ?
>> Or are there any other ideas how to reach what I want ?
>> (Limiting to 10.000 does not solve the problem).
>
>Why not?  The most important reasons for not downloading all the headers is
>because a) they take too long to download, or b) they take up to much local
>resources (memory, processing time to sort and thread etc).

You are right with these "most important reasons".
NSPs do not charge users for headers today.
They are delivering 100.000 old headers "for free".
And the user waits for them to come.

>It seems to me that the best way to limit the problem is to simply limit
>based on the number of headers and not on the date.  If you have an
>announce group that gets about 3 messages a month, and it holds 1 years
>worth of messages (36), who wouldn't want to download a years worth of
>headers from the group?

Of course 36 headers are not a problem.
The "old ones" (older than last expiry date) could be easily skipped.
But skipping 75.000 header (out of 100.000) seems to be nonsene. 

>There is some use in limiting by date.  But the newsreader can do that on
>it's own if it wants to like you mention using bisection (a simple binary
>search). 

This would be possible - but of course I'm looking for a more 
efficient solution :-)

>Because the feature in my mind is one which most people don't care
>about (simply because limiting by number of headers tends to be the better
>solution in the first place), and because the newsreader can do it already
>using the standard NNTP protocol, I don't see much value in trying to
>extend NNTP to add a date limiting argument.

The method to simply "limit to 10.000 headers" is that the
user has to use "load next 10.000 old headers" multiple
times until he received the amount of headers he really wants.

And on a multihost reader he has even problems to find out
what he did download at all. Usability is very bad here - and 
most users would not even understand what 
"load next 10.000 old headers" is.

I believe that "load headers from the last 7 days" would be far better.

>Besides, most servers I suspect will simply be forced to do the same binary
>search on the overviews that the newsreader could do, so there's really
>little justification that the code "should" be in the server because it's
>easier for the server to do it.

Of course the question might be again:
"Does a news-server have the time to inspect the XOVER for date
before sending them out" - or - "Is CPU time cheaper than bandwidth".

I assume that today a production-nntp-server is determining the start
and end of of an xover-request (in the xover-cache file) and then simply 
spools out a buffer without inspecting the content. 
Scanning 200.000 headers for date and skipping the first 170.000
might be far too "expensive in cpu-cycles".

This entire problem is closely related to "compression of headers".
And as you see I'm actually working on "optimizing header retrieval"
(for MyNews ;-)


I believe that the best method for xover-download for "regular nntp-host"
would be to read 'backwards' in chuncks of 1000 headers and then stop
whenever a certain date is reached. 

An easy solution for MyNews (where CPU-cycles are cheap) could be to 
send the xover in reverse order until a "STOP" command is received.


Thanks for taking the time to answer.

-- 
Juergen

Re: Limiting XOVER by date ?
#56507
Author: Russell Vincent
Date: Thu, 14 Feb 2002 12:00
18 lines
1782 bytes
The Archiver <archiver@i3w.com> wrote:
> I believe that the best method for xover-download for "regular nntp-host"
> would be to read 'backwards' in chuncks of 1000 headers and then stop
> whenever a certain date is reached. 

You could do an xover of the first article in the group (or first few
articles), get the date, match that against the current date to see
the age of articles in the group, compare that to how old you want
and approximate the article number. Then retrieve that article
number and see where you are. Repeat a few times and you get to
the right place with minimal download. This could be completely
transparent to the user who asked for articles since a date and
it becomes a new client feature with no additions to the server
necessary.

 -Russell

Re: Limiting XOVER by date ?
#56508
Author: Curt Welch
Date: Thu, 14 Feb 2002 15:56
43 lines
3083 bytes
archiver@i3w.com (The Archiver) wrote:
> I believe that "load headers from the last 7 days" would be far better.

As a UI feature, sure, that's a valid concept.  But I don't see that a
desire to create a UI feature like that calls for any changes to the NNTP
protocol.

> I believe that the best method for xover-download for "regular nntp-host"
> would be to read 'backwards' in chuncks of 1000 headers and then stop
> whenever a certain date is reached.

That's true.

But keep in mind that dates on articles are many times bogus.  So you
can't stop on the first article you see from the date in question, and
you can't keep going until all dates are before the date in quesiton.  The
whole concept of downloading the "last 7 days" of headers is something
most news servers just can't do very easilly because they don't tend to
keep track of when articles showed up and the dates on the articles
themself can be off by days.

So if you were to try and download 7 days of articles, it's going to be an
approximation at best.

> An easy solution for MyNews (where CPU-cycles are cheap) could be to
> send the xover in reverse order until a "STOP" command is received.

That could be done with NNTP.  You could add a "STOP" command which could
be treated as a NO-OP in general (i.e. it never returns any type of return
code), but it would, when received, cause the current output to be stop
earily.

But in fact, I think it would be much easier to code on both sides (the
client and the server), if the client was simply expected to send xover
commands for a few hundred headers at a time.  If you pipeline the
commands, then they won't be any slower than using one large xover with an
abort command and it can all be done with no changes to NNTP or the
servers.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Limiting XOVER by date ?
#56510
Author: J.B. Moreno
Date: Thu, 14 Feb 2002 18:52
11 lines
1463 bytes
In article <39149.e22201@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> An easy solution for MyNews (where CPU-cycles are cheap) could be to 
> send the xover in reverse order until a "STOP" command is received.

This would violate the essentially asynchronous nature of NNTP -- you
don't have to wait upon the results of a command before giving the next
command (although sometimes you might get into some weird situations if
a command fails).
Re: Limiting XOVER by date ?
#56514
Author: Curt Welch
Date: Thu, 14 Feb 2002 19:26
35 lines
2919 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <39149.e22201@archiver.winews.net>,
>  The Archiver <archiver@i3w.com> wrote:
>
> > An easy solution for MyNews (where CPU-cycles are cheap) could be to
> > send the xover in reverse order until a "STOP" command is received.
>
> This would violate the essentially asynchronous nature of NNTP -- you
> don't have to wait upon the results of a command before giving the next
> command (although sometimes you might get into some weird situations if
> a command fails).

It's not really a violation.  It's just a completly new twist on the
semantics of the protocol.  It could easilly be added without breaking
anything.  As a matter of fact, it requires the asynchronous nature
of NNTP to work.  You couldn't send the stop command in the middle of
the XOVER command output if the protocol wasn't asynchronous in the frist
place.

However, most servers are probably structured in a way that would make
implementing such a beast very difficult.  And using such a command in a
client is also likely to be a bit tricky.  When you send the STOP command,
the server may have already buffered up a ton of data that will not be easy
(if at all possible) to remove from the buffers, so the data could continue
to come for a very long time after the STOP command is sent.  The slower
the comm link, the more of a problem this will be.

Closing the connection is a better way to stop the data and already works.
But the best way to solve this problem I still believe is to just issue
multiple shorter xover commands.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Limiting XOVER by date ?
#56529
Author: Greg Andrews
Date: Fri, 15 Feb 2002 18:48
69 lines
3086 bytes
archiver@i3w.com (The Archiver) writes:
>After receiving headers for a bunch of newsgroups since Sept 2001
>from GigaNews (approx 500.000) I would like to ask you for your ideas:
>
>There is an inherent problem with the XOVER-command:
>It depends only on the article-numbers.
>So whenever a new news-server is added to a newsreader
>(or news-retrieval program) then it is possible to either
>- start retrieving Overviews from today (forget history)
>- or from the beginning on that host
>- or limiting the number of headers.
>

There's a far easier way.

When you select the group, you receive the highest and lowest
article numbers.

Issue a series of XOVER commands for a portion of the articles
on the server, working backward from the latest article.

For example, the command "group news.software.nntp" receives a
reply like this:

  211 100283 95505 195890 news.software.nntp

Now issue XOVER commands:

  XOVER 194891-195890

  (collect the 999 article reply)

  XOVER 193891-194890

  (same)

  XOVER 192891-193890


Sample the timestamp on the first xover record returned in
each batch, until the timestamp is earlier than your desired
date.  You've found your starting point and can request all
the xover records from your starting article to the end.

The trn reader issues xover commands in even smaller blocks
than that.  The concept has been proven (though trn does it
to solve a different problem).

Alternatively, issue an xover command for just one article
working backward until you find one that's earlier than
your desired date.  Not an xover command for every article,
but every 100 or 1000 articles.


This is not a situation that happens every time a news reader
connects to a news server.  It doesn't happen with small or
medium sites, either.

Since it's not a universal problem, I don't think the proper
place for a solution is in the protocol or in the server.
I think the problem should be solved in the news reader.


  -Greg
-- 
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
		 -- Steven Wright
Re: Limiting XOVER by date ?
#56646
Author: The Archiver
Date: Tue, 19 Feb 2002 06:48
41 lines
2885 bytes
Russell Vincent <rv@openusenet.org> wrote:

>You could do an xover of the first article in the group (or first few
>articles), get the date, match that against the current date to see
>the age of articles in the group, compare that to how old you want
>and approximate the article number. 

Thanks for this tip.
Unfortunately I've seen often very old articles on news-servers.
It happens that a group which has an expiry of 7 days still
contains a few messages with an age older than 5 months
(and a matching article number with a gap of 5.000 articles).

>Then retrieve that article
>number and see where you are. Repeat a few times and you get to
>the right place with minimal download. This could be completely
>transparent to the user who asked for articles since a date and
>it becomes a new client feature with no additions to the server
>necessary.

This is very similar to the approach I wanted to use.
But during a few tests I found out that there is wierd behavior
of the DATE (fakes dates, old newsreaders with still Y2K problem,
header delivery out of order.....)

Having the full list of headers is always nice - then it is easy to
determine which ones are what I wanted to have. But as soon as
only snapshopts are used (looking through a small hole) even
an experienced programmer has problems to find out when to stop.

I believe the best solution will be to downlaod headers in reverse
order - and show the user the actual progress (with the date). Then he
could easily decide to STOP NOW and use just the headers downloaded.

Automatic bandwidth saving is really hard to do on unreliable data
(on the client side).

-- 
Juergen

Re: Limiting XOVER by date ?
#56647
Author: The Archiver
Date: Tue, 19 Feb 2002 06:53
37 lines
2622 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>In article <39149.e22201@archiver.winews.net>, 
> The Archiver <archiver@i3w.com> wrote:
>
>> An easy solution for MyNews (where CPU-cycles are cheap) could be to 
>> send the xover in reverse order until a "STOP" command is received.
>
>This would violate the essentially asynchronous nature of NNTP -- you
>don't have to wait upon the results of a command before giving the next
>command (although sometimes you might get into some weird situations if
>a command fails).

Well, here I'm having a big advantage:
This would be a solution for "MyNews -to- MyNews" connections.
There I dont have to care about NNTP - but about bandwidth and usability.
(I am using already other extensions to P2P for dynamic sharing).

Of course you are right: A STOP command would break a few basic rules
of NNTP - so it might be even a better idea to request the MyNews host
to deliver the headers in reverse order with a date limit. 
I will think agai about this.

btw.: The fact that there is no STOP command on NNTP forces the 
programmer today to read an entire 500 KB article even if he wanted
just the first 10 kB to determine if he wanted the article.
(The only correct reaction would be to terminate the connection - and then
reconnect - which is also unacceptable for retrieval of 500 articles).
.... Yes - I'm already working on a few other nice extensions to NNTP:
.... Previews  ;-)))


-- 
Juergen, [The Archiver]


Re: Limiting XOVER by date ?
#56648
Author: The Archiver
Date: Tue, 19 Feb 2002 07:06
69 lines
3668 bytes
curt@kcwc.com (Curt Welch) wrote:

>archiver@i3w.com (The Archiver) wrote:
>> I believe that "load headers from the last 7 days" would be far better.
>
>As a UI feature, sure, that's a valid concept.  But I don't see that a
>desire to create a UI feature like that calls for any changes to the NNTP
>protocol.

Sorry, I'm not familiar with the "UI" shortcut.

But you can believe me:
NNTP-XOVER was not designed for 500.000 articles.
And even today there are already 200.000 headers in some newsgroups
on some servers. (And whenever it happens I am thinking again
about such changes).

Am I the only one here who is digging through he binary newsgroups
all the time on a isdn/dsl connection ?

>But keep in mind that dates on articles are many times bogus.  So you
>can't stop on the first article you see from the date in question, and
>you can't keep going until all dates are before the date in quesiton.  

Yes - I've already seen a lot of bogus dates - and other wierd headers.
But I hope that the approach to scan 1000 headers which are older than
the desired limit would be enough.


>The
>whole concept of downloading the "last 7 days" of headers is something
>most news servers just can't do very easilly because they don't tend to
>keep track of when articles showed up and the dates on the articles
>themself can be off by days.

This is one thing I dont care about too much:
If I'm downloading 50.000 new headers then my (most) newsreader will 
sort them by date. And headers with a date from 1999 are almost not very
instructive.

You've given me a very valuable tip:
My own newsserver should also keep track of the _real_ date when a 
header came in. Then I dont have to rely on the DATE header 
(or date-column in the XOVER) at all.

>So if you were to try and download 7 days of articles, it's going to be an
>approximation at best.

Yes - it would be an approximation.

>But in fact, I think it would be much easier to code on both sides (the
>client and the server), if the client was simply expected to send xover
>commands for a few hundred headers at a time.  If you pipeline the
>commands, then they won't be any slower than using one large xover with an
>abort command and it can all be done with no changes to NNTP or the
>servers.

Yes, this would even work with existing news-servers.


Thanks - everyboy - for taking the time to answer my questions.

I can only hope that my ongoing questions and my attempts to 
make further developments are welcome.

-- 
Juergen, [The Archiver]

Re: Limiting XOVER by date ?
#56649
Author: The Archiver
Date: Tue, 19 Feb 2002 07:12
36 lines
2185 bytes
gerg@panix.com (Greg Andrews) wrote:

>The trn reader issues xover commands in even smaller blocks
>than that.  The concept has been proven (though trn does it
>to solve a different problem).

Nice to know that.
I was sure that some else has already experience. 

>This is not a situation that happens every time a news reader
>connects to a news server.  It doesn't happen with small or
>medium sites, either.

For me it is a "daily" problem because in the MyNews network
you get contact to new news-servers every day.

It is also a daily problems for those who are often changing
their news-servers - especially for the growing community
of multi-host-newsreaders. 

>Since it's not a universal problem, I don't think the proper
>place for a solution is in the protocol or in the server.
>I think the problem should be solved in the news reader.

I agree that changes to the servers should be avoided.
The reason why I did propose such a thing was that headers
are delievered without costs now - and that the server owners
should be interested in delivering not more headers than
necessary.

CU
-- 
Juergen, [The Archiver]


Re: Limiting XOVER by date ?
#56673
Author: J.B. Moreno
Date: Wed, 20 Feb 2002 05:33
13 lines
1708 bytes
In article <37537.j22204@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> btw.: The fact that there is no STOP command on NNTP forces the 
> programmer today to read an entire 500 KB article even if he wanted
> just the first 10 kB to determine if he wanted the article.

A STOP command in that case wouldn't be so bad -- it doesn't rely upon
precise timing at least.  Better yet of course would be to have a
parameter for ARTICLE/BODY or new equivalents with a parameter for
indicating a maximum number of bytes to send.  But I'm not convinced
that any of that is really necessary.
Re: Limiting XOVER by date ?
#56694
Author: Curt Welch
Date: Wed, 20 Feb 2002 18:37
31 lines
2756 bytes
archiver@i3w.com (The Archiver) wrote:

> btw.: The fact that there is no STOP command on NNTP forces the
> programmer today to read an entire 500 KB article even if he wanted
> just the first 10 kB to determine if he wanted the article.
> (The only correct reaction would be to terminate the connection - and
> then reconnect - which is also unacceptable for retrieval of 500
> articles). .... Yes - I'm already working on a few other nice extensions
> to NNTP: .... Previews  ;-)))

If you want to talk NNTP extentions to deal with that problem, the
best way is probably to add byte range options so the client can
download partial segments of articles and restart previously aborted
downloads.

Something like "ARTICLE <num> [<startbyte>-<endbyte>]".  With byte
addresess that start at 0 please :).  If the client wanted to
download articles but stop after 5K it would just use a 0-5000 arg.
If the article was less than the range, it would stop normally.

There are a few tricky issues to deal with like how the terminating
CR is dealt with and how you count (or don't count) leading dots etc, but
that general approach would be much cleaner than trying to add a stop
command and give the client all the power it really needed.  The client
still has the option of closing the connection if it really really needs a
STOP command.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Limiting XOVER by date ?
#56711
Author: The Archiver
Date: Thu, 21 Feb 2002 06:44
43 lines
2480 bytes
curt@kcwc.com (Curt Welch) wrote:

>>Yes - I'm already working on a few other nice extensions
>> to NNTP: .... Previews  ;-)))
>
>If you want to talk NNTP extentions to deal with that problem, the
>best way is probably to add byte range options so the client can
>download partial segments of articles and restart previously aborted
>downloads.

You are very close to what I'm planing.

>Something like "ARTICLE <num> [<startbyte>-<endbyte>]".  With byte
>addresess that start at 0 please :).  

I wanted to use 1-n again....   ;-)

>The client
>still has the option of closing the connection if it really really needs a
>STOP command.

My problem with "closing the connection" is the necessary time to reconnect,
the entire authentication delay - and the additional load to the host.
AFAIR no newsreader is actually using streaming NNTP - but a lot of
users are pressing "STOP" to stop endless downloads.

Could you give me an idea about the workload on the host for closing
the conection - and a full reconnect with auth ?
As I've been a "windows-only" programmer for the last 20 years
and  my mainframe experience is outdated I have no idea how much
work an INN/Typhoon/Whatever running on UNIX/LINUX/BSD... has to
do for this procedure.

CU
-- 
Juergen






Re: Limiting XOVER by date ?
#56730
Author: J.B. Moreno
Date: Thu, 21 Feb 2002 18:53
14 lines
1849 bytes
In article <47447.l22200@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> My problem with "closing the connection" is the necessary time to
> reconnect, the entire authentication delay - and the additional load
> to the host. AFAIR no newsreader is actually using streaming NNTP -
> but a lot of users are pressing "STOP" to stop endless downloads.

Lots of newsreaders take advantage of that -- most frequently in
updating the group counts, but in other places as well.

MacSOUP is the program that I am most familiar with that takes the most
advantage of it, but it's not the only program to do so by any means.
Re: Limiting XOVER by date ?
#56736
Author: Curt Welch
Date: Thu, 21 Feb 2002 19:44
52 lines
3974 bytes
archiver@i3w.com (The Archiver) wrote:
> Could you give me an idea about the workload on the host for closing
> the conection - and a full reconnect with auth ?
> As I've been a "windows-only" programmer for the last 20 years
> and  my mainframe experience is outdated I have no idea how much
> work an INN/Typhoon/Whatever running on UNIX/LINUX/BSD... has to
> do for this procedure.

It depends a lot on the design of the server.  INN isn't very good at that
because it forks a new program (nnrpd) to handle each new connection. But
it's still not bad if you are not trying to do 10 a second. It would suck
however if you did it for every article you downloaded.

Authentication can be slow depending on how that's set up for the server.
Sometimes the servers run external programs which then make network
connections to some type of database server to check the authentication.
So, once again, it's not something that's all that bad if you need to do
once every 30 seconds, but would put an unwanded load if you did it once a
second.

My server is designed for very low overhead on new connections.  Doing 10
per second wouldn't really be that bad for it.

The bigger issue is that many servers limit the number of connections you
can make.  And some of them don't do it very well.  There can be a long
delay between the time you close a connection before it correctly accounts
for it and allows you to open a new one in it's place (30 seconds?).
Newsfeeds I believe had this problem as an example.

From a client/end user perspective, you can solve the long
reconnect/authentication delay simply by doing that ahead of time.  If you
always have a spare connection waiting to go, then when you do need to
close one, you don't have to wait for the next one to get started.  But
then you are putting that extra overhead of unused connections on the
server which really isn't very nice.

But, to think about the connection overhead issue, think about web servers.
You make connections, get a page, and close the conection for every page
(ignoring the keepalive feature).

It's not the TCP overhead that's really at issue, it's a function of how
the news sever is set up and how much it does for each new connection.

Closing the connection is fine every now and then, or when the user wants
you to abort, but to be safe, it's not something you should try to do
constantly durring a normal session even though some news servers wouldn't
have a problem using it like that.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Limiting XOVER by date ?
#56779
Author: The Archiver
Date: Fri, 22 Feb 2002 07:03
13 lines
1524 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>Lots of newsreaders take advantage of that -- most frequently in
>updating the group counts, but in other places as well.

Thanks for the tip.
This is a really good application for NNTP-streaming.

-- 
Juergen


Re: Limiting XOVER by date ?
#56780
Author: The Archiver
Date: Fri, 22 Feb 2002 07:13
49 lines
3284 bytes
curt@kcwc.com (Curt Welch) wrote:

>So, once again, it's not something that's all that bad if you need to do
>once every 30 seconds, but would put an unwanded load if you did it once a
>second.

This sounds very reasonable. 
Thanks for these numbers. I'll keep them in my mind.

>The bigger issue is that many servers limit the number of connections you
>can make.  And some of them don't do it very well.  There can be a long
>delay between the time you close a connection before it correctly accounts
>for it and allows you to open a new one in it's place (30 seconds?).
>Newsfeeds I believe had this problem as an example.

Well Newsfeeds is one of my problems overall.
If I am seeking for an article on all their 18 hosts and did not download 
headers from all of them (because I've got them from my central totally
complete header-server) then I have to connect all - and disconnect again.
Three at a time could be open. (Really wierd - as we all know :-)

>But, to think about the connection overhead issue, think about web servers.
>You make connections, get a page, and close the conection for every page
>(ignoring the keepalive feature).

I was always wondering about HTTP here.
But most web-servers dont need authentication - or seems to be highly 
optimized if login-info is needed (fast caching).

>It's not the TCP overhead that's really at issue, it's a function of how
>the news sever is set up and how much it does for each new connection.

Thanks for this detail.
I was afraid that TCP would be a singificant part of the problem.

>Closing the connection is fine every now and then, or when the user wants
>you to abort, but to be safe, it's not something you should try to do
>constantly durring a normal session even though some news servers wouldn't
>have a problem using it like that.

This summary is common knowledge - and the reason why I was thinking about
STOP or date-limited XOVERs. 

I believe that I have now all facts together to solve the issue.

-- 
Juergen

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