Article View: news.software.nntp
Article #51648Re: Question: Overflow on path line ... what to do ?
From: Juergen Helbing
Date: Thu, 05 Apr 2001 08:24
Date: Thu, 05 Apr 2001 08:24
222 lines
9982 bytes
9982 bytes
curt@kcwc.com (Curt Welch) 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. As you see I am "asking others" :-) Testing servers is what I do all the time. Reading INN source code? There a too many different server softs out there. So this is not really an option for me. >> (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. I will keep an eye on this. >> 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. Thanks - this one sentence saved me at least five days of source code reading :-). >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 itI >overflows that buffer, it's a bogus article and gets rejected. Before I start testing it: Does INN reject articles generally as soon as one header-line is too long? (expecially X-Abuse-Headers or other X-Headers). >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.). Yes. >> 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. MyNews is a decentralised network. The hosts are not online all the time. In extreme cases only two hosts are online. Then a message is passed from one to the next. Then the first goes offline, and a third comes up. It gets the message from #2. If 100 hosts are online one after the other, then the path will include all these hosts. Usenet is a kind of "tree" with a backbone - and all servers are online all the time. MyNews is network with random sequence of hosts and peering. And the length of paths is not limited. All this would be no problem - as long as messages stay within the MyNews network. The problem only occurs at the gateway to Usenet. >> 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. AFAIK one of the purposes of the path-header is to control distribution. Normally servers will not feed an article to a known host in the path-line. So the path-line has importance (on some systems). What I wanted to say is that MyNews ignores the path completely. >> 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. Well - if messages do not distribute from MyNews to Usenet because the Gateway cannot do its job, then I have a problem. At least I have to respect the 'rules of Usenet' - and its actual technical limitations. >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. This is a very strict point of view. And I'm doing my very best to keep up this strategy. However the connection points between MyNews and Usenet are special things. MyNews is NOT Usenet. MyNews allows more things which Usenet cannot carry (special kind of subject-cancels, NoCEM like messages, true binary files in messages.....) - and at the end the problem with the long pathlines. I'm still working on an acceptable cooperation between both worlds. But until now everything I've got resultet in a 'one-way-road'. :-( >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. I would not have taken the time to create "just another news server" :-) I believe that NNTP is a better protocol to distribute dynamic information than HTTP/FTP/.... This is why I've written a news-server. But perhaps you have seen that I'm trying to create a tool which extends the capabilities of Usenet today. And such extensions are always critical as soon as they meet the edge of "downward compatibility". >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. The 'Usenet server part' of MyNews is working correctly. But the fact that the owner of a MyNews server is not a news-admin with regular peers creates some problems I have to solve. >> 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. So the conclusion would be that messages with a path line of 2000 bytes cannot be transmitted from MyNews to Usenet (today). If long path lines cause that a message is not distributed - and it is not permitted to split it up any way - then the problem is unsolvable. If all kind of workarounds (which would even keep the necessary information for despamming) are forbidden, then the way is locked. At least a simple rule to implement into the gateway :-)) > >You should stop thinking that your server is not a part of Usenet. It >is. I dont agree. An 'enduser' MyNews is a part of the MyNews network. The gateways are a part of the Usenet. >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? I did explain this above. The reason why I'm asking _is_ that I'm afraif of long paths. >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. Thank you very much for the work with this statistics. >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. Usenet-growth: Yes. But if I imagine 10.000 MyNews running, 1000 of them sequentially, then this is good for just 10 days. However: Thanks for the reply. Another lesson learned.... -- Juergen
Technical Details
Message-ID:
<5412a240202@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!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!news.alt.net!archiver.winews.net!not-for-mailReferences:
<o3129021000@archiver.winews.net> <87d7b6izkj.fsf@erlenstar.demon.co.uk> <r3129591000@archiver.winews.net> <20010328180806.909$ut@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <5412a240202@archiver.winews.net> Subject: Re: Question: Overflow on path line ... what to do ? Date: Thu, 05 Apr 2001 08:24:02 +0000 From: mynews@i3w.com (Juergen Helbing) References: <o3129021000@archiver.winews.net> <87d7b6izkj.fsf@erlenstar.demon.co.uk> <r3129591000@archiver.winews.net> <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!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!news.alt.net!archiver.winews.net!not-for-mail Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 221 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: MyNews