Article View: news.software.nntp
Article #55062Re: Announce: yEncoding - site with info has been created.
From: Curt Welch
Date: Thu, 08 Nov 2001 17:39
Date: Thu, 08 Nov 2001 17:39
232 lines
13300 bytes
13300 bytes
archiver@i3w.com (The Archiver) wrote: > "Marius Ellen" <Red Sonja@Russia.Com> wrote: > >Message 1/10: > >ybegin part=1/10, size=50000/500000, name="file.ext" > > Having own 'part-begin' and 'part-end' values was introduced to > allow combination of different posts and repost into one result. > And having the numbers visible in the ypart line would be > more transparent. I wanted to make it as easy as possible > (for the users). The problem here is that a simple filename and size check is a very poor guarantee that two different posts, from different users are actaully the same file. If you include the file crc, then it's a better check. But, all that stuff must be in the headers where the user/newsreader can see the infomation without having to download the entire article. If it's in the body (especially if the crc is at the end), then the user is forced to download the entire article just to figure out if the file might be a segment of a file which he is missing. What's the point of saving 30% in the download time if you are still forcing users to download things that end up being useless to them? The best way to deal with the repost problem is to give users tools to make it easy for anyone (not just the orginal poster) to repost (or e-mail) missing segments. To make that work, you want to give the newsreader the power to patch together missing segments of the files from different posts. So if the same file is posted twice by different users, in different groups, with different part sizes, the news reader will know for sure that both posts are actually the same file, and even though a few articles might be missing from both posts, the newsreader can figure out how to patch together the whole file from the parts it does have access to. To do that, you need something to make it easy for the newsreader to know that the two posts are actaully the same (a file crc combined with the file length might be good enough for that - a secure hash would be better), and you need to know the byte range of the file which is included in each article (all stuff that you are adding with the yEnc system). BTW, 1-based byte ranges are very odd for a protocol like this, all the current protocols use 0 based range values. And in any case, the fact that it's one based instead of 0 based needs to be documented in the spec. It isn't even mentioned currently - it only shows up as being implied from the examples. There are a lot of little points like that which are underspecified in your document and which it would be wise to clean up if people start trying to support the standard. But, you need to put all that information into the headers so the newsreader can figure out if all the segments are available before it downloads anything. How much needs to be in the standard headers (Subject) so it shows up in the XOVER data vs non-standard headers so the newsreader has to do a HEAD to get it is an issue to think about. One problem with putting it in the headers is that it limits the ability to post multiple files or multiple file segments in a single article. Or would require fairly complex TOC type headers to document everything in the article if you allowed multiple segments to be posted in a single article. There's really very little advantage to posting multiple files or file parts in a single article however so I would think it would be fine to simply not support that. > >yend crc=xxxxxxxxx > > The =yEnd needs more information. Else missing lines or parts > make it impossible to detect properly missing parts and giving > good error-messages. > > If you believe that the original proposal for the =ybegin =ypart and > =yend lines should be reworked and discussed from the begining then feel > free to ask for a discussion - and make an own proposal. Damn, I hate it when people force me to do that. Can't I just bitch and run? :) > But I did hope that we had these very basic things behind us. :-( > > >PS: If you really wanna get rid of corrupt or incomplete sections > >you could add extra (about 11%?) data into so-called .Par-sections > > The main target of yEnc is to _reduce_ the size, traffic and storage > needs for Usenet messages. > PAR files are the wrong way from my point of view. > > Adding size and CRC information would be a big step towards > error-free transmission of Usenet articles. The whole uuencode/yEnc type of format makes it hard to figure out if articles contain files or just text. It's good when you want to write a text article and embed some pictures (you can't even do that very well with MIME), but if all you are doing is trying to transport large files then you don't need to support the concept of text mixed with encode files. I think we need a standard for breaking up files into parts on Usenet that will solve all the current issues, not just some of them. If you had a well defined standard for how files are transmitted in Usenet articles, then the news server could get more involved in helpling to make this work. For example, if the article had headers that make it clear that this was not a "standard" Usenet article, but instead was a special encoded file (or file part), then the news server could check the file for encoding problems (like crc errors) when the file was posted, and reject some problems before they even got to Usenet. And on transport, each article could be checked for corruption by using the information in the headers (crc, bytes range, etc). It could then either drop, or somehow mark the article as being corrupt to prevent being from downloading broken articles. On top of that, if the standard was well defined and simple, it would open up the idea of new types of NNTP commands (like XOVER) for simply listing the articles which were actually file-parts, and the important information about each article (file id, file name, byte range, CRC, etc). And maybe other NNTP commands for downloading just the data, in raw form. So even if the article is say uuencoded, the newsreader could do a HEAD command to see that the information about this "data article", and then do use a DATA command to download the data, in raw 8 bit form - the news server would decode the data for you. And while we are at it, the DATA command should support a byte range to allow only a segment of the data to be downloaded. MIME has a lot of stuff for doing this already. But the broblem with MIME is that it is far too complex because it's trying to do too much. People have said MIME is good becase you can look at the headers and know if the article contains a file. That's bogus because most the time, files are posted in multipart-mixed format, so to see what is actually posted, you have to scan and MIME-parse the entire article. The problem is that there are far too many ways to post a file with MIME. We need a standard that would support only one (or only a very small set of standads) to post a file. What we need is a well defined standard for how a file part is posted in an article. And the standard should not allow anything else but that file part to be posted in the article. This will allow the creation of a simple DATA command for example in NNTP which will work even better than yEnc in terms of reducing the number of bytes the end-user had to download. This could be done in ways to make it backward compatible with current software. If the basic format of the article for example was just the same old uuencode standard we use now, and the Subject would be similar to what people use now for multipart articles, then all the current download tools would still work for these articles. But we could put a special token in the Subject to indicate that this was actually an ariticle which followed the new data standard (like the yEnc marker you used), then all the other information would be simply added as special headers. The new special headers would be the real "definition" of what defined the article to be a special data article instead of normal Usenet text or MIME article (just like the MIME-Version: header does for MIME). The subject should probably be well defined (like you are working towards with yEnc). It would be in a format that was compatible with existing software (and existing newsgroup conventiontions), but all the real "meat" of the intormation would be in the new headers. You could include a transer encoding header to allow posts to be done in standard uuencoded format now, but later, after the standard was wider supported, convert to a denser 8-bit (yEnc type of) trandfer encoding. If the news server suported this idea of the new DATA command, then the need for 8 bit encoding would be greatly reduced anyhow. Posting and transport of the article would still be a problem, but downloading (which is done a lot more than posting) would no longer be a problem in terms of the encoding overhead. The current uuencode and your yEnc standard are both ways of "hiding" files inside of text articles. This is good because the news servers don't need to do anything special to transport these articles. But it's bad because it makes it unreasonable for news server to try and help deal with these articles, and it makes it very hard for the downloading tools to correctly find all the parts -- it's a big guessing game now. We need a standard that will actually define a usenet "data" article instead of yet another standard for "hiding" data inside of text articles. And if it's done in ways to make it backward compatible, then it won't cause huge waves of re-posts of files in multiple formats. At the same time, a well defined standard for requesting re-posts would be very good as well. Something the download tool itself could actually generate - it would list the file-id and all the byte ranges that were missing. And then the download tools could be written to spot those re-post requests and make it easy (a push of a button), for anyone that has the missing parts, to re-post it (so the orginal poster wouldn't be forced to do all the re-posting). And maybe, if the reposts were done correctly, it would also be easy to figure out which requests had been responded to and which hadn't so you wouldn't get too many duplication of re-posts. > >If so that would be a *really* great > >addon in usenet!! (most files are reposted because of an average > >of 1 or 2 missing section(s), and you can "repair" them with "par") Not if the par file is missing. Right? There are well know ways to do error detection and correction where you can repair the file no matter which segment is missing. i.e., you post 11 sections intead of 10 and no matter which one is lost, you can still reconstruct the file. or 12 instead of 10 and no matter which 2 are lost, you can still reconstruct the file. But that's not backward compatibale so maybe the par file idea is a better way to go. It seems to me that including something like the par file idea into the data standard would be good. It might even allow the news server to reconstruct missing segments so the users didn't have to do it. It just seems to me that if you are going to introduce a new standard for fixing some of the problems of transporting data files on usenet, that we can do a lot better than yEnc if people would be willing to work at this a bit. Some of the ideas included in yEnc are a step in the right direction, but it's only one small step that is as much a sideways step as it is a step forward. I think there are better options to look at that will give us 3 steps forward instead of just 1 forward and 1 sideways. But, said to say, I don't really have the time to make this happen either. I don't really even have the time to write this article, but I did that anyway. The good thing about yEnc is at least someone is working on it. :) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20011108123928.832$0a@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!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<3be943fa.12864292@news.alt.net> <e1lG7.35031$88.4088993@zwoll1.home.nl> <5430a.8b1203@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <20011108123928.832$0a@newsreader.com>
Subject: Re: Announce: yEncoding - site with info has been created.
Date: Thu, 08 Nov 2001 17:39:29 +0000
From: curt@kcwc.com (Curt Welch)
References: <3be943fa.12864292@news.alt.net> <e1lG7.35031$88.4088993@zwoll1.home.nl> <5430a.8b1203@archiver.winews.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!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com X/r2Q/RJwconQsTTbQWgoYMWQ/m29Qwc8281zfw8_sS_Zl0SO
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: 231