Article View: news.software.nntp
Article #11267Re: ANTP Specification
From: The Gentleman
Date: Tue, 01 Oct 1996 00:00
Date: Tue, 01 Oct 1996 00:00
369 lines
17859 bytes
17859 bytes
In article <52pl7q$s20@nnrp1.news.primenet.com>,
bkogawa@primenet.com (Bryan Ogawa) wrote:
}elcabalero@aol.com (The Gentleman) writes:
}
}>In article <52nboh$ork@nnrp1.news.primenet.com>,
}> bkogawa@primenet.com (Bryan Ogawa) wrote:
}
}>}elcabalero@aol.com (The Gentleman) writes:
}
}[...]
}
}What would you think of divorcing ANTP completely (or almost completely)
}from the actual transport protocol, by specifying the way that files are
}named, articles are posted and preserved, and so on, but ignoring whether
}the user is using ftp, http, gopher, wais, smtp, uucp, or even some
}super-nntp to move the articles?
With reservations, it sounds good. The less tied to other protocols it
is, the better it can adapt. The hard part is going to be figuring out what
assumptions it can do without.
}
}I have some ideas on how to make the client more complicated so that you
}can use ftp without any assumption that it will do anything reasonable if
}the same file is uploaded twice.
}
Just what I need, the client to be *more* complicated. You do realize I
have to write the first one, don't you? ;)
}[...]
}
}> This is a possible problem, except that without an index file, you would
}>be trying to guess a filename that might be 255 characters long, and
}>deliberately chosen near-randomly. Also, you have only the Message ID, not
}>the Subject, From, or any other useful fields. I think it would take
}>deliberate effort in the form of a CGI script to really make it a place to
}>read the group. In which case, why not use DejaNews?
}
}Yeah, mostly true, I admit, but why not allow CH's to use authentication
}at their own option?
You're right. Leave open the idea of a smart CH that can force client
authentication, as well. And, at the same time, the possibility of a group
archive. Lot of possibilities, since it's on a web server anyway.
}
}> However, if it does prove to be a problem, I think it likely CH
operators
}>would say to hell with the spec, and use a more selective access model.
}
}Yes. :)
}
So why not write it in at the beginning, is what you're saying? Okay,
okay, but why anyone would be so paranoid as to think people would abuse the
net is beyond me. ;)
}>}
}> The placing of an upper limit is neccesary, to keep the CH as simple as
}>possible, otherwise you would need a constantly updated index file, and have
}>some serious collision problems or a much more complex CH. Placing a lower
}>limit on the capability of the CH filename length may be uneccesary.
Perhaps
}>I should just say that no article should be transferred that has an article
ID
}>longer than the maximum filename size for the CH?
}
}I believe there is an upper limit on Message-ID length as it is. However,
}I think that there is a way to store the files without needing to worry
}about message-ID length, about what happens when two clients upload at the
}same time, or about illegal characters in message-IDs. What about each
}client (a) uploading articles to a separate, private area (based upon some
}agreement with the CH), and (b) uploading an index of the files it sent
}after it finishes transmission? The index would contain a message-ID and
}pathname, like so:
}
}<199609302004.NAA05727@foo.primenet.com> bkogawa/199609301533/file000001
}<199609250959.CAA07754@foo.netvoyage.net> bkogawa/199609301553/file000002
I'd think a separator such as a ',' would be good. Makes parsing lines
with unpredictable lengths much easier.
}[the rest of the entries look like this, too]
} [EOF]
}
}(that's the literal letters '[EOF]' at the end of the file, preceded by a
}tab.)
}
}This means that in the directory bkogawa/199609301533, file file000001 is
}the message with ID (well, you can see it).
}
}The uploaded indexes are saved to their own special subdirectory. The
}client is responsible to download all of the new index files it finds in
}this subdirectory. The [EOF] is there so that the client can tell if the
}other client is finished uploading any particular index file--if it
}hasn't, it either ignores it or marks it to be re-checked the next time it
}runs. No file is ever written twice. The client uploads the index AFTER
}it has uploaded the articles, so there's no way for another client to find
}message-ids and filenames for articles that haven't been uploaded yet.
Which means no unpredictable results if a client tries to download a
half-uploaded article file. I just thought of that, looking at this. New
directories for every session seem like kindof overkill, since you'll never
need to list them anyway.
}
}Since each client has its own upload directory, no file is ever written
}simultaneously (it's the client's responsibility to never run twice at the
}same time. If it can happen, it needs to become two separate clients.)
Definitely, under this model. A 'smart' CH could handle it, but that's
for the future.
}
}Disadvantages are:
}
}a) it somewhat presumes an implementation with a heirarchical file system
}(e.g. directories and files and subdirectories), although it might be
}possible to make a non-heirarchical implementation (just probably not over
}ftp--imagine a server which accepts commands like "uploading new index
}file", or "download all index files since <date>").
Definitely possible. I don't want to assume them at the beginning, but I
won't exclude them. And it doesn't assume a heirarchal structure neccesarily:
<199609302004.NAA05727@foo.primenet.com>,cgibin/antp?bkogawa+file000001
<199609250959.CAA07754@foo.netvoyage.net>,cgibin/antp?bkogawa+file000002
See what I am saying?
}
}b) the directory that might get overfilled is the index directory,
}although the worst case is that there is one index per message, in
}which case the directory is still overflowed, and there's significant
}overhead of doing all of the cd's. This could be cured by the "reaper"
}rewriting the index files to consolidate them (once every few hours, or
}once a day).
If we allow the possibility of HTTP uploads, then eventually all of this
can be handled by a 'smart' CH, a CGI program. In the meantime, a special
client could do it.
}
}Other advantages:
}
}a) The reaper (program that expires old articles and possibly rewrites
}indexes) can be a remote client, just like all of the other programs (this
}is actually true of your proposed solution, too). Then the CH just has to
}provide disk space and access.
I was assuming that housecleaning would be done by a client. In the
future, it could be done by a smart CH. For now, it's better to be able to
assume that the CH is just a dumb server, with no special capabilities.
}
}b) The client doesn't have to download old index files, since it already
}knows which ones it has seen before.
c) The client can work off of specific URL's for everything but the index
directory listing. That means a major increase in speed. In the future, even
that could be done by a 'smart' CH.
d)Three or four articles could be transferred simultaneously, so that you get
full use of the available bandwidth (probably over a modem connection), and
don't waste huge amounts of time waiting for HTTP connections to be
established. At peak periods, it can take close to a minute before the actual
files start coming back after a GET, this helps you keep it from being wasted.
That's why Web browsers usually run four simultaneous connections.
}
}[...]
}>}>The CH must be capable of handling 'collision' between two clients
}>}>attempting to upload the same article simultaneously by generating
}>}>an error and refusing the duplicate article.
}>}
}>}This is a major concern, as I believe that most current ftp servers do not
}>}do this by default (e.g. simultaneous uploads produce no warning and may
}>}produce various unexpected results). Solving this problem, if it exists,
}>}will rest upon the writers of ftp servers.
}
}> Which is why I was specific about mentioning it. At least a few FTP
}>implementations do create errors on collision, many others would simply
}>overwrite the file that arrived first. This section probably needs a little
}
}The second is the behavior I expect, which may or may not be a good thing.
}What happens if one client starts uploading, then the second starts
}uploading and finishes, then the first client finishes?
Yick. No way to predict, every FTP server might handle it differently.
Some might not handle it the same way every time. Some might even fall down
and go boom.
}
}[...]
}> I may try to look at multiple directories, but this opens another can of
}>worms.
}
}Yes, I guess it does, but I think it's worth it, since you can then ignore
}the collisions issue.
Yeah, it solves more problems than it causes. It requires a very special
client for housekeeping, but that's doable.
}
}[... I was concerned about CH maintainers getting blamed ...]
}> Not if the CH spec is kept so simple. If everything devolves on the
}>Client, the client can more easily be configured to match the particular
}>circumstances it is dealing with. Which is why I place so much importance
on
}>clients identifying themselves, if they start generating spew, it needs to
be
}>spotted quickly.
}
}Yes. Have you considered something akin to the Path: line, except with
}email addresses? E.g.:
}
}X-ANTP-Path: <bkogawa@primenet.com><elcabalero@aol.com><tale@uu.net>
}
}And just have the clients append themselves to the header whenever they
}handle the article?
}
That was why I specified that the Break: header must be last. But that
won't ensure that the ones above are in the right order. Why not use what you
suggest above, but append the actual path to it? Prepend it. Whatever. That
kills two birds with one stone, and more accurately reflects its real course.
}>}
}>}[...]
}>}>from the NNTP server. Either NOV commands or NNTP commands may be
}>}>used for this purpose, other news database commands may be used as
}>}>well. The absolute message ID must be recovered, although a local
}>}>article reference may also be used for streamlining the process.
}>}
}>}This is the sort of phrasing that should go above. Give the
}>}server-writers the sort of freedoms you're giving the client-writers.
}
}> Again, smart clients reduces CH host system load, not a small
}>consideration. I am deliberately departing from the traditional
client/server
}>model with smart servers, to one more in line with modern distributed
}>computing, where everything possible is placed on the client.
}
}OK. This makes sense. I hope this round of suggestions is in line with
}this philosophy.
}
Yeah, it allows for smart CH's, but only assumes the client is. That is
definitely better, allows more room for improvement. Without having to chase
down a few hundred or more client users.
}[...]
}
}> Since the intent is to make the route traceable, so that a source of
}>errors may be identified, I should find a different separator. Perhaps '^',
}>as I have never seen that in a group name or address, and it is 7-bit ASCII.
}
}Possibly. I don't think ^ is legal in hostnames or newsgroup names. I
}don't know if it's legal in email addresses. See above for a different
}idea.
A good one. I'll still keep the X-header format, though. No guessing how
many different CH's and clients a message might pass through. Unique headers
are worth the effort. No need to stomp the Posting-Host and Org lines, for
any of the stages. Might need them for tracing.
}
}> If security problems arise, a change to the 'Secure' CH can be made, at
}>which point it is as secure as the FTP server hosting the CH. This requires
}>only getting the admins of the host site to add a user, whose only privilege
}>is to upload to that directory.
}
}I'd encourage you to make a "Secure" CH the default, to head off problems
}at the pass. If people want to run insecure CH's, then they can, but it
}seems to me that you might as well specify higher security now. :)
}
Yeah. If we've learned anything, it's that wide-open systems get abused.
The multiple directories angle almost requires a secure model, though. You
could let people create directories, I guess.
}[...]
}>}Realize that you need the good will of news admins to keep this from being
}>}stillborn.
}
}> I am on fairly good terms with most of the admins I know on the net, and
I
}>am trying to design this to prevent extra headaches for them. Yes, their
}>tacit permission is necessary for its use. But since articles can only hit
}>their server if they have already started carrying that group, it shouldn't
be
}>any extra headaches for them.
}
}Yes, presumably so. My major concerns were using CHs to forge posts and
}client spew, but you're putting in the right things to help minimize these
}things.
With all the time I spend in nanam, I know that if I leave wide-open holes
for the spammers, spewers, and forgers, they'll take full advantage. And spew
is a bad thing. Most of the time, the first person to notice client spew
would be the person operating the client. He's probably reading news while
the client is adding to it. And he isn't going to be happy about it, that's
his favorite group he just filled with junk.
}
}> Sounds fine to me. I hope that admins will not be reflexively hostile
to
}>it, it really can make their lives simpler.
}[...]
}
}Since you haven't been flamed yet, I consider this a good sign. :) I
}think I was too afraid of heated discussion.
I half expected a chorus of 'Shut up, you Windoze newbie you.' or even
less polite things.
}
}More stuff
}
}1. Since one of these new versions of http is supposed to allow uploads,
}it seems like a good idea to not tie this specifically to ftp if you don't
}have to.
}
}1a. If you are using ftp, though, you might as well as use ftp for the
}downloading as well.
I used HTTP for downloading because it places an absolute minimum of
burden on the system. FTP got in there because things like a directory
listing would require a smart CH without it, and HTTP uploads are unproven.
Eventually, everything could be done by HTTP. Tying an experimental protocol
to an experimental protocol didn't seem to be the wisest move, right now.
}
}2. I favor getting rid of the requirement about handling simultaneous
}uploads, so that the CH has no responsibility whatsoever except to provide
}space. At the very least, I favor the client being able to determine this
}feature of the ftp server automatically. :)
I'll ditch the simultaneous uploads. To many ifs. And explicitly leave
open the idea of HTTP uploads, that opens a lot of potential avenues.
}
}3. You asked about slurp. If I recall correctly, slurp is considered a
}bad boy, since it uses the NEWNEWS command, which is inefficient under
}INN. I recommend suck, which replaces slurp, and works a lot like the
}slrn newsreader (it goes into each group you're subscribed to and finds
}the new news less intrusively). suck 3.2.0 is available from the
}following ftp sites:
}
}Site1 = sunsite.unc.edu
}Path1 = /pub/Linux/system/Mail/news
}File1 = suck-3.2.0.tar.gz
}
}Site2 = tsx-11.mit.edu
}Path2 = /pub/linux/sources/sbin
}File2 = suck-3.2.0.tar.gz
}
}suck *can* be used in combination with a news server on a unix box to do
}what you're trying to do with ANTP, or probably could become the start of
}an ANTP implementation for Unix and clones.
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
heavily used for binaries, and costing a fortune in bandwidth. And it doesn't
really allow for separate users to pool their efforts. Although I have a
Windows background, I'm trying to avoid making this OS specific. I jump
through enough hoops because protocols assume a Unix system. Things that you
can do with a simple shell script in Unix can take a major effort in Windows.
}
}>}
}>}I hope my comments are of assistance.
}>}
}> Much, thank you.
}
}You're welcome. I'm interested in this idea--I think it could help to
}improve newsfeeds for a lot of poorly-propogated groups.
Yeah. What good are 20,000 groups if half of them get such poor
propagation that nobody uses them? How much fun is a alt.* group if the feed
drops 2/3 of the articles, and the rest show up a week late?
Regards,
The Gentleman
--
I never resist temptation, because I have found that things that are bad for
me do not tempt me.
George Bernard Shaw
//.sig created by Inscrutable V0.2a
//Please report any irregularities to elcabalero@aol.com
Technical Details
Message-ID:
<52q11g$v2c@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-mailReferences:
<52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com> <52nipe$55s@library.airnews.net> <52pl7q$s20@nnrp1.news.primenet.com>Show Full Headers
Complete Article Headers
Message-ID: <52q11g$v2c@library.airnews.net> Subject: Re: ANTP Specification Date: Tue, 01 Oct 1996 00:00:00 +0000 From: elcabalero@aol.com (The Gentleman) References: <52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com> <52nipe$55s@library.airnews.net> <52pl7q$s20@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-mail X-Deja-AN: 186367374 Organization: White Knight Consulting Newsgroups: news.admin.net-abuse.misc,news.admin.misc,news.software.nntp X-us-congress: FUCK OFF!,