Article View: news.software.nntp
Article #61162Re: [FNTP] 'in-completeness'
From: Curt Welch
Date: Tue, 08 Oct 2002 03:39
Date: Tue, 08 Oct 2002 03:39
325 lines
17748 bytes
17748 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > Ideally, you take the binary direct from user upload rather than ever > going through an encode and decode cycle, and encode (and possibly split) > the binary yourself for propagation to Usenet for the user rather than > having the user do it. That eliminates a bunch of problems with broken > encoders as well as making it easier to get the pure version of the > binary. It's all smoke and mirros no matter how you do it. When we tranport a "binary" from my disk, to your disk, it's get encoded and decode 100s of times. It starts on my disk encoded in who know what type of Reed-solomn version of magnetic patches which logically hold 512 bytes of data but is actually written as something like 800 bytes worth of bits, and then gets translated to an encoding of electrostic charges in the memory of the disk drive controller board, then strange SCSI packets over a multiwire buss, then memory of my computer stored in mbufs, then IP packets of less than 1500 bytes each, then light waves, etc etc. Each of those translations is an "encoding" no different than uuencode or yEnc or multipart files in it's complexity (many like the form it's actually writen to a disk service is far more complex). The only difference is that it's a well defined and correctly engineered so it works. When one router causes light to be flashed at one end of a fiber the device at the other end has no confusion about how to decode the flashing light. We have no problem choping a file into disk sectors, or IP packets, or virtual memory pages and putting them back together wihtout problems. There's nothing inherently wrong with chpoing a file up into multipart posts either. You just have to do correctly so there's never any confusion about how to put it back together. And if it happens to be encoded in some strange yEnc format, so what. If it's defined correctly (which it isn't yet, but it's close) it will always work when it's translated from one encoding to the next at the end of the trip. > And at the same time, I think most everyone agrees that encodings, any > encodings, inherently lose, and that the world we'd all like to move > towards is one where binary posts have a CTE of "binary" and no encoding > at all. Well, this is an issue of semantics, but it's an important point I think you have allowed yourself to be blinded to. These files are _always_ "encoded". There's no such thing as a binary file stored in physcial media without an "encoding". You must define what arrangement of the physical medium represents a "1" and what represents a "0", and that's an encoding. And for almost everything we do with computers, you end up with 4 or 5 levels of "encodings". (i.e. magnetic flux patterns map to 1s and 0s, but then you go though a 14 to 10 reed soloman decoding to get 10 bits for each 14 stored, then you combine those into blocks of 512, to get a "logical" raw disk, which get's encoded by the file system into "files", which gets encoded by an application into a news spool, which gets encoded by NNTP wire format to repeset an article, which get encoded by the yEnc to represent finally some "logical" file. There, that's 6 levels of encoding. You are talking about turning that into 5 and that removes "all the encoding?". I don't think so. YOu just need to make the top level (yEnc + multipart) as sold of an endoding standard as all the levels below it. > There's no such thing as a 5 part post that contains 12 uuencoded > pictures. :) There are. I've seen them. My newsreader decodes them correctly. I'll be happey to send you the Message-Ids of the set next time I spot one. > Seriously. There's only one way to split uuencoded binary content across > messages, and that method doesn't let you do it sanely with multiple > binaries in the same multipart post. You must not have spent much time trying to decode Unix binaries. :) The "correct" algorithm for decoding a multipart uuencoded article is very simple. All you do is concatenate the body lines (being sure to not include the blank line between the header and the body), of all the articles into one large body. Then decode it as if it were one large article. If it has 5 jpgs uuencoded, it just works. People have, and will continue to post articles like that. There is software out there that allows you to attach multiple files to one article, and it simply uuencodes each file as if it were one huge article. Then it calcualtes the total number of lines, and splits them up across however many multipart posts you want. uuencoded multipart posts were at one point very simple. But it just kept getting worse... > So don't even bother trying. State > that by definition of a multipart post no such thing exists or will be > recognized. The number of people doing stuff like this surely can't be > large (and isn't based on the binaries I've seen). I'm more than happy to drop the idea of being able to do that type of stuff in the "binary" usenet. It's not needed. > If someone really wants to take a complex post like that and split it > across multiple separate posts, they need to use a protocol that can > actually correctly represent that (namely message/partial or some > variation thereof). uuencode multipart posts from 10 years ago did it perfectly. And it was simple as hell. Now it's complex as hell because nobody seems to understand what the standard was and how simple it was. They think that adding headers and footers to each multipart is "ok" or even "an improvement" over the old way. They think than it's ok to automatically add "posted at newsfeets to every post". etc. etc. > I don't see why any of these are hard. The hard part is that you have to cleanly define the mapping from one "encoding" to the next to make it a "solid" encoding system. We have no clean standards currently at this level, so it's impossible to convert without loosing important information. > You take the attachment and convert it to CTE binary and leave the rest > of the post alone. If the user is posting and uploading separately, you > stick the attachment in at the point where they indicated, splitting the > message into multipart/mixed if necessary to do so. If the user used > yEnc or uuencode, transform it into a real MIME part, changing the > message to multipart/mixed as needed. > > It's not particularly hard to do this sort of thing; one just reads the > MIME standards and implements them. All the logic is already there for > doing this sort of thing and doing it pretty well. The mail clients > already know how to deal with all of these sorts of posts, to a greater > or lesser degree. No, there is no mime standard for doing what you can do with uuencoded data inserted into a text file (other than leaving it as a large text/plain segment which of course is not what you are after). I'll try to explain my point here. _every_ usenet newsreader that can decode pictures in-line will produce bascially the same end-user representation of a text article with multiple uuencoded pictures inserted a various places in-line. It's simply one large text article with pictures between the words. In mime, it's simple to encode the same data, you can do a multipart-mixed and put in alternating text/plan and image/jpeg segmetents. But very few mime "viewers" will display that the same way as _all_ the newsreaders displayed the article. Instead of making this one large page, they will do things like show the first text segment as the article, then show the the rest as "attachements". If they show the pictures, they will tend to be separted with HRs to indicate that they are all separte files. The encoding of the uuencoded text has a semantic understanding that it is "one page". MIME has no such thing for text segemnts. You have to go to a far far more complex HTML encoding with embeded references to local parts. Now, I'm not saying that's bad. What I'm saying is that it's NOT A STANDARD. The mapping from one type of multipart binary encoding to another is just not well defined. If you were to convert a binary posts from one format to another, then hand your version to a third party and ask them to convert back to the orginal form, there's no way in hell they are going to produce the orginal article. That's because it's not a 1 to 1 mapping. If it's not 1 to 1, then you are throwing something away when you translate it, and you aren't allowed to do that on Usenet. When you write a file to disk, and then read it back, it goes though multiple encodings. But you know (when the hardware is working) that you can go though that converstion and end up with what you started with. What Usenet could really use is a standard for what a "binary post" logicaly is. Then we can create various encoidngs to represent that standard and various ways to convert from one encoding to another without loosing any of the "real content" of the message. > > What happens when decoding errors happen? Like the "end" line is left > > off a uuencoded message? What happens when a uuencode dmessage is > > posted with lines lenghts other then "M"? Does it abort or does it > > decode? What happens in a uuencoded file when the posting tool forgets > > to dot escape the lines as it's sent to the NNTP server so the dot that > > happened to be there is stripped off? There are usenet uudecoding > > tools that look for that and figure out what the file "should have > > been" had it been posted correctly. Is that right or wrong? > > Corrupt binaries are corrupt binaries. What do you do now when decoding > such messages for your users? What's imporant is the fact that the way are translated to a "view" on a computer screen is not consistent from one system to the next - which proves that we don't have a standard in place. None of those "corrupt" posts are "corrupt articles". They are all perfictly valid articles. > You can either filter such things out as broken, With the right standards in place as to what a "usenet binary" is, then that is eactly what should happen. But we don't have that now. We only have good standard for what a valid "usenet article" is. > or you can attempt to > repair them; You never want to have to repair. You only do that when there isn't a good standard was to what is right and wrong. > > However, this idea of moving binaries I think has some merit simply > > because we are talking about trying to transform the concept into a > > completely different type of article for usenet. I dont' see it > > applying to text articles at all. Text articles (and their > > message-ids) will stay like they are today. > > The line is a bit hard to draw, though. :) Well, not in my mind because I'm trying to do something a little different than you I think. I'm on a mission to try and find a way to make large multipart binary files work much better on Usenet. So I'm looking at ideas of how we can make the usenet servers know they are transporting files, and not just articles. But, for the text articles which doesn't fall under this idea of a "large file binary transport system", I don't care if they still contain pictures and sound files etc. You on the other hand want to see all binaries forced into a new system so you can easily filter and control their distribution. That's fine, to work on, but not my main focus. For backward compatibility (and to some extend easy of use), some stuf will always be encoded in the "old way". It works better that way. It still nice to simply stick a uuencoded picture into the middle of a text article. But when you want to transport thigns that don't fit into Usenet text articles easilly, that's when this whole binary transport system comes into play. > The special marker is probably the easiest to explain. I like simplicty. > Usenet absolutely has to support it to remain compatible with mail; > people use it extensively. Yeah, but I think that's done in text articles, not in this binary file system. > > Unix doesn't have a concept of multipart files like CDC did. > > Yes, but that's not what this is. What this is is something like > including an inline line drawing in a discussion of fonts. That post > would become multipart/mixed or multipart/related if posted with proper > MIME structure. Could be. But that's not what I'm seeing. I'm seeing a system that bascially allows people to point to a file on their disk and say "send that on Usenet and here's the From: and Subject: and Newsgroups: to put with it". If you want to transport a mime article over usenet, just do it as a normal usenet mime post. Or, if you can save a mime e-mail message in a file, and transport the file over usenet in the "file transport system" - only a good idea if for some reason you want to send a copy of an e-mail as a raw file of course. If you want a Usenet message that is compatiable with a mime e-mail message in terms of all the stuff it can suport, the only way to do it is as a mime Usenet message. > If you use message/partial to handle any necessary splitting of the > message ... I don't know enough about MIME and message/partial to know for sure what you are getting into if you try that, but generally, I see MIME as a very large and complex beast which belongs at a level above what I'm looking at. Would you use MIME message-partial to split up a file into disk blocks on disk drive? That would be absurd. That's the level I'm thinking at here when I talk about splitting up files and transporting them in some formal, but very simple way, over usenet. Another way to attack this multipart problems is to look for a formal way to define splitting up usenet articles (instead of files) and then transporting them over Usent. So you can post soemthing as a huge 10GB MIME single part article, and then under the covers, the usenet servers have some formal way for splitting that up into many smaller parts to make it easy to move around and store. But that approach mostly kills the conept of allowing multiple people to post parts of the same file. When you split and transport "files" instead of "articles" you end up with something that can be shared. > > If you talk about formalizing what a usenet-file-segment is, then maybe > > there would be a standard way (using MIME) to encode it for trasport > > over e-mail. > > I think you'll find that message/partial is almost already there. It's just not what fits here as I see it because it's a standard for splitting up a MIME message. I don't want to split up a MIME message, I want to split up a file. BTW, a file in my mind is fixed and ordered sequence of 8 bit bytes from 0 to N bytes long - and which there is _NO_ associated metadata supplied by the user (like file name, or content type, or creation date, etc). They can of course supply stuff like that in the headers, but it's outside the scope of what the usenet "system" is transporting. The "hash" we use to identify file the file is not "assocaited metadata", supplied by the user, but instead something that is defined by the data. The user can post segements of these files associated with the meta data in the header which we will preserve and transport (you need to document where the data came from in all cases), but the logical model of what's getting transported at the higher level is nothing more than a N byte file which is uniquely identified by it's hash (collisions will cause corruption but we are willing to live with that). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021007233918.512$5h@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!headwall.stanford.edu!newsfeed.utk.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <ylofabv431.fsf@windlord.stanford.edu> <4319b.4a2200@archiver.winews.net> <ylzntuxir5.fsf@windlord.stanford.edu> <041020021438385411%planb@newsreaders.com> <yl7kgyrpwd.fsf@windlord.stanford.edu> <041020021954536744%planb@newsreaders.com> <ylwuoxhhhx.fsf@windlord.stanford.edu> <20021005022430.397$TR@newsreader.com> <yld6qpv0rd.fsf@windlord.stanford.edu> <20021005043816.517$kr@newsreader.com> <yld6qosu9b.fsf@windlord.stanford.edu> <20021005183917.837$Qo@newsreader.com> <ylfzvkcwue.fsf@windlord.stanford.edu> <20021005233454.131$iS@newsreader.com> <ylu1jxaoda.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <20021007233918.512$5h@newsreader.com>
Subject: Re: [FNTP] 'in-completeness'
Date: Tue, 08 Oct 2002 03:39:18 +0000
From: curt@kcwc.com (Curt Welch)
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <ylofabv431.fsf@windlord.stanford.edu> <4319b.4a2200@archiver.winews.net> <ylzntuxir5.fsf@windlord.stanford.edu> <041020021438385411%planb@newsreaders.com> <yl7kgyrpwd.fsf@windlord.stanford.edu> <041020021954536744%planb@newsreaders.com> <ylwuoxhhhx.fsf@windlord.stanford.edu> <20021005022430.397$TR@newsreader.com> <yld6qpv0rd.fsf@windlord.stanford.edu> <20021005043816.517$kr@newsreader.com> <yld6qosu9b.fsf@windlord.stanford.edu> <20021005183917.837$Qo@newsreader.com> <ylfzvkcwue.fsf@windlord.stanford.edu> <20021005233454.131$iS@newsreader.com> <ylu1jxaoda.fsf@windlord.stanford.edu>
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!headwall.stanford.edu!newsfeed.utk.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!rip!news.webusenet.com!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 ahayL1vQLDKLlWrK+PX/tKoKWQ@CNdhedluLiFWM,sYdLki
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: 324