Article View: news.software.nntp
Article #57486Re: Using Message-ID to store binary file information
From: J.B. Moreno
Date: Thu, 21 Mar 2002 04:14
Date: Thu, 21 Mar 2002 04:14
251 lines
12797 bytes
12797 bytes
In article <20020320174111.780$V8@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > "J.B. Moreno" <planb@newsreaders.com> wrote: > > Curt Welch <curt@kcwc.com> wrote: > > > > Ignoring the slippery slope problem of putting anything into > > > Message-IDs, what would you suggest putting in there for binaries? > > > > Well, first and foremost -- that it's a binary. Then the size. Then > > something that is reasonably compact and unique to the file so XPAT > > searches can be done looking for individual parts. > > Ah, XPAT searches. I hadn't thought about that. That's another potential > benefit. > > But even without XAPT, just doing a XHDR message-id to dump the IDs for > an entire group is something that works today on all servers (I suspect) > and would give a binary download tool all the info it needed to locate > potential articles for missing parts (if this was a standard which was > all of Usenet was converted to at some point). And it's also in XOVER. > > Number of parts. > > I think we need to get away from that. Why? Are reposts requests (and fills) really a problem? > > > You could throw in the segment offset and size: > > > > > > so=3Hw6,ss=y7J > > > > What benefit do you expect to have from having the segment size and > > offset included in the Message-ID instead of elsewhere? > > Well, to start with, we need to move away from the idea of part counts > or part numbers and move to the idea of byte ranges to allow newsreaders > to correctly find the segments they need to fill in holes. This is needed > to replace the idea of part number so reposts no longer have to match > the size of the orginal post. Well, you could do both -- use one set of info for original posts, and another set for a reposts (which makes sense to me). > When I started to write my article, I assumed that we couldn't put > eveything in the ID (it would make the ID too large) so we would just > put a few thigns that was most useful (like the full size of the > binary the segment was a part of). But by the middle of my article, > I realized it was actually possible to put everything that was needed > into the ID and still keep the Message-ID a resonable length (long, > but not unworkably long). So if we have completly elimited the need > to add other headers or to hide data in other parts of the header, > why not put it all in one place? That was what I was thinking. Well, you won't completely eliminate the need to add other info -- the file name simply can't be put in there. Anyway, I think that mainly what you want to do is help with the building of the article list. > If you put all that stuff in the ID, then the newsreader has > everything it needs to find articles without having to do XHDR or > HEAD commnds. You could move that stuff into a fake id in the References > and still have it show up in XOVER, but then then the nice trick of a > single XHDR command to get everything you needed would not work. You would > have to do two and get a lot of "real" References: data for the text > articles that you cared nothing about. Putting it all in the ID seems > generally cleaner to me. If you can fit it in without making it too large, I'm all for it (and of course "too large" for binary posts isn't quite the same thing as it is for most text articles). > There is other information needed as well, like file name, and checksums > for the article, but that can all be dealt with how it's done now with > the various standards (MIME, uuencode, yEnc). Those are things the > newsreader would need to know until after it started downloading the > articles. And the subject alone is all the user needs to decide what to > try to download in the first place. > > If moving things like offset and part size into the Refferences section > to prevent excessive bloat in Message-IDs makes sense, that could be done. > > But once I realized that we could but everything that was needed into > the ID and not worry about any other new headers or tricks it seemed > to make more sense to me. What all do you think should be put into the ID? The name is out, but what else? > > I'm not suggesting that all of the binary information be presented in > > the Message-ID, just those parts that you want to have as quickly and > > easily as possible. Above I mentioned encoding method, but only > > because it might help with filtering (and deciding what encoding > > methods to support). > > Putting encoding method in there could help. But it kinda implies > that we want to support lots of different methods. And it creates > the complexity of adding new names later for other new encoding > systems. You could attempt to kill that by defining only uuencode, > MIME, and yEnc and say that all new methods MUST be done as MIME > or not done at all. I'd say they have to come up with a 3 letter abbreviation and leave it at that -- "uue", "b64", "yen", "qpl". In any transition period in the future for encodings, it'll be handy to have a way of filtering out the stuff that you can't yet handle (and in fact it's liable to be useful for the immediate future as people continue to use tools that can't handle yenc). > But to be honest, I'd rather just leave the encoding method out and > not make it "easy" to support many standards - to encourage the net > to move to one standard (whatever that is). In moving to one standard, it's essential to get good data on what is currently happening -- last year when yEnc was being discussed, I saw several people say things like "Base64 is the norm" or "Most binaries are encoded using base64", while I couldn't find a single article where the encoding was B64; and I didn't know if that was my fault or they were wrong. In fact I still don't know. It seems to me from my own snooping around, that the vast majority of files are encoded using UUE, but that could very well be a sampling bias. Part of the argument against yEnc has been that it is yet another bad encoding that will linger on -- if so, that will be in part because there's no way to tell if it's time to kill it off. > > Well, as you say, you'd want to use base64 so both of the above would > > be somewhat smaller, and you're right that you probably don't need (or > > want) the full MD5 hash. > > Some research could help determine how many bits are really justified > and what algorithm is the best for giving us those bits. But if everything > is encoded with base64, then a total which is a multiple of 6 would > be logical. Sounds reasonable. -snip md5 scan before posting a problem?- > I don't see the time for the scan being a killer as long as we kept > with a hash fucntion that was a lot faster than the disks. MD5 is > nice because it is so fast. OK. Sounds sensible to me. > > What about including the information on the RHS instead of the left? > > > > <date-stuff@uJb8Ex.A900.ubin.invalid> > > > > (ubin meaning usenet binary). > > It's an option. But I believe some people in the past felt they wanted to > keep the RHS a real domain name and even allow their server to change the > RHS of a user supplied ID. I don't know if any server is actually doing > that today. Probably because they wanted to keep the LHS -- but I don't believe it matters as I don't think any servers are doing that. > It doesn't really save much in terms of bytes in the Message-ID. > > Base64 needs two characters other than letters and numbers. MIME uses > + and /. That's likely to cause problems on the RHS. We could use - and > something else (what else would be used?). Or stick with hex or make > up a base32 encoding. Is = or ! allowed? > And domain names are case insensitive and there's always been an old > hanging issue of whether <1@TEST.COM> should be treated as equal to > <1@test.com>. Even though most news servers would treat those two IDs > has being different, I think in theory they "should" be treated as > equal. This issue could get in the way of puting base64 on the RHS > but wouldn't stop base32 or hex from working. I disagree: Message-ID's are case sensitive -- domain names may not be, but Message-ID's are a different matter. They may have the same structure as email addresses but they are NOT email addresses, and case should count. > > while at the same time reducing the size of the required message-id. > > <date-stuff@uJb8Ex.A900.ubin.invalid> is really not much different than: > > <date-stuff$ubin=uJb8Ex.A900@shortname.com> > > Most of the size savings from my examples only happend because you left > half the data I put in there. And you leave out a valid domain name > which I think some admins might not like. But it's an option to think > about. > > Using the RHS for the hash and the size makes XPAT searchs a lot > easier doesn't it? As in: > > XPAT Message-ID 1- *@uJb8Ex.A900.ubin.invalid> > > But, I guess that's really not easer than: > > XPAT Message-ID 1- *$h=uJb8Ex$s=A900$* No, not a lot -- but if the domain name isn't short, it could make quite a difference. > > Well, if you used the RHS and allowed "invalid" to be replaced with the > > actual host name if the server required, they might change the way they > > generate message-id's. Or simply make an exception for labeled > > binaries. > > Good point, the standard could all be defined in the context of doman > names so people could replace invalid with a real domain: > > <date-stuff@huJb8Ex.sA9000.o3443.lA900.ubin.isp.com> > > If we get enought people to think about this, we could figure out what > made the most sense - i.e. what was the most flexible and caused the > least problems. Yeah, but I've tried to get people interested in this at least a couple of times, but haven't seen a lot of responses... > The more complex issue is what should or should not be put in there > and if we should even consider this at all. Figuing out the best format > is not the hard part. Agreed, but without some discussion taking place noone is going to consider it. > > > It's also 100% compatible with all current formats used for posting > > > binaries to Usenet (uuencode, MIME, or yEnc) -- as long as you include > > > only one file or file segment in each article. > > > > And since that is the case in the VAST majority of articles, I think > > that any loss in ability to do multiple files in one article is quite > > acceptable for the benefits received. > > Maybe for those that wanted to put multiple binaries in a file we could > even define a "correct" way to code it. For example, just by encoding > it as if it were one big file made up by concatenating all the small > files together. The total size would still be valid and useful in that > case. Yeah, that makes sense. Really, it's basically what happens now when instead of using multiple files they use some sort of utility to combine them -- zip or tar or whatever. -- J.B. Moreno
Technical Details
Message-ID:
<200320022314345462%planb@newsreaders.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!flame.newsreader.com!planbReferences:
<us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news> <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com> <20020318154507.410$TU@newsreader.com> <9hlc9u8ga789vu6hfcun0oln29ae6mck5m@4ax.com> <20020318160827.211$fq@newsreader.com> <ldmc9u48omjm6sf5vj9fn54c83tob9u69g@4ax.com> <20020318181949.333$Fq@newsreader.com> <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <200320022314345462%planb@newsreaders.com> Subject: Re: Using Message-ID to store binary file information Date: Wed, 20 Mar 2002 23:14:34 -0500 From: "J.B. Moreno" <planb@newsreaders.com> References: <us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news> <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com> <20020318154507.410$TU@newsreader.com> <9hlc9u8ga789vu6hfcun0oln29ae6mck5m@4ax.com> <20020318160827.211$fq@newsreader.com> <ldmc9u48omjm6sf5vj9fn54c83tob9u69g@4ax.com> <20020318181949.333$Fq@newsreader.com> <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb Newsgroups: alt.usenet.offline-reader.forte-agent,news.software.nntp MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit Mail-Copies-To: nobody User-Agent: Thoth/1.6.0 (Carbon/OS X) X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h X-Trace: flame.newsreader.com d/-6uU19gqJIUTCouceP0VwvAo7CuD.WPs3=.iF_FqUGGhaN Lines: 250