Article View: news.software.nntp
Article #68739Re: New NNTP standard in Working Group Last Call
From: Curt Welch
Date: Sun, 21 Mar 2004 21:21
Date: Sun, 21 Mar 2004 21:21
205 lines
11953 bytes
11953 bytes
"Colin Wilson" <colin@wilsonc.demon.co.uk> wrote: > Curt Welch wrote: > > > To support a full feed with a "typical" user load and typical > peering, > you must have a network of machines highly optimized to keep > up with > > the volume. There is no CPU, or network bandwidth, or disk bandwidth > > to spare any more. > > Yes, the mind boggles as to how much raw data goes into the newsgroups. > Do you have any statistics? Like how many messages are posted to > usenet per day? How many gigabytes? etc. Here's one site you can check recent stats at: http://newsfeed.visi.com/ Volume is currently around 1TB (yes 1024 GB) per day and about 4 million articles per day. The highest volume groups get about 60 GB and 200,000 articles per day. This means the bandwidth needed to receive a full feed is now over 100 Mbits. This means that a news server has to receive, store, and index, 45 articles per second 24x7. And after it's been down for a few minutes, it needs to processes them 2 or 3 times faster than that if it's gonig to get caught up in a resonable amount of time because the Usenet feed never stops. > > However, for something as minor as putting the article number in the > > response by forcing the CPU to parse the Xref: line, that amount of > > load is trivial. It's a .00001 % increase in load, if you have a > > valid Xref: line to parse. > > I'd like to think that if you're in a group (ie. you've sent a "GROUP > <groupname>" command) and you subsequently retrieve articles, either > with ARTICLE <message no> or ARTICLE <article-id> you'll always get a > valid Xref - with the important *caveat*: so long as you stick to > articles in the range that was returned in the GROUP command's response. I'd like to think you get a valid Xref with every article or header you retrive with no cavates. But I think it's going too far to require that Xref: even be supported let alone force it to always be correct. I've not read the new draft to see how or if it addresses the "Xref:" issue (or if if it even tries to). > I can accept that sometimes you could do ARTICLE <article-id> on a > message that hadn't yet been digested by the code that dishes out > message numbers, and you wouldn't get an Xref. But surely that > couldn't apply to messages in the GROUP response's range? On distributed servers, there is no end of variations on how the unerlying system works and on almost all variations, you get things you never would have expected if you have not tried to design and build a distributed Usenet server yourself. The problem with Usenet is that there's seldom enough money to "do it right", so as usenet grows, we all tend to hack together solutions to keep it working until we have some more time to try and do it right. Most the time, the "hacked together" solutions have side effects which didn't exist in the old system. Articles showing up out of order is one example of a common side effect. Articles that are there one minute, gone the next, and then return later are another side effect. Articles which can be retrieved by one method (group/article-number) but not another (message-id), is another common side-effect. Group commands which return a lower high-water mark than it has in the recent past is another side effect. There's no end to the number of unexpected protocol violations what will actually exist on servers at times these days. Having the server return a completly different message by Message-Id than when you fetch it by article number is even a possibility because many large servers use different back-ends and determine which back-end to get an article from using different techniques when you fetch by group/article-number than when you fetch by message-id. And because duplicate messages with the same Message-Id do happen on Usenet, it's quite possible that the two back-ends will have different articles and also have different Xref: information for them. The probability is even higher when the article is cross posted. Beacuse Usenet data (the articles) have so little real value, everything about Usenet tends to be very sloppy in order to keep costs low. The only real guiding factor is does the entire system work "most the time". This is the other end of the scale from an engineering problem like sending a person to the moon where any small engineering error is likely to kill the someone. > I'm trying to find out whether there are any servers out there that > this isn't true for - with the caveat above. You can never really trust Xref: completly. Any code that makes use of it should assume it could be completly wrong. You shouldn't do anything with xref data that would cause the newsreader to crash or corrupt it's information about other articles if the xref was wrong. There are so many different servers in use today that it's very hard to say anything for sure about what a widely used newsreader might run into. You just have to do a lot of testing and evolution of your software over time to address all the problelms you run into. The real bitch about writting NNTP software is that this knowledge of what works and what doesn't has never been recorded anywhere other than the source code of the packages that exist. This means that whenever someone new starts to write an NNTP client, they will always make false assumptions about how things "should" work, which will come back to bite them. Only after a few major rewrites and a lot of patching are you likely to end up with a "good" general purpose nntp client. Of course it's hoped that the current project will minimize these problems in the future. > > search the entire group for a match. ... A linear search of a > > newsgroup with millions of articles just to allow the server to > > respond to a STAT command is total unworkable. > > I agree! But in this particular case you know the date/time for the > article you're trying to find, and messages are (mostly!) in date/time > order, so you can use a binary search to find the message number, based > on this. At least you'd (probably) find the right area to do a linear > search within. Yeah, but when some groups are geting 200,000 articles per day and the date error on articles can be days old, you still have to search hundreds of thousands of articles to reduce the probablity of missing an article which is there but was ciculated with a 2 day old date. It's just not a very good solution. > But I'm not suggesting that it should be down to the server to do this. > As long as it returns an Xref containing the correct message number for > messages that it has given a Number to, that would be good enough. > > > What would? Knowing the article number when you already know the > > Message-ID? I don't get your point. When checking multiple servers, > > it's the Message-ID and not the article number you need. > > Just supposing I want to combine and decode an attachment that's been > split across several messages. I have part [1/5], part [2/5], part > [3/5] and part [5/5], but part [4/5] is missing from the server. > > It occured to me that I could: > > 1. Look up the Article ID for the first and last part on another server. > > 2. Find the message numbers for these articles on the other server. > > I'd have to do this because of course they could well have different > numbers on the other server. > > 3. Do an XOVER between these two message numbers to try and find the > missing part. Articles are not guaranted to be posted in order, and they are pretty much guaranted not to show up in the order they are posted. This is because Usenet article distribution allows for a very large number of parallel and independent paths for articles to travel - each with different amounts of delay (and some delays for backlogged binary article queues can be many hours long). So it's very likely that part 4 will show up with a higher article number than part 5 on many servers. And if the guy decided to re-post part 4 the next day, it's almost guranteeded not to be in the same range. Tricks like the above can help narrow the search. You can start in that range and then spread out and on average you will find it faster than having to download headers for the entire group. But in the end, if you want to find multiplart messages and you don't have some way to find the Message-Id, you just have to download all headers. > > > > But back in those days, the RFC really wasn't the standard, the > > > > reference NNTP implementation and INN were the standard. > > > > > > That may well be true, but it's a dreadful situation! > > > It wasn't dreadful at all. The source code was a fine standard. > > ??? Like you said in another message, there are several versions of the > source code - some support some functions, others don't. Where's the > standard?? Good point. The real answer is that there isn't one. There are many standards. However, back in those days - late '80s and early '90s, there were very few working NNTP implementations. There were only two major ones, the "nntp" server software which was an add-on package for a standard Usenet system, which from my research looks like it was written around 1986, and then INN, which was a re-write of news which integrated NNTP support into a server for the (I assume) first time, which was released in 1992. So there was one real NNTP standard from 1986 to 1992, and then INN really took over the role from 1992 into the mid to late '90s after the commercial internet took off and other servers started to emerge as dominate players like the Highwind products, Diablo, and dnews. There are so many total different servers in use today you can't even count them from high-end custom servers to the small personal servers. Whoever made the change to the old nntp server software to make it return the article number did so after INN had really taken over the lead as "the NNTP standard" in my eyes. And in my eyes, they made a change he never should have made because even though he probably saw it as an "improvement", I see it as breaking the standard which has been in use for 8 years. Lots of people have "broken" the standard in lots more important ways since then however. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20040321162109.936$GA@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!newshosting.com!nx02.iad01.newshosting.com!38.144.126.100.MISMATCH!feed5.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<871xo3w5c6.fsf@windlord.stanford.edu> <xn0dfommipc6fs004@news.clara.net> <87u10t4qie.fsf@windlord.stanford.edu> <I$l12xM0$xVAFwh5@romana.davros.org> <xn0dfuqs22sge9002@news.clara.net> <mAMOpTEeZsWAFwu3@romana.davros.org> <20040320010803.826$XN@newsreader.com> <xn0dfzx8414zjf001@news.clara.net> <20040321022215.366$AF@newsreader.com> <xn0dg1o3vfth08003@news.clara.net>Show Full Headers
Complete Article Headers
Message-ID: <20040321162109.936$GA@newsreader.com>
Subject: Re: New NNTP standard in Working Group Last Call
Date: Sun, 21 Mar 2004 21:21:09 +0000
From: curt@kcwc.com (Curt Welch)
References: <871xo3w5c6.fsf@windlord.stanford.edu> <xn0dfommipc6fs004@news.clara.net> <87u10t4qie.fsf@windlord.stanford.edu> <I$l12xM0$xVAFwh5@romana.davros.org> <xn0dfuqs22sge9002@news.clara.net> <mAMOpTEeZsWAFwu3@romana.davros.org> <20040320010803.826$XN@newsreader.com> <xn0dfzx8414zjf001@news.clara.net> <20040321022215.366$AF@newsreader.com> <xn0dg1o3vfth08003@news.clara.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!newshosting.com!nx02.iad01.newshosting.com!38.144.126.100.MISMATCH!feed5.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com PiX+irD+WuiyGG,m3Mbul9pcZO/8xCoVItDrzSzmj-EaN3k
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 204