Thread View: news.software.nntp
10 messages
10 total messages
Started by Martin Kotulla
Sat, 13 Jul 2002 14:49
Duplicate message IDs -- handling by common servers
Author: Martin Kotulla
Date: Sat, 13 Jul 2002 14:49
Date: Sat, 13 Jul 2002 14:49
14 lines
1693 bytes
1693 bytes
Duplicate message IDs should not happen, however they are a fact of life. How do the major NNTP servers (INN, DNews, Typhoon, Cyclone, Diablo) handle messages with duplicate Message-IDs? Can I be _absolutely_ 100% sure that _none_ of them can have two different messages with the same Message-ID in their spool at the same time? i.e., can I safely always replace ARTICLE n by ARTICLE mid? Does retrieving by Message-ID on today's servers incur a performance penalty as opposed to retrieving by article number? -Martin
Re: Duplicate message IDs -- handling by common servers
Author: J.B. Moreno
Date: Sat, 13 Jul 2002 21:43
Date: Sat, 13 Jul 2002 21:43
23 lines
1856 bytes
1856 bytes
In article <3D303E15.90700@gmx.de>, Martin Kotulla <mk999@gmx.de> wrote: > Duplicate message IDs should not happen, however they are a fact of > life. How do the major NNTP servers (INN, DNews, Typhoon, Cyclone, > Diablo) handle messages with duplicate Message-IDs? Actually they aren't a fact of life -- in fact, the very nature of news distribution almost precludes them; i.e. server A says it has message-id "non-duped" and server B either says "I don't have that, send it to me" or it says "keep it, I have my own copy of that", either way it doesn't get a dup. And of course they likewise reject POST commands where the message-id is duplicated. Of course this isn't aboslutely fool proof, because some people don't do such a good job with their history files, but it's not all that common. -- J.B. Moreno
Re: Duplicate message IDs -- handling by common servers
Author: Andrew - Supernews
Date: Sat, 13 Jul 2002 22:05
Date: Sat, 13 Jul 2002 22:05
40 lines
2626 bytes
2626 bytes
In article <3D303E15.90700@gmx.de>, Martin Kotulla wrote: > Duplicate message IDs should not happen, however they are a fact of > life. How do the major NNTP servers (INN, DNews, Typhoon, Cyclone, > Diablo) handle messages with duplicate Message-IDs? by rejecting the duplicate one as usual. > Can I be _absolutely_ 100% sure that _none_ of them can have two > different messages with the same Message-ID in their spool at the same > time? no. All of the common servers have some sort of failure mode than can result in duplicate IDs, for example history file corruption, too-short history (for the Highwind servers), etc. > i.e., can I safely always replace ARTICLE n by ARTICLE mid? This is known not to work on some Highwind systems if the configured history size is too small for the current retention; in such a situation the older articles are not retrievable by message-id at all, though they can be accessed by article number. Our server in fact has the same problem, but only for articles more than about 250 days old. > Does retrieving by Message-ID on today's servers incur a performance > penalty as opposed to retrieving by article number? this is hard to predict - as a general rule access by number involves hitting the overview then the article itself, whereas access by id involves hitting the history then the article, but the relative performance of the two will depend mainly on implementation details. However, if you're going to do a lot of accesses from the same group, then locality-of-reference arguments suggest that access by number is more likely to be faster (though there are implementations where this is not true). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Duplicate message IDs -- handling by common servers
Author: Curt Welch
Date: Sun, 14 Jul 2002 02:36
Date: Sun, 14 Jul 2002 02:36
51 lines
3635 bytes
3635 bytes
Martin Kotulla <mk999@gmx.de> wrote: > Duplicate message IDs should not happen, however they are a fact of > life. How do the major NNTP servers (INN, DNews, Typhoon, Cyclone, > Diablo) handle messages with duplicate Message-IDs? As already pointed out, servers reject duplicates so it's mostly impossible to have them. However, servers have bugs or configuration problems where this can happen. A common problem on the Highwind servers is that the size of the history file must be configued by hand. If it's too small, then information about older articles are expired before the article is removed from the spool. Once that happens, you can no longer retreive the article by Message-Id but you can still retreive it by article number. But, the other bug is that these servers might also accept a second copy of the same article if it's offered after the history expires. Normally, this shouldn't happen but it does in fact happen on a regular basis (i.e. old copies of news gets re-circulated because of errors and because of short retention and history on transit servers). If that happens on a box you are trying to read news from, there may be two copies of the same article in the same group with different numbers assigned to them. You may think you are reading article 1000 when you ask by Message-ID, and you may get a copy of the article, but the copy you get is actually for article 1100. The only real problem there is that the Xref: will show it as article 1100 and that may confuse your software. If that is not a problem, then it's not really important which article you get. > Can I be _absolutely_ 100% sure that _none_ of them can have two > different messages with the same Message-ID in their spool at the same > time? i.e., can I safely always replace ARTICLE n by ARTICLE mid? 99.9% of the time, using mid lookup will work fine. The most common problem will simply be an issue of not being able to retreive some of the oldest articles. > Does retrieving by Message-ID on today's servers incur a performance > penalty as opposed to retrieving by article number? You wouldn't expect it to be much worse than by number. But, if any server worked better with one than the other, you would expect it to work better using number lookup. So, switching to mid lookup will generaly work fine, but if you wanted the best system, you should stick with using article numbers. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Duplicate message IDs -- handling by common servers
Author: Martin Kotulla
Date: Sun, 14 Jul 2002 09:24
Date: Sun, 14 Jul 2002 09:24
16 lines
1769 bytes
1769 bytes
J.B. Moreno wrote: > Actually they aren't a fact of life -- in fact, the very nature of news > distribution almost precludes them I should have worded more carefully: "they are a fact of life ... when retrieving from multiple servers". Differently-sized spools and history files cause different incarnations of messages (and sometimes completely unrelated messages) to be delivered when asking for the same Message-ID on different servers. This is especially noticeable in the jobs groups (why?). Not they are worth reading anyway ... -Martin
Re: Duplicate message IDs -- handling by common servers
Author: Martin Kotulla
Date: Sun, 14 Jul 2002 09:28
Date: Sun, 14 Jul 2002 09:28
19 lines
1874 bytes
1874 bytes
Andrew - Supernews wrote: > no. All of the common servers have some sort of failure mode than can > result in duplicate IDs, for example history file corruption, too-short > history (for the Highwind servers), etc. > >>i.e., can I safely always replace ARTICLE n by ARTICLE mid? > > This is known not to work on some Highwind systems if the configured > history size is too small for the current retention; in such a situation > the older articles are not retrievable by message-id at all, though they > can be accessed by article number. Andrew: That's what I wanted to hear. Actually, no, I didn't want to hear that, but it's good to know that I have to code around that. -Martin
Re: Duplicate message IDs -- handling by common servers
Author: Martin Kotulla
Date: Sun, 14 Jul 2002 09:42
Date: Sun, 14 Jul 2002 09:42
17 lines
1737 bytes
1737 bytes
Curt Welch wrote: > 99.9% of the time, using mid lookup will work fine. The most common > problem will simply be an issue of not being able to retreive some of the > oldest articles. > [...] > So, switching to mid lookup will generaly work fine, but if you wanted the > best system, you should stick with using article numbers. > Curt: Oh well, there goes another optimization down the tube ... Writing software for NNTP makes you design fail-safe code. Any shortcuts you take will bite you at some point in the future. -Martin
Re: Duplicate message IDs -- handling by common servers
Author: Andrew - Supernews
Date: Sun, 14 Jul 2002 10:27
Date: Sun, 14 Jul 2002 10:27
32 lines
2112 bytes
2112 bytes
In article <3D314345.6070502@gmx.de>, Martin Kotulla wrote: > Differently-sized spools and history files cause different incarnations > of messages (and sometimes completely unrelated messages) to be > delivered when asking for the same Message-ID on different servers. This > is especially noticeable in the jobs groups (why?). because the jobspewers use their own hand-hacked scripts to dump huge databases of (often totally fictitious) jobs to the groups, and such niceties as the requirement for unique message-ids seem to have escaped their attention. Other causes of improper duplicate messages include (but are not limited to): - the insane Typhoon behaviour of replacing the Date header on posts, rather than rejecting posts with old dates as is required to prevent loops (I note that many sites that ought to know better are doing this, including Giganews) - fidonet gateways - Airnews' practice of forcing the message-id on posts to be based on a hash of the body - anonymous remailers using the body hash for the message-id - spammers -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Duplicate message IDs -- handling by common servers
Author: Francois Petillon
Date: Mon, 15 Jul 2002 13:01
Date: Mon, 15 Jul 2002 13:01
18 lines
2025 bytes
2025 bytes
Andrew - Supernews wrote: > > Does retrieving by Message-ID on today's servers incur a performance > > penalty as opposed to retrieving by article number? > this is hard to predict - as a general rule access by number involves > hitting the overview then the article itself, whereas access by id involves > hitting the history then the article, but the relative performance of the > two will depend mainly on implementation details. However, if you're going > to do a lot of accesses from the same group, then locality-of-reference > arguments suggest that access by number is more likely to be faster > (though there are implementations where this is not true). For Diablo with spoolers with dedicated hiearchies/sub-hiearchies, using article numbers will allow to restrict requests on spoolers storing the corresponding group (but with the cost of hitting the overview). Fran�ois
Re: Duplicate message IDs -- handling by common servers
Author: Francois Petillon
Date: Mon, 15 Jul 2002 13:16
Date: Mon, 15 Jul 2002 13:16
18 lines
1862 bytes
1862 bytes
John Schmidt wrote: > This brings up a point that's been bugging me for some time. In > terms of being a good "net neighbor", how long *should* you > retain history on a transit only box? I would say it depends mostly on the memory you have : history requests must not slow down your incoming feed (backlogging means your peers will have to retrieve articles on disks and not in the buffer-cache, which may be painfull). It will not really avoid regurgitations (?) to keep an history on a few weeks. Setting a low remember value will lead you to refuse "old" articles but I think most articles are feeded all around the world within a few minutes (excepted to somes UUCP-batched servers). Fran�ois
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