Article View: news.software.nntp
Article #61416Re: Did someone's peering break?
From: Curt Welch
Date: Sun, 13 Oct 2002 15:35
Date: Sun, 13 Oct 2002 15:35
160 lines
9416 bytes
9416 bytes
Sven Paulus <sven@karlsruhe.org> wrote: > Curt Welch <curt@kcwc.com> wrote: > > Or you could just screw the NNTP line length limit and require any > > server that supports XCHECK to also support a longer command line. > > But this might lead to major changes in some servers. Doing it with data > lines only uses the mechanisms which are already there. I suspect you can make it work just by defining a new NNTP line length like 2K and that at most, servers would only have to change a constant to make it work. But I suspect people debating the standard would be more hesatent of this change than the news server authors are. > > Or you could do something much more general, powerful, and clean: > > < XCHECK <message-id> > > > 244 <message-id> bytes newsgroups > > < TAKEHEAD <message-id> > > < Bytes: 873434 > > < Newsgroups: whatever.you.want,which.goes.on.forever > > < . > > > 238 <message-id> > > But this would add a whole round-trip more to each article offered > (waiting for the 244 after XCHECK to send the TAKEHEAD command). These are streaming commands and work just like the other streaming commands. There's no waiting required. It does not break the efficiency of streaming. > That's > exactly what you want to avoid when using streaming mode. But if you are > going to send TAKEHEAD without waiting for the reply to TAKEHEAD, then > you can add the header lines directly to the XCHECK command, there is no > need splitting the negotiation in two commands. Right, but the more general solution means you only get the extra data once instead of getting it multiple times from all your peers. For a full feed server that's not going to make much difference in total incoming volume, but for a text server with a lot of peers, this might be important. Maybe. > > So servers that can support this use XHCECK instead of CHECK as a way > > of telling the receiving side of the feed it can use this new feature. > > But transmitting the names of the headers which the receiving side is > evaluating must only be done once after establishing the connection I personally don't like that because it adds a mode to a connection that had no mode before (MODE STREAM is a total no-op command and never should have been added to the protocol). There are actaully reasons for a receiving site to want to change what it is asking for from article to article (thought I admit it is unlikely to be used like that). One is a spam filter that knows about message IDs and for some which it thinks are questionable, it may want to check extra or different headers. Or maybe more likeyly is that it will trust some Message-IDs and never bother asking for extra data. The other case is if a system for puting information about binary files in the message-id takes off. An incomming feed may want to reject all binary messages out-right (for a text only server), and will want to see a group list for the text messages. Or the other way around, it accepts all text articles and only wnats to know more about the binary articles. This type of complex logic on the receiving side is not all that likely, but I really like the fact that the more general protocol leaves that door open where as one which hard codes what data is sent at the sending side, or sets a mode for the stream which can not be changed at the beginning doesn't do. Of course it can be looked on as crazy to send "newsgroups bytes" back to the server for every article instead of sending it only once. But also remember that the back-channel is mostly empty on a feed so even this constant repetition of data is not going to add up to much. But I guess there ways to fix it. What if you send "244 &" or something like that to mean, "same thing as last time?" Or yet another code, so you send "244 bytes newsgroups", for the first one, and if you never want to change it, you send "245" for the rest? That gives you both the savaings of your system and the power and flexibility of mine. > I think the additional round trip hurts much more than the additional > maybe 100-150 byte per article to be transferred. The round trip slows the latency but doesn't hurt the performance. In theory. Streaming feeds are hard to do in the first place and this does only make them harder to implement. There is that issue. > > I guess the receiving side could even respond to the TAKEHEAD with yet > > another request for more header information. But the normal would be > > to respond with a normal check code for take or reject or try again > > later. > > Do we really have the need for this? There are two cases: Do you meant my one comment above or the entire conept of sending more data about the article? > 1. The receiving side already knows the article by Message-ID > (already received or rejected it) -> transmitting the additional > data would be superfluous > 2. The article in not known yet, so we would need the additional > information to evaluate if the article should get transferred to > us > > Hm, if you have a lot of peers, case 1 clearly dominates. So on further > thinking you might be right with splitting the command. In a perfect > world, the additional round trip is only added once per article (for the > first peer to offer this article). To all other peers the article is > rejected after the XCHECK command. This shouldn't hurt too much. > > > The advantage of the above system is that you would only have to ask > > for the header data the first time you saw the message. When it's > > offered by your other peers, you can just reject it and they never had > > to waset bandwidth sending the extra data. > > Yes, you're right. I'm still worried a little bit about the additional > round trip, but this may be only a minor drawback. > > > And the receiving side of course gets to pick what headers it wants to > > look at without having to ask their peer to change the configuration. > > But the receiving side should cope with the case the peer transmits less > headers than asked for, since usually the sending side has not access to > the whole article when offering it (going into the news spool and > accessing the article itself when doing XCHECK would be a large > performance penalty). Yeah, that's probably an issue for most servers. My server already happens to have access to the entire head at "check" time so there's no extra overhead issues. But my server is probably somewhat unique in this regard. But also remember that the extra data is only going to be asked for once from the first server that offers it to you, so, most XCHECKS will still be rejected so for most articles, the sending side will still not have to access the spool. The worse case is where you are feeding *, but the receiving side only wants something small, (worst case only looking for articles posted by one guy to one newsgroup?), so it asks for the newsgroup list and from: header on every article you offer but accepts almost none of them. The answer to that is that you need to keep statistics on your feeds just like you do now and if you see a feed asking for lots of header data but rejecting most the articles afterwards, you always have the options of talking to your peer to find out what they are doing and see if you can simply offer a set of articles which is closer to what they wanted in the first place. Offering an xcheck feed is something you would have control over in the first place anyhow. If you had issues about what type of load it would put on your server (because your software didn't support it very effectnly) you wouldn't have to offer it in the first place. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021013113524.071$C5@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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<anssll$n3$1@lust.ihug.co.nz> <1034197713.326176@ok-corral.gunslinger.net> <yln0pncnex.fsf@windlord.stanford.edu> <1034200519.445767@ok-corral.gunslinger.net> <ylu1jvb6x5.fsf@windlord.stanford.edu> <00O000000O@news.radio.cz> <ylwuony3qp.fsf@windlord.stanford.edu> <20021012182340.307$tH@newsreader.com> <yl4rbr70km.fsf@windlord.stanford.edu> <aoas5r$jid$1@sapa.inka.de> <slrnaqhtj8.ci3.andrew+nonews@trinity.supernews.net> <aoatm3$jms$1@sapa.inka.de> <20021013020852.845$Fm@newsreader.com> <aobhs0$pbm$1@sapa.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <20021013113524.071$C5@newsreader.com>
Subject: Re: Did someone's peering break?
Date: Sun, 13 Oct 2002 15:35:24 +0000
From: curt@kcwc.com (Curt Welch)
References: <anssll$n3$1@lust.ihug.co.nz> <1034197713.326176@ok-corral.gunslinger.net> <yln0pncnex.fsf@windlord.stanford.edu> <1034200519.445767@ok-corral.gunslinger.net> <ylu1jvb6x5.fsf@windlord.stanford.edu> <00O000000O@news.radio.cz> <ylwuony3qp.fsf@windlord.stanford.edu> <20021012182340.307$tH@newsreader.com> <yl4rbr70km.fsf@windlord.stanford.edu> <aoas5r$jid$1@sapa.inka.de> <slrnaqhtj8.ci3.andrew+nonews@trinity.supernews.net> <aoatm3$jms$1@sapa.inka.de> <20021013020852.845$Fm@newsreader.com> <aobhs0$pbm$1@sapa.inka.de>
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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com ygmLiofDJrBf.VgD8CI39IaavvcCCpOc0dmZY4BCQ@TPpB1F
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: 159