Thread View: news.software.nntp
404 messages
404 total messages
Page 5 of 9
Started by Chris Morse
Sun, 22 Dec 2002 04:25
Page 5 of 9 • 404 total messages
Re: xBin (Power-Post 2003 - requesting input from authorities..)
Author: Rene
Date: Sat, 04 Jan 2003 00:14
Date: Sat, 04 Jan 2003 00:14
28 lines
2481 bytes
2481 bytes
The Profiteer <TheProfiteerBITESPAM@iplweb.org> wrote: > No...whoever posted the latest version gets their name in lights! Ahhh, > the glory!!! Oh yes, what fun when everyone full-reposts the latest bond-movie so he is the one whose name is displayed as the poster... Really, that would be a nice stress-test for the usenet bandwith... And I thought we wanted to try to make the situation better... :) > >There are a lot of little (but important) issues like this that would > >need to be looked at in the design of a new server designed for > >transporting and storing "files segmetns" instead of articles. > > Indeed. And best to talk them through now, than to do it wrong the first > time and make all the servers jump through mega hoops with every > permutation (ala some encoding scheme we know and love). Actually we can talk about that later, because xBin works wether or not the servers knows xBin. And I don't see a many sysadmins implement xBin before it is in widespread use. But talking or thinking about it now never hurts either. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities.. - TRY THIS
Author: Rene
Date: Sat, 04 Jan 2003 00:55
Date: Sat, 04 Jan 2003 00:55
119 lines
7091 bytes
7091 bytes
Frank Durda IV <uhclem.feb03@nemesis.lonestar.org> wrote: > Yes, but xBin isn't meant to solve the problem that I was trying to > address, which was to be able to locate and recover missing parts, *not* > to 100% validate the ones you do get. Seems most people here are stuck Sorry, xBin can do that, too. It can verify data-chunks it downloads if they are really belonging to a specific file and it can easily gather missing parts from all over the place, no matter if there is a change in the poster, article-size or transfer-encoding. xBin achieves this by creating a strong link to the file and placing this data into the header, so programs interesting in gathering parts of that file can easily do this, without any guesswork at all. xBin creates a signature for a file. And *any* part, no matter in what form, of that file carries this signature. > on this validate thing, which crops up infrequently, while recovering > missing parts has been a constant problem forever. The latter is what my > suggestion would help address. The validation is but one side of xBin. But in a way it's the most important, because it all starts there. The file must be "validated" so that we can create the file hash, the file's unique signature. > The main bit of what I was suggesting was providing a way to allow > recipients to know the <MID> of parts that don't arrive. So what I > suggest and xBin appear to be attacking different issues, but might even > be usable together. No xBin already provides both, actually. You can put your system ontop of xBin postings though, they won't collide or deter xBin from working. But xBin does not need it, either. > Here is how it could be done. Let's say your binary content had to be [some explanation deleted] > Part 1 Message ID <12594> > Part 2 Message ID <62843> > Part 3 Message ID <91732> > > Part 1: > Message-ID: <12594> > X-Reverse-Code: BEGIN > X-Forward-Code: <F3F71> (which is the HEXify X^Y of MIDs for part 2 and > 3) > Lines: 5000 This won't work because I think you are not clear about the semantics of the XOR operation (well you proposed factorials, in fact you need to use them or something similar or else this has no strength whatsoever): Your example uses F3F71 as forward code. Now take this value, XOR it with 11111 (that's just my example, could be anything) F3F71 XOR 11111 = E2E60. So what does that give us? Well XOR E2E60 with 11111 and you'll get F3F71. So we use fakepart 2 message id 11111 and fakepart 3 messageid E2E60. Bang, your system has just been "hacked". I can create arbitrarily many id's which will result in F3F71 when xor'ed in milliseconds. The point is: You simply cannot use XOR because XOR is easily reversible. Since XOR even is a basic operation within CPU's this means that you usually can do 1 xor operation per CPU clock cycle. So my poor old Athlon 500 can do 500mio xor's per second. But I only need two to break your system. But being the helpful lad I am, I also tell you how to fix it: You need something that is not reversible. And that something exists. Cryptographers (and mathematiciens) call this a "one-way" function. A cryptographic secure hash-function will be suitable for your use. But guess what, that's exactly what we're using in xBin already. We're not linking articles together like you do, because if they belong together (they contain parts of the same file) then xBin will find them easily. But that way we can also live fine when completion is not 100%, because a repost of a segement will *also* be marked with the same file signature/hash, which is the real strength xBin has over your proposal. > Where the X-Forward-Code is some Hexified result of an X^Y melding of the > two specified MIDs. (Yes, the two MIDs could be done as an XOR as shown > in the example values, but there is more vulnerability in using XOR than > with having a factorial solution. For speed reasons, perhaps only one > portion of the MID need be used in concocting the X-Forward-Code. Even a > couple of ten byte HEX values taken from the first fix bytes of the MIDs > would take longer far longer to factor than the amount of time a forger > would have.) No a chain (and you're building up a chain) is as strong as the weakest link. Either you use strong cryptographic one-way function all the way or you better forget it anyway. Hashes are pretty fast though. > Follow this: > Part 1 arrives, and now the receiver holds the forward code (<F3F71>) of > the MIDs for parts 2 (which will be <62843>) and part 3 (which will be > <91732>). Having the forward code at the receiver is useless by itself > and cannot be used in predicting the MID of part 2 or part 3 in advance. > Further, when part 2 does arrive, it's validity isn't known until part 3 > shows up, and because the forward code is a factorial, part 3's MID > cannot be quickly predicted from the Part 2 MID and the Part 1 or 2 > Forward codes. So part 2 is protected from falsification, and from > someone trying to pre-post the same MID. (Now, if XOR was used, having > part 1 and part 2 would be enough to fake part 3, but with a factorial > solution, you still don't know enough until the real part 3 shows up, > unless you have access to some spare computing time over at the NSA.) No as I've shown, one part suffices using XOR, because XOR is "symmetrical". In xBin you don't need to wait for an X+1 and/or X+2 article to show up to have enough data to decide if X was forged or not. You download any one single article and you already have enough data to make that decision. I did propose a simpler way, too, when I first heard of that system when I didn't see how the hash-tree xBin uses is supposed to work. But its an extremely nifty data-structure. Pure elegance (sp?) and functionality. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sat, 04 Jan 2003 01:44
Date: Sat, 04 Jan 2003 01:44
114 lines
7289 bytes
7289 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:
>> One of the really useful bits of metadata that e-mail messages carry
>> that I would expect xBin to also be interested in is the Content-Type
>> header, which tells you what type of file you're dealing with. With
>> proper use of that header, you can make decisions like "I want all
>> images, but don't want any music files or videos." But if one moves
>> away from the e-mail format, where do you carry that information?
> feel free to add a Content-Type header to the message, I'd love to see
> that. xBin doesn't depend on it.
So... how are you not now just recreating a MIME message? Why not just
use MIME?
I mean, if you're reintroducing the idea of headers and metadata, you're
talking about something that carries at least as many headers as HTTP
traffic does, and HTTP uses MIME.
> you're right, this is a problem with the hypothetical NNTP FILE, but not
> a large one. FILE (in my mind) essentially collects all the articles,
> decodes them, and send the file data verbatim to the client.
Okay... now I'm really confused.
I posted a bit ago that I thought the right way of handling things is to
figure out how to deal with articles of unlimited size, with some sort of
chunked encoding for transfer, and you said that was a horrible idea (I
thought). Now you're describing xBin as essentially exactly that.
The only difference between what I was talking about and what you're
talking about seems to be that you're introducing a new NNTP command for
this purpose and I'd just reuse ARTICLE. Why not reuse ARTICLE?
> now, if it's a MIME file, the metadata is gone.
Not if you're adding Content-Type to the message....
>> That's not what message/partial does; message/partial treats the
>> message as an opaque chunk and just divides it like the Unix split
>> command, essentially.
> perfect. it's main problem is that it requires the use of BASE64, so
> it's not as bandwidth efficient as yEnc. big deal.
Well, message/partial also doesn't encode a file; it encodes a message
(which can have arbitrary nested structure). So it's inherently more
general.
The restriction to base64 is due to the requirement in e-mail to support
7-bit environments. One could easily define an equivalent to
message/partial that doesn't have that restriction for use in environments
where 8-bit support is assured.
That's not the real problem with message/partial. The real problem with
message/partial is that it makes the user agent do the reassembly. That
means that you can use message/partial without changing any of the e-mail
servers (which was the requirement that they were trying to meet). But
that's not the requirement we have; we want something that can be
reassembled by the *server* so that the client doesn't have to worry about
it, and you're already talking about changing NNTP to add a FILE command.
So given that, what I don't understand is why not approach this from the
perspective of finding a way to accomodate unlimited-length MIME messages
with server-side chunking and reassembly, generating new messages using an
"enclosing" MIME type analogous to message/partial that carry the metadata
like the checksum tree and xBin message IDs, that when reassembled yield a
regular Usenet message with an encoded binary embedded in it in the normal
fashion?
Curt seems to be going in a very different direction than what I'm getting
out of what you're writing.
>> I don't know of a good solution to this. I don't see xBin as a
>> solution; after all, if you want those larger articles, you'd then
>> have to use xBin to get them, which means you'd be getting a lot of
>> other binaries unless xBin has a really great traffic classification
>> system (and I don't see how you get that if you're just treating
>> everything as files).
> it's quite simple. the number of articles belonging to huge files
> outnumbers the small files. for each episode of Buffy (400 MiB), you
> get thousands of JPEGs. for each song by the Foo Fighters (10 MiB), you
> get hundreds. simply blocking the large or huge files at the CHECK
> stage helps a lot on the number of articles you need to consider -- you
> don't even have to write these rejected articles to your history. there
> is no need to filter on _article_ size, use whatever value is good for
> your system.
You're talking about essentially including the total article size in the
NNTP exchange so that articles above a certain total size can be rejected.
I agree with that goal; I think that would be very useful. But that isn't
what I was talking about above.
What I was talking about above was, as below, the case where I want the
1MB compile log but don't want the 200KB JPEG. xBin doesn't do anything
to help that situation. (And in fact, xBin without Content-Type makes
that situation *worse*, because now the protocol that is used to transfer
the binaries contains no information at all about what type of binaries
they are, whereas right now at least some binaries are sent using MIME or
one can make guesses from the file name.)
Although I agree, just getting rid of the *really* huge binaries would
make the whole problem simpler and would be an immediate win. That's a
lot of low-hanging fruit, so maybe I shouldn't be looking at the harder
problems yet.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 03:52
Date: Sat, 04 Jan 2003 03:52
146 lines
8123 bytes
8123 bytes
[Russ Allbery]: > > [Kjetil Torgrim Homme]: > > feel free to add a Content-Type header to the message, I'd love > > to see that. xBin doesn't depend on it. > > So... how are you not now just recreating a MIME message? I might create a MIME message, others would rather use existing yEnc tools -- this is completely backwards compatible for both servers and clients. > Why not just use MIME? because then we need changes in NNTP to see any benefit (the enhanced CHECK), and extensions to MIME for assuring integrity (to foil attacks). > I mean, if you're reintroducing the idea of headers and metadata, > you're talking about something that carries at least as many > headers as HTTP traffic does, and HTTP uses MIME. ??? > > you're right, this is a problem with the hypothetical NNTP FILE, > > but not a large one. FILE (in my mind) essentially collects all > > the articles, decodes them, and send the file data verbatim to > > the client. > > Okay... now I'm really confused. > > I posted a bit ago that I thought the right way of handling things is to > figure out how to deal with articles of unlimited size, with some sort of > chunked encoding for transfer, and you said that was a horrible idea (I > thought). I missed the bit about chunked encoding. how do you suggest it will work? > Now you're describing xBin as essentially exactly that. no, FILE is a possibility iff xBin reaches saturation. assembly is left to the client. this is actually a feature people wants, since it is common to get parts from several news providers when parts go missing. FILE requires the file to complete on each server. > The only difference between what I was talking about and what > you're talking about seems to be that you're introducing a new > NNTP command for this purpose and I'd just reuse ARTICLE. Why not > reuse ARTICLE? backwards compatibility. but how do you propose to reuse ARTICLE? > > now, if it's a MIME file, the metadata is gone. > > Not if you're adding Content-Type to the message.... my idea of FILE returns the decoded body only. you can run a hash on the data from FILE and it will match the file identity. > Well, message/partial also doesn't encode a file; it encodes a > message (which can have arbitrary nested structure). So it's > inherently more general. yes. we haven't specified how xBin interacts with MIME, but the natural thing to do is to just hash the entire top-level message sans the metadata. this means that you can send a JPEG, and xBin will hash the JPEG itself, or you can send a nested MIME document, and xBin will hash the textual representation of the entire MIME document. the latter has a slight problem if the message passes into the email domain, since a gateway is allowed to change encoding of parts within the MIME document, so it will produce a different hash. no, wait. we just need a normalisation rule. e.g., headers are kept verbatim[1], bodies are decoded into binary. it's a bit ugly, but it should work. [1] is it allowed for gateways to rewrite headers, I'm thinking changing the quoted word algorithm from Q to B, or the charset specification when equivalent? > The restriction to base64 is due to the requirement in e-mail to > support 7-bit environments. One could easily define an equivalent > to message/partial that doesn't have that restriction for use in > environments where 8-bit support is assured. "easily"? well, perhaps. an unknown message/foo must be treated as application/octet-stream, so it will require changes in the client. (again, xBin requires no change in the client.) > That's not the real problem with message/partial. The real > problem with message/partial is that it makes the user agent do > the reassembly. That means that you can use message/partial > without changing any of the e-mail servers (which was the > requirement that they were trying to meet). But that's not the > requirement we have; we want something that can be reassembled by > the *server* so that the client doesn't have to worry about it, > and you're already talking about changing NNTP to add a FILE > command. I'm talking about the _possibility_, not the requirement. FILE isn't important. > So given that, what I don't understand is why not approach this > from the perspective of finding a way to accomodate > unlimited-length MIME messages with server-side chunking and > reassembly, generating new messages using an "enclosing" MIME type > analogous to message/partial that carry the metadata like the > checksum tree and xBin message IDs, that when reassembled yield a > regular Usenet message with an encoded binary embedded in it in > the normal fashion? come up with a plan, and I'll listen. xBin works today, with no infrastructure changes. > Curt seems to be going in a very different direction than what I'm > getting out of what you're writing. I don't think so, really. > What I was talking about above was, as below, the case where I > want the 1MB compile log but don't want the 200KB JPEG. xBin > doesn't do anything to help that situation. (And in fact, xBin > without Content-Type makes that situation *worse*, because now the > protocol that is used to transfer the binaries contains no > information at all about what type of binaries they are, whereas > right now at least some binaries are sent using MIME or one can > make guesses from the file name.) the encoding won't change at all! xBin _only_ changes the Message-ID and adds a header X-Bin-Signature. that's all it cares about. the rest can stay the same, whether it's MIME or uuencode with a horrible Subject hack. (_new_ clients won't need the Subject hack, but old clients will want to download the data too.) > Although I agree, just getting rid of the *really* huge binaries > would make the whole problem simpler and would be an immediate > win. That's a lot of low-hanging fruit, so maybe I shouldn't be > looking at the harder problems yet. yes. the whole point of xBin (for me!) is to make the server able to identify which articles are parts of the same file in a robust and simple manner. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sat, 04 Jan 2003 04:32
Date: Sat, 04 Jan 2003 04:32
152 lines
8645 bytes
8645 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:
>> So... how are you not now just recreating a MIME message?
> I might create a MIME message, others would rather use existing yEnc
> tools -- this is completely backwards compatible for both servers and
> clients.
You're phrasing that as if MIME and yEnc were somehow mutually exclusive,
but a yEnc message is just a (mislabelled) MIME message. Essentially all
Usenet messages are MIME mesages.
Perhaps you're confusing MIME with base64 encoding?
>> Why not just use MIME?
> because then we need changes in NNTP to see any benefit (the enhanced
> CHECK), and extensions to MIME for assuring integrity (to foil attacks).
I don't understand what you're saying. Why does this change what you're
doing at all, and why would you need any extensions at all to MIME? I
don't see how whether you use a MIME message format or not has any impact
at all on the required software support.
>> I mean, if you're reintroducing the idea of headers and metadata,
>> you're talking about something that carries at least as many headers
>> as HTTP traffic does, and HTTP uses MIME.
> ???
What didn't you understand here? I can try to explain more.
>> I posted a bit ago that I thought the right way of handling things is
>> to figure out how to deal with articles of unlimited size, with some
>> sort of chunked encoding for transfer, and you said that was a
>> horrible idea (I thought).
> I missed the bit about chunked encoding. how do you suggest it will
> work?
I don't have any idea; I hadn't really thought about it. There was a lot
of discussion about that in the xBin threads, and I presume that it's
reaching some sort of reasonable conclusion. People were talking about
error correction codes and the like, which is outside of my experience;
people who understand the issues there should design the chunking
protocol.
I'm primarily exploring two basic ideas: first, that the chunked encoding
still use MIME as a way of managing the required metadata; and second,
that to the user the chunking would be made as invisible as possible (in
other words, exposing to the user a complete message that had been
reassembled from the individual xBin parts).
>> Now you're describing xBin as essentially exactly that.
> no, FILE is a possibility iff xBin reaches saturation. assembly is left
> to the client. this is actually a feature people wants, since it is
> common to get parts from several news providers when parts go missing.
> FILE requires the file to complete on each server.
Ah, I see. Hm.
It sounds like you want something that could be assembled either on the
server or on the client; in other words, the server would make available
both the raw xBin messages and the assembled complete messages that it was
able to obtain. Rather than using a separate command to obtain the
assembled messages, it would seem to me to be easier for clients to deal
with if they were put into a separate newsgroup and then accessed with
regular commands. That way, news readers that have absolutely no idea
what xBin is can still get at the articles that a given server with xBin
support has been able to complete.
>> The only difference between what I was talking about and what you're
>> talking about seems to be that you're introducing a new NNTP command
>> for this purpose and I'd just reuse ARTICLE. Why not reuse ARTICLE?
> backwards compatibility. but how do you propose to reuse ARTICLE?
Er... I don't understand the question. It's a message with a message ID.
You send ARTICLE <message-id> to the server and it returns the assembled
message.
> e.g., headers are kept verbatim[1], bodies are decoded into binary.
> it's a bit ugly, but it should work.
> [1] is it allowed for gateways to rewrite headers, I'm thinking
> changing the quoted word algorithm from Q to B, or the charset
> specification when equivalent?
If the message goes through e-mail, a lot of really annoying things
happen, like changing all of the e-mail addresses found in the headers by
canonicalizing CNAMEs. sendmail does some really horrible mangling to
headers.
>> The restriction to base64 is due to the requirement in e-mail to
>> support 7-bit environments. One could easily define an equivalent to
>> message/partial that doesn't have that restriction for use in
>> environments where 8-bit support is assured.
> "easily"? well, perhaps. an unknown message/foo must be treated as
> application/octet-stream, so it will require changes in the client.
An unknown application/foo. You can't use message/*; that whole section
of the content-type space is reserved for things that are 7-bit
compatible.
> (again, xBin requires no change in the client.)
How can it not require any change in the client when the client has to do
reassembly?
>> So given that, what I don't understand is why not approach this from
>> the perspective of finding a way to accomodate unlimited-length MIME
>> messages with server-side chunking and reassembly, generating new
>> messages using an "enclosing" MIME type analogous to message/partial
>> that carry the metadata like the checksum tree and xBin message IDs,
>> that when reassembled yield a regular Usenet message with an encoded
>> binary embedded in it in the normal fashion?
> come up with a plan, and I'll listen. xBin works today, with no
> infrastructure changes.
That *is* a plan. What specifically are you looking for? I can't tell
you exactly what parameters the xBin MIME content type will require until
you've finished designing what metadata xBin needs to know.
Besides, no one's demanding xBin have a plan yet. :) We're still talking
about ideas and approaches. I think asking for a plan at this point is
somewhat premature.
> the encoding won't change at all! xBin _only_ changes the Message-ID
> and adds a header X-Bin-Signature. that's all it cares about.
Okay, I think I'm not understanding what xBin is getting at, and the only
messages that I've seen that try to spell out the fundamentals have been
rather long. Could you give me the capsule summary of what the changes
are in xBin?
There's a message ID convention and a header. I understand that. But
Curt was talking about off-lining the binaries into a separate
distribution method and leaving pointers behind so that clients could
fetch them (or was that one of your earlier messages?). And now this
sounds like it's just a minor modification to an existing article. I
think I need a high-level overview, since I'm just getting more confused.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sat, 04 Jan 2003 04:41
Date: Sat, 04 Jan 2003 04:41
36 lines
3523 bytes
3523 bytes
Russ Allbery <rra@stanford.edu> writes:
> Okay, I think I'm not understanding what xBin is getting at, and the
> only messages that I've seen that try to spell out the fundamentals have
> been rather long. Could you give me the capsule summary of what the
> changes are in xBin?
Never mind; I went back and re-read Curt's message. I should have done
that in the first place. I'm sorry about the extra noise.
It looks like I've been confusing a lot of details about where you or Curt
want to go in the long run with what xBin itself does. xBin is just a
message ID and hierarchical hash system intended to designate which
messages are parts of multipart binaries and providing a way to confirm
that one has all the right parts.
Fair enough. Sure, that's easy to support and sounds like a good idea
from the perspective of incremental improvement. It doesn't really
address any of the fundamental brokenness of the way that binaries are
handled on Usenet, but it does provide a hook for servers to filter out
large binaries that use xBin if that's what they want to do. It doesn't
provide any way to filter out large binaries of particular types but not
other types, but that's not the problem it was trying to solve.
I'm not disagreeing with xBin; I'm instead talking about what I think
needs to be done to make things really work well rather than just making
the hacks we have to put up with now somewhat more palatable. xBin seems
to be very much in the latter camp, although if everyone used it, at least
part of the filtering problem would be easier.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: greg andruk
Date: Sat, 04 Jan 2003 04:42
Date: Sat, 04 Jan 2003 04:42
45 lines
4254 bytes
4254 bytes
Russ Allbery wrote: > I mean, if you're reintroducing the idea of headers and metadata, you're > talking about something that carries at least as many headers as HTTP > traffic does, and HTTP uses MIME. One really useful property of HTTP entities is that they don't exactly use MIME at the top level. In the context of all this xbin-ish discussion, an important consequence of that change is that message/partial and its restrictions become superfluous. An entity is an entity, and any encoding or splitting is negotiated at transfer time. I'll see about posting some of the notes I've got on a binary article format this weekend. At this point I actually see it being more useful as a messaging extension to the p2p idea than a binary extension to news, but if everyone else can post outlandish ideas, so can I. >> you're right, this is a problem with the hypothetical NNTP FILE, but not >> a large one. FILE (in my mind) essentially collects all the articles, >> decodes them, and send the file data verbatim to the client. > Okay... now I'm really confused. > I posted a bit ago that I thought the right way of handling things is to > figure out how to deal with articles of unlimited size, with some sort of > chunked encoding for transfer, and you said that was a horrible idea (I > thought). Now you're describing xBin as essentially exactly that. The FILE command strikes me as a weakened reimplementation of HTTP GET. Yes, HTTP can be verbose, but that because it supports a bunch of the functionality on the wish-list-sort-of-thing being accumulated in this thread,. > The only difference between what I was talking about and what you're > talking about seems to be that you're introducing a new NNTP command for > this purpose and I'd just reuse ARTICLE. Why not reuse ARTICLE? One point in favor of not recycling the existing ARTICLE/IHAVE/TAKETHIS family would be that it puts a wall between binary transfers and the dot-stuffed transfer method. A mode switch or qualifier using the existing verbs makes it easier to mismatch things. (keep in mind that people have a tendency to learn about these protocols more by opening up a telnet session and playing rather than reading specs, and that implementations often reflect that approach.)
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sat, 04 Jan 2003 05:52
Date: Sat, 04 Jan 2003 05:52
23 lines
1833 bytes
1833 bytes
Rene <invalid@email.addr> wrote: >> I'm certainly not suggesting that xBin should require crypto signatures. >> At this point, I'm really just saying, "hey, both things could work." > > Yes I agree. I am however more convinced that it *does* work :) At least, > both kind of systems are in use today. Its all a matter to adapt it to > usenet. The thing I'm not happy with is the overloading of the Message-ID. Other than that, the whole thing sounds good. >> Yeah, but PGP already has a perfectly good one, so that seems to be to be >> a solved problem. > > Question is if they let everyone use it for their ideas. Ok if the keys are > PGP-Keys, there is supposedly no problem. Well, I'm certainly not suggesting that we devise a brand new cryptosystem. :) -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeffrey M. Vinocur
Date: Sat, 04 Jan 2003 07:26
Date: Sat, 04 Jan 2003 07:26
20 lines
1891 bytes
1891 bytes
In article <ylsmw9o7br.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > >I'm not disagreeing with xBin; I'm instead talking about what I think >needs to be done to make things really work well rather than just making >the hacks we have to put up with now somewhat more palatable. xBin seems >to be very much in the latter camp, although if everyone used it, at least >part of the filtering problem would be easier. It might be wise to work out the header/metadata issues at the same time, and announce that approximately simultaneously with xBin. Then (assuming client authors implement it) when people upgrade to get support for xBin, they'll get things they don't even know they need at the same time. -- Jeffrey M. Vinocur jeff@litech.org
Re: xBin (Power-Post 2003 - requesting input from authorities..)
Author: Jeremy
Date: Sat, 04 Jan 2003 09:17
Date: Sat, 04 Jan 2003 09:17
16 lines
1650 bytes
1650 bytes
The Profiteer <TheProfiteerBITESPAM@iplweb.org> wrote: > Am I just dreaming? I'd bet I'm not making this up. Communication gap, would be my first bet. You call them "headers", but you really mean "overviews". "Headers" are something entirely different. Some newsreaders tell you they are retrieving "headers" when in fact they are retrieving overviews, and that lie has caused much confusion over the years between end-users and news admins. Essentially no one stores headers and article bodies in two different places. Many people do store articles and overviews in different places. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sat, 04 Jan 2003 10:30
Date: Sat, 04 Jan 2003 10:30
51 lines
3503 bytes
3503 bytes
Curt Welch <curt@kcwc.com> wrote: > Why not encourage the "file distribution" problem into another realm which > works better for that, and let us include small jpg drawings in our text > messages or a picture of our car or a hamster or 2 without fear of being > called a usenet "abuser". > > I'm not sure how you can deal with "size abuse" on the text side of Usenet > (500KB animated gifs with midi in signatures), but I do feel things would > be better if we could "logically" split off how the big binaries are dealt > with. The way I see it, what you want isn't to split off "big binaries" from everything else at the protocol level; it's the ability for a newsgroup to specify what kinds of content are allowed there and what kinds aren't. Of course, in order to do so, you need useful metadata in the articles, and you need metadata about the newsgroups, neither of which we have right now. In the articles, you need metadata specifying what kind of things are in the post (like you get with MIME), and for the newsgroups you need a way to say "here, you can post jpegs" without needing to also say "here, you can post 4 gig DVD images". That is, not "binary vs. non-binary", but finer details of exactly what sort of things are allowed and what aren't. At that point, "how do you best post a 4 gig DVD image" becomes an entirely different problem to solve, which can be tackled on its own, and by different people if necessary. The idea here is to come up with new ideas, but make them "building blocks" which can interoperate with other new ideas about solving other problems. Limit the development of an idea to solving the problem or problems it is suited to solve, without getting in the way of solving other problems. Let xBin solve the problem of "how do I post a 4 gig DVD image and let people find the pieces and repost missing pieces", and do it in a way where you can take the finished product and toss it in with the solutions for the other stuff without getting in their way. If that means doing something weird and new to make 4 gig DVD images easier to post and download, that's great. But if the solution is to take them off Usenet, you might as well just take them off Usenet. >> and that really doesn't exploit any of the real features of Usenet or >> NNTP, > > Then why is 90% of usenet used for this and not for your "cool stuff?" 90% by volume doesn't mean much, really. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sat, 04 Jan 2003 10:48
Date: Sat, 04 Jan 2003 10:48
35 lines
2664 bytes
2664 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > it's one step along the way. I still want a more advanced IHAVE > dialog which presents more information (Newsgroups, Content-Type) to > the recipient, but that requires changes at both servers. This does keep coming up, from time to time, and I'm not sure I get why. Historically, feed configuration in terms of what sort of stuff gets sent and what doesn't is done on the *sending* server, which seems to me to be a better idea, since the sending server has access to a lot more information about the article than would be desirable to send when offering that article to a peer. Right now, if I don't want 3 meg articles sent to my server, I ask my peers not to send them. If I don't want alt.binaries.boneless, I ask my peers not to send it. Given a way to determine what's in an article, not just whether it's a binary but what *kind* of binary is in there, a server could be configured to send certain stuff and not send certain other stuff, just like we do now only operating on different information. Getting detailed with it could end up being a complicated configuration, but making complex stuff simple is what we *do*. And then, if we get to the point where the rules can be specified per-newsgroup, the whole thing can be controlled with newsgroup inclusion or exclusion, exactly like we do now, and it's a lot more efficient than sending tons of metadata in what would end up being a whole lot of completely unnecessary IHAVE/CHECK transactions. You have to process hundreds of those things per second. Let xBin do what it's designed for; let the feed-control stuff be solved elsewhere. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sat, 04 Jan 2003 11:02
Date: Sat, 04 Jan 2003 11:02
36 lines
2423 bytes
2423 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: >> Why not just use MIME? > > because then we need changes in NNTP to see any benefit (the enhanced > CHECK), and extensions to MIME for assuring integrity (to foil > attacks). What you're defining with xBin essentially *is* an extention to MIME, it's just not admitting it. I've already started down the road of figuring out how to post file segments; I was using MD5 hashes to identify files. What you're talking about here seems to me to simply be a better way to identify files. The MD5 method is already defined in MIME. Why not just make xBin hash trees a replacement for that? > yes. we haven't specified how xBin interacts with MIME, but the > natural thing to do is to just hash the entire top-level message sans > the metadata. this means that you can send a JPEG, and xBin will hash > the JPEG itself, or you can send a nested MIME document, and xBin will > hash the textual representation of the entire MIME document. No, I don't think that's right. xBin is about hashing files, not messages. What you want to be looking at to hash is one MIME entity. > come up with a plan, and I'll listen. xBin works today, with no > infrastructure changes. Please don't take this the way of yEnc. We have back hacks being bolted on top of bad hacks because "it works now!". If the infrastructure needs to change, then let's talk about that. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 11:20
Date: Sat, 04 Jan 2003 11:20
71 lines
4312 bytes
4312 bytes
[Russ Allbery]: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes: > > [Russ Allbery]: > > >> So... how are you not now just recreating a MIME message? > > > I might create a MIME message, others would rather use existing > > yEnc tools -- this is completely backwards compatible for both > > servers and clients. > > You're phrasing that as if MIME and yEnc were somehow mutually > exclusive, but a yEnc message is just a (mislabelled) MIME > message. yEnc does not require MIME at all. > Essentially all Usenet messages are MIME mesages. there are a lot of messages without MIME-Version. > > e.g., headers are kept verbatim[1], bodies are decoded into binary. > > it's a bit ugly, but it should work. > > > > [1] is it allowed for gateways to rewrite headers, I'm thinking > > changing the quoted word algorithm from Q to B, or the charset > > specification when equivalent? > > If the message goes through e-mail, a lot of really annoying > things happen, like changing all of the e-mail addresses found in > the headers by canonicalizing CNAMEs. sendmail does some really > horrible mangling to headers. I guess I should have been more clear: I'm talking about the headers internal to the MIME structure. > >> The restriction to base64 is due to the requirement in e-mail to > >> support 7-bit environments. One could easily define an equivalent to > >> message/partial that doesn't have that restriction for use in > >> environments where 8-bit support is assured. > > > > "easily"? well, perhaps. an unknown message/foo must be treated as > > application/octet-stream, so it will require changes in the client. > > An unknown application/foo. You can't use message/*; that whole section > of the content-type space is reserved for things that are 7-bit > compatible. an application/foo which has state across parts? that seems just wrong. > That *is* a plan. no, that's handwaving. > What specifically are you looking for? I want specific criticism on what's wrong with xBin, and preferably a suggestion on how it can be solved by other means. > Besides, no one's demanding xBin have a plan yet. :) We're still > talking about ideas and approaches. I think asking for a plan at > this point is somewhat premature. most of the stuff is more or less settled. a lot of it can be implemented already. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 11:49
Date: Sat, 04 Jan 2003 11:49
65 lines
4230 bytes
4230 bytes
[Jeremy]: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > >> Why not just use MIME? > > > > because then we need changes in NNTP to see any benefit (the enhanced > > CHECK), and extensions to MIME for assuring integrity (to foil > > attacks). > > What you're defining with xBin essentially *is* an extention to > MIME, it's just not admitting it. > > I've already started down the road of figuring out how to post > file segments; I was using MD5 hashes to identify files. What > you're talking about here seems to me to simply be a better way to > identify files. The MD5 method is already defined in MIME. Why > not just make xBin hash trees a replacement for that? you're referring to Content-MD5, RFC 1864, right? by all means, call X-Bin-Signature Content-SHA1-Tree instead. note that xBin as proposed requires information from the Message-ID (file size and offset), this probabably should be duplicated in this header. > > yes. we haven't specified how xBin interacts with MIME, but the > > natural thing to do is to just hash the entire top-level message > > sans the metadata. this means that you can send a JPEG, and > > xBin will hash the JPEG itself, or you can send a nested MIME > > document, and xBin will hash the textual representation of the > > entire MIME document. > > No, I don't think that's right. xBin is about hashing files, not > messages. What you want to be looking at to hash is one MIME > entity. that would be nice. note that the split through a single file must happen on a $BLOCKSIZE boundary for the hashing algorithm to work, so you can't transmit arbitrary MIME messages. we need a few changes to xBin: in multi file messages (which _can_ span several articles), the root hash used in the Message ID is the hash of the concatenation of the root hash of each member file. the file size is the sum of the file sizes. oh, bummer! the offset gets unaligned wrt the block size. oh well, doing it in octets only needs another two characters. the xBin msgid should also have a tag to note the number of constituent files (defaults to 1, of course). this is rather complex to get right, and I don't think we should require an xBin implementation to contain multi-file support. but you're right, it's a lot cleaner to do it this way. > > come up with a plan, and I'll listen. xBin works today, with no > > infrastructure changes. > > Please don't take this the way of yEnc. We have back hacks being > bolted on top of bad hacks because "it works now!". If the > infrastructure needs to change, then let's talk about that. the greatest big bad hack of all is MIME, you know. MIME would've been a lot nicer if they could assume changes to infrastructure. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 12:03
Date: Sat, 04 Jan 2003 12:03
17 lines
1697 bytes
1697 bytes
[Kjetil Torgrim Homme]: > > [Jeremy]: > > > > No, I don't think that's right. xBin is about hashing files, not > > messages. What you want to be looking at to hash is one MIME > > entity. > > that would be nice. ah, this won't work -- you can't put headers in the middle of a MIME entity... this requires a new form of message/partial. ideas? -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Kai Henningsen
Date: Sat, 04 Jan 2003 12:29
Date: Sat, 04 Jan 2003 12:29
30 lines
2577 bytes
2577 bytes
rra@stanford.edu (Russ Allbery) wrote on 03.01.03 in <ylvg16gkp8.fsf@windlord.stanford.edu>: > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes: > One of the really useful bits of metadata that e-mail messages carry that > I would expect xBin to also be interested in is the Content-Type header, > which tells you what type of file you're dealing with. With proper use of > that header, you can make decisions like "I want all images, but don't > want any music files or videos." But if one moves away from the e-mail > format, where do you carry that information? > > > consider this: xBin is a message/partial which works for Usenet. > > whatever is inside doesn't matter. You don't want message/partial for this, you want message/external-body. That is what MIME invented expressly for the purpose to refer to stuff outside of the actual message as part of that message - the kind of application HTML does with <img ...>, for example. Specifically, with message/external-body, you describe the object and include a reference that tells the reader how to actually get it, presumably via some non-mail protocol (but it can also support getting it from a mail server). Kai -- http://www.westfalen.de/private/khms/ "... by God I *KNOW* what this network is for, and you can't have it." - Russ Allbery (rra@stanford.edu)
Re: Power-Post 2003 - requesting input from authorities..
Author: The Profiteer
Date: Sat, 04 Jan 2003 15:00
Date: Sat, 04 Jan 2003 15:00
45 lines
3689 bytes
3689 bytes
On Thu, 02 Jan 2003 22:12:46 -0800, Russ Allbery <rra@stanford.edu> tossed the following into news.software.nntp: >Second, as the content centralizes on the few servers willing to try to >carry it all, I would expect the ability and willingness of the content >owners to exert legal pressure to go up a lot. It's one thing to try to >track down content on thousands of servers all over the world; it's quite >another to track down content on a dozen sites all run by commercial >companies that you can easily locate and serve. The way things are going right now (and for at least the past couple of years) is that while it's true there are fewer and fewer "free" (ie ISP provided) full-feed servers, the number of "pay" full-feed providers is growing. Almost monthly in a.b.n-s-c we see a new provider coming online, and the Easynews/SuperNews/GigaNews/Newsreader/Usenetserver/Ultrafeed/etc. folks all seem to have some sort of business model that is letting them survive and grow to keep up. I mean, there's even been hints that Supernews and Altopia (of all people) are going to soon have longer multi-part binary retention! There are business models out there that are obviously succeeding in this massive content distribution network that Usenet is becoming, so IMHO though the naysayers will likely argue the point I just don't see us getting to a "content centralizes on the few servers" point any time soon. For sure the demand for the content continues to grow daily, and with more demand comes more cash funneling into the pockets of the NSP's, and others out there see them succeeding and say "I can make money at that too!" (some do...some don't <G>) and along come more NSP's into the fray. More full-feed NSP's means more peering partners are out there, thus offering the potential for reducing the actual peering costs for all every NSP's and they can buy more disk's and servers to keep up. A CDN gets more and more efficient, and each node consumes less and less bandwidth between themselves, as the number of nodes grows, even though the actual total amount of data in and out of the CDN is growing all the time. I think the model has applicability to Usenet bunnies for as long as they survive. Be Well my brother... Prof Positronic Replicant Optimized for Fighting --
Re: xBin (Power-Post 2003 - requesting input from authorities..)
Author: The Profiteer
Date: Sat, 04 Jan 2003 15:10
Date: Sat, 04 Jan 2003 15:10
35 lines
2651 bytes
2651 bytes
On Sat, 4 Jan 2003 09:17:56 +0000 (UTC), Jeremy <jeremy@exit109.com> tossed the following into news.software.nntp: >The Profiteer <TheProfiteerBITESPAM@iplweb.org> wrote: > >> Am I just dreaming? I'd bet I'm not making this up. > >Communication gap, would be my first bet. You call them "headers", but >you really mean "overviews". "Headers" are something entirely different. >Some newsreaders tell you they are retrieving "headers" when in fact they >are retrieving overviews, and that lie has caused much confusion over the >years between end-users and news admins. > >Essentially no one stores headers and article bodies in two different >places. Many people do store articles and overviews in different places. Yes...that makes sense. I understand the difference, and now that you drop the word "overview" on my head the light comes on. Yes, Frank is right, it wouldn't make sense to store "headers" and "articles" separate, but overviews...sure. And that's the problem I see developing if xBin moves the "file" to some different storage/transmission "place" or "protocol" than the "headers" (or "overviews" too). If an "overview" can get out of sync with the "articles" on news servers with the volume of a few years ago, imagine how out of sync the "files" could get if they're treated separately in xBin without a very tight synchronization??? Be Well my brother... Prof Positronic Replicant Optimized for Fighting --
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 15:34
Date: Sat, 04 Jan 2003 15:34
151 lines
6200 bytes
6200 bytes
[Kjetil Torgrim Homme]:
>
> [Kjetil Torgrim Homme]:
> >
> > [Jeremy]:
> > >
> > > No, I don't think that's right. xBin is about hashing files, not
> > > messages. What you want to be looking at to hash is one MIME
> > > entity.
> >
> > that would be nice.
>
> ah, this won't work -- you can't put headers in the middle of a
> MIME entity... this requires a new form of message/partial.
> ideas?
let's see:
single files:
plain uuencode or yEnc: no problem, we put it in the article
headers
MIME: we can do a slight layering violation and put it in the
article headers
multiple files:
plain uuencode or yEnc: it can be done, but I don't think we want
to support this. basically, the Content-SHA1-Tree must appear as
if it were plain text between files.
MIME: if each file fits within a part, we can put it in the entity
headers. if the files are small, we may even fit several files in
each part. the size of each part may thus vary wildly. if the
file needs to be split, we put the the first Content-SHA1-Tree in
entity headers and in the article headers for the other segments.
actually, it's probably best to use the multiple files mechanism even
for single files, the difference is so small, and it makes more sense.
here's an example of the multiple file case:
=== article 1 ===
Subject: foo [1/3]
From: friendly poster
Message-ID: <$UB$Hsomehash$Ssomesize$MC@somewhere>
MIME-Version: 1.0
Content-Type: message/partial; number=1; total=3;
id="somehash@somewhere"
Subject: foo
From: friendly poster
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=unlikelystring4711
--unlikelystring4711
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo-frontcover.jpg"
Content-SHA1-Tree: ....
DSdss234hjkfsd23....
--unlikelystring4711
Content-Type: audio/mpeg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo-low.mp3"
Content-SHA1-Tree: the hash tree for the chunk in this article
ghjfsd98s2/jJsj2...
=== ends ===
I'll stop here to explain: the first stanza is the article headers.
when a message/related is assembled, that is thrown away, it only
keeps whatever is inside: the bodies of the message/related parts.
this is why some headers are replicated above: they become the headers
of the assembled full article.
next comes the multipart declaration. after each "unlikelystring4711"
we first have the entity headers, then the data in the entity.
=== article 2 ===
Subject: foo [2/3]
Message-ID: <$UB$Hsomehash$Ssomesize$Osomeoffset@somewhere>
MIME-Version: 1.0
Content-Type: message/partial; number=2; total=3;
id="somehash@somewhere"
Content-SHA1-Tree: the hash tree values for the chunk of
the MPEG sound file which is in this article.
fhsdjfdsjsfd...
=== ends ===
notice how part 2 contain no entity headers, just unadorned BASE64
data in its body.
=== article 3 ===
Subject: foo [3/3]
Message-ID: <$UB$Hsomehash$Ssomesize$Osomeoffset@somewhere>
MIME-Version: 1.0
Content-Type: message/partial; number=3; total=3;
id="somehash@somewhere"
Content-SHA1-Tree: the hash tree values for the chunk of
the MPEG sound file which is in this article.
jhDSsD10A/DHgghiqp....
--unlikelystring4711
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo-backcover.jpg"
Content-SHA1-Tree: the hash tree for this JPEG
pQ3d/dsmndDsdwEoi...
--unlikelystring4711
=== ends ===
note that the Content-SHA1-Tree in the article's headers only cover
the MP3, and the JPEG file following it can specify its own
Content-SHA1-Tree header in its entity headers.
this scheme is of course backwards compatible, and can be processed by
existing MIME clients.
the single file case is a little simpler:
=== article 1 ===
Subject: foo [1/3]
From: friendly poster
Message-ID: <$UB$Hsomehash$Ssomesize@somewhere>
MIME-Version: 1.0
Content-Type: message/partial; number=1; total=3;
id="somehash@somewhere"
Subject: foo
From: friendly poster
MIME-Version: 1.0
Content-Type: audio/mpeg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo-low.mp3"
Content-SHA1-Tree: the hash tree for the chunk in this article
ghjfsd98s2/jJsj2...
=== ends ===
it's a bit annoying that the hashes for the first part won't be
available through HEAD, but it's not that important.
--
Kjetil T. | read and make up your own mind
| http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Thomas
Date: Sat, 04 Jan 2003 15:37
Date: Sat, 04 Jan 2003 15:37
15 lines
1953 bytes
1953 bytes
Jeremy wrote: > The thing I'm not happy with is the overloading of the Message-ID. Other > than that, the whole thing sounds good. That's only done so articles can be refused in the check stage. This is an important feature, I think. And it is somewhat of a fit - the message really should be the file, and not the article. Thus a server could refuse reposts if it has seen the file completely. Thomas
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 15:43
Date: Sat, 04 Jan 2003 15:43
19 lines
2074 bytes
2074 bytes
[Kai Henningsen]: > > You don't want message/partial for this, you want > message/external-body. That is what MIME invented expressly for > the purpose to refer to stuff outside of the actual message as > part of that message - the kind of application HTML does with <img > ...>, for example. > > Specifically, with message/external-body, you describe the object > and include a reference that tells the reader how to actually get > it, presumably via some non-mail protocol (but it can also support > getting it from a mail server). what protocol would that be? -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeffrey M. Vinocur
Date: Sat, 04 Jan 2003 16:36
Date: Sat, 04 Jan 2003 16:36
30 lines
2147 bytes
2147 bytes
In article <1041677302.307496@ok-corral.gunslinger.net>, Jeremy <jeremy@exit109.com> wrote: >Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > >> I still want a more advanced IHAVE dialog which presents more >> information (Newsgroups, Content-Type) to the recipient Careful, that will make it more expensive. Potentially a lot more expensive. >This does keep coming up, from time to time, and I'm not sure I get >why. Historically, feed configuration in terms of what sort of stuff >gets sent and what doesn't is done on the *sending* server, which seems >to me to be a better idea, since the sending server has access to a lot >more information about the article than would be desirable to send when >offering that article to a peer. Very much agreed. What we *do* need is a way to get this configured a bit more modern than emailing the remote news admin. This is something that interests me, so I hope we get to it, but it doesn't need to be now. -- Jeffrey M. Vinocur jeff@litech.org
Re: xBin (Power-Post 2003 - requesting input from authorities..)
Author: Curt Welch
Date: Sat, 04 Jan 2003 16:36
Date: Sat, 04 Jan 2003 16:36
21 lines
2427 bytes
2427 bytes
The Profiteer <TheProfiteerBITESPAM@iplweb.org> wrote: > And that's the problem I see developing if xBin moves the "file" to some > different storage/transmission "place" or "protocol" than the "headers" > (or "overviews" too). If an "overview" can get out of sync with the > "articles" on news servers with the volume of a few years ago, imagine > how out of sync the "files" could get if they're treated separately in > xBin without a very tight synchronization??? Yeah, it's the same problem as keeping overviews in sync with the articles which some servers do better than others. Any atempt at separating headers from the data would have to be done correctly or else it would cause unlimited amounts of confusion. But that's not an xBin problem because xBin isn't "doing it". It's a news server design issue if anyone wanted to try and do things like that once xBin created the environment where it would be possible. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Power-Post 2003 - requesting input from authorities..
Author: David Magda
Date: Sat, 04 Jan 2003 16:53
Date: Sat, 04 Jan 2003 16:53
42 lines
3428 bytes
3428 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
[...]
> yes. we haven't specified how xBin interacts with MIME, but the
> natural thing to do is to just hash the entire top-level message sans
> the metadata. this means that you can send a JPEG, and xBin will hash
From RFC 2045 (MIME):
content := "Content-Type" ":" type "/" subtype
*(";" parameter)
and using the parameter for hold some data?
Content-Type: application/x-xbin; version=1; filename="dr_who.mpeg" \
; mimetype="video/mpeg" \
; encoding="base64" (or yEnc, or UUencoded, or...?) \
; totalparts=40; thispart=3; \
; checksum=<CRC-32 of this part perhaps?> \
; hash=<MD5/SHA1 of whole file>
or some such. This could be either optional or mandatory. This would
be constrained by line length limitation (the '\'s are used by me to
neatness).
If you can create a new MIME type (even if it's an unofficieal "X-"
type) then it would create more flexibility. Then inside you could
have whatever you want.
The "Content-Transfer-Encoding" could also perhaps be used with an
unofficial "X-" type. Going through the RFC I didn't find the answer:
is the CTE mandatory in MIME?
You could then put in whatever metadata inside the body as you see
fit (more info, the same, or less), but at least the headers would
also hold some information.
--
David Magda <dmagda at ee.ryerson.ca>
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: Power-Post 2003 - requesting input from authorities..
Author: David Magda
Date: Sat, 04 Jan 2003 17:06
Date: Sat, 04 Jan 2003 17:06
13 lines
1722 bytes
1722 bytes
Thomas <zak@spam.invalid> writes: [...] > And it is somewhat of a fit - the message really should be the file, > and not the article. [...] This reminds me of Marshall McLuhan. :> -- David Magda <dmagda at ee.ryerson.ca> Because the innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may do well under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: Power-Post 2003 - requesting input from authorities..
Author: David Magda
Date: Sat, 04 Jan 2003 17:10
Date: Sat, 04 Jan 2003 17:10
17 lines
1823 bytes
1823 bytes
Jeremy <jeremy@exit109.com> writes:
[...]
> > Then why is 90% of usenet used for this and not for your "cool stuff?"
>
> 90% by volume doesn't mean much, really.
Sturgeon's Law:
Ninety percent of everything is crud.
http://www.tuxedo.org/~esr/jargon/html/entry/Sturgeon's-Law.html
--
David Magda <dmagda at ee.ryerson.ca>
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 17:28
Date: Sat, 04 Jan 2003 17:28
51 lines
3728 bytes
3728 bytes
[David Magda]:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [...]
> > yes. we haven't specified how xBin interacts with MIME, but the
> > natural thing to do is to just hash the entire top-level message sans
> > the metadata. this means that you can send a JPEG, and xBin will hash
>
> From RFC 2045 (MIME):
>
> content := "Content-Type" ":" type "/" subtype
> *(";" parameter)
>
> and using the parameter for hold some data?
see my post today, <1risx5gc82.fsf@ellifu.ifi.uio.no>, on how MIME can
be used.
> Content-Type: application/x-xbin; version=1; filename="dr_who.mpeg" \
> ; mimetype="video/mpeg" \
> ; encoding="base64" (or yEnc, or UUencoded, or...?) \
> ; totalparts=40; thispart=3; \
> ; checksum=<CRC-32 of this part perhaps?> \
> ; hash=<MD5/SHA1 of whole file>
>
> or some such. This could be either optional or mandatory. This
> would be constrained by line length limitation (the '\'s are used
> by me to neatness).
the header can be folded, no \ is required.
> If you can create a new MIME type (even if it's an unofficieal
> "X-" type) then it would create more flexibility. Then inside you
> could have whatever you want.
>
> The "Content-Transfer-Encoding" could also perhaps be used with an
> unofficial "X-" type. Going through the RFC I didn't find the
> answer: is the CTE mandatory in MIME?
yes and no. the default CTE is 7bit (an identify encoding), which is
really only useful for plain text.
defining a new CTE is really orthogonal to this issue.
defining a replacement for message/partial is less so, but I think it
still can be kept separate.
--
Kjetil T. | read and make up your own mind
| http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sat, 04 Jan 2003 19:03
Date: Sat, 04 Jan 2003 19:03
46 lines
3786 bytes
3786 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:
>> You're phrasing that as if MIME and yEnc were somehow mutually
>> exclusive, but a yEnc message is just a (mislabelled) MIME message.
> yEnc does not require MIME at all.
I understand that, but that's also not what I said. :)
> I guess I should have been more clear: I'm talking about the headers
> internal to the MIME structure.
I think there are two basic ways that you can approach this. You can take
the same sort of approach that message/partial takes, namely viewing the
entire message as a unit that the recipient wants to reconstruct, and
applying whatever techniques you want to the entire message. Or you can
dive down into the MIME structure and put together separate hash trees for
each part.
I think the latter is considerably more complicated, and I don't see what
advantage it gives you over the former approach. Why not just treat the
message as an opaque chunk when it comes to doing the xBin thing to it?
> an application/foo which has state across parts? that seems just wrong.
I don't follow what you mean. It doesn't have state across parts; it is
one part. It's a replacement for message/partial that doesn't have the
7-bit restrictions. Why is that wrong?
> I want specific criticism on what's wrong with xBin, and preferably a
> suggestion on how it can be solved by other means.
I don't see anything wrong with xBin, as far as it goes. I don't believe
I've ever said that I saw anything wrong with xBin, as far as it goes. I
don't think that off-lining binaries into a different medium leaves one
working with something that's recognizably Usenet, and I don't think that
xBin by itself solves the fundamental problems. That's what I've been
posting about.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Thomas
Date: Sat, 04 Jan 2003 19:56
Date: Sat, 04 Jan 2003 19:56
47 lines
3278 bytes
3278 bytes
Jeffrey M. Vinocur wrote: >>>I still want a more advanced IHAVE dialog which presents more >>>information (Newsgroups, Content-Type) to the recipient > > Careful, that will make it more expensive. Potentially a lot > more expensive. I was thinking about a hash digestas used by Squid: http://www.squid-cache.org/Doc/FAQ/FAQ-16.html The idea is that you have say 4 content-types you want to hash. You hash each name individually. Say the result is 5F3A, 8A11, F3AA for the 3 types, and we'd like a 16 bit field in the message-ID. For the first content type, we'd set bit 5 and bit F. For the second, we'd set bit 8 and bit A. And for the 3rd, F and 3. This means that in the hash we're sending, bits 3, 5, 8, A and F are set. Now the receiver did this before with the hashes of all content-types it wants (it cannot carry a lot of types with this hash size). If a bit that is set in the sender's hash is NOT set in the receiver's hash, it means that there is a content-type in the message that the receiver does not want. Problem is that the hash would need to be big to work for newsgroups. All the newsgroups would probably OR to a solid FFFFFFFF on the receiver, that cannot reject anything as a result. It probably is a totally wrong solution for the problem. Hmmm... if instead of the bitmap the sender would send the numbers of the set bits (in the above case, send 5F8AF3), the sent representation would still be compact for a large hash. And for the receiver it is possible to look up the pointers in a positive bitmap, and compare to the list of poison groups individually. The manager at the receiving end can also check if any wanted newsgroup hash is conflicting with a desired poison group, and desire accordingly. BUT this makes possible attacks, by choosing a binary newsgroup name that collides with a desired group. That binary group is not going to be poisoned out... Thomas
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeffrey M. Vinocur
Date: Sat, 04 Jan 2003 21:51
Date: Sat, 04 Jan 2003 21:51
38 lines
2580 bytes
2580 bytes
In article <U%GR9.4094$T41.14642@amstwist00>, Thomas <zak@spam.invalid> wrote: >Jeffrey M. Vinocur wrote: > >>>>I still want a more advanced IHAVE dialog which presents more >>>>information (Newsgroups, Content-Type) to the recipient >> >> Careful, that will make it more expensive. Potentially a lot >> more expensive. > >I was thinking about a hash digestas used by Squid: [...] > >It probably is a totally wrong solution for the problem. I entirely agree. Now, if you want to make overview-like information of that sort available to clients, perhaps that's a useful way to do it. But it's not necessary to do this for peering servers. The decision of what to send can and should be done by the sending server. What we need is a better mechanism for peers to tell each other what sort of articles they want. But here's the crux: unlike for the client-server situation (which is what the Squid solution you mention is like, I believe), server-server interactions are long-running and not subject to user whims. As a result, instead of handling this issue separately for each article, the receiving server would describe its criteria only infrequently (and thus hashing and compression may be overkill) and let the *sending* server apply them. (I think I sent a description of some ideas to inn-workers a few months ago. I don't have time to dig it up and discuss it now, though.) -- Jeffrey M. Vinocur jeff@litech.org
Re: Power-Post 2003 - requesting input from authorities..
Author: Rene
Date: Sat, 04 Jan 2003 22:04
Date: Sat, 04 Jan 2003 22:04
28 lines
2266 bytes
2266 bytes
Jeremy <jeremy@exit109.com> wrote: > Rene <invalid@email.addr> wrote: > > Yes I agree. I am however more convinced that it *does* work :) At > > least, both kind of systems are in use today. Its all a matter to adapt > > it to usenet. > > The thing I'm not happy with is the overloading of the Message-ID. Other > than that, the whole thing sounds good. Yes but the rationale for that is that servers can make decision before recieving a message from the msg-id alone. I see the sense in that. On the other hand, the question that arrives is, if a xBin server is offered an article with an xBin hashid it has complete, if it should not accept the message anyway and send it along to its feeds but simply not save it locally. > > Question is if they let everyone use it for their ideas. Ok if the keys > > are PGP-Keys, there is supposedly no problem. > > Well, I'm certainly not suggesting that we devise a brand new > cryptosystem. :) Oh come on - so much fun to be had putting holes in code :) -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities..
Author: Rene
Date: Sat, 04 Jan 2003 22:26
Date: Sat, 04 Jan 2003 22:26
27 lines
3060 bytes
3060 bytes
Russ Allbery <rra@stanford.edu> wrote: > I don't see anything wrong with xBin, as far as it goes. I don't believe > I've ever said that I saw anything wrong with xBin, as far as it goes. I > don't think that off-lining binaries into a different medium leaves one > working with something that's recognizably Usenet, and I don't think that > xBin by itself solves the fundamental problems. That's what I've been > posting about. Well depending on what exactly you mean by the fundamental problem the solution varies. But if you cover binary news transport without the cludge today called splitting and sending houndreds of articles, I don't think that will work without a radical redesign of how nntp works. Which basically means designing nntp2. But that's a tremendous task, not to mention that alone getting that accepted will probably be a full-time job. On the other hand, should xBin take off and gets widely accepted, then servers will start to take advantage of it and process xBin postings differently. They will start treating them as files, not articles. Should then that be good and make the situation better (whatever that means...) then at least it would make the people more receptable towards some more radical change which would allow to fix the fundamental problem of binary usenet. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sat, 04 Jan 2003 22:44
Date: Sat, 04 Jan 2003 22:44
20 lines
2613 bytes
2613 bytes
Rene <invalid@email.addr> writes:
> On the other hand, should xBin take off and gets widely accepted, then
> servers will start to take advantage of it and process xBin postings
> differently. They will start treating them as files, not articles.
So, given a sequence of postings that use xBin, what is the "file" that
they represent? The headers of the first message plus the concatenation
of all of the bodies? Just the concatenation of all of the bodies? The
decoded binary present in the messages with all ASCII text stripped, with
multiple binaries in a message not supported?
I'm still not quite clear on that part.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Rene
Date: Sat, 04 Jan 2003 23:04
Date: Sat, 04 Jan 2003 23:04
33 lines
3095 bytes
3095 bytes
Russ Allbery <rra@stanford.edu> wrote: > So, given a sequence of postings that use xBin, what is the "file" that > they represent? The headers of the first message plus the concatenation > of all of the bodies? Just the concatenation of all of the bodies? The > decoded binary present in the messages with all ASCII text stripped, with > multiple binaries in a message not supported? The headers of any one of those messages plus all the articles bodies under the condition that this was one single posting of one entire file. (ok wait, I reread your question. The file and only the file is really just the "payload", all the binary data in the message body.) It is not really that different from what is currently done. It just adds enough data so that automatic searches for all (or some missing) parts becomes trivial. The power lies in the fact that each file carries one unique signature which only this file can have : its file hash (the root node of the hash tree) Every repost, every article containing parts of that file carries this hash so tools can automatically spot parts of that file (and single out those they want) > I'm still not quite clear on that part. Hope that clears it up a bit. Yes I know the discussion threads are quite large. I'm having problems navigating the discussion tree myself. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sat, 04 Jan 2003 23:17
Date: Sat, 04 Jan 2003 23:17
43 lines
3680 bytes
3680 bytes
Rene <invalid@email.addr> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> So, given a sequence of postings that use xBin, what is the "file" that
>> they represent? The headers of the first message plus the
>> concatenation of all of the bodies? Just the concatenation of all of
>> the bodies? The decoded binary present in the messages with all ASCII
>> text stripped, with multiple binaries in a message not supported?
> The headers of any one of those messages plus all the articles bodies
> under the condition that this was one single posting of one entire
> file. (ok wait, I reread your question. The file and only the file is
> really just the "payload", all the binary data in the message body.)
What's being hashed? Just the body? Just the decoded body? (With any
ASCII text around the encoded binary stripped?)
> The power lies in the fact that each file carries one unique signature
> which only this file can have : its file hash (the root node of the hash
> tree)
This is the file after decoding, yes?
This would imply that multiple binaries could not be included in the same
posting that used xBin. Is that correct?
> Hope that clears it up a bit. Yes I know the discussion threads are
> quite large. I'm having problems navigating the discussion tree myself.
I feel kind of bad about going to question/answer to figure out
information that doubtless has already been posted to the group, but the
thread was *so* long that I honestly lost track completely of what was
being proposed.
In penance, as soon as I understand what's being proposed, I'll try to
write up a short summary for other people who are similarly confused.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Rene
Date: Sun, 05 Jan 2003 00:25
Date: Sun, 05 Jan 2003 00:25
83 lines
5801 bytes
5801 bytes
Russ Allbery <rra@stanford.edu> wrote: > Rene <invalid@email.addr> writes: > > The headers of any one of those messages plus all the articles bodies > > under the condition that this was one single posting of one entire > > file. (ok wait, I reread your question. The file and only the file is > > really just the "payload", all the binary data in the message body.) > > What's being hashed? Just the body? Just the decoded body? (With any > ASCII text around the encoded binary stripped?) Only the file is being hashed, but it is being hashed before it enters usenet. When it is in one piece, it is sequentially processed. One hash is being created for every block (Blocksize 22500 Bytes). These Blocks are saved in the leaves of the hash tree. Then take each two neigbouring hashes and calculate the hash combining those two. This forms the parent node's hash in the tree. Repeat this with all the hashes until you only have one left. This is the root of the tree. Also this hash is the unique identifier of the hash tree (and the file) We synonymously call this the file hash, file id or root hash. This hash "describes" the file you are sending. Every part, every repost bears this hash. A client having the full file can easily verify the "correctness" of the file by recalculating the hash tree. However every single article also contains all the hashes needed to calculate a "path" up to the root (it contains some blocks plus all the complementary hashes needed to arrive at the root) thus every single article containing a part of the file can be verified to be a part of the file it claims to be (by having the root hash in the header) > > The power lies in the fact that each file carries one unique signature > > which only this file can have : its file hash (the root node of the > > hash tree) > > This is the file after decoding, yes? Yes and no, it is calculated before encoding and sending to usenet happens. But after you got all the blocks, you can reconstruct the entire hash tree and you will then have that hash at the root of the tree again. This is not really necessary though, because every article containing parts can be independently verified. > This would imply that multiple binaries could not be included in the same > posting that used xBin. Is that correct? It would technically be possible to do (complicating how the headers are built quite a bit), but it does not really make any sense to include two different files within one xBin article, yes. You include multiple blocks (since a block is only 22500 Bytes long) within one xBin article, but all those blocks belong to one file. And that xBin article "bears the mark of that file" by having this file's hash in its header. > > Hope that clears it up a bit. Yes I know the discussion threads are > > quite large. I'm having problems navigating the discussion tree myself. > > I feel kind of bad about going to question/answer to figure out > information that doubtless has already been posted to the group, but the > thread was *so* long that I honestly lost track completely of what was > being proposed. I do know how it is. I have actually started to print out articles I think I will be looking at again later because I don't easily find them anymore when I want to go back and re-read parts. > In penance, as soon as I understand what's being proposed, I'll try to > write up a short summary for other people who are similarly confused. I thought about doing that myself, actually. But I think it is better someone else does it, not because that would relieve me of the work involved, but because I have some things in my mind fixed and absolutely clear that probably need explanations while I assume these obvious. Just ask the points that seem unclear. However lots of things *are* unclear, otherwise we'd have some nicely written down specification. Almost anything could change, even the blocksize, though I think that's pretty final now. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities..
Author: Rene
Date: Sun, 05 Jan 2003 00:26
Date: Sun, 05 Jan 2003 00:26
12 lines
2291 bytes
2291 bytes
Rene <invalid@email.addr> wrote: > Only the file is being hashed, but it is being hashed before it enters > usenet. When it is in one piece, it is sequentially processed. One hash > is being created for every block (Blocksize 22500 Bytes). These Blocks > are saved in the leaves of the hash tree. Then take each two neigbouring Meant to say "These hashes are saved..." in the sentence above. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Power-Post 2003 - requesting input from authorities..
Author: Thomas
Date: Sun, 05 Jan 2003 10:59
Date: Sun, 05 Jan 2003 10:59
19 lines
2003 bytes
2003 bytes
Jeffrey M. Vinocur wrote: > But here's the crux: unlike > for the client-server situation (which is what the Squid solution > you mention is like, I believe), server-server interactions are > long-running and not subject to user whims. Squid uses it for server-server interaction. Each Squid has its own list of cached data, and it builds the bitmap from that. The bitmaps are rebuilt and exchanged every hour or so. If a user asks for an URL, and it is not on the local disk, Squid looks in the bitmaps it got from other caches to see if the matching bits are set. If so, it forwards the request to the server that gave it that bitmap. Thomas
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sun, 05 Jan 2003 13:54
Date: Sun, 05 Jan 2003 13:54
44 lines
3963 bytes
3963 bytes
[Russ Allbery]: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes: > > I guess I should have been more clear: I'm talking about the > > headers internal to the MIME structure. > > I think there are two basic ways that you can approach this. You > can take the same sort of approach that message/partial takes, > namely viewing the entire message as a unit that the recipient > wants to reconstruct, and applying whatever techniques you want to > the entire message. Or you can dive down into the MIME structure > and put together separate hash trees for each part. > > I think the latter is considerably more complicated, and I don't > see what advantage it gives you over the former approach. Why not > just treat the message as an opaque chunk when it comes to doing > the xBin thing to it? it is a lot cleaner to consider each chunk, and it removes the worry of entity headers being rewritten (or whitespace changed) in a gateway. it's a better fit for the MIME way of doing things. you did read my reply to Jeremy with an example? > > an application/foo which has state across parts? that seems > > just wrong. > > I don't follow what you mean. It doesn't have state across parts; > it is one part. It's a replacement for message/partial that > doesn't have the 7-bit restrictions. Why is that wrong? I'm not aware of any other application/foo which works that way. you're supposed to be able to hand off an individual application/foo file to a helper application, and it will do something useful to it. that won't very well here. message/* and multipart/* are used for mechanisms internal to the workings of MIME decoder. it'd be much better to have a proper message/foo defined. anyhow, this is besides the point. MIME can be extended some other day. you'd only need to add another encoding to the xBin appendices. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sun, 05 Jan 2003 20:07
Date: Sun, 05 Jan 2003 20:07
75 lines
5309 bytes
5309 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> it is a lot cleaner to consider each chunk, and it removes the worry of
> entity headers being rewritten (or whitespace changed) in a gateway.
> it's a better fit for the MIME way of doing things. you did read my
> reply to Jeremy with an example?
Yeah, I get it now. Sorry that I was so slow; I see what you're going for
and the approach makes sense to me.
And yes, for integration with MIME, what makes the most sense to me is to
put the signatures in each part, so each binary MIME segment would have
its own xBin hashes. Which really does argue for something that you'd
also need for proper yEnc integration, namely some sort of MIME type that
represents a fragment of a file (and that also carries with it information
about what the content-type of the assembled file should be).
> I'm not aware of any other application/foo which works that way. you're
> supposed to be able to hand off an individual application/foo file to a
> helper application, and it will do something useful to it. that won't
> very well here.
Why not? In fact, xBin makes that work quite well; the helper application
accumulates parts and assembles them into binaries. Sure, a tighter
integration adds other, more useful features, but that by itself seems
pretty reasonable.
Anyway, there aren't any other alternatives as far as I can tell unless
you invent a new top-level MIME content-type namespace.
> message/* and multipart/* are used for mechanisms internal to the
> workings of MIME decoder. it'd be much better to have a proper
> message/foo defined.
Huh... I thought you couldn't use message/*, but it looks like I was
wrong, or at least I can't see the rule that I thought there was about
message/*. message/rfc822 and message/partial restrict encodings, but it
doesn't look like message/* itself does.
Nonetheless, I really don't believe message/* isn't what you're looking
for. Quoting from RFC 2046:
It is frequently desirable, in sending mail, to encapsulate another
mail message. A special media type, "message", is defined to
facilitate this.
This is not what you're trying to do. You don't want to put a full
message (news or mail) inside the chunking system; you want to put a
single attachment in there that doesn't have its own headers. That
doesn't match the definition of message/*.
multipart/* isn't the droid you're looking for. multipart/* contains
other MIME parts; that's the exact opposite of what you're trying to
build.
> anyhow, this is besides the point. MIME can be extended some other day.
> you'd only need to add another encoding to the xBin appendices.
MIME is completely orthogonal to encodings. The RFC that defines MIME
also defines a base64 encoding so that there's a common starting point,
but all all that MIME proper provides in the encoding department is a
standard way to indicate which encoding that you're using. You can easily
use yEnc or uuencode as part of MIME if you want to (although it's kind of
pointless to use uuencode instead of base64).
Sometimes I'm tempted to write some sort of Eliza bot to automatically
post refutations to people in this newsgroup who say MIME is an encoding
until the point is made through sheer repetition. :)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sun, 05 Jan 2003 22:10
Date: Sun, 05 Jan 2003 22:10
13 lines
1475 bytes
1475 bytes
Thomas <zak@spam.invalid> wrote: >> The thing I'm not happy with is the overloading of the Message-ID. Other >> than that, the whole thing sounds good. > > That's only done so articles can be refused in the check stage. This is an > important feature, I think. As I noted elsewhere, I disagree; I think it's a misfeature. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sun, 05 Jan 2003 22:17
Date: Sun, 05 Jan 2003 22:17
25 lines
2187 bytes
2187 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > MIME: we can do a slight layering violation and put it in the > article headers Why? Is that just so a client can get at it without downloading the body? That's a reasonable goal, but it's a bit confusing in terms of MIME structure to use a header at the top level to describe content at a lower level, when you're also using that header on entities themselves. Content-* headers should apply to the entity they're in the headers of; whether that's the top-level or a lower level of a multipart. So, what is needed is a way to specify the same thing as a Content-SHA1-Tree, and specify that it doesn't apply to "this" entity, it applies to some other one inside this one. That shouldn't be much of a problem; other things have been devised which do this. That way you don't have to suddenly care about the difference between "single file" and "multiple file" posts. A "single part" post is really just a MIME entity with no children. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Sun, 05 Jan 2003 22:29
Date: Sun, 05 Jan 2003 22:29
15 lines
1724 bytes
1724 bytes
Russ Allbery <rra@stanford.edu> wrote: > And yes, for integration with MIME, what makes the most sense to me is to > put the signatures in each part, so each binary MIME segment would have > its own xBin hashes. Which really does argue for something that you'd > also need for proper yEnc integration, namely some sort of MIME type that > represents a fragment of a file (and that also carries with it information > about what the content-type of the assembled file should be). Which, coincidentally, I already invented. All it needs for this is to figure out the best way to include the xBin hash stuff in the metadata. -- Jeremy | jeremy@exit109.com
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Sun, 05 Jan 2003 23:05
Date: Sun, 05 Jan 2003 23:05
69 lines
4884 bytes
4884 bytes
[Russ Allbery]:
>
> And yes, for integration with MIME, what makes the most sense to
> me is to put the signatures in each part, so each binary MIME
> segment would have its own xBin hashes. Which really does argue
> for something that you'd also need for proper yEnc integration,
> namely some sort of MIME type that represents a fragment of a file
> (and that also carries with it information about what the
> content-type of the assembled file should be).
yes, that'd be a lot better than message/partial. actually, it should
be a simple matter of adding a couple of parameters to
Content-Disposition. something like:
Content-Type: audio/mpeg
Content-Disposition: attachment; filename="overdrive.mp3";
size=405000; total-size=6539099; offset=810000
size is an existing parameter, which in RFC 2183 is defined to be the
approximate size of the content. it really is superfluous to include,
but it gives the decode application a little hint so it can do one
malloc rather than realloc realloc realloc.
BTW, if we do this, we can keep that information out of
Content-SHA1-Tree. much cleaner.
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> > I'm not aware of any other application/foo which works that way.
> > you're supposed to be able to hand off an individual
> > application/foo file to a helper application, and it will do
> > something useful to it. that won't very well here.
>
> Why not? In fact, xBin makes that work quite well; the helper
> application accumulates parts and assembles them into binaries.
> Sure, a tighter integration adds other, more useful features, but
> that by itself seems pretty reasonable.
it's not unreasonable, at least.
> > message/* and multipart/* are used for mechanisms internal to the
> > workings of MIME decoder.
>
> [...] This is not what you're trying to do. You don't want to put
> a full message (news or mail) inside the chunking system; you want
> to put a single attachment in there that doesn't have its own
> headers. That doesn't match the definition of message/*.
I think you're right, defining a new Content-Type (an 8bit version of
message/partial) is setting our sights too low.
> multipart/* isn't the droid you're looking for. multipart/*
> contains other MIME parts; that's the exact opposite of what
> you're trying to build.
I know, but it shares that "internal to decoder" characteristic.
> > anyhow, this is besides the point. MIME can be extended some
> > other day. you'd only need to add another encoding to the xBin
> > appendices.
>
> MIME is completely orthogonal to encodings.
sorry, shoddy terminology on my part. let's say "posting convention"
or "mechanism" instead.
--
Kjetil T. | read and make up your own mind
| http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sun, 05 Jan 2003 23:10
Date: Sun, 05 Jan 2003 23:10
24 lines
2241 bytes
2241 bytes
Jeremy <jeremy@exit109.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> And yes, for integration with MIME, what makes the most sense to me is
>> to put the signatures in each part, so each binary MIME segment would
>> have its own xBin hashes. Which really does argue for something that
>> you'd also need for proper yEnc integration, namely some sort of MIME
>> type that represents a fragment of a file (and that also carries with
>> it information about what the content-type of the assembled file should
>> be).
> Which, coincidentally, I already invented. All it needs for this is to
> figure out the best way to include the xBin hash stuff in the metadata.
I think it makes the most sense to add a new Content-* header, because
it's really an equivalent to Content-MD5, not an attribute of the
content-type.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Russ Allbery
Date: Sun, 05 Jan 2003 23:12
Date: Sun, 05 Jan 2003 23:12
35 lines
3158 bytes
3158 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> yes, that'd be a lot better than message/partial. actually, it should
> be a simple matter of adding a couple of parameters to
> Content-Disposition. something like:
> Content-Type: audio/mpeg
> Content-Disposition: attachment; filename="overdrive.mp3";
> size=405000; total-size=6539099; offset=810000
> size is an existing parameter, which in RFC 2183 is defined to be the
> approximate size of the content. it really is superfluous to include,
> but it gives the decode application a little hint so it can do one
> malloc rather than realloc realloc realloc.
Now that's an interesting idea. I wonder what the MIME folks would think
of that, allowing the Content-Disposition header indicate a partial file.
I was thinking more in terms of something like:
Content-Type: application/fragment; assembled-type="audio/mpeg"
but the above feels a lot cleaner to me, and neatly avoid the issue of
what to do with any attributes to the assembled type.
> sorry, shoddy terminology on my part. let's say "posting convention" or
> "mechanism" instead.
I'll drink to that. :)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Mon, 06 Jan 2003 00:07
Date: Mon, 06 Jan 2003 00:07
12 lines
1610 bytes
1610 bytes
[Jeremy]: > > Which, coincidentally, I already invented. All it needs for this > is to figure out the best way to include the xBin hash stuff in > the metadata. please repost your yEnc into MIME proposal? -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Kjetil Torgrim Homme
Date: Mon, 06 Jan 2003 00:11
Date: Mon, 06 Jan 2003 00:11
32 lines
2350 bytes
2350 bytes
[Jeremy]: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > > MIME: we can do a slight layering violation and put it in the > > article headers > > Why? Is that just so a client can get at it without downloading > the body? > > That's a reasonable goal, but it's a bit confusing in terms of > MIME structure to use a header at the top level to describe > content at a lower level, when you're also using that header on > entities themselves. so I changed my mind in the next paragraph: :-) > > actually, it's probably best to use the multiple files > > mechanism even for single files, the difference is so small, > > and it makes more sense. > That way you don't have to suddenly care about the difference > between "single file" and "multiple file" posts. A "single part" > post is really just a MIME entity with no children. yes, my proposal to specify fragments in Content-Disposition instead of using message/partial fixes this cleanly, I think. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: Power-Post 2003 - requesting input from authorities..
Author: Jeremy
Date: Mon, 06 Jan 2003 01:43
Date: Mon, 06 Jan 2003 01:43
9 lines
1393 bytes
1393 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > please repost your yEnc into MIME proposal? http://www.exit109.com/~jeremy/news/binaries/ -- Jeremy | jeremy@exit109.com
Page 5 of 9 • 404 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads