Thread View: news.software.nntp
6 messages
6 total messages
Started by Tim Hogard
Wed, 17 Jul 1996 00:00
ihave enhancement
Author: Tim Hogard
Date: Wed, 17 Jul 1996 00:00
Date: Wed, 17 Jul 1996 00:00
30 lines
1346 bytes
1346 bytes
I'm looking into extending the "ihave" protocol to parse a messages like: ihave <id@host> 12345 ihave <id@host> 12345 misc.test,alt.test ihave <id@host> misc.test,alt.test as awell as the old ihave <id@host> where 12345 is the size of the article in bytes. The purpose of this is to allow inn to kill messages before transfering them based on size or groups theya re posted in. Before I get too involved with this, 1) has anyone already done it? 2) is there a major problem I don't see? 3) will it help? The bigest problem with this so far is that inn won't ignore anything after the trialing >. Will c-news? This will require a change in innd as well as innxmit for a start. The size got added in there for something else I have been thinking about for years, compression on the transfer. -tim http://www.abnormal.com
Re: ihave enhancement
Author: Jerry Aguirre
Date: Wed, 17 Jul 1996 00:00
Date: Wed, 17 Jul 1996 00:00
39 lines
2266 bytes
2266 bytes
In article <4sie8l$hc0@mujibur.inmind.com> thogard@inmind.com (Tim Hogard) writes: > >ihave <id@host> 12345 misc.test,alt.test ... >The purpose of this is to allow inn to kill messages before transfering them >based on size or groups theya re posted in. There was some discussion on this but nothing as specific as your suggestion. How do you handle massive crossposting where the newsgroups line is longer than the max allowed NNTP string length? It is already bad enough with some of those very long message IDs. Seems link an article cross posted to more than a dozen groups or so would result in a string bigger than 512 bytes. I suppose you could just not supply the groups in that case allowing rejection after the fact. What about distributions and dates? Right now one can send an article to a server and have it rejected as too old. Of course one could negotiate the allowed age once and then apply that value to all subsequent articles. Two issues present themselves. First is you want to negotioate this mode. That is what I did for the "streaming NNTP" extension. At connect it does a "mode stream". If the server returns a status meaning "unknown command" then it reverts to normal mode. You could use something like "mode size/group" or such. If the server, modified with your changes, responds with an "OK" status then you are free to proceed with your enhanced protocol. Consider using the "check" command instead of "ihave". The old "ihave" command is too slow to keep up anyway. Do you plan to put the size and newsgroup information in the queue file or extract it from the article at transmission time? Jerry
Re: ihave enhancement
Author: James Brister
Date: Wed, 17 Jul 1996 00:00
Date: Wed, 17 Jul 1996 00:00
20 lines
1200 bytes
1200 bytes
Tim Hogard (thogard@inmind.com) wrote: : I'm looking into extending the "ihave" protocol to parse a messages like: : Before I get too involved with this, : 1) has anyone already done it? : 2) is there a major problem I don't see? Apart from the fact that it's changing a standardized command and therefore wont be of any interest to the INN maintainer (not that getting his interest is required before doing anything, but I can guarantee you he wont be interested)? James -- James Brister brister@vix.com Internet Software Consortium inn@isc.org
Re: ihave enhancement
Author: Kenneth Herron
Date: Fri, 19 Jul 1996 00:00
Date: Fri, 19 Jul 1996 00:00
86 lines
4534 bytes
4534 bytes
In article <4sjs6e$ob0@olivea.ATC.Olivetti.Com>, Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote: |In article <4sie8l$hc0@mujibur.inmind.com> thogard@inmind.com (Tim Hogard) writes: |> |>ihave <id@host> 12345 misc.test,alt.test |... |>The purpose of this is to allow inn to kill messages before transfering them |>based on size or groups theya re posted in. | |How do you handle massive crossposting where the |newsgroups line is longer than the max allowed NNTP string length? Probably insert a placeholder which couldn't be interpreted as a valid group name. Perhaps define an alternate format for this field, such as !24 meaning the article was posted to (eg) 24 groups. |What about distributions and dates? ...and Path...whether it's a control message... |Two issues present themselves. First is you want to negotioate this |mode.... |You could use something like "mode size/group" or such.... |Consider using the "check" command instead of "ihave".... I started with the same simple idea once, then started considering these additional issues. My eventual conclusion was that the best design would start by dumping the classic NNTP protocol. Consider: We're up to seven pieces of info that might be used to reject the article. That can be a significant amount of info, but most sites won't need most of it. It'd be wrong to hardcode the new format as rigidly as, say, the overview format. The sender & receiver should be able to negotiate the desired information. This is unprecedented for NNTP. Like you mentioned, NNTP commands have a length limit. The added data will mean expanding this limit. Where do you set the new limit? (And while on that subject, consider that NNTP's command format is relatively CPU-intensive to parse, vs. something with, say, field-length tags). As we all know, IHAVE wastes bandwidth by being synchronous. As I understand CHECK, it's still synchronous but makes better use of bandwidth; it also causes long delays in the server while it processes each CHECK (yeah, this is an implementation issue). A fully asynchronous protocol would be nice. While on that subject, it'd be nice if the articles could be sent compressed, preferably as one long stream, and how about letting sender & receiver negotiate CRLF vs. LF? What I ended up with was an entirely new protocol which works, rather abstractly, as follows. You can hopefully see how some of the ideas above would fit into this: 1) Sender opens channel to receiver, they negotiate what receiver wants to know about each article & method for transferring articles. 2) Sender begins offering articles to receiver. Just one offer-packet after another, with no wait for a reply from the receiver. 3) If receiver sees something it wants, it sends a request packet back to the sender. Again, no wait for a reply from the sender. Receiver may request articles out of order, it may request an article more than once, etc. It may not request an article which hasn't been offered to it, for security reasons. 4) The sender may occasionally issue a "last call" on the articles it has offered. The receiver must complete its requests on articles offered so far and indicate that it has done so. 5) Articles are sent via a separate channel of some sort, which could be another TCP stream, a UUCP batch, raw RFC1149 datagrams, or what-have-you. Unfortunately, this is a classic Partially Baked Idea. I've outlined it a couple of times before, and Harry Bochner (sp?) has trumpeted it as well, but nobody's yet done anything with it. Personally, when I first developed this idea I just didn't have the time, then I wasn't a news admin, and now anything I do would be property of MCI... :-( -- Kenneth Herron kherron@campus.mci.net +1 916 649 6142 No animals were harmed during the production of this message.
Re: ihave enhancement
Author: Eric Edwards
Date: Sat, 20 Jul 1996 00:00
Date: Sat, 20 Jul 1996 00:00
29 lines
1822 bytes
1822 bytes
In article <4sjs6e$ob0@olivea.ATC.Olivetti.Com>, Jerry Aguirre writes: > In article <4sie8l$hc0@mujibur.inmind.com> thogard@inmind.com (Tim Hogard) writes: > > > >ihave <id@host> 12345 misc.test,alt.test > ... > >The purpose of this is to allow inn to kill messages before transfering them > >based on size or groups theya re posted in. > > There was some discussion on this but nothing as specific as your > suggestion. How do you handle massive crossposting where the > newsgroups line is longer than the max allowed NNTP string length? It > is already bad enough with some of those very long message IDs. Seems > link an article cross posted to more than a dozen groups or so would > result in a string bigger than 512 bytes. I suppose you could just not > supply the groups in that case allowing rejection after the fact. IMHO, the proper approach is to drop such articles on the floor. Any article whose newsgroup line can not fit within 512 bytes is clearly an abuse. The inability to propagate such messages seems more like a feature than a bug. ---- "..very sad life. Probably have very sad death. But there's symetry" Remember the home hobbyist computer: Born 1975, died April 29, 1994
Re: ihave enhancement
Author: Tim Hogard
Date: Sun, 21 Jul 1996 00:00
Date: Sun, 21 Jul 1996 00:00
86 lines
4784 bytes
4784 bytes
Kenneth Herron (kherron@campus.mci.net) wrote: : In article <4sjs6e$ob0@olivea.ATC.Olivetti.Com>, : Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote: : |In article <4sie8l$hc0@mujibur.inmind.com> thogard@inmind.com (Tim Hogard) writes: : |> : |>ihave <id@host> 12345 misc.test,alt.test : |... : |>The purpose of this is to allow inn to kill messages before transfering them : |>based on size or groups theya re posted in. : | : |How do you handle massive crossposting where the : |newsgroups line is longer than the max allowed NNTP string length? : Probably insert a placeholder which couldn't be interpreted as a valid : group name. Perhaps define an alternate format for this field, such : as : !24 : meaning the article was posted to (eg) 24 groups. I like the place holder idea. Most sites would want to transfer the article if the place hodler was in place but they didn't know. : |What about distributions and dates? Ignored till the messages is transfered, just like now. : ...and Path...whether it's a control message... Ignored till the messages is transfered, just like now. : |Two issues present themselves. First is you want to negotioate this : |mode.... : |You could use something like "mode size/group" or such.... : |Consider using the "check" command instead of "ihave".... Or "list options". List options is less than a 10 line patch to inn. : I started with the same simple idea once, then started considering : these additional issues. My eventual conclusion was that the best : design would start by dumping the classic NNTP protocol. Consider: : We're up to seven pieces of info that might be used to reject the article. : That can be a significant amount of info, but most sites won't need : most of it. It'd be wrong to hardcode the new format as rigidly as, : say, the overview format. The sender & receiver should be able to : negotiate the desired information. This is unprecedented for NNTP. What does your news server use to reject articles before they are sent now? The size is useful because large sites can (and will) dump huge articles to unwilling servers. The article gets trashed after wasting the bandwidht. The groups is there for small feeds. What I'm looking for is a solution to the ISP/mall isp client newsfeed problem. Most small ISPs couldn't run news proplery if they had to. I'm just tring to make life easier on them and the sites they will dump news to. I would also like a way to tell my feed site that I don't want something like the warze groups today without bugging the admin there. : Like you mentioned, NNTP commands have a length limit. The added data : will mean expanding this limit. Where do you set the new limit? (And : while on that subject, consider that NNTP's command format is relatively : CPU-intensive to parse, vs. something with, say, field-length tags). Currently that seems to be 512 bytes. I think that should be enough. So what I seem to get from the converstion so far is that the idea would work but it doens't seem all that useful execpt in some limited cases (but look what happend to nntp readers). Since I din't any comments about it being real stupid, I'll start on it soon. Anyone want to play? The real intent is to develop a system to allow for expermintal compression but to keep this from becoming a Partially Baked Idea I'm going to start small. The compression scheme that I would first attempt would make use of public compression code like gzip but since it does poorly with a single news article the idea is to provide a compression tree that works for many news articles. Since it's specialized (and not dependent on the nntp implimentation) it can be used to research better news compression latter -- but that is for later. Right now I could use a nice program that I could run on an ISP shell account that read's their news and hands it off to my sever without storing it on the ISP. It seems that there are several programs that do this but some wnat to run on the wrong host or they want to build their own news system. -tim http://www.abnormal.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads