Article View: news.software.nntp
Article #44896Re: Pipelining IHAVE commands with INN
From: Curt Welch
Date: Wed, 08 Mar 2000 00:00
Date: Wed, 08 Mar 2000 00:00
95 lines
5700 bytes
5700 bytes
Brad Knowles <brad@shub-internet.org> wrote: > In article <20000307170425.247$Qv@newsreader.com>, curt@kcwc.com (Curt > Welch) wrote: > > > So I believe in streaming feeds now :). > > Glad to see that you've finally joined the fold. ;-) > > Now, what about multiple simultaneous parallel streaming feeds? That's just assumed :). > > But, IHAVE feeds are really > > better :). > > How do you come to this conclusion? Well, like I said, it's just not practical to use IHAVE in most cases for large feeds, but I say "IHAVE is better" because it doesn't have a lot of the complex issues that come with streaming. The problem with streaming is that once a server says "yes, I want that article", there's no telling how long it might be before the article will actually be sent. And no real requirement that it be sent at all. With IHAVE, once the server says "send it", the client must do it right then, or drop the connections. What this leads to is a complex set of issues where you either have to waste a lot of bandwidth with streaming feeds, or risk never getting some articles. I suspect that a lot of articles are being dropped today because of streaming servers that don't work correctly. But that's just an unproven hunch I have. The problems happen on the server side. If a server receives two CHECKS for the same article (from two different feeds of course), how should it repond to the second CHECK? If it says, "238 Yes I want that article" to all duplicate checks, then there's going to be a lot of wasted bandwidth when all the feeds send the same article multiple times. If you have a lot of fast peers, you will end up with a LOT of wasted bandwidth if the server works this way. And to make matters works, the larger the article, the more likely this is to happen. If it says "431 Not now, try later", (the right think to do in my mind) it's unclear how many feeding sites will actually honor that correctly (i.e. actually hold it and try it again later). I'm betting some will just treat that as a "no he doesn't want it". If they do that, articles will get lost. I just stopped in the middle of writting this and checked the Diablo 1.11 (a very old version of Diablo) source. Sure enough, it treats a 431 the same as a reject. Looking at the comments however, it looks like at one time, it used to treat it the same as a "OK, I want" it response. But I'm guessing that caused too much wasted bandwidth so he changed it to be the same as "no I don't want it". I have no idea what the current version of Diablo does. If the server says "438 no" to all but the first CHECK, then you run the risk that the aritcle may never actually show up. I've seen some evidence that someone feeding me has a bad habbit of offering lots of articles and then never delivering them. But even for well behaved servers, it's always possible for the sending site to crash/die/be-killed/whatever in the middle of a stream and not send something you were expecing. And once that happens, you've lost the article for good (if the sending site that died isn't very careful about how it manages it's queues). What my server is currently doing is answering "431 try again later" on the dups, but I have a 10 second time limit on that. So if the article doesn't show up withing 10 seconds from the time it's first offered, I'll then start saying "yes send it" again. But of course, by then, it may be too late :)... So what's a server to do with this streaming shit. Either you waste TONS of bandwidth on dups, or you run the risk of never getting some articles. I suspect most the world would rather drop a few articles than waste bandwidth (being of the false assumption that the flooding algorithm will "fix" the lost article problems). And I bet this "problem" is much worse that many people realize for the large articles. That's why I say IHAVE is better. Understand? You know, what we really should be doing is using IHAVE for all articles over a given size (5K I think would work). With larger articles, you don't need streaming. A few parallel IHAVE feeds will work fine and is likely to be far more relieable. The 5K size number, which may seem small, should work because at that size the number of articles per second drops to about 1 at todays volume. And an IHAVE stream (or two) should have no problem keeping up with that rate. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000308115245.420$Lt@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!not-for-mailReferences:
<20000307112107.524$na@newsreader.com> <brad-208040.20222807032000@news.skynet.be> <20000307144134.035$KD@newsreader.com> <brad-E330A5.20514107032000@news.skynet.be> <952460805.821101@news.netscum.dk> <20000307170425.247$Qv@newsreader.com> <brad-BF24CC.08211508032000@news.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <20000308115245.420$Lt@newsreader.com>
Subject: Re: Pipelining IHAVE commands with INN
Date: Wed, 08 Mar 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <20000307112107.524$na@newsreader.com> <brad-208040.20222807032000@news.skynet.be> <20000307144134.035$KD@newsreader.com> <brad-E330A5.20514107032000@news.skynet.be> <952460805.821101@news.netscum.dk> <20000307170425.247$Qv@newsreader.com> <brad-BF24CC.08211508032000@news.skynet.be>
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!not-for-mail
X-Deja-AN: 594768217
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
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Newsgroups: news.software.nntp