Article View: news.software.nntp
Article #11321Re: ANTP Specification
From: Bryan Ogawa
Date: Wed, 02 Oct 1996 00:00
Date: Wed, 02 Oct 1996 00:00
270 lines
13123 bytes
13123 bytes
elcabalero@aol.com (The Gentleman) writes: >bkogawa@primenet.com (Bryan Ogawa) wrote: >}elcabalero@aol.com (The Gentleman) writes: >}>bkogawa@primenet.com (Bryan Ogawa) wrote: >}>}elcabalero@aol.com (The Gentleman) writes: >}>}>bkogawa@primenet.com (Bryan Ogawa) wrote: >}>}>}elcabalero@aol.com (The Gentleman) writes: >}Hey... if you keep going like this, someone will write six variants for >}you! (That's kinda what I meant when I said that it might give other >}people ideas. :) ) Seriously--the protocol as it stands would not be >}horribly difficult to write in perl--probably 8 hours of work for an >}alpha, or less. :) >} > Yeah, somebody was talking about implementing it with SMTP. I don't think >SMTP will work too well, though. It would, if you could leave a daemon >running at one or both ends, but otherwise you have to broadcast messages that >may not be needed at the other end. Yeah. You'd either have to do flooding (the traditional NNTP method, just over SMTP--not too hard, but not terribly efficient), or a query and response (e.g. a mail autoresponder). I've written the latter, and I think it would be possible to write a general file server that could be used for this purpose, or just borrow someone else's (look for mailing list management software). > Still, I'm surprised that nobody ever tried to do it earlier. I guess >feed inconsistencies have gotten a lot more pronounced in the last couple of >years. A lot fewer sites carrying a truly full feed. I'm surprised, too, but I think Usenet and NNTP is reaching a bunch of barriers at once. I've seen news server modifications to stop using the heirarchical news spool model in the name of performance, the return of NNTPv2 (see the announcement in news.softwaare.nntp), INN 1.4unoff4 AND 1.5b1, a request from the current maintainer of suck for alternatives to suck's behavior, and complaints and suggestions about Netscape's behavior as a news client, all in the past six months (and in the cases except unoff4 and the news server mods, stuff in the past *week*). [...] > Yeah, I'm used to explicit separators. ' ' is whitespace, only time I >worry about it is to get rid of it or add it. Treating it as useful data >isn't the way I normally do things. Anyway, I thought that ',' was illegal in >message ID's and Unix file names? Nope, ',' is legal in filenames, at least, but then, so are spaces. Of course, you can use the URL %20 thing to get around both of these characters in URLs. I'd have to reread RFC822 to see about Message-IDs. Bah. RFC822 seems to be saying that just about anything can be in a Message-ID. Bah. Now, it's possible to write an RFC822 compliant Message-ID parser, but it won't be trivial. I think there might be a regular expression which matches them, though. [...] >}The major reason for that is because that way, the client never has to >}remember which filenames he has already used. Clients which do remember >}can continue to use the same directory. It's expected that clients can >}create directories at will. >} > Okay, I'll leave the possibility, but recommend a client remembers the >last file it did. Of course, if it forgets, or doesn't keep track, it could >always look at its own directory and find out where it left it. True. [...] >}very nifty. One thing is that the client may need to be able to determine >}the (possible) difference between upload and download directory paths. >}This could present a problem, but shouldn't be horribly hard to do (maybe >}just a configuration option?) >} > Seems like it to me. It needs to be different, anyway. Even though the >same machine acts as a FTP and HTTP server, the directory for each is usually >different: >http://www.foo.com/~johndoe >ftp://ftp.foo.com/pub/users/j/johndoe/html/ >would often be the same directory. A simple mask is all it takes. Treat them >as URL's, which are not really heirarchal, but include heirarchies as a >special case. [...] >}Since a smart CH is probably going to just list the directory anyway, it's >}not a big savings. > Not if it is keeping the files in some kind of internal database. If we >stick to the idea of URL's rather than directories, it turns the directory >based system into a special case of a larger scheme, and much more extendable. Ah. Good point. [...] >}You'd be surprised, though, how easy it might be to write such a client. >}And if you do have more features on the CH (like the ability to run >}perl scripts) it is nearly trivial. >} > Yeah. Oh well, it doesn't matter much to me which system it runs best on. > There are certain unfair advantages to evolving a OS side-by-side with a >protocol stack, you know? Yes. This is it exactly. :) I still like Win clients, since I think that having multiple implementations from the get-go is good, but the fact is that the things that this thing is trying to talk to (NNTP, HTTP, and FTP) are all Unixy. [...] >}If someone else posted it back up, it'd be: >} >}X-ANTP-Path: <tale@uu.net>!<bkogawa@primenet.com>!nntp.primenet.com! >} news.foo.bar.com!nntp.foo.edu!notformail >} >}But the Path: header would become naked. > Yes, but that can't be helped. Still, it is not too hard to figure out: >Path:news.baz.com!news.foo.com!uu.net!user >X-ANTP-Path: <tale@uu.net>!<bkogawa@primenet.com>!nntp.primenet.com! > news.foo.bar.com!nntp.foo.edu!notformail >Then, if it then gets picked up by another client: >X-ANTP-Path:<johndoe@baz.com>!news.bar.com!news.foo.com!uu.net!user! > <tale@uu.net>!<bkogawa@primenet.com>!nntp.primenet.com! > news.foo.bar.com!nntp.foo.edu!notformail >All on one line, of course. This would take people some time to get used to, >but it's no less traceable than any other Path: header. > The Path: would only be truly naked if you used IHAVE instead of POST, in >which case you could put something harmless in there. On POST, it's just >going to over-ride it anyway. Good point. [...] > All of them should use Message-ID, according to RFC 977. The path is used >to hyper-optimize transfer, an upstream feed will never issue an IHAVE for a >message that you are in the path of. But, once you reject with the code that >says don't retry (I forget which one it is, but I remember it does exist), it >won't ask you again. OK. I knew INN was using it for some reason or another... [...] >}Yes. I think it's important that the default be "deny clients access to >}CH" so that they are required to do a positive thing (beg CH admin for >}access) to get access. Especially since they can probably: >} a) forge posts via this mechanism >} b) destroy the entire contents of the CH >} c) get the CH admin in trouble > Bigtime, if they choose a *really* illegal file to put on your server. >Yeah, I think we'll have to go with a secure default. Let people take their >chances if they want, but they won't be able to blaim me. Very good. :) [...suggestion about X-ANTP-Headers snipped...] >}I believe that user-generated headers can appear multiple times in a >}single message. >} > I'm not sure that's true on all systems, and I know at least some servers >choke on more than one ':' in a header line. AirNews is one, I can't put them >in the Subject: line. Also, that doesn't really identify what group the >client was acting on, a crossposted message might be handled by several. I think this behavior is a little messed up. :( > They might even be the same operator. <johndoe@baz.com> downloads an >article to group A, which is also crossposted to group B. Then, he runs the >client for group B, and uploads the same article to a different CH. He >appears twice in the pseudo-path, but the other lines will explain what >happened. This is a good point. [...talking about a runaway client spewing news and security...] > He's highly motivated to turn the bot off at that point, and find out what >broke, ain't he? If we secure things so that only trusted users are involved, >then it's as secure as the server it's on. And if they break that, there's >legal issues, a little spew cleanup is minor by comparison. Yes, although all of those flying passwords will make cautious admins, well, cautious. [...] >}Good. While you can expect admins to do some things to help, installing a >}new ftp server is probably not one of them. :) >} > The first few trying to talk them into hosting a CH will have enough of a >problem, since it will require limited access for users that are not at that >site. Really, it's less of a risk than a web-server in the first place, but >admins *can* be amazingly conservative. Well, I dunno. Login IDs are a big bugaboo, especially shared logins, where it's much harder to tell whether traffic's legitimate and there's often a lot of finger pointing (no, I don't know anything about the copy of /etc/passwd in my account, my little brother uses my account and he uses IRC a lot). However, with some assistance from the admin, multiple separate accounts on a single machine could be used, with fairly long, hard to guess (but easy to sniff :( ) passwords. Basically, you use the Unix group concept and a bunch of chmods by the clients, to let the reaper have access to delete the files. Not too hard, and it gives the admin those logging records he or she craves. >}[...] >}> Yeah. But right now it depends on there being servers that are >wide-open >}>to reading. Those will be getting less and less common, as they are being >} >}Actally, what I was thinking about was using suck to provide the news >}server half of ANTP--making it that much easier to code. The other thing >}you could do is ship rpost bundles of the articles around the internet to >}people with personal news servers. :) > 'rpost'? Please, loan the newbie a clue, what is 'rpost'? Actually, this should be rnews -- I was confused when I was writing this message. :) What I was refering to was a system for batching news for delivery over UUCP. Basically, think a bunch of articles separated by a line of the form: #! rnews <# bytes> The basic idea would be to send the messages as you get them in bunches to a bunch of other folks who would then post them up on their own personal news servers. Your server would filter duplicates and post all of the new articles, automagically, to all of the participants. Shipment would probably be via UUCP over TCP or SMTP. The shipment would be in the rnews bundles, as above. Of course, news admins can implement this on their own, as someone pointed out. The problem is that most admins aren't going to do this for alt.swedish.chef.bork.bork.bork . [...] > Perl for Windows is giving me extremely inconsistent results when I access >the TCP/IP stack. Between that and my *very* limited knowledge of perl, I'd >rather stick with what I know. I already have code for FTP, HTTP, and NNTP >through Winsock, I can just hack together a Frankenstein monster to start with >(they're in 3 different apps). If some Unix type beats me to the punch, oh >well. It's results I really want, not brownie points for my OS (Which Bill >would take the credit for, anyway). I might take a crack at a Unix version of the client, but I think that a Win version is a positive thing. > Come to think of, if we are talking about URL's rather than directories, >SMTP would work. I'm not sure that it would be fast enough, but a daemon on >the server could be set up to respond with index listings, files, whatever. >Lag time would be a killer, maybe. If you're expecting results back soon, yes. However, if you don't care if they get delayed a minute or twenty, it's probably plenty fast. The indexes can be flooded (since everyone needs to see all of them, anyway), but requests (and messages) can be request-driven. >Regards, > The Gentleman -- bryan k. ogawa <bkogawa@primenet.com> <bkogawa@netvoyage.net>
Technical Details
Message-ID:
<52tfgu$906@nnrp1.news.primenet.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:
<52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com> <52nipe$55s@library.airnews.net> <52pl7q$s20@nnrp1.news.primenet.com> <52q11g$v2c@library.airnews.net> <52rsuq$39k@nnrp1.news.primenet.com> <52rtol$i0_009@library.airnews.net>Show Full Headers
Complete Article Headers
Message-ID: <52tfgu$906@nnrp1.news.primenet.com> Subject: Re: ANTP Specification Date: Wed, 02 Oct 1996 00:00:00 +0000 From: bkogawa@primenet.com (Bryan Ogawa) References: <52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com> <52nipe$55s@library.airnews.net> <52pl7q$s20@nnrp1.news.primenet.com> <52q11g$v2c@library.airnews.net> <52rsuq$39k@nnrp1.news.primenet.com> <52rtol$i0_009@library.airnews.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!not-for-mail X-Deja-AN: 186660932 Organization: Primenet Services for the Internet X-posted-by: bkogawa@206.165.5.102 (bkogawa) Newsgroups: news.admin.net-abuse.misc,news.admin.misc,news.software.nntp