Article View: news.software.nntp
Article #51534Re: Question: Overflow on path line ... what to do ?
From: Curt Welch
Date: Wed, 28 Mar 2001 23:08
Date: Wed, 28 Mar 2001 23:08
248 lines
13010 bytes
13010 bytes
mynews@i3w.com (Juergen Helbing) wrote: > >I believe INN has a 1024 byte limit on sizes of known > >headers, though. > > And this is really ugly. The RFC did not specify it - and the > implementors did it silently :-( It was a good idea to ask here. News has always been a mess. The standards have never told the truth. They tell what someone once thought SHOULD be the truth. You have to do what you are doing to find the answers to all these "little" details. Test servers, read inn source code, and ask others. And every time someone trys to fix the RFCs, then along come all the people that want to add a thousand "new" features instead of just correctly documenting how stuf currently works. And noone can agree how far to go with the new features so the the depate goes on for years until people get tired of talking about it and then the project dies and we still don't have an RFC that documents how stuff has been working for years. > It would be really nice to know how other ns-software acts. Grab the souce to INN and Diablo and spend a few days learning your way around it. It seems like a huge job to understand when you first start looking at it, but before long you understand enough to know where to look for answers. Then it becomes fairly easy to answer these types of questions just be checking the source. > (Perhaps this is one of the reasons why incompleteness is a > more and more upcoming effect - even on excellent connected hosts). I doubt it's a big issue. But there are a lot of little things like this that all working together cause articles to be lost. Things like not correctly dealing with the "reject but try again later codes", etc. You need lots of redundant paths to get a very high probability of delivery and for the large articles, you just don't have enough redundant paths on Usenet. Today for example, Cidera (aka Skycache) just sent out a note saying in effect: "we give up". "Usenet is too big and we just can't do it anymore. We are going to simply admit we are dropping articles instead of saying, we are working on it. And. Oh, we will drop the big ones first". So now, usenet has yet another unreliable delivery path for large articles. (They are still a great deal for the price and a wonderful company to work with, but they are just one more company that couldn't keep up with Usenet). > Are there any objections against a small test? > Sending out a few messages with a dummy extended 1k/2k/4k/8k > path-header to alt.test ? No, that's not a problem. Do it if you like. Feel free to post messages here letting us know what was posted so we can look for them and report back. > >truncating is never an option > > I agree and accept this. But I have another option: > RFC 822 allows 'folding' of extra long header lines (for readability). > Would it be possible to fold the header-line at 500 chars (or course > on a delimiter) and continue in the next line? Nope. Too much software expects it to be one line. There really isn't a problem with it being on one very long line. > I cannot imagine that INN or other > servers use a parser to concat the lines back - and then reject the > message because the header is again too long :-) Or ? As I recall, that's exactly how INN is written. The general header parsing routine un-folds the lines and puts the result into a large fixed size buffer to make it easier for the other code to deal with. And if it overflows that buffer, it's a bogus article and gets rejected. > The path header is important for identifying message routing - > and to avoid duplicate feeding to hosts which are already in the > path line. But I hope that 500 chars would cover at least the > Usenet routing part of a message - enough for identification. No, it's not really all that important. It's even questionable as to whether servers should use the hosts in the path to decide who to offer an article to and who not to offer it to. Paths are sometimes forged. If there's a forged article out on Usenet with "my" hostname in the path, by god I want that article sent to me so I can see it. If some other jerk configures his server to use my path name, then I don't want to see the articles that are comming from his server. I don't want to be "proteded" from them. The standard use of Path like you talk about means the admins that most need to see the forged article are the ones that don't get a copy of it. Personally I think the correct algorithm for a transit server to use is to ignore path host names by default unless the feed configuration tells the server to filter based on path. But what they should do is correctly reconize who the incomming articles came from and simply be smart enough to not offer those articles back to the same server. What the Path: is important for is tracking down the source of "bad" articles (be it spam or a broken gateway re-injecting trash etc.). > My problem seems to be academically for you - but for me it is serious. > In a decentralised nntp-network with thousands of hosts long path lines > are not seldom, but common. Why do you see your server as any different than the rest of Usenet? It's not. Usenet may have a handful of large central servers, but it has always had thousands of little servers as well. Paths remain resonable lengths because articles are always feed the quickest way possible. Generally, the quickest path is also one of the shortest paths. You do see "special" case articles taking very long paths. For example, you can get a message-id which INN rejects, but Diablo accepts, so when the article finally makes it to you, it was over a path of nothing but Diablo servers, which may have taken two days longer and created a huge Path: line in the process. > Well - there I can handle this. On that decentral network there is no > feeding. So the Path header is simply informational. It's mostly informational on all of Usenet. Nothing would break in terms of news propigation if headers were dropped. And saying there's no "feeding" with your server is wrong. It's just a suck feed instead of a push feed. It's still a feed because the articles are being copied from one server to another. > But as soon as gateways exist to Usenet such messages can (and > McMurphy would say: will) enter your zone. > And I've already learned that the gateways must be really designed well. Gateways are only a big problem if they are bidirectional. One-way gateways aren't a problem. If you have to translate the message from one format to another as it goes though the gateway, then there's huge potential for problems. If you keep the message byte-for-byte the same and don't translate it, then there are no problems (and you wouldn't really call it a gateway -- it's just another usenet server). Basically, bi-directional gateways should never be written. If it's bidirectional, (meaning a message can cross from one net to the other, and then later return back to the first), then it's not really a gateway, it's simply a very broken Usenet server. Usenet transports should never change the messages. They need to maintain the message byte for byte the same. No clean up or re-formating anything. If you can't do that, then the server is broken and should NOT be allowed to be part of usenet. From everything I've read on your site about mynews, it is nothing more than a small usenet server designed to work well with dial-up (i.e., non permanate) connections. So to do that, it uses suck feeds and is mostly operated manually (i.e. you tell it when to suck etc). It stores articles, accepts articles, and acts as a news server for NNTP based newsreaders. Dude, if it looks like a news server, and smells like a news server, it is a news server. And if it is a news server, then it needs to act correctly. It's as simple as that. A news reader which sucks articles, but never tries to pass them along to someone else is not a news server. It's just a caching news reader. That type of system can translate the articles any way it wants to because after the translation, there's no chance the article will be injected back into Usenet. But once you try to pass the articles on to another site, then you are a news server and you will run into all the same problems as all the other servers ever created will run into. If you have the ability to pass the article to another site, then you can not control what will happen to it and you must assume that it will be injected back into mainstream usenet somewhere. Because you offer standard NNTP newsreading commands, this is alredy possible. There are lots of sucking servers that have the ablitly to suck the articles off of a mynews server and feed it to any standard Usenet server. If you write a usenet server (which you have done), and give it out to the world (which you have done), you need to make sure works correctly. > Would it be an option for a gateway to split a path this way? Example: > > Path: SecondUsenetServer.com ! FirstUsenetServer.org ! Gateway.net > Ypath: LastServer-my ! s600-my ! s599-my ! s598-my > ! s597-my ! s596-my ! ..... > .... > ! s2-my ! s1-my ! origin > > I could also add a bunch Ypath-lines if folding is not applicable. > > Please help me to avoid problems - before I run into them. No, that would be very wrong. You should stop thinking that your server is not a part of Usenet. It is. It acts just like any other server on Usenet and has all the same problems as the rest of the Usenet servers in the world. Did the Highwind guys add a WindPath: header to deal with all the extra typhoon hosts the articles would be passing though? Use the Path: header like all the other servers do and use it correctly. Put real host names in the path (assign them out of the winews.net domain if need be: s600.winews.net!s599.winews.net), and deal with long paths. What's the problem? If you can't write code to deal with unlimited length paths, then just pick something large like 2K or 4K. It will work fine. Your technology is not going to make paths all that much longer. It may add a few extra hops on the average, but it's not going to make them 2 or 3 times longer. There are something like 50,000 servers in the world today on Usenet but the average path length is still around 10 hops. If your technology adds a million new hosts, it's only going to increase the average path length by a few hops. What am I missing? Why do you expect the paths to be so huge with your network of MyNews servers? Just for the fun of it, I extracted a bunch of random Path: lines from my news spool and did some quick calculations on the number of hops (actually just the number of bangs), and the size of each. I got this: Path lines: 852718 Avg hops: 10.3 Max hops: 41 Avg bytes: 208 Max bytes: 764 So the average path header today is around 10 hops long and 200 bytes. Which makes the average path host name about 20 bytes long. Only about 1 out of 1000 were over 500 bytes. And less than 1 out of 1, 000,000 were over 800 bytes. If the MyNews server caused path lenghts to be 5 hops longer on the average (which I doubt would happen), that would make the average path only 300 bytes long and articles with paths longer than 1000 bytes would still only happen at a rate of around 1 out of 900,000 articles or so. I just don't see any of this as being a problem. Make your MyNews server deal with paths at least 2K in length and it will be good for at least 10 years of Usenet growth. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20010328180806.909$ut@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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!news2.newsreader.com!news3.newsreader.com!not-for-mailReferences:
<o3129021000@archiver.winews.net> <87d7b6izkj.fsf@erlenstar.demon.co.uk> <r3129591000@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <20010328180806.909$ut@newsreader.com>
Subject: Re: Question: Overflow on path line ... what to do ?
Date: Wed, 28 Mar 2001 23:08:06 +0000
From: curt@kcwc.com (Curt Welch)
References: <o3129021000@archiver.winews.net> <87d7b6izkj.fsf@erlenstar.demon.co.uk> <r3129591000@archiver.winews.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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!news2.newsreader.com!news3.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-User: Curt@NewsReader.Com
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: 247