🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
32 messages
32 total messages Started by Juergen Helbing Thu, 16 Jan 2003 09:54
Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63187
Author: Juergen Helbing
Date: Thu, 16 Jan 2003 09:54
84 lines
3382 bytes
I am currently working on reduction of Xover bandwidth.
Especially users with "multi-host-readers" are fetching
TONs of overviews from all their hosts.

The basic idea I've realised and tested would be to
issue FIRST a XHDR command which delivers only
article numbers+msgid - for the "additional servers".
(The 'main'-server is still delivering everything)
(It could be possible to "delay" the fillers)
This is far less info than a full XOVER. This is fast
and uses less bandwidth.

After the XHDRs are received the downloader is 
checking which msgids are known/unknown. 
These which are known are not retrieved again. 
The rest is fetched with individual XOVER commands
- and of course not one by one - but ranges (if possible).

My experiences are very well. One of my test programs
is fetching Xover from 5 hosts (a good one first) - and 
I usually fetch just 1-10 additional headers from 1000.
This is MUCH faster than before (and the volume/bandwidth
is enormously reduced).
Another one is operating on the 18 'newsfeeds' servers
which is a PITA (bad reponse time) but still better than
the 'conventional' method.


Now the problem:

I was told that some news-servers might have problems 
if I'm fetching too many Xover ranges (or Xover for single
msgs) because the overhead in the news-server to deliver
one xover would be high.

I am pretty sure that fetching 3 small ranges would be far
better than fetching again 1000 full overviews.

So it seems that such algorithms need a "limit".

The optimation has these parameters:

* necessary bandwidth
* necessary time
* workload on servers

Until now I did negligate the third parameter (workload)
because I thought that NSPs would like the idea to deliver
less header traffic (which is usually for free even on pay-NSPs).

Now it seems necessary to think again about this topic.
(It is NOT my intention to overload the servers. My ideas and
programs are always as defensively as possible).


My questions:

How much overhead must be expected on the server-side
for the execution of one XOVER command (single line or range) ?

How valuable is bandwidth compared to CPU+Disk time here ?

What percentage of "refetches" do you believe would be 
aceptable.

How many overview lines should be ALWAYS fetched - rather
than selecting 20% of fills. I am NOT talking about groups
which have 20 new headers ;-) But the good question would
be where to set the limit (10,100,1000 ?)


I am expecting more and more usage of multihost downloaders
in the future - so this topic might be worth thinking about.


Any comments or proposals ?

TIA
-- 
Juergen



Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63188
Author: John De Hoog
Date: Thu, 16 Jan 2003 11:19
27 lines
2087 bytes
Juergen Helbing wrote...

> I am currently working on reduction of Xover bandwidth.
> Especially users with "multi-host-readers" are fetching
> TONs of overviews from all their hosts.
>
> The basic idea I've realised and tested would be to
> issue FIRST a XHDR command which delivers only
> article numbers+msgid - for the "additional servers".
> (The 'main'-server is still delivering everything)
> (It could be possible to "delay" the fillers)
> This is far less info than a full XOVER. This is fast
> and uses less bandwidth.

Have you checked out what Alex Birj is doing in recent releases of his
Newspro reader? He has made it possible to get headers from just one server
and use the message ID to get parts from other servers. This method requires
having one server with good completeness, and using the other servers mainly
(1) to reduce the load on the main server and (2) to speed up downloads by
using many concurrent connections.

http://www.netwu.com/newspro/latest.htm

-- 
John De Hoog
http://dehoog.org
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63189
Author: Juergen Helbing
Date: Thu, 16 Jan 2003 13:38
42 lines
2370 bytes
"John De Hoog" <dehoog@dehoog.org> wrote:

>Have you checked out what Alex Birj is doing in recent releases of his
>Newspro reader? 

I have heared from its latest features. 

>He has made it possible to get headers from just one server
>and use the message ID to get parts from other servers. 
>This method requires
>having one server with good completeness, and using the other servers mainly
>(1) to reduce the load on the main server and (2) to speed up downloads by
>using many concurrent connections.

I am using these method since the first version (1998) of my tools.

Unfortunately this does not solve the problems.
There is _no_ complete Usenet server out there.
So I am working for a long time on better solutions.

It is _necessary_ to fetch headers from more than one host.
And then the mess begins.....

Easy,Super,Giga,Tera,Reader,Hosting... they are all very good.
But they are not complete. And whenever a user cannot see a 
header, then his newsreader does not know how to find the message
at all. The biggest problem is that multiparts dont have a "predictable"
message-id. (Sigh - I wanted them and learned that it is not possible).
So it is impossible to find missing parts without  such methods.

Completeness STARTS with the completeness of headers.
Even major hosts would be able to find "missing parts" anywhere
automatically if they would KNOW that they are missing something
(as a secondary path to true full feeds. See --> [FNTP] ). 

So my work is very basic developement for Binary Usenet.

CU
-- 
Juergen

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63197
Author: Dufus Systems
Date: Thu, 16 Jan 2003 19:18
27 lines
1929 bytes
archiver@i3w.com (Juergen Helbing) wrote in
<1938e.g13200@archiver.winews.net>: 

How reliable is this message-id method? I had this in Newsbin 3.32 but, took 
it out when it proved to be unreliable on some servers. They plain delivered 
the wrong post. 



>"John De Hoog" <dehoog@dehoog.org> wrote:
>
>>Have you checked out what Alex Birj is doing in recent releases of his
>>Newspro reader? 
>
>I have heared from its latest features. 
>
>>He has made it possible to get headers from just one server
>>and use the message ID to get parts from other servers. 
>>This method requires
>>having one server with good completeness, and using the other servers
>>mainly (1) to reduce the load on the main server and (2) to speed up
>>downloads by using many concurrent connections.
>
>I am using these method since the first version (1998) of my tools.
>

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63200
Author: Juergen Helbing
Date: Thu, 16 Jan 2003 20:56
51 lines
2804 bytes
peon@somecompany.com.invalid (Dufus Systems) wrote:

>How reliable is this message-id method? I had this in Newsbin 3.32 but, took 
>it out when it proved to be unreliable on some servers. They plain delivered 
>the wrong post. 

I know this behavior from some "newsfeeds"-servers.

And I've got in a.b.n-s-c the information that DNews is expiring the 
history earlier than the articles (which is not too bad). But it seems
that DNews is not delivering "article not found", but _sometimes_ 
really just another article (which is not acceptable). 
I did notify ChrisP (DNews) some weeks ago - and I did it again 
right now. This will be fixed earlier or later.


I am solving this problem for myself by checking the retrieved 
article (msgid) against the one I wanted. (In some strange cases
I get the correct message with a retry :-)
That "correction routine" is activated not very often.
(But I'm almost fetching non-expired articles).

It might be _always_ a good idea to verify what article the host
really delivered and not to rely blindly that it is the right one.
I've seen wrong articles also from other - very good - hosts.
And I've discussed that phenomen here in n.s.n.

From many million articles I've downloaded with MyNews 
perhaps 100-200 were wrong. I personally can live with this
- because MyNews discards the message - and fetches it 
simply from another host.


The method to reduce the bandwidth for an XOVER command
is independent from this (unwanted) effect. The XHDR call
delivers article numbers PLUS the msgid. It would be also
possible to fetch messages by article-number.
And a host which delivers (creates) wrong XOVER lines
is really broken and must be fixed.....


I cannot recommend to implement fetching by msgid by default
until this effect/bug is solved. But reducing header traffic has 
nothing todo with it.


HTH
-- 
Juergen

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63205
Author: Alex
Date: Thu, 16 Jan 2003 22:24
68 lines
4021 bytes
if newspro downloads something it checks that the message-id in headers is the 
same as in the article that is being retrieved, it is very simple.

as to xover slowness i had the problem with xpat, the quick rude solution was 
to estimate the header percentage, just if it is more than 30% - it downloads 
in one range (everything).

maybe to add more arithmetics, given server delay, the  ranges and the numbers 
of headers you can find a better solution what ranges to merge to reduce 
overall downloading time.  in  simpler words say the time of xover reply is the 
same as time for downloading 20 headers. Then if you have gap between 
consecutive headers less than 20 - you better download the whole range than 
issue 2 xover commands. You just pick up the constant or estimate it based on 
some server characteristics (speed etc).

archiver@i3w.com (Juergen Helbing) wrote:
>peon@somecompany.com.invalid (Dufus Systems) wrote:
>
>>How reliable is this message-id method? I had this in Newsbin 3.32 but, took 
>>it out when it proved to be unreliable on some servers. They plain delivered 
>>the wrong post. 
>
>I know this behavior from some "newsfeeds"-servers.
>
>And I've got in a.b.n-s-c the information that DNews is expiring the 
>history earlier than the articles (which is not too bad). But it seems
>that DNews is not delivering "article not found", but _sometimes_ 
>really just another article (which is not acceptable). 
>I did notify ChrisP (DNews) some weeks ago - and I did it again 
>right now. This will be fixed earlier or later.
>
>
>I am solving this problem for myself by checking the retrieved 
>article (msgid) against the one I wanted. (In some strange cases
>I get the correct message with a retry :-)
>That "correction routine" is activated not very often.
>(But I'm almost fetching non-expired articles).
>
>It might be _always_ a good idea to verify what article the host
>really delivered and not to rely blindly that it is the right one.
>I've seen wrong articles also from other - very good - hosts.
>And I've discussed that phenomen here in n.s.n.
>
>From many million articles I've downloaded with MyNews 
>perhaps 100-200 were wrong. I personally can live with this
>- because MyNews discards the message - and fetches it 
>simply from another host.
>
>
>The method to reduce the bandwidth for an XOVER command
>is independent from this (unwanted) effect. The XHDR call
>delivers article numbers PLUS the msgid. It would be also
>possible to fetch messages by article-number.
>And a host which delivers (creates) wrong XOVER lines
>is really broken and must be fixed.....
>
>
>I cannot recommend to implement fetching by msgid by default
>until this effect/bug is solved. But reducing header traffic has 
>nothing todo with it.
>
>
>HTH
>-- 
>Juergen
>

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63208
Author: Alex
Date: Fri, 17 Jan 2003 00:41
50 lines
2922 bytes
the phrase  'message-id method' may have different meanings, probably we talk 
about different things, i just added something and called it 'message-id 
direct' since it works in conjunction with other options; in fact it dates back 
to February 1986, RFC977:

"3.1.1.  ARTICLE (selection by message-id)

   ARTICLE <message-id>

   Display the header, a blank line, then the body (text) of the
   specified article.  Message-id is the message id of an article as
   shown in that article's header.  It is anticipated that the client
   will obtain the message-id from a list provided by the NEWNEWS
   command, from references contained within another article, or from
   the message-id provided in the response to some other commands."

so nothing new, just something that was logical to add on the top of existing 
newspro options (the main point it is all is under complete user control), i 
don't know about other attempts to add something like that, it seems users like 
it.

peon@somecompany.com.invalid (Dufus Systems) wrote:
>archiver@i3w.com (Juergen Helbing) wrote in
><1938e.g13200@archiver.winews.net>: 
>
>How reliable is this message-id method? I had this in Newsbin 3.32 but, took 
>it out when it proved to be unreliable on some servers. They plain delivered 
>the wrong post. 
>
>
>
>>"John De Hoog" <dehoog@dehoog.org> wrote:
>>
>>>Have you checked out what Alex Birj is doing in recent releases of his
>>>Newspro reader? 
>>
>>I have heared from its latest features. 
>>
>>>He has made it possible to get headers from just one server
>>>and use the message ID to get parts from other servers. 
>>>This method requires
>>>having one server with good completeness, and using the other servers
>>>mainly (1) to reduce the load on the main server and (2) to speed up
>>>downloads by using many concurrent connections.
>>
>>I am using these method since the first version (1998) of my tools.
>>
>

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63213
Author: Curt Welch
Date: Fri, 17 Jan 2003 02:31
20 lines
2019 bytes
peon@somecompany.com.invalid (Dufus Systems) wrote:
> archiver@i3w.com (Juergen Helbing) wrote in
> <1938e.g13200@archiver.winews.net>:
>
> How reliable is this message-id method? I had this in Newsbin 3.32 but,
> took it out when it proved to be unreliable on some servers. They plain
> delivered the wrong post.

As far as I know, it's only fetching by Message-ID that has problems on
some hosts.

If you use XHDR message-id on the other hosts instead of a full XOVER, it
saves header download time, but it doesn't mean you are forced to fetch by
Message-Id.  XHDR gives you the message-id and the article number so you
can still fetch by article number on the other servers.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63214
Author: Curt Welch
Date: Fri, 17 Jan 2003 02:45
51 lines
3264 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> Now the problem:
>
> I was told that some news-servers might have problems
> if I'm fetching too many Xover ranges (or Xover for single
> msgs) because the overhead in the news-server to deliver
> one xover would be high.
>
> I am pretty sure that fetching 3 small ranges would be far
> better than fetching again 1000 full overviews.
>
> So it seems that such algorithms need a "limit".
>
> The optimation has these parameters:
>
> * necessary bandwidth
> * necessary time
> * workload on servers
>
> Until now I did negligate the third parameter (workload)
> because I thought that NSPs would like the idea to deliver
> less header traffic (which is usually for free even on pay-NSPs).

It's true that a server is likely to have "hiden" overhead which it has to
deal with on a per-xover command issue.  If you ask for 5 overview records,
it might internally be reading multiple disks blocks that in fact cover 500
records and then just throwing out the 495 you didn't ask for.

And, if you need records 1,2, 12, and 18, it might be easier for the server
to return 1-18 instead of responding to 3 separte commands for 1-2, 12, and
then 18.

But, the best way for you to figure out what's "right" should be to ignore
the server side issues, and let the server admins deal with that.  You
should simple see what works best for you.  What works best for you is
likely to be what works best for the server admins as well.

But you need to remeber that different servers will respond differently.
So you need to be careful to test perfomance over a wide range of different
servers to make sure you haven't done something that works create for one
type of server but which is a total waste of time for others (but anyone
doing NNTP development has already learned that problem).

The harder trade-off is understanding how the issue changes between the
needs of a user which has very slow network connection vs ones with a fast
low-latency connection.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63216
Author: Heiko Studt
Date: Fri, 17 Jan 2003 08:00
18 lines
1633 bytes
Curt Welch made me laugh on 17.01.2003 03:45:03:

> The harder trade-off is understanding how the issue changes between the
> needs of a user which has very slow network connection vs ones with a fast
> low-latency connection.

Or one with high ping/fast connection
Or one with fast ping/slow connection.

Perhaps building an (ini/config)-option would be best for such an enviroment.


MFG

-- 
Heiko Studt

Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63220
Author: Juergen Helbing
Date: Fri, 17 Jan 2003 11:09
28 lines
1854 bytes
archiver@i3w.com (Juergen Helbing) wrote:

>And I've got in a.b.n-s-c the information that DNews is expiring the 
>history earlier than the articles (which is not too bad). But it seems
>that DNews is not delivering "article not found", but _sometimes_ 
>really just another article (which is not acceptable). 
>I did notify ChrisP (DNews) some weeks ago - and I did it again 
>right now. This will be fixed earlier or later.

Update:

I've been notified by ChrisP. that a fix has been implemented
for the next versions. It was not possible to find that rare bug yet,
but DNews will check outgoing messages for an incorrect 
(not matching) MsgId and rather deliver nothing but a wrong msg.

That fix should be available in DNews 5.6f2 and later releases.

If you (or anybody else) have such problems again with DNews 
then the  news-admin might be thankful for the tip that a fix is 
available.


Just FYI
-- 
Juergen

Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63225
Author: Alex
Date: Fri, 17 Jan 2003 13:15
58 lines
3649 bytes
whatever the reason is now there is no choice for clients but to check that the 
message-id in headers is the same as requested, once  the devil is out of the 
bottle it is too late to fix in on other end.

another problem is the corrupted context which cannot be so easily detected.

the reality is that hard drives are not a reliable kind of storage and data 
corruption occurs although with a low probability - inevitably when we are 
talking about large amounts of data like daily usenet volume muptliplied by the 
number of servers.

it would be excellent to force a field with sha1 hash value of the subject 
header+author header+article body. the field would have to be supplied by the 
client in the end of each post and added as header by the server. servers could 
check it when articles are exchanged and clients could verify that the  article 
content is ok. probably another post command, "POSTSHA", and after final dot 
another string with SHA followed by the end of line (since the SHA line length 
is fixed server could  easily reserve the place for it in headers). 

the server could also check the article during every transmission without 
noticeable overhead to prevent clients from downloading corrupted message 
repeatedly as it how happens with yenc (when message was posted corrupted from 
outset e.g. by an adversary) and getting rid of it as soon as it has been 
corrupted which is very costly in bandwidth and is a very serious yenc drawback.

in short it would be a reliable proof that we got the message exactly as it was 
posted.

archiver@i3w.com (Juergen Helbing) wrote:
>archiver@i3w.com (Juergen Helbing) wrote:
>
>>And I've got in a.b.n-s-c the information that DNews is expiring the 
>>history earlier than the articles (which is not too bad). But it seems
>>that DNews is not delivering "article not found", but _sometimes_ 
>>really just another article (which is not acceptable). 
>>I did notify ChrisP (DNews) some weeks ago - and I did it again 
>>right now. This will be fixed earlier or later.
>
>Update:
>
>I've been notified by ChrisP. that a fix has been implemented
>for the next versions. It was not possible to find that rare bug yet,
>but DNews will check outgoing messages for an incorrect 
>(not matching) MsgId and rather deliver nothing but a wrong msg.
>
>That fix should be available in DNews 5.6f2 and later releases.
>
>If you (or anybody else) have such problems again with DNews 
>then the  news-admin might be thankful for the tip that a fix is 
>available.
>
>
>Just FYI
>-- 
>Juergen
>

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63235
Author: DS
Date: Fri, 17 Jan 2003 18:43
19 lines
1762 bytes
> 
>    Display the header, a blank line, then the body (text) of the
>    specified article.  Message-id is the message id of an article as
>    shown in that article's header.  It is anticipated that the client
>    will obtain the message-id from a list provided by the NEWNEWS
>    command, from references contained within another article, or from
>    the message-id provided in the response to some other commands."
> 

Just as an added note.......I have Usenet-Access as a pay server and on all 
three avaiable to me, if I issue a NEWNEWS command, i get this response:

NEWNEWS disabled by administrator.

Regards,

DS

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63236
Author: Andrew - Supernews
Date: Fri, 17 Jan 2003 20:03
37 lines
2637 bytes
In article <Xns93068B5C7F94Fidispcom@24.48.107.53>, DS wrote:
>>    Display the header, a blank line, then the body (text) of the
>>    specified article.  Message-id is the message id of an article as
>>    shown in that article's header.  It is anticipated that the client
>>    will obtain the message-id from a list provided by the NEWNEWS
>>    command, from references contained within another article, or from
>>    the message-id provided in the response to some other commands."
> 
> Just as an added note.......I have Usenet-Access as a pay server and on all 
> three avaiable to me, if I issue a NEWNEWS command, i get this response:
> 
> NEWNEWS disabled by administrator.

you need to find better servers:

200 Supernews NNRP server ready - http://www.supernews.com (posting ok)
newnews news.software.nntp 20030117 160000 GMT
230 list of new articles by message-id follows
<QWVV9.1007$t91.47399@amstwist00>
<dadg2vstnglj14ol8ojbml7ih34nd4cuco@4ax.com>
<1r65sn6752.fsf@vingodur.ifi.uio.no>
<rvdg2voklv0d13sap4efeuglv3rk7oafl3@4ax.com>
<20030117132153.336$e9@newsreader.com>
<20030117132739.069$xv@newsreader.com>
<Xns93068B5C7F94Fidispcom@24.48.107.53>
<2140i.h13200@archiver.winews.net>
<2746i.h13201@archiver.winews.net>
<0754i.h13202@archiver.winews.net>
<5358i.h13203@archiver.winews.net>
..
quit
205 closing connection - goodbye!

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63237
Author: Dufus Systems
Date: Fri, 17 Jan 2003 21:26
16 lines
1570 bytes
archiver@i3w.com (Juergen Helbing) wrote in <4009c.h13205
@archiver.winews.net>:

Pretty sure I saw this with Usenetserver but, it was a couple years ago. 


>That fix should be available in DNews 5.6f2 and later releases.
>
>If you (or anybody else) have such problems again with DNews 
>then the  news-admin might be thankful for the tip that a fix is 
>available.
>
>
>Just FYI

Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63242
Author: Curt Welch
Date: Fri, 17 Jan 2003 22:59
20 lines
2325 bytes
Alex <alex@somewhere.com> wrote:
> another problem is the corrupted context which cannot be so easily
> detected.

> it would be excellent to force a field with sha1 hash value of the
> subject header+author header+article body.

You should read all the xBin stuff - or just some of it.  xBin fixes this
problem from binary posts. It would be nice to have bettet intergrity
checks for all articles, but it's hard because Usenet actually allows
limited forms of corruption of articles with regards to line endings so you
can't use a straight hash of the article body.  But to be honest, I don't
think we have a problem that really needs fixing for the text artciles.
The problem that needs fixing is for the binary data which is transported
and xBin does a nice job of that.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63245
Author: DS
Date: Fri, 17 Jan 2003 23:18
41 lines
2728 bytes
Usenet Access has been decent as far as I'm concerned.

There is a 600M/day limit.

But for $6/month. Decent deal.

Anyway, Usenet-Access is just re-sold Newsfeeds.

When you log on, you get the 'welcome to xxxxx.newsfeeds.com.......



DS



>> 
>> NEWNEWS disabled by administrator.
> 
> you need to find better servers:
> 
> 200 Supernews NNRP server ready - http://www.supernews.com (posting
> ok) newnews news.software.nntp 20030117 160000 GMT
> 230 list of new articles by message-id follows
><QWVV9.1007$t91.47399@amstwist00>
><dadg2vstnglj14ol8ojbml7ih34nd4cuco@4ax.com>
><1r65sn6752.fsf@vingodur.ifi.uio.no>
><rvdg2voklv0d13sap4efeuglv3rk7oafl3@4ax.com>
><20030117132153.336$e9@newsreader.com>
><20030117132739.069$xv@newsreader.com>
><Xns93068B5C7F94Fidispcom@24.48.107.53>
><2140i.h13200@archiver.winews.net>
><2746i.h13201@archiver.winews.net>
><0754i.h13202@archiver.winews.net>
><5358i.h13203@archiver.winews.net>
> .
> quit
> 205 closing connection - goodbye!
> 

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63255
Author: Alex
Date: Sat, 18 Jan 2003 08:23
31 lines
2106 bytes
I just quoted  too large piece. all what is relevant is:

" It is anticipated that the client  will obtain the message-id from ...  the 
message-id provided in the response to some other commands"  

they didn't tell the commands should be issued to the same server.

next time i'll try to cut all what is irrelevant even from the middle of a 
sentence, sorry.

DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> wrote:
>> 
>>    Display the header, a blank line, then the body (text) of the
>>    specified article.  Message-id is the message id of an article as
>>    shown in that article's header.  It is anticipated that the client
>>    will obtain the message-id from a list provided by the NEWNEWS
>>    command, from references contained within another article, or from
>>    the message-id provided in the response to some other commands."
>> 
>
>Just as an added note.......I have Usenet-Access as a pay server and on all 
>three avaiable to me, if I issue a NEWNEWS command, i get this response:
>
>NEWNEWS disabled by administrator.
>
>Regards,
>
>DS
>

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63262
Author: Juergen Helbing
Date: Sat, 18 Jan 2003 09:01
26 lines
1898 bytes
Alex <alex@somewhere.com> wrote:

>in  simpler words say the time of xover reply is the 
>same as time for downloading 20 headers. Then if you have gap between 
>consecutive headers less than 20 - you better download the whole range than 
>issue 2 xover commands. You just pick up the constant or estimate it based on 
>some server characteristics (speed etc).

My experience with such "constants" or user-definable settings is simple:
The users take what the developer recommends. Nobody is able
to understand the complexity...

It would be necessary to _measure_ the times from the hosts (and they are
varying all the time). 

A possible approach could be to fetch the smallest possible ranges
(in worst case 1-1) and to check whenever the responses are too slow.
Then the "tolerance" is extended - and more headers are fetched.

Could be a kind of "fuzzy logic" problem......  :-)

Thanks for the answer.
-- 
Juergen

Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63263
Author: Juergen Helbing
Date: Sat, 18 Jan 2003 09:07
41 lines
2732 bytes
Alex <alex@somewhere.com> wrote:

>whatever the reason is now there is no choice for clients but to check that the 
>message-id in headers is the same as requested, once  the devil is out of the 
>bottle it is too late to fix in on other end.

You are right - but I believe that we should still try to make server-soft better :-)


>it would be excellent to force a field with sha1 hash value of the subject 
>header+author header+article body. the field would have to be supplied by the 
>client in the end of each post and added as header by the server. servers could 
>check it when articles are exchanged and clients could verify that the  article 
>content is ok. probably another post command, "POSTSHA", and after final dot 
>another string with SHA followed by the end of line (since the SHA line length 
>is fixed server could  easily reserve the place for it in headers). 

Fighting corruption in the headers might be an excellent idea.
Perhaps xBin could solve this as well.

>the server could also check the article during every transmission without 
>noticeable overhead to prevent clients from downloading corrupted message 
>repeatedly as it how happens with yenc (when message was posted corrupted from 
>outset e.g. by an adversary) and getting rid of it as soon as it has been 
>corrupted which is very costly in bandwidth and is a very serious yenc drawback.

I was told that transits (an perhaps other servers) have enough workload
that they cannot verify the consitentcy of articles :-(

>in short it would be a reliable proof that we got the message exactly as it was 
>posted.

We all want the same thing: Reliability.
Perhaps we can reach it together this time...

-- 
Juergen



Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63264
Author: Juergen Helbing
Date: Sat, 18 Jan 2003 09:11
21 lines
1409 bytes
Alex <alex@somewhere.com> wrote:

>[...]
>i just added something and called it 'message-id direct' 
>[...]
>i 
>don't know about other attempts to add something like that, it seems users like 
>it.

I am retrieving messages ONLY by MsgId because MyNews is
retrieving messages from up to a few hundred other hosts.
It would be impossible to maintain all the article numbers....

Together with "Check if the retrieved article is correct"
it works properly.

CU
-- 
Juergen

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63265
Author: Juergen Helbing
Date: Sat, 18 Jan 2003 09:23
59 lines
3333 bytes
curt@kcwc.com (Curt Welch) wrote:

>It's true that a server is likely to have "hiden" overhead which it has to
>deal with on a per-xover command issue.  If you ask for 5 overview records,
>it might internally be reading multiple disks blocks that in fact cover 500
>records and then just throwing out the 495 you didn't ask for.

Could you do me the favour and check how large the XOVER chunks
are on your own servers ?
This seems to be a VERY GOOD approach:

If the host does read really in blocks of (let's say) 16.384 bytes
then fetching  45, 47, 49 would be REALLY nonsense.

Of course this depends a lot from the used Raid/OS - but some 
REAL numbers would help to find out some real constants
for the minimum XOVER-block-Size.


>But, the best way for you to figure out what's "right" should be to ignore
>the server side issues, and let the server admins deal with that.  You
>should simple see what works best for you.  What works best for you is
>likely to be what works best for the server admins as well.

WOW - this is the kind of answer I really like ;-)
But I'm taking _care_ about your harddisks, my friend !

And it would be really hard for you - as a host-admin - to change
the disk-cache constants inside your RAID-drives....

>But you need to remeber that different servers will respond differently.
>So you need to be careful to test perfomance over a wide range of different
>servers to make sure you haven't done something that works create for one
>type of server but which is a total waste of time for others (but anyone
>doing NNTP development has already learned that problem).

I am running the method actually on >10 different major hosts - for testing.
And I am offering the user to switch OFF the XHDR-option per host.
(Especially the mp3.newsfeeds.com is so slow that it makes no sense
 to use multiple XOVER commands on it. Sometimes it takes >30 seconds
to get an answer to a command ;-)

>The harder trade-off is understanding how the issue changes between the
>needs of a user which has very slow network connection vs ones with a fast
>low-latency connection.

Yes - I've answered Alex already:
It seems to be a good idea to find this really out dynamically.

We discussed "fetching full headers for a few hundred or thousands msgs"
earlier (to find something in the headers of a msg) - do you remember ?
From my own experience with this HDR-method I can say that it is
completely unusuable - and should NEVER be considered again.

CU
-- 
Juergen

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63266
Author: Juergen Helbing
Date: Sat, 18 Jan 2003 09:27
23 lines
1581 bytes
Heiko Studt <UsenetBecky@goldpool.org> wrote:

>Or one with high ping/fast connection
>Or one with fast ping/slow connection.
>
>Perhaps building an (ini/config)-option would be best for such an enviroment.

I am actually offering the option to switch the entire "new method" off for
each specified server. The only thing a user will recognize is that a host
is busy endlessly just for fetching headers (longer than all others).

Perhaps it would be an "easy" method to measure the complete 
time necessary for fetching headers, to divide it by the amount of
'new' headers and to compare this number to other hosts - or to
previous runs....

I will investigate further on the topic - and I will post my experience again.

Thanks for your comments.
-- 
Juergen

Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63281
Author: Thomas
Date: Sat, 18 Jan 2003 15:25
30 lines
2780 bytes
Juergen Helbing wrote:

>>the server could also check the article during every transmission without 
>>noticeable overhead to prevent clients from downloading corrupted message 
>>repeatedly as it how happens with yenc (when message was posted corrupted from 
>>outset e.g. by an adversary) and getting rid of it as soon as it has been 
>>corrupted which is very costly in bandwidth and is a very serious yenc drawback.
> 
> 
> I was told that transits (an perhaps other servers) have enough workload
> that they cannot verify the consitentcy of articles :-(

If there is enough to gain, a lot is possible. I could certainly justify a 
machine or two to do this. But only IF the end user result would improve a LOT.

But it won't happen on the current transit servers we have. They are designed as 
transits; they lack the storage, for one thing, and they push out much more than 
they receive.

Xbin could be 'enforced' on a subgroup of servers. Also, sending (signed?) 
cancels for corrupt parts would be okay - it would make the reason for 
sorrupting articles go away.

Hmm... what about tacking on a silly third party cancel signature standard to 
xbin? Only a few cancellers to trust, not too many articles to cancel.


Thomas

Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63284
Author: Curt Welch
Date: Sat, 18 Jan 2003 17:47
26 lines
2659 bytes
Thomas <zak@spam.invalid> wrote:
> Hmm... what about tacking on a silly third party cancel signature
> standard to xbin? Only a few cancellers to trust, not too many articles
> to cancel.

A third party signed cancel system could evolve as a way to remove corrupt
xBin articles, but there's no need to make it part of xBin in any way.
xBin simply would define when the article was corrupt.  What you did with
corrupt articles is really completly outside of xBin.

I suspect that if xBin or a system like it became the "norm" on usenet, we
wouldn't need to do anything extra to deal with corrupt posts.  Abuse would
be minimal because it's not worth the persons time to post the forged posts
- they will be rejected by the newsreaders after download.  And true
corrupted articles are so rare that I don't suspect they will be a problem
either.

Once everyone has the power to spot good and bad articles, then they will
tend to report problems much quicker either to the guy posting or the
admins so when abuse happens, or hardware problems cause corruption, the
problems will be tracked down much quicker and delt with.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63289
Author: Kjetil Torgrim Homme
Date: Sat, 18 Jan 2003 20:04
28 lines
2238 bytes
[Juergen Helbing]:
>
>   curt@kcwc.com (Curt Welch) wrote:
>   > But, the best way for you to figure out what's "right" should be
>   > to ignore the server side issues, and let the server admins deal
>   > with that.  You should simple see what works best for you.  What
>   > works best for you is likely to be what works best for the
>   > server admins as well.
>   
>   WOW - this is the kind of answer I really like ;-) But I'm taking
>   _care_ about your harddisks, my friend !

:-)

I think that the best approach is to be honest about how much work you
need the server to do.  if you ask for 45,47,49, and it is beneficial
for the server to actually fetch 46 and 48 as well, the server can be
optimised to do that.  if it isn't beneficial on this one server, but
you ask for 45-49 anyway, that server can't know that the data for 46
and 48 is irrelevant to you.

optimise for network throughput -- don't ask for unwanted data, and
stream requests to reduce latency whenever possible.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63291
Author: Kjetil Torgrim Homme
Date: Sat, 18 Jan 2003 20:10
15 lines
1809 bytes
[Juergen Helbing]:
>
>   A possible approach could be to fetch the smallest possible ranges
>   (in worst case 1-1) and to check whenever the responses are too
>   slow.  Then the "tolerance" is extended - and more headers are
>   fetched.

this is essentially what TCP does.  the window is extended if the ACK
is returned promptly.  window == outstanding packets.  the window can
shrink as well, of course.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: Update DNews 'wrong articles' was: Re: Workload for an XOVER command ?
#63314
Author: Juergen Helbing
Date: Sun, 19 Jan 2003 14:14
26 lines
1926 bytes
Thomas <zak@spam.invalid> wrote:

>Also, sending (signed?) 
>cancels for corrupt parts would be okay - it would make the reason for 
>sorrupting articles go away.
>
>Hmm... what about tacking on a silly third party cancel signature standard to 
>xbin? Only a few cancellers to trust, not too many articles to cancel.

Please forget about this:   Today the chance to receive a corrupt post 
properly from another server is > 80%.

Most corruption happens "anywhere" on Usenet (perhaps a lot
on reader-servers).
So the 'input' of the checker+cancelbot might be wrong
but the message is properly on many/all other hosts.

If you want to implement "semi-cancels" which would cause
other hosts just to "check if it is valid" then it would be a 
possible way. But again: Checking of validity is something
every single host should make.

-- 
Juergen

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63327
Author: Dufus Systems
Date: Sun, 19 Jan 2003 16:13
14 lines
1720 bytes
>I am retrieving messages ONLY by MsgId because MyNews is
>retrieving messages from up to a few hundred other hosts.
>It would be impossible to maintain all the article numbers....
>
>Together with "Check if the retrieved article is correct"
>it works properly.
>
>CU

I wouldn't say impossible though, it's a pain. I'll have to experiment with 
this myself. Certianly it'll save me a hell of alot of work. Is it slower 
for the server to deliver by message-id?

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63379
Author: Curt Welch
Date: Mon, 20 Jan 2003 02:28
57 lines
4057 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> curt@kcwc.com (Curt Welch) wrote:

> >But, the best way for you to figure out what's "right" should be to
> >ignore the server side issues, and let the server admins deal with that.
> >You should simple see what works best for you.  What works best for you
> >is likely to be what works best for the server admins as well.
>
> WOW - this is the kind of answer I really like ;-)
> But I'm taking _care_ about your harddisks, my friend !
>
> And it would be really hard for you - as a host-admin - to change
> the disk-cache constants inside your RAID-drives....

For a low-bandwidth high-bandwdith-latency user, (like dial-up), they will
most likely optimize totaly for bandwidth and not on time.  They will tend
to want to waste my disk IO if it saves them a single byte of download.

For a higher bandwidth user, the more disk IO they waste, the slower it
will be for them, so they need to find the correct optimial trade off in
download volume vs time wasted waiting on my server to respond.

As an admin and server software designer, I will optimize my software to
minimize disk IO waste.  I will pick XOVER cache block sizes that best fits
the needs of my users.  That's my probelm, not yours.

If most uisers tend to download 1000 or more consicutive headers at once, I
will tend to pick a larger block size, if they tend to download 1 xover
record at a time and randomly jump around the group list, I won't cache
xover recrods into large blocks.

> >But you need to remeber that different servers will respond differently.
> >So you need to be careful to test perfomance over a wide range of
> >different servers to make sure you haven't done something that works
> >create for one type of server but which is a total waste of time for
> >others (but anyone doing NNTP development has already learned that
> >problem).
>
> I am running the method actually on >10 different major hosts - for
> testing. And I am offering the user to switch OFF the XHDR-option per
> host. (Especially the mp3.newsfeeds.com is so slow that it makes no sense
>  to use multiple XOVER commands on it. Sometimes it takes >30 seconds
> to get an answer to a command ;-)

Which shows that even for low bandwidth users, it can make more sense to
ask for 10 headers at once even though you only need the first and last in
the set.  By doing what works best for you, you are likely to be doing what
works best for the server at the same time.

The exception is for commands like XPAT and NEWNEWS which have been
implemented on some servers in ways that incourge the user to abuse the
server.  That's why admins choose to "turn it off".

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63394
Author: Juergen Helbing
Date: Mon, 20 Jan 2003 09:18
14 lines
1500 bytes
peon@somecompany.com.invalid (Dufus Systems) wrote:

>I wouldn't say impossible though, it's a pain. I'll have to experiment with 
>this myself. Certianly it'll save me a hell of alot of work. Is it slower 
>for the server to deliver by message-id?

Yes, downloading articles by MsgId is far slower on many hosts.
I dont care because I usually fetch from many hosts simultanously
 but for a single host implementation I would not even consider the method. 

-- 
Juergen

Re: Workload for an XOVER command ? (reducing xover bandwidth and volume)
#63395
Author: Juergen Helbing
Date: Mon, 20 Jan 2003 09:25
21 lines
1539 bytes
curt@kcwc.com (Curt Welch) wrote:

>By doing what works best for you, you are likely to be doing what
>works best for the server at the same time.

I will keep this in my mind.
Thanks for the answer.

My lastest calculations are showing that constantly measuring 
the reply time for an  Xover <shortrange> command (which contains 
server-time and ping-time) in relation to the time to transmit the bytes 
(which contains bandwidth usage and line-speed) are an excellent
indicator to find out a good fuzzy algorithm....

In case of success I'll publish my results (and the algorithm).

CU - in other threads
-- 
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