🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
313 messages
313 total messages Page 6 of 7 Started by Juergen Helbing Mon, 23 Sep 2002 06:06
Page 6 of 7 • 313 total messages
Re: [FNTP] 'in-completeness'
#61119
Author: Curt Welch
Date: Mon, 07 Oct 2002 02:46
76 lines
4693 bytes
ade@supernews.net (Ade Lovett) wrote:
> Cue LIST EXTENSIONS,

Personally, I think the whole concept is a total waste of time.

Someone should write an RFC which defines the "I DO NOT SUPPORT
THE STUPID LIST EXTENSIONS" extension. (NOLISTEXTENSIONS).

If you want a list of extensions read the RFCs.  If you want to find out if
a server supports something, try HELP.  If a client wants to use something,
the extension damn will better have been designed so that the client can
simply try the command to find out if it's supported.  And if the extension
is such that you don't want to try it (like the popular HALTANDCATCHFIRE
command), then it better be designed so you can test for it:
(HALTANDCATCHFIRE NOW vs HALTCANDCATHFIRE).

If they wanted to formalize a system to let the client know what works and
what doesn't, they should simply have included in the RFC for all new
extensions a paragrah that shows how a server which implements the command
MUST behave and how a server which does not implement the feature MUST
behave.

What would have been useful is a "BROKEN" command which defines what the
server fails to implement correctly.  It should produce a list of keywords
like:

 HOLEYHELL - I sometimes leave holes in the newsgroups which I
             later magically fill with articles after I already
             told you the article was deleted.  This tends to
             happen mostly for newer articles.

 XHDRNEVERFINISHED - I wrote XHDR so it works only with XOVER headers and
                     though I intended to make it work correctly one day
                     I never got around to it.

 XHDRALMOSTFINISHED - well, it works for all headers now but it's slow as
                      hell if you ask for non xover headers.

 HISTORYMADNESS - The history database has nothing to do with the what's
                  in the article spool.  Don't assume you can get articles
                  which are in the spool by message-id and don't assume
                  that an article which failes to be fetched by Message-Id
                  has expired.

 NOSTINKINMESSAGEIDS - Don't bother sending me your own message-id in your
                       posts, I'll never use them.

 SLOWPOSTITIS - Don't expect your posts to show up on the server the same
                day you post them.

 GAPINGHOLES - Groups are sometimes filled with gaping holes of deleted
               articles which can span thousands of numbers.

 CANTCOUNT - The article count on the GROUP command is seldom correct.  I
 have
             no idea how many articles are in these groups.  You should
             count them yourself if it's so damn important to you.

 UNEXPIRE - The articles vanish and return from time to time. Don't
            let this alarm you.

 IHATENEWNEWS - Don't even try to use it.

 NEVERTRYAGAIN - Don't bother trying to tell my to try again.  Take it now
                 or forgetabout it.

Though the above was done mostly in humor, it is a serious issue because
there are a lot of servers that felt "bending" the rules slight was OK to
meet new requirements (like supporting server farms). And it would be nice
that as we learn the things which real-world servers end up doing if we had
a way to warn the client about the problems.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61120
Author: Klaas
Date: Mon, 07 Oct 2002 02:54
20 lines
2312 bytes
After careful consideration, Juergen Helbing muttered:

> Klaas <spamhole@klaas.ca> wrote:

>>> I agree - and we could even solve Russ Albery's problem:
>>> A decentral database could be used to assign a "legal status"
>>> - and a "where may I pay status".......
>>> We all know that Usenet must go this way - and it is up to _us_
>>> to realise it. 
>>
>>We do?!
> 
> What's your proposal ?
> Leave it as it is and wait for coming things ?   Closing it ?

I was simply questioning your assertion that we 'know' that usenet will end 
up being a distributed database of for-pay material.

-Mike
Re: [FNTP] 'in-completeness'
#61121
Author: Russ Allbery
Date: Mon, 07 Oct 2002 03:10
36 lines
2785 bytes
Curt Welch <curt@kcwc.com> writes:

> If you want a list of extensions read the RFCs.  If you want to find out
> if a server supports something, try HELP.  If a client wants to use
> something, the extension damn will better have been designed so that the
> client can simply try the command to find out if it's supported.

Sometimes those commands return a lot of data.  Sometimes there are a lot
of things about which you want to know whether or not they're supported.
It's easier to do that by sending a single command.

And it's not always possible to design extensions that way.  A good
example would be extended wildmat support (things like character groups),
which is not required by the standard but which is implemented by some
servers for XPAT and the LIST commands.  How do you test, as a client, for
whether or not that's supported if you want to use it?

Another useful use of LIST EXTENSIONS will be to get the list of supported
SASL mechanisms.

I know it doesn't look that obviously useful, but pretty much every other
Internet protocol has something like this (POP, IMAP, SMTP, etc.) and
there are good reasons for that, even if subtle and rarely *vital*
reasons.

>  XHDRALMOSTFINISHED - well, it works for all headers now but it's slow as
>                       hell if you ask for non xover headers.

So is your XHDR fully finished?  :)

-- 
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: [FNTP] 'in-completeness'
#61122
Author: Curt Welch
Date: Mon, 07 Oct 2002 05:16
72 lines
4574 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
>
> > If you want a list of extensions read the RFCs.  If you want to find
> > out if a server supports something, try HELP.  If a client wants to use
> > something, the extension damn will better have been designed so that
> > the client can simply try the command to find out if it's supported.
>
> Sometimes those commands return a lot of data.  Sometimes there are a lot
> of things about which you want to know whether or not they're supported.
> It's easier to do that by sending a single command.
>
> And it's not always possible to design extensions that way.

Sure it is.

> A good
> example would be extended wildmat support (things like character groups),
> which is not required by the standard but which is implemented by some
> servers for XPAT and the LIST commands.  How do you test, as a client,
> for whether or not that's supported if you want to use it?

That's a good example of the type of thing which is hard to test for,
but, it would be better I believe to add a custom command which tells
you the status of wildmat support instead of trying to do it with
the generic LIST EXTENSIONS command.  The type of data you need to
return to correctly and cleanly document an extension can in theory
get very complex.  I think it's far better to force each proposed extension
to define it's own way of identifying itself.  For most extensions
it would be the command which is always designed to return a non 5xx
code when used with no arguments.

I don't mind the concept of commands that lets you test for extensions,
but I very much think that idea of trying to create one generic command
to deal with all possible extensions, AND to imply that all extensions
to the protocol MUST be registered through that command, is just wrong.

For example, for wildmat support, a better way to test for extensions
might be to define a wildmat support command which lists the information,
in a way that works well for wildmat.  Or you might have added a wildmat
test command where you give it a wildmat and feed it data.  It returns
every line which matches your test.

I think that LIST EXTENSIONS is a good idea done wrong.

> Another useful use of LIST EXTENSIONS will be to get the list of
> supported SASL mechanisms.

I'd rather see that as a specal command which is only part of the
SASL extensions.  If I, as a client, need to know SASL information,
why would I use a command that dumps all this shit about wildmat support?

> I know it doesn't look that obviously useful, but pretty much every other
> Internet protocol has something like this (POP, IMAP, SMTP, etc.) and
> there are good reasons for that, even if subtle and rarely *vital*
> reasons.

Making sure there is a well defined way to test for extensions is good.
LIST EXTENSIONS is bad. :)

> >  XHDRALMOSTFINISHED - well, it works for all headers now but it's slow
> >  as
> >                       hell if you ask for non xover headers.
>
> So is your XHDR fully finished?  :)

Nope.  That's one that would show up for my server. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61123
Author: Russ Allbery
Date: Mon, 07 Oct 2002 05:23
45 lines
3165 bytes
Curt Welch <curt@kcwc.com> writes:

> That's a good example of the type of thing which is hard to test for,
> but, it would be better I believe to add a custom command which tells
> you the status of wildmat support instead of trying to do it with the
> generic LIST EXTENSIONS command.

I guess we'll just have to agree to disagree on that, as I find that
considerably less useful as an approach.  I don't expect to see wildmat
extensions that would require the overhead of a separate command.

> I'd rather see that as a specal command which is only part of the SASL
> extensions.

The reason why I like LIST EXTENSIONS is precisely because I don't like
this sort of proliferation of special commands.

> If I, as a client, need to know SASL information, why would I use a
> command that dumps all this shit about wildmat support?

Because it's just one line.  It's a fairly minimal amount of data which in
one pass gives you all the details that you need.

>> I know it doesn't look that obviously useful, but pretty much every
>> other Internet protocol has something like this (POP, IMAP, SMTP, etc.) 
>> and there are good reasons for that, even if subtle and rarely *vital*
>> reasons.

> Making sure there is a well defined way to test for extensions is good.
> LIST EXTENSIONS is bad. :)

Every last one of those protocols that I listed uses something that is
essentially identical to LIST EXTENSIONS.

I'm not unsympathetic to what you're saying, but the combination of not
reinventing a wheel that's already working with other protocols and not
wanting to proliferate special commands puts me firmly on the side of
liking LIST EXTENSIONS.

-- 
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: [FNTP] 'in-completeness'
#61124
Author: Juergen Helbing
Date: Mon, 07 Oct 2002 05:34
48 lines
2709 bytes
Russ Allbery <rra@stanford.edu> wrote:

>You've just broken all FAQ posters, many people posting source code
>patches to newsgroups, quite a few extended discussions, problem reports
>including compile logs, fiction, and requests for help including the
>scripts or programs that they need help on.  Just off the top of my head.
>Oh, and most RFDs, CFVs, and RESULTs.

Good point - but how do you want to handle such huge message ?

If someone posts a "compile log" today then this _is_ a huge file.
But it is posted as a text message today - just to circumwent
the rules that binaries are not permitted in text groups.

I proposed that all huge text-messages would be labelled as
a binary post - and crossposted to one (or a dozen) groups where
such messages are permitted. Admins who are running a tex-only
server could add these "wanted binary" groups then.

You are worrying about "misplaced" binaries - and you've just
made now a list of "welcome misplaced binaries"....
How can we (would you) permit a large message to enter
a real "text-only-server" ?

Today your solutions seems to be:
As long as it is not a "commonly used binary encoding"
it is permitted to enter......

This way you are permitting your users to circumwent your
own limits - because you accept this.

Wouldn't it be better to have a proper method for handling
such stuff ?

>And you think that users can "just fix it by hand"?  Not to mention the
>sheer quantity of deployed, fully automated software that's generating
>those message IDs?

People who are posting huge text-messages usually know what
they are doing (especially the FAQ-posters and the CFV publishers).
I dont think they would have a problem to use proper tags.

Those who cannot post large texts properly should not do it :-)

-- 
Juergen

Re: [FNTP] 'in-completeness'
#61125
Author: Curt Welch
Date: Mon, 07 Oct 2002 05:42
13 lines
1869 bytes
Russ Allbery <rra@stanford.edu> wrote:
> I'm not unsympathetic to what you're saying, but the combination of not
> reinventing a wheel that's already working with other protocols and not
> wanting to proliferate special commands puts me firmly on the side of
> liking LIST EXTENSIONS.

Yeah, I'm not not really against it as much as I might sound. I mostly
just like to bitch at times. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61126
Author: Juergen Helbing
Date: Mon, 07 Oct 2002 06:01
84 lines
4067 bytes
Russ Allbery <rra@stanford.edu> wrote:

>>> I've never understood why people object to just closing the connection
>>> for readers, given how infrequently aborts happen.
>> * Re-connecting to a remote NSP together with AUTH can take minutes.
>> * On busy lines it can even fail.
>
>Are there really circumstances under which these are true where
>downloading the article is still going to complete in a reasonable amount
>of time?  

Yes - there are some.
Even if a ping time of 100 mSec it often takes 5-10 seconds before 
an answer is coming during connect/auth/auth/mode...
Such servers are also slow on delivering articles.
But as soon as the article comes - it comes with high speed.

>Those are artifacts of extreme network slowness, which is going
>to affect the article downloads too to the point where I'd expect it to be
>almost impossible to actually download anything.

>> [...]
>Not talking about POST.
>Not talking about POST.

You asked why people want to close the connection....
A lot of "incomplete multiparts" result from 'closing the conenctions'.
Especially those with 300 lines per part and  1662 parts.

>> * The statement "dont reconnect all the time" is well known.
>
>So don't cancel downloading articles all the time.  :)

How often do you use "Stop" on your WWW-broswer ?
And why is there such a STOP button ?

The stop-buttons are for _users_ (even experienced ones).

>> * All newsreader react to a "user-stop" by cuting the connection.
>>   (because there is no alternative way).
>>   And they all simply stop the entire operation - because there is
>>   no "stop" command. This is easy for the writers - but uncomfortable
>>   for the users.
>
>Why?

Today programmers can say: There is no stop command on NNTP.
So the only we can offer is to "abort it entirely".
If there _would_ be a stop command then programmers could
support and use it.

There have been again and again requests for the STOP command
in newsreader/server newsgroups.

Of course we can live without this command - we do it today.
But this does not justify this is good - or comfortably.


I know that the benefits of a STOP command might not justify
the work for changing the entire NNTP-spec - because it would
affect all multi-line transfers. So I dont insist on it.
But it is interesting that we meet this aspect again in a discussion
about transits - when it should be mainly a topic for readers.


Whenever I am writing software-routine which takes longer than 
one second then I am implementing a progress display,
a STOP button and an acustic signal that the job is done.

I dont believe that the users want to cancel the process
or switch off their machine.... Especially if the progress
indicator shows that a job would take 27 hours  :-) 
 
NNTP was not designed for the actual size of Usenet.
This applies not only to 500 kByte articles (on a 28.8 modem)
but also to group lists with 100.000 entries - or Xover-lists
with 100.000 articles (from the last 10 months)....
But if we know its actual size today then we should
take care about it - and this does not affect just binaries.

-- 
Juergen

Re: [FNTP] 'in-completeness'
#61127
Author: Juergen Helbing
Date: Mon, 07 Oct 2002 06:07
19 lines
1322 bytes
Russ Allbery <rra@stanford.edu> wrote:

>I have a bit of a sore point about being accused of putting liability
>issues before academic curiosity, since I am, in fact, trying to strike
>the best balance I can manage given the resources I have available.


Then I want to apologize for annoying you with this pinprick.

I am sure that you are doing the very best you can under the current 
circumstances. And be sure that I dont want to be in your position.

Thanks for your engagement in this discussion.

Sorry.
-- 
Juergen

Re: [FNTP] 'in-completeness'
#61128
Author: Russ Allbery
Date: Mon, 07 Oct 2002 06:55
15 lines
1897 bytes
Curt Welch <curt@kcwc.com> writes:

> Yeah, I'm not not really against it as much as I might sound. I mostly
> just like to bitch at times. :)

I *will* also agree with you that where possible an extension should be
defined so that you can just try it rather than having to try to issue a
LIST EXTENSIONS command to check for it.  :)

-- 
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: [FNTP] 'in-completeness'
#61129
Author: Juergen Helbing
Date: Mon, 07 Oct 2002 06:58
55 lines
2945 bytes
Bill Cole <bill@scconsult.com> wrote:

>> >Usenet would be a better place if the binaries went away.  
>> At first it would be a dead place.
>> Remove all the people who are on Usenet for binaries PLUS text
>> and you will drop below the critical mass.
>
>Demonstrably false. 
>Proven false many years ago. 
>Re-proven false every day. 

How do you prove that every day ?

>The problem is not the mixing, it is the attempt to use a data model 
>designed to support small-message text discussions for distribution of 
>large binary files. 

Yes - Curt told us already that the actual span of messages between
1 kByte and 1 Mbyte is hard to handle.

>News is designed for the text groups, and 
>shoehorning binaries into that model has never worked well and will 
>never work well. 

For experienced users it is working perfectly.  ;-)

It is very reliable, lightning fast - and an endless source of news.
It cannot be filled with fakes because people are also _talking_ about
the binaries (one of the biggest advantages of Usenet over _ever_
other binary distribution system). And it is uncensorable.


>I get the sense that you have no idea how cheap it is to run a text-only 
>news server. Were it not for binaries, a full feed would still be the 
>sort of thing that could be handled in the spare cycles and surplus 
>bandwidth of a modest system. 

AFAIK the administrative work is still a PITA.
But perhaps there are already "trusted management centers" 
which I dont know.

>I don't consider 'let the binaries leave' to be fatalism at all. It may 
>be fatal to the NSP's who make their nut from providing binary service, 
>but losing them would not be fatal to Usenet.

I'm still convinced that the reduced attractivity of Usenet
would be fatal. 
But the danger is very low: The NSPs are making money
- and they can transmit text-usenet as three big files, soon :-)

-- 
Juergen


Re: [FNTP] 'in-completeness'
#61130
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 07:39
35 lines
2517 bytes
[Curt Welch]:
>
>   That's a good example of the type of thing which is hard to test
>   for, but, it would be better I believe to add a custom command
>   which tells you the status of wildmat support instead of trying to
>   do it with the generic LIST EXTENSIONS command.  The type of data
>   you need to return to correctly and cleanly document an extension
>   can in theory get very complex.  I think it's far better to force
>   each proposed extension to define it's own way of identifying
>   itself.  For most extensions it would be the command which is
>   always designed to return a non 5xx code when used with no
>   arguments.

I don't there is much disagreement here.

 C: LIST EXTENSIONS
 S: 215 extensions follow
 S: WILDMAT_EXT
 S: SASL_CRAMMD5
 S: .
 C: LIST EXTENSIONS WILDMAT_EXT
 S: 215 extensions follow
 S: CHARCLASS
 S: OPERATION_OR
 S: OPERATION_GROUP
 S: .

the client doesn't have to do the first LIST EXTENSIONS if it doesn't
want to.  if the extension is missing, it will get a 500.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61131
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 07:55
38 lines
2482 bytes
[Jeffrey M. Vinocur]:
>
>   Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
>   >[Russ Allbery]:
>   >
>   >>   One way to solve that problem, while we're playing with the NNTP
>   >>   protocol, would be to add a CHECK-style command that includes the
>   >>   headers.
>   >
>   > I've thought about that, and even made a quick test
>   > implementation for Diablo.  main problem is that it sucks up a
>   > huge amount of bandwidth, since the CHECK traffic is per peer,
>   > not per peer-not-already-having-the-article.
>   
>   Hmm.  From INN's TODO:
>   
>   * One would ideally not want to offer articles to a peer that
>     that peer has offered to us (even if we didn't accept them from
>     that peer).  This is really hard to do right, but even a small
>     cache might increase feed performance.
>   
>   Might work here too, no?

I'm not sure I understand that.  it seems to cover this case:

  peer1 sends you <foo>
  peer2 offers <foo>, you reply "hang on, maybe later"
  transmission of <foo> completes
  you offer <foo> to peer2

it would be nice if INN didn't bother to offer <foo>, but it seems a
minor optimisation.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61132
Author: Russ Allbery
Date: Mon, 07 Oct 2002 07:56
32 lines
2069 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> I don't there is much disagreement here.

>  C: LIST EXTENSIONS
>  S: 215 extensions follow
>  S: WILDMAT_EXT
>  S: SASL_CRAMMD5
>  S: .
>  C: LIST EXTENSIONS WILDMAT_EXT
>  S: 215 extensions follow
>  S: CHARCLASS
>  S: OPERATION_OR
>  S: OPERATION_GROUP
>  S: .

As I understand it, this would look like:

    C: LIST EXTENSIONS
    S: 215 Extensions follow
    S: WILDMAT CHARCLASS OPERATION_OR OPERATION_GROUP
    S: SASL CRAM-MD5
    S: .

rather than your example.

-- 
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: [FNTP] 'in-completeness'
#61133
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 08:07
59 lines
3858 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > while we're at it, an ABORT command would be nice, mostly for readers,
>   > but also for transit.  consider:
>   >
>   >   S: TAKETHIS <zot@gazonk>
>   >   S: Newsgroups: alt.binaries.some.uncarried.group
>   >   S: Subject: Angel E02S03
>   >   S: ...
>   >   R: ABORT TAKETHIS <zot@gazonk>
>   >   S: ...
>   >   S: .439
>   >
>   > the ABORT would be handled best effort by the server, as a guideline,
>   > it should check for new input once a second.  (remember the context
>   > here is huge articles.)
>   
>   Streaming feeds tend to use large output queues to make it easier
>   to keep the pipe filled (i.e. even if the application doesn't get
>   around to putting more data into the pipe for a second, there's
>   enough there for low levels of the application and/or OS to keep
>   the data flowing).  Trying to add a real-time abort command to a
>   streaming feed would make it much harder for the sending side to
>   both keep the data flowing and still be responsive enough to ABORT
>   commands to make them useful.

the flow of data in an NNTP connection is very lopsided, generally
there will be little traffic in the opposite direction.  this makes it
easier to keep the input drained while the output pipe is full.  yes,
the code needs to move data from the implicit queue which is the
kernels TCP buffers into an explicit queue in order to see and process
the ABORT.  when an ABORT comes in, the server should see if it is the
currently processed request, or look through the queue for pending
commands (a simple text comparison).

the code should be simple enough, but one must take care to keep the
number of extra syscalls (select/poll/gettimeofday) down.

>   It's just a mess tring to do that stuff in a protocol that's much
>   harder than it looks already.  Have you every tried to write
>   something that sends a streaming feed?  It's a lot harder than it
>   looks to make it work well.

I have some experience with Diablo, never did write anything from
scratch.

>   Being able to have more control from the receiving side of a feed
>   would be nice, but I think there are better ways to to that than
>   trying to make an abort command work.

sure.  I think ABORT is more useful for NNRP, simply due to slower
downloads.  its possible usefulness for NNTP is a bonus.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61134
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 08:21
51 lines
3241 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > >   One way to solve that problem, while we're playing with the NNTP
>   > >   protocol, would be to add a CHECK-style command that includes the
>   > >   headers.
>   >
>   > I've thought about that, and even made a quick test implementation for
>   > Diablo.  main problem is that it sucks up a huge amount of bandwidth,
>   > since the CHECK traffic is per peer, not per peer-not-already-having-
>   > the-article.
>   
>   You can solve that with a two-level system.  Answer a CHECK with a
>   code that means "send the header", and answer the header with
>   codes for "send the body", or "no way are you going to send me the
>   body of _that_ article".

right, a TAKEHEAD?

  S: CHECK <foo>
  C: 434 send head <foo>
  S: TAKEHEAD <foo>
  S: data
  S: .
  C: 238 please send <foo>
  S: data (body only)
  S: .
  C: 239 transferred ok

(434 is a currently unused return code, I think.)

we should extend IHAVE similarily to keep Barry happy.

>   > actually, I think it's better to do header feeds where appropriate,
>   > and let the recipient issue the ARTICLE commands needed.
>   
>   Only if you are doing a "fetch and cache on demand" system _AND_
>   you have control over the system you are fetching from
>   (i.e. either you run it or you pay for someone else to run it for
>   you).  Fetching on demand from a free peer will never work well
>   because people need to control the dynamics of their own servers.

no, I meant to use the data from the header feed immediately.  the
advantage is that this requires no NNTP changes.  you need to take
care not to pass on the body-less article to others, though.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61135
Author: greg andruk
Date: Mon, 07 Oct 2002 08:37
30 lines
2610 bytes
Kjetil Torgrim Homme wrote:

> [Curt Welch]:
>>   You can solve that with a two-level system.  Answer a CHECK with a
>>   code that means "send the header", and answer the header with
>>   codes for "send the body", or "no way are you going to send me the
>>   body of _that_ article".

> right, a TAKEHEAD?

>   S: CHECK <foo>
>   C: 434 send head <foo>
>   S: TAKEHEAD <foo>
>   S: data
>   S: .
>   C: 238 please send <foo>
>   S: data (body only)
>   S: .
>   C: 239 transferred ok

The part after the 238 won't work with streaming very well.  A plain old 
TAKETHIS at that point might be the best thing; a TAKEBODY sort of command 
might also work but could lead to synchronization ugliness [oops, the 
header that goes with that body already dropped out my cache, want to 
resend that?]

> we should extend IHAVE similarily to keep Barry happy.

It would be easier to get right in that form.
Re: [FNTP] 'in-completeness'
#61137
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 09:18
71 lines
5098 bytes
[Curt Welch]:
>
>   What if they post a fake 4 which has valid data (so it does match
>   the hash from real 3), but then a fake hash for segment 5?  Then
>   they post a fake 5 with fake data that matches the hash in their
>   fake 4.

you're evil.

>   My hash system allows the fakes to blocked at post time without
>   scanning the entire set (which won't happen at first, but could be
>   added if the system became a standard).

good point.  they can post fakes where the segment hash is correct,
but those fakes can be spotted by downloading just the headers.

>   > it could work for our purposes.  I'd put that in a separate
>   > header, and use the "real" hash in the msgid.
>   
>   This "hash of hash" idea is a "real hash". It's just not a
>   straight MD5 or SHA1 hash.  If something like this works to allow
>   us to verify a single article without having access to the rest of
>   the data, why wouldn't we use this as the "real" hash instead of
>   an MD5 or SHA1 hash?

I'm no cryptographer, but I'd be surprised if a simpleminded XOR of
hashes is cryptographically secure (no known way of tampering with the
data without changing the hash).  it is obvious that the cryptographic
properties of the hash algorithm can not be _improved_ by such an
operation, but it is not clear that it will detract either.

I would err on the safe side, and use a proper MD5 for the whole file
as a final check.  (the binary assembly program needs to handle the
case where there are more than one candidate for a complete file.)

>   To veryify the data, you need a good sized set of data (logically
>   a list of hash values for the rest of the file), included with
>   every post.  But we could make that optional for now and only
>   start including that if the abuse problem became a real issue.
>   But using the correct hash to allow this to be added later should
>   be done now.

we only need the doubly linked list with the segment hashes, I think.
it is cheap to try all possible combinations of fakes and real
articles, especially since you can do the chaining to cut down on the
search space.

I haven't really thought through the issues of refills with a
different segment size, though.

>   The actual binary posts can then be stuck in a sub-newsgroup, like
>   a .b group which no one normally looks at.

since the msgids contain a random element, the download tool would
still need to download headers from that group, XHDR Message-ID
followed by HEAD on each interesting article, I guess.

>   The harder part of the system is creating the hash data that must
>   be included with every post.  But even that is computationally as
>   simple as calculating the hash in the first place, it just
>   requires more memory to save all the hash values from the top of
>   the hash tree (but still only something only in the 50K range even
>   for huge files).

50K?  err, I think I must go back and re-read your hashing scheme.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61136
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 09:21
37 lines
2433 bytes
[Russ Allbery]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>   
>   > I don't there is much disagreement here.
>   
>   >  C: LIST EXTENSIONS
>   >  S: 215 extensions follow
>   >  S: WILDMAT_EXT
>   >  S: SASL_CRAMMD5
>   >  S: .
>   >  C: LIST EXTENSIONS WILDMAT_EXT
>   >  S: 215 extensions follow
>   >  S: CHARCLASS
>   >  S: OPERATION_OR
>   >  S: OPERATION_GROUP
>   >  S: .
>   
>   As I understand it, this would look like:
>   
>       C: LIST EXTENSIONS
>       S: 215 Extensions follow
>       S: WILDMAT CHARCLASS OPERATION_OR OPERATION_GROUP
>       S: SASL CRAM-MD5
>       S: .
>   
>   rather than your example.

what advantage is there to your scheme?  it makes it harder to add
arbitrary descriptive extensions.  and it's incompatible with Curt's
wish for a simple command to test whether a feature is available ;)

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61141
Author: Russ Allbery
Date: Mon, 07 Oct 2002 18:52
34 lines
2408 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:

>>   As I understand it, this would look like:
>>   
>>       C: LIST EXTENSIONS
>>       S: 215 Extensions follow
>>       S: WILDMAT CHARCLASS OPERATION_OR OPERATION_GROUP
>>       S: SASL CRAM-MD5
>>       S: .
>>   
>>   rather than your example.

> what advantage is there to your scheme?

I'm not claiming there's an advantage; I'm saying that's how it works.  :)
That's how it works in every protocol that has a mechanism for obtaining
extensions.  It's not my scheme; it's what's in the NNTP draft.

> it makes it harder to add arbitrary descriptive extensions.

Why would it do that?

> and it's incompatible with Curt's wish for a simple command to test
> whether a feature is available ;)

No, not really.

-- 
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: [FNTP] 'in-completeness'
#61140
Author: Russ Allbery
Date: Mon, 07 Oct 2002 19:01
69 lines
4601 bytes
Juergen Helbing <archiver@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> You've just broken all FAQ posters, many people posting source code
>> patches to newsgroups, quite a few extended discussions, problem
>> reports including compile logs, fiction, and requests for help
>> including the scripts or programs that they need help on.  Just off the
>> top of my head.  Oh, and most RFDs, CFVs, and RESULTs.

> Good point - but how do you want to handle such huge message ?

Exactly like how we handle them right now.

> If someone posts a "compile log" today then this _is_ a huge file.  But
> it is posted as a text message today - just to circumwent the rules that
> binaries are not permitted in text groups.

It's not circumventing anything; it's not a binary.  Neither is a large
patch.  It's not a binary in the sense that it's human-readable content
that supplements text discussion and is common practice in a lot of text
groups.

> I proposed that all huge text-messages would be labelled as a binary
> post - and crossposted to one (or a dozen) groups where such messages
> are permitted.

Good heavens, no.  No one is going to understand that, not to mention that
it doesn't work at all with gatewaying.

> You are worrying about "misplaced" binaries - and you've just made now a
> list of "welcome misplaced binaries"....  How can we (would you) permit
> a large message to enter a real "text-only-server" ?

Very easily.  I'm doing it right now.

The more problematic issue is that it would really be nice to be able to
post particularly large patches as compressed and encoded attachments, at
which point they *are* binaries, but the sorts of binaries that some text
groups would happily accept.  (I'm thinking in particular of the gnu.*
newsgroups, which are gatewayed development mailing lists.)  At that
point, one has to start thinking about what the type of the binary is (and
one can still reject uuencoding and yEnc out of hand, since the issue here
is primarily with gatewayed mail attachments and people who do this use
MIME almost universally these days).

Once again, the binary issue isn't nearly as black and white as people
seem to think it is.  :)  There are particular types of binaries that
pretty much no one wants anywhere outside of binary groups (DVDs, full
software packages, etc.), there are binaries where it depends a lot on the
size (small line-drawing GIFs or PNGs are common in some discussions, such
as discussions of Unicode fonts, and will become more common as the
ability of the average news reader to display such things in-line properly
in the body of a message improves), and there are legitimate reasons to
want to compress and attach in some text groups.  And the idea of
considering such binaries as files distributed separately simply isn't
going to work; this arises most frequently in gatewaying situations.

As mail to news gatewaying and in particular gatewaying of development
mailing lists becomes more common, people will notice this more and more.
It's very common and in fact expected to post large patches compressed and
base64-encoded to many development mailing lists if they would otherwise
be too large for the mailing list message size limit.

-- 
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: [FNTP] 'in-completeness'
#61142
Author: Russ Allbery
Date: Mon, 07 Oct 2002 19:06
29 lines
2526 bytes
Juergen Helbing <archiver@i3w.com> writes:

> Today programmers can say: There is no stop command on NNTP.
> So the only we can offer is to "abort it entirely".

I still don't understand why you think these are two different things.
Guess how one implements the stop button in HTTP?

I think you're really overestimating the amount of state you have to
replay to re-establish the connection.  Redoing the SASL exchange will be
mildly annoying when we have that, but right now it's a maximum of three
commands and in the unauthenticated case is only one command.  You can do
it immediately after aborting the connection.

It's certainly true that HTTP is a lighter-weight protocol that requires
less overhead to abort a connection, but I believe it's also the case that
stop would be far less frequently used in NNTP than in HTTP, so it
balances out.  (Part of the reason for that belief is that a partially
downloaded web page is still useful in HTTP and often what takes forever
to load is the ads, not the content.  NNTP doesn't have the same issues;
an aborted download is likely to have to just be thrown away, so is only
useful when the user decides they don't want that article at all.)

-- 
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: [FNTP] 'in-completeness'
#61143
Author: Klaas
Date: Mon, 07 Oct 2002 20:48
17 lines
1991 bytes
After careful consideration, Juergen Helbing muttered:

> Bill Cole <bill@scconsult.com> wrote:

>>I don't consider 'let the binaries leave' to be fatalism at all. It may 
>>be fatal to the NSP's who make their nut from providing binary service, 
>>but losing them would not be fatal to Usenet.
> 
> I'm still convinced that the reduced attractivity of Usenet
> would be fatal. 

I'm curious as to on what you're basing that.  In almost every group I 
subscribe to, the vast majority of regs are not involved in binary usenet 
at all (obviously I don't know everyone well enough to be sure).

-Mike
Re: [FNTP] 'in-completeness'
#61144
Author: Jeffrey M. Vinocur
Date: Mon, 07 Oct 2002 20:51
23 lines
1807 bytes
In article <20021007011605.763$7M@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>
>If I, as a client, need to know SASL information, why would I
>use a command that dumps all this shit about wildmat support?

Hmm.

I see no reason why we couldn't propose an extension to LIST
EXTENSIONS, where an optional argument would indicate which
extension you're interested in.

(You could even allow multiple arguments, but at some point the
amount of data you have to send up to specify which extensions
you care about is larger than the unwanted return data would have
been.)

But I'd like to see an actual need for it in practice first.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [FNTP] 'in-completeness'
#61148
Author: Russ Allbery
Date: Mon, 07 Oct 2002 22:13
243 lines
13621 bytes
Curt Welch <curt@kcwc.com> writes:

> I did miss your use of the words "locally posted articles".  If they are
> reformatting local articles, and then sending out only that reformated
> version to the world, then this is a different issue that what I thought
> you were talking about.

Yeah, far fewer worries about decoding incorrectly or getting the wrong
version of the article, since that's the originating site.

> I thought you were talking about decoding multipart posts (all of them,
> not just local posts) and then allowoing people to sucks the binary file
> from the remote site.

Oh, no, that would be too much volume.  I'd only expect each site to
handle its own articles plus then whatever peers it's agreeing to mirror
for other peers.  (You want some sort of standardized naming scheme so
that you can pick up articles from multiple mirrors.  Yeah, it really does
turn into a reinvention of some of the properties of NNTP, although one
can make some marked improvements in how one figures out where to get
messages from that would result in much less bandwidth used.)

> Yeah, I'm with you.  But I'm not seeing any advatnage to "sucking" vs
> feeding the article.  Well, the big advantage to sucking is that the
> side pulling down the articles knows when he can't keep up. With a
> normal usenet feed, it's real hard to get an accurate feel for that.
> But still I think push just works much better.

Hm.

You can do the same sort of thing with push rather than pull.  The
direction of the feed isn't the important part of the concept.  The
important parts are sending raw binary rather than any sort of encoding,
sending the entire message as a unit rather than doing multiparts, and
giving the accepting site an option to reject articles based on message
size (which is much easier to do once you've eliminated multiparts).

I like the trivial backfill properties of suck, which seems more important
for binaries since it's more likely for binaries to get dropped, but the
other problems may not make it worth it.

Ideally, you take the binary direct from user upload rather than ever
going through an encode and decode cycle, and encode (and possibly split)
the binary yourself for propagation to Usenet for the user rather than
having the user do it.  That eliminates a bunch of problems with broken
encoders as well as making it easier to get the pure version of the
binary.

> What if they are down for 12 hours and and then try to catch up by doing
> 100 parallel transfers.  Ok, there are solutions just like there are
> solutions for Usenet.  But it just sounds like you are reinventing the
> wheel for little gain.  I'm not seeing it yet.

I think I'm approaching the same problem that you're approaching from a
different angle, namely for high-volume binary posts to pull away from the
concept of treating the messages just like we'd treat any other message.
The current mechanism for uploading such messages is designed well for
primarily text-based discussion with occasional attachments, but is badly
broken for pure binary high-volume groups or posters.

As mentioned in another post, it's more complicated by far than just
binary or not binary.  It's really more of a distinction between
high-volume pure binary, pure text, and a variety of interesting cases in
the middle (where you really want to do some filtering based on things
like Content-Type so that you can reject movies and accept line drawings).

> If someone had a better way to move articles from their server to mine,
> I'd be happy to look at that.  But, the trick is that the articles must
> be in a form where I can then move them to my peers who have not yet
> converted to a "new system".  If we were to define a new way to move
> files that required a new protocol to work -- such that any file posted
> to these servers would only be available on a small set of servers that
> supported it, then no one would use it.

And at the same time, I think most everyone agrees that encodings, any
encodings, inherently lose, and that the world we'd all like to move
towards is one where binary posts have a CTE of "binary" and no encoding
at all.

So that's really arguing for allowing news servers to re-encode to
propagate messages to older peers.  But that's kind of frightening.

> If you have 5 part post which, when the bodies are combined together,
> includes 12 uuencoded pictures and text scattered between each of the
> pictures, how do you convert that into "a binary", and then convert it
> back to articles later, and end up with all the same text in all the
> right places?

There's no such thing as a 5 part post that contains 12 uuencoded
pictures.  :)

Seriously.  There's only one way to split uuencoded binary content across
messages, and that method doesn't let you do it sanely with multiple
binaries in the same multipart post.  So don't even bother trying.  State
that by definition of a multipart post no such thing exists or will be
recognized.  The number of people doing stuff like this surely can't be
large (and isn't based on the binaries I've seen).

If someone really wants to take a complex post like that and split it
across multiple separate posts, they need to use a protocol that can
actually correctly represent that (namely message/partial or some
variation thereof).

> How do you deal with mime multipart files which contain multiple files
> in the same post combined with multiple text and/or html sections?

> What happens to an apple double mime post?

> For a traditional simple multipart, what happens to the text that shows
> up in front of the binary?  What happens to the "Posted at Newsfeets"
> message at the bottom of every article?

I don't see why any of these are hard.

You take the attachment and convert it to CTE binary and leave the rest of
the post alone.  If the user is posting and uploading separately, you
stick the attachment in at the point where they indicated, splitting the
message into multipart/mixed if necessary to do so.  If the user used yEnc
or uuencode, transform it into a real MIME part, changing the message to
multipart/mixed as needed.

It's not particularly hard to do this sort of thing; one just reads the
MIME standards and implements them.  All the logic is already there for
doing this sort of thing and doing it pretty well.  The mail clients
already know how to deal with all of these sorts of posts, to a greater or
lesser degree.

> What happens when decoding errors happen?  Like the "end" line is left
> off a uuencoded message?  What happens when a uuencode dmessage is
> posted with lines lenghts other then "M"?  Does it abort or does it
> decode?  What happens in a uuencoded file when the posting tool forgets
> to dot escape the lines as it's sent to the NNTP server so the dot that
> happened to be there is stripped off?  There are usenet uudecoding tools
> that look for that and figure out what the file "should have been" had
> it been posted correctly.  Is that right or wrong?

Corrupt binaries are corrupt binaries.  What do you do now when decoding
such messages for your users?

You can either filter such things out as broken, or you can attempt to
repair them; if you do repair them, you can probably only do so locally
and will have to propagate the original post via normal mechanisms.  But
such posts can also only originate with traditional sites, and in time
maybe you decide to just filter them out.

> What happens to a repost which is only 3 of 10 parts?  How is that set
> of 3 articles converted to binary and then converted back again?

I'd treat any incomplete post the same as I'd treat a corrupt post.

> However, this idea of moving binaries I think has some merit simply
> because we are talking about trying to transform the concept into a
> completely different type of article for usenet.  I dont' see it
> applying to text articles at all.  Text articles (and their message-ids)
> will stay like they are today.

The line is a bit hard to draw, though.  :)

> And, you would still be able to "hide" binaries in text articles using
> uuencode, or MIME, or yEnc, after this system takes over.  But I think
> that would be done for backward compatibility reasons, and for use with
> small single-part files where it's nice to put a few small uuencoded
> pictures in-line with some plain text.

Right.  And this same thing applies to corrupted binaries as you describe
above, too, I think.

> I would see this new system taking over the transport of the big things
> that normally move as multipart posts today.

Precisely.  And possibly the pure picture groups as well, although really
they're less pressing as a problem.

> That's one of them.  Some options would be to simply not allow it.  You
> have to put whatever you want in the header somewhere.  Summary: could
> come back into use.

> Or we could force the use of part 0 articles if any additional text was
> to be included with the post.

I'd really rather see something like a special marker that you insert into
the body indicating where to put the binary.  Or, as another approach,
since a lot of people already have news readers that can do MIME
attachments, have them post the message they want with a MIME attachment
of some small file with a filename matching the file they really wanted to
attach and just replace the attached file with the real one on posting.

The special marker is probably the easiest to explain.

>> What about multipart (not in the sense of multiple posts for the same
>> file, but in the MIME sense of multiple different types of data
>> collected into the same post)?

> I think it would be a mistake to support it.

Usenet absolutely has to support it to remain compatible with mail; people
use it extensively.

> Unix doesn't have a concept of multipart files like CDC did.

Yes, but that's not what this is.  What this is is something like
including an inline line drawing in a discussion of fonts.  That post
would become multipart/mixed or multipart/related if posted with proper
MIME structure.

> The only issue I see there is the ability to ship the segments though
> e-mail.  Mail programs can't deal with usenet multipart articles as it
> is and I wouldn't expect them to deal with these.

Mail programs often can deal with message/partial, actually.  IE can
certainly send it and I believe can receive it as well.  And of course
Gnus can deal with anything in e-mail that it can in news.

If you use message/partial to handle any necessary splitting of the
message (although usually you want to just avoid any splitting whenever
possible) and use a proper MIME structure for the message, mail readers
will generally deal with it just fine.

> If you talk about formalizing what a usenet-file-segment is, then maybe
> there would be a standard way (using MIME) to encode it for trasport
> over e-mail.

I think you'll find that message/partial is almost already there.

> And maybe the normal way for it to "live" on usenet and be passed from
> server to server is the same format.  But the servers might have the
> ablity to store them as pure binary segments in the news spools and
> translate to some MIME encoding (or yEnc or uuencode) or something when
> it's transmitted.

The only problem with message/partial is that it's in the message/* space,
which disallows CTE binary.  But if you use something very similar on
Usenet that allows CTE binary and then re-encode to base64 CTE for mail
with the same structure and change the top-level MIME types to
message/partial, I think you'll get something that a surprising number of
mail clients would be fine with.

-- 
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: [FNTP] 'in-completeness'
#61149
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 22:33
30 lines
2345 bytes
[Russ Allbery]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>   > what advantage is there to your scheme?
>   
>   I'm not claiming there's an advantage; I'm saying that's how it
>   works.  :) That's how it works in every protocol that has a
>   mechanism for obtaining extensions.  It's not my scheme; it's
>   what's in the NNTP draft.

oh.

>   > it makes it harder to add arbitrary descriptive extensions.
>   
>   Why would it do that?

it limits the description to a single line.

>   > and it's incompatible with Curt's wish for a simple command to test
>   > whether a feature is available ;)
>   
>   No, not really.

"not really" means "yes, but there is a simple workaround".

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61150
Author: Russ Allbery
Date: Mon, 07 Oct 2002 22:40
27 lines
2356 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:

>>   Why would it do that?

> it limits the description to a single line.

I'm not sure what you mean by description, but you can list as many
keywords as you want.  It's not like there's a line length limit.

>>   > and it's incompatible with Curt's wish for a simple command to test
>>   > whether a feature is available ;)
>>   
>>   No, not really.

> "not really" means "yes, but there is a simple workaround".

Well, no, you said incompatible.  It's not at all incompatible.  If you
want to add some other command like LIST WILDMAT-FEATURES, nothing about
LIST EXTENSIONS interferes with 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: [FNTP] 'in-completeness'
#61151
Author: Klaas
Date: Mon, 07 Oct 2002 22:41
87 lines
5087 bytes
After careful consideration, Juergen Helbing muttered:

> Klaas <spamhole@klaas.ca> wrote:

>>Juergen, the goal is not to patch one part of the problem as quickly
>>as possible.  That type of thinking is why we're stuck with yEnc.
> 
> We fundamentally disagree:
> The goal of this thread _is_ to patch just one problem -
> incompleteness. 

As you've stated yourself, the message ID is a precious resource.  We 
should fully leverage it if possible.  If we can fix a whole bunch of 
other stuff as well as completion by adding a few fields to the message 
id, let's go for it.

> I have spent _months_ of time on the "entire solution" without 
> finding even the slightest idea how to reach it. The "additional" 
> discussions about "yEnc", "Binary Usenet" and "FNTP" in the 
> last 18 months did not result in a single step forward.

We got yEnc.  I supposed can be considered a step forward ;p
 
> There is no reason to repeat all this again.
> And my experience with yEnc tells me now that it is _possible_
> to make changes within an acceptable period of time.
> And I dont see any reason to discuss an "entire solution" for 
> the next three years when it is possible to solve incompleteness
> seperately.

I don't think anyone is trying to fit a complete cure for usenet's ills 
in the MEssage-ID.  But we have to look beyond a narrow scope if we're 
going to make progress.  That is yEnc's chief shortcoming.  It set out to 
do one thing: reduce UU's overhead.  That it has done, but hasn't helped 
in any other way.  If we 'fix' usenet using your ideology, we'll end up 
with twenty quick hacks all working (?) in conjunction, each of which 
implemented differently in every server and reader.
 
> Please understand me right:
> The solution I'm seeking for _should_ be a part of the "greater plan"
> - and I dont want to risk again to go a seperate path and to
> invalidate the work of others.

I'm glad you learned something from yEnc.

>>It didn't take years for users and developers to adopt yEnc.  Where's 
>>your argument now?
> 
> A good programmer is/was able to implement yEnc within a few hours.
> Most users had only to upgrade their newsreaders (or get another
> free autoposting tool).

With an MD5 library and samplel code to do base6 conversion, the message-
id tagging could be done as quickly.
 
> Changing "fills and reposts" is _user_behavior_. 
> I believe this would make a big difference.

This will come with upgrading autoposting tools.  
 
>>> I believe that we should concentrate on (and solve) incompleteness.
>>> Then all the other "nice trys" are even obsolete.
>>
>>I don't understand what you mean by the last sentence.
> 
> We dont need reposts if the original transmission is complete.

You terminated that sentence too early.  "... and if every server can 
handle a full feed and maintain decent retention".  If that was the case 
then there currently wouldn't be a problem.  What we're trying to build 
is a system that does better when systems are struggling to catch up.  
Transmissibility wouldn't be an issue if servers could handle it.

> All "nice tries" to operate with "filling and repost databases" and
> "hashes" is not necessary if we are able to make sure that multiparts
> are properly propagated. 

"hashes" do a lot more than that, and I think you know that.

> It is better to fix the problem than to create a tool which
> circumwents it. 

The fix is upgrading servers.  We have no choice but to circumvent that 
solution.

-Mike
Re: [FNTP] 'in-completeness'
#61152
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 23:36
30 lines
2526 bytes
[Russ Allbery]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>   > [Russ Allbery]:
>   
>   >>   Why would it do that?
>   
>   > it limits the description to a single line.
>   
>   I'm not sure what you mean by description, but you can list as
>   many keywords as you want.  It's not like there's a line length
>   limit.

there isn't?  my, I really need to have a look at the new draft.  do
you happen to have a URL handy?

>   > "not really" means "yes, but there is a simple workaround".
>   
>   Well, no, you said incompatible.  It's not at all incompatible.
>   If you want to add some other command like LIST WILDMAT-FEATURES,
>   nothing about LIST EXTENSIONS interferes with that.

ah, ok.  still, having a standard way of getting additional detail
about an extension would be nice, no?

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61153
Author: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 23:40
19 lines
2132 bytes
[Mike Horwath]:
>
>   Juergen Helbing <archiver@i3w.com> wrote:
>   : The good question is if such "conenctions" limits are based on
>   : user-accounts - or on ip-addresses.
>   
>   : Curt, Jeremy, Jason, Mike, .... ??
>   
>   Both for the software I currently use.

if you had a lot of connections coming from nntp-proxy.online.no,
would you add an exception to the per-ip limit or ignore their
problem?

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61154
Author: Russ Allbery
Date: Mon, 07 Oct 2002 23:47
28 lines
2597 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:

>>   I'm not sure what you mean by description, but you can list as
>>   many keywords as you want.  It's not like there's a line length
>>   limit.

> there isn't?  my, I really need to have a look at the new draft.  do
> you happen to have a URL handy?

<ftp://ftp.academ.com/pub/nntp/ietf/> is the primary site and should have
the latest published draft.

> ah, ok.  still, having a standard way of getting additional detail
> about an extension would be nice, no?

That depends a lot on what sort of detail you're talking about.  I'm not
sure I'm seeing a use for *machine-parsable* detail about an extension
that isn't already served fairly well by LIST EXTENSIONS.  Humans should
refer to the documentation rather than to the results of commands, after
all.  :)

-- 
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: [FNTP] 'in-completeness'
#61157
Author: Curt Welch
Date: Tue, 08 Oct 2002 00:13
27 lines
2164 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> In article <20021007011605.763$7M@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
> >
> >If I, as a client, need to know SASL information, why would I
> >use a command that dumps all this shit about wildmat support?
>
> Hmm.
>
> I see no reason why we couldn't propose an extension to LIST
> EXTENSIONS, where an optional argument would indicate which
> extension you're interested in.
>
> (You could even allow multiple arguments, but at some point the
> amount of data you have to send up to specify which extensions
> you care about is larger than the unwanted return data would have
> been.)
>
> But I'd like to see an actual need for it in practice first.

Yeah, it would be stupid to fix a non-problem.  At this point, there
are not enough extensions to worry about.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61158
Author: Curt Welch
Date: Tue, 08 Oct 2002 00:22
30 lines
2804 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:

> the flow of data in an NNTP connection is very lopsided, generally
> there will be little traffic in the opposite direction.  this makes it
> easier to keep the input drained while the output pipe is full.  yes,
> the code needs to move data from the implicit queue which is the
> kernels TCP buffers into an explicit queue in order to see and process
> the ABORT.  when an ABORT comes in, the server should see if it is the
> currently processed request, or look through the queue for pending
> commands (a simple text comparison).
>
> the code should be simple enough, but one must take care to keep the
> number of extra syscalls (select/poll/gettimeofday) down.

My server is already structured to deal with that with no delays.

That wasn't my point. My point is that when the sender gets the abort
request (which will be very quickly), there will be a huge amount of data
in the pipe going the other way (100K is not unresonable between the
application output queues, the TCP IP stack, the net, the receiving TCP/IP
statck, and the application input queues).  I just think it's silly to try
and abort output when the data won't stop for 100KB.  I think you need to
find a way to prevent it from being sent in the first place if you really
don't want it that bad.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61159
Author: Jeffrey M. Vinocur
Date: Tue, 08 Oct 2002 00:38
20 lines
1660 bytes
In article <1r8z196ctx.fsf@atta.ifi.uio.no>,
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
>[Russ Allbery]:
>>
>>   I'm not sure what you mean by description, but you can list as
>>   many keywords as you want.  It's not like there's a line length
>>   limit.
>
>there isn't?  my, I really need to have a look at the new draft.

Keep in mind he refers to the response from the server.  The line
length limit on client commands remains in effect, but there is
not now and never has been a limit on what the server can do.

(I think.)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [FNTP] 'in-completeness'
#61160
Author: Curt Welch
Date: Tue, 08 Oct 2002 02:14
88 lines
6221 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> I'm no cryptographer, but I'd be surprised if a simpleminded XOR of
> hashes is cryptographically secure (no known way of tampering with the
> data without changing the hash).  it is obvious that the cryptographic
> properties of the hash algorithm can not be _improved_ by such an
> operation, but it is not clear that it will detract either.

In a later post I modified that idea into a hash of the hash values,
not an XOR.

So you calculate an independent MD5 hash of each 1K block.  Then you take
all those hash values, and write them logically to a file.  Then you
recurse.  You calculate the MD5 of each 1K block from that file.  You keep
doing that until you get down to a single MD5 value and that is the hash
for your file.

> I would err on the safe side, and use a proper MD5 for the whole file
> as a final check.  (the binary assembly program needs to handle the
> case where there are more than one candidate for a complete file.)

Yeah, but that is worthless to help solve the association problem.  Given
on multipart article which only conatains a segment from the full file, how
do you "prove" that the data in the article, is really from a file which
produces the hash in the message-id.  How can you prove that either the
data, or the hash, is not a fake?

With a normal hash, the only way to prove it is to include all the rest of
the data in the post (impossible of course).

With the modified tree-of-hashe system, you can include just the top of
this hash tree instead of all the real data.  That gives you enough data to
recalculate the final (top of tree) hash value without having to have
access to all the data.

> we only need the doubly linked list with the segment hashes, I think.

That does a a lot to reduce the complexity of the problem of matching up
pieces, but is still forces the download tool to do a complex mix and match
testing after it's downloaded everything it can find.  With the hash-tree
system you can verify each post separately and never have to compare it to
other posts.  Once you check it for consistency, you "know" that you have
valid data for that segement of the file.  It's far simpler to code than
something that has to build a complex map of all possible segment
combinations and them calculate various segment hashes to see what "fits".

> I haven't really thought through the issues of refills with a
> different segment size, though.

It will work.  YOu just have to grab the segments and re-create sections of
the files and then calculate hashes as required.  It's workable, but
complex.

So, if you had a segment like this:

     11111111111111111111+2222222222222222222+333333333333333333+
                       +DDDDDD+EEEEE+FFFFF+GGGGG+

Where 1, 2, and 3 above are 3 multipart articles for consicutive segments,
and D, E, F, G, and posts of the same file done in much smaller part
sizes, which overlap as shown, then if you lost part 2, but found parts
D though G, you could grab those 4 parts, and re-construct the missing 2
segment, then calcualte the hash of the missing 2 segment, and see if it
matched what was expected in the forward reference of the 1 post and
the back reference of the 3 post (which should be the same).

It would still be very complex for the download tool to solve the problem
however in light of a large set of different sized "fake" posts created
intentionally to confuse the tool.  Thought the forward and reverse hash
links reduceds the computational time by many orders of magnitude (I
think).

> >   The harder part of the system is creating the hash data that must
> >   be included with every post.  But even that is computationally as
> >   simple as calculating the hash in the first place, it just
> >   requires more memory to save all the hash values from the top of
> >   the hash tree (but still only something only in the 50K range even
> >   for huge files).
>
> 50K?  err, I think I must go back and re-read your hashing scheme.

It's in one of these articles - there are on a few hundred to look though.
:)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61162
Author: Curt Welch
Date: Tue, 08 Oct 2002 03:39
325 lines
17748 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> Ideally, you take the binary direct from user upload rather than ever
> going through an encode and decode cycle, and encode (and possibly split)
> the binary yourself for propagation to Usenet for the user rather than
> having the user do it.  That eliminates a bunch of problems with broken
> encoders as well as making it easier to get the pure version of the
> binary.

It's all smoke and mirros no matter how you do it.  When we tranport
a "binary" from my disk, to your disk, it's get encoded and decode
100s of times.  It starts on my disk encoded in who know what type
of Reed-solomn version of magnetic patches which logically hold 512 bytes
of data but is actually written as something like 800 bytes worth of bits,
and then gets translated to an encoding of electrostic charges in the
memory of the disk drive controller board, then strange SCSI packets over a
multiwire buss, then memory of my computer stored in mbufs, then IP packets
of less than 1500 bytes each, then light waves, etc etc.

Each of those translations is an "encoding" no different than uuencode
or yEnc or multipart files in it's complexity (many like the form it's
actually writen to a disk service is far more complex).  The only
difference is that it's a well defined and correctly engineered so it
works.  When one router causes light to be flashed at one end of a fiber
the device at the other end has no confusion about how to decode the
flashing light.

We have no problem choping a file into disk sectors, or IP packets, or
virtual memory pages and putting them back together wihtout problems.
There's nothing inherently wrong with chpoing a file up into multipart
posts either.  You just have to do correctly so there's never any confusion
about how to put it back together.

And if it happens to be encoded in some strange yEnc format, so what.  If
it's defined correctly (which it isn't yet, but it's close) it will always
work when it's translated from one encoding to the next at the end of the
trip.


> And at the same time, I think most everyone agrees that encodings, any
> encodings, inherently lose, and that the world we'd all like to move
> towards is one where binary posts have a CTE of "binary" and no encoding
> at all.

Well, this is an issue of semantics, but it's an important point I think
you have allowed yourself to be blinded to.  These files are _always_
"encoded".  There's no such thing as a binary file stored in physcial media
without an "encoding".  You must define what arrangement of the physical
medium represents a "1" and what represents a "0", and that's an encoding.
And for almost everything we do with computers, you end up with 4 or 5
levels of "encodings". (i.e. magnetic flux patterns map to 1s and 0s, but
then you go though a 14 to 10 reed soloman decoding to get 10 bits for each
14 stored, then you combine those into blocks of 512, to get a "logical"
raw disk, which get's encoded by the file system into "files", which gets
encoded by an application into a news spool, which gets encoded by NNTP
wire format to repeset an article, which get encoded by the yEnc to
represent finally some "logical" file.  There, that's 6 levels of encoding.
You are talking about turning that into 5 and that removes "all the
encoding?".  I don't think so.  YOu just need to make the top level (yEnc +
multipart) as sold of an endoding standard as all the levels below it.

> There's no such thing as a 5 part post that contains 12 uuencoded
> pictures.  :)

There are.  I've seen them.  My newsreader decodes them correctly.  I'll
be happey to send you the Message-Ids of the set next time I spot one.

> Seriously.  There's only one way to split uuencoded binary content across
> messages, and that method doesn't let you do it sanely with multiple
> binaries in the same multipart post.

You must not have spent much time trying to decode Unix binaries. :)

The "correct" algorithm for decoding a multipart uuencoded article is very
simple.  All you do is concatenate the body lines (being sure to not
include the blank line between the header and the body), of all the
articles into one large body.  Then decode it as if it were one large
article.  If it has 5 jpgs uuencoded, it just works.

People have, and will continue to post articles like that.  There is
software out there that allows you to attach multiple files to one article,
and it simply uuencodes each file as if it were one huge article.  Then it
calcualtes the total number of lines, and splits them up across however
many multipart posts you want.

uuencoded multipart posts were at one point very simple.  But it just kept
getting worse...

> So don't even bother trying.  State
> that by definition of a multipart post no such thing exists or will be
> recognized.  The number of people doing stuff like this surely can't be
> large (and isn't based on the binaries I've seen).

I'm more than happy to drop the idea of being able to do that type of stuff
in the "binary" usenet.  It's not needed.

> If someone really wants to take a complex post like that and split it
> across multiple separate posts, they need to use a protocol that can
> actually correctly represent that (namely message/partial or some
> variation thereof).

uuencode multipart posts from 10 years ago did it perfectly.  And it was
simple as hell.  Now it's complex as hell because nobody seems to
understand what the standard was and how simple it was.  They think that
adding headers and footers to each multipart is "ok" or even "an
improvement" over the old way.  They think than it's ok to automatically
add "posted at newsfeets to every post".  etc. etc.

> I don't see why any of these are hard.

The hard part is that you have to cleanly define the mapping from one
"encoding" to the next to make it a "solid" encoding system.  We have no
clean standards currently at this level, so it's impossible to convert
without loosing important information.

> You take the attachment and convert it to CTE binary and leave the rest
> of the post alone.  If the user is posting and uploading separately, you
> stick the attachment in at the point where they indicated, splitting the
> message into multipart/mixed if necessary to do so.  If the user used
> yEnc or uuencode, transform it into a real MIME part, changing the
> message to multipart/mixed as needed.
>
> It's not particularly hard to do this sort of thing; one just reads the
> MIME standards and implements them.  All the logic is already there for
> doing this sort of thing and doing it pretty well.  The mail clients
> already know how to deal with all of these sorts of posts, to a greater
> or lesser degree.

No, there is no mime standard for doing what you can do with uuencoded
data inserted into a text file (other than leaving it as a large text/plain
segment which of course is not what you are after).

I'll try to explain my point here.

_every_ usenet newsreader that can decode pictures in-line will produce
bascially the same end-user representation of a text article with multiple
uuencoded pictures inserted a various places in-line.  It's simply one
large text article with pictures between the words.

In mime, it's simple to encode the same data, you can do a multipart-mixed
and put in alternating text/plan and image/jpeg segmetents.

But very few mime "viewers" will display that the same way as _all_ the
newsreaders displayed the article.  Instead of making this one large page,
they will do things like show the first text segment as the article, then
show the the rest as "attachements".  If they show the pictures, they will
tend to be separted with HRs to indicate that they are all separte files.

The encoding of the uuencoded text has a semantic understanding that it
is "one page".  MIME has no such thing for text segemnts.  You have to
go to a far far more complex HTML encoding with embeded references to
local parts.

Now, I'm not saying that's bad.

What I'm saying is that it's NOT A STANDARD.  The mapping from one type of
multipart binary encoding to another is just not well defined.  If you were
to convert a binary posts from one format to another, then hand your
version to a third party and ask them to convert back to the orginal form,
there's no way in hell they are going to produce the orginal article.
That's because it's not a 1 to 1 mapping.  If it's not 1 to 1, then you are
throwing something away when you translate it, and you aren't allowed to do
that on Usenet.

When you write a file to disk, and then read it back, it goes though
multiple encodings. But you know (when the hardware is working) that you
can go though that converstion and end up with what you started with.

What Usenet could really use is a standard for what a "binary post"
logicaly is.  Then we can create various encoidngs to represent that
standard and various ways to convert from one encoding to another without
loosing any of the "real content" of the message.

> > What happens when decoding errors happen?  Like the "end" line is left
> > off a uuencoded message?  What happens when a uuencode dmessage is
> > posted with lines lenghts other then "M"?  Does it abort or does it
> > decode?  What happens in a uuencoded file when the posting tool forgets
> > to dot escape the lines as it's sent to the NNTP server so the dot that
> > happened to be there is stripped off?  There are usenet uudecoding
> > tools that look for that and figure out what the file "should have
> > been" had it been posted correctly.  Is that right or wrong?
>
> Corrupt binaries are corrupt binaries.  What do you do now when decoding
> such messages for your users?

What's imporant is the fact that the way are translated to a "view" on a
computer screen is not consistent from one system to the next - which
proves that we don't have a standard in place.

None of those "corrupt" posts are "corrupt articles".  They are all
perfictly valid articles.

> You can either filter such things out as broken,

With the right standards in place as to what a "usenet binary" is, then
that is eactly what should happen.  But we don't have that now. We only
have good standard for what a valid "usenet article" is.

> or you can attempt to
> repair them;

You never want to have to repair.  You only do that when there isn't a good
standard was to what is right and wrong.

> > However, this idea of moving binaries I think has some merit simply
> > because we are talking about trying to transform the concept into a
> > completely different type of article for usenet.  I dont' see it
> > applying to text articles at all.  Text articles (and their
> > message-ids) will stay like they are today.
>
> The line is a bit hard to draw, though.  :)

Well, not in my mind because I'm trying to do something a little different
than you I think.

I'm on a mission to try and find a way to make large multipart binary files
work much better on Usenet.  So I'm looking at ideas of how we can make the
usenet servers know they are transporting files, and not just articles.

But, for the text articles which doesn't fall under this idea of a "large
file binary transport system", I don't care if they still contain pictures
and sound files etc.

You on the other hand want to see all binaries forced into a new system so
you can easily filter and control their distribution.

That's fine, to work on, but not my main focus.  For backward compatibility
(and to some extend easy of use), some stuf will always be encoded in the
"old way".  It works better that way.  It still nice to simply stick a
uuencoded picture into the middle of a text article.

But when you want to transport thigns that don't fit into Usenet text
articles easilly, that's when this whole binary transport system comes into
play.

> The special marker is probably the easiest to explain.

I like simplicty.


> Usenet absolutely has to support it to remain compatible with mail;
> people use it extensively.

Yeah, but I think that's done in text articles, not in this binary
file system.

> > Unix doesn't have a concept of multipart files like CDC did.
>
> Yes, but that's not what this is.  What this is is something like
> including an inline line drawing in a discussion of fonts.  That post
> would become multipart/mixed or multipart/related if posted with proper
> MIME structure.

Could be.  But that's not what I'm seeing.  I'm seeing a system that
bascially allows people to point to a file on their disk and say "send
that on Usenet and here's the From: and Subject: and Newsgroups: to
put with it".

If you want to transport a mime article over usenet, just do it as a normal
usenet mime post.

Or, if you can save a mime e-mail message in a file, and transport the file
over usenet in the "file transport system" - only a good idea if for some
reason you want to send a copy of an e-mail as a raw file of course.

If you want a Usenet message that is compatiable with a mime e-mail message
in terms of all the stuff it can suport, the only way to do it is as a mime
Usenet message.


> If you use message/partial to handle any necessary splitting of the
> message ...

I don't know enough about MIME and message/partial to know for sure
what you are getting into if you try that, but generally, I see
MIME as a very large and complex beast which belongs at a level
above what I'm looking at.

Would you use MIME message-partial to split up a file into disk blocks
on disk drive?  That would be absurd.  That's the level I'm thinking
at here when I talk about splitting up files and transporting them
in some formal, but very simple way, over usenet.

Another way to attack this multipart problems is to look for a formal
way to define splitting up usenet articles (instead of files) and
then transporting them over Usent.  So you can post soemthing as a
huge 10GB MIME single part article, and then under the covers, the usenet
servers have some formal way for splitting that up into many smaller parts
to make it easy to move around and store.

But that approach mostly kills the conept of allowing multiple people
to post parts of the same file.  When you split and transport "files"
instead of "articles" you end up with something that can be shared.

> > If you talk about formalizing what a usenet-file-segment is, then maybe
> > there would be a standard way (using MIME) to encode it for trasport
> > over e-mail.
>
> I think you'll find that message/partial is almost already there.

It's just not what fits here as I see it because it's a standard for
splitting up a MIME message.  I don't want to split up a MIME message,
I want to split up a file.

BTW, a file in my mind is fixed and ordered sequence of 8 bit bytes from 0
to N bytes long - and which there is _NO_ associated metadata supplied by
the user (like file name, or content type, or creation date, etc).  They
can of course supply stuff like that in the headers, but it's outside the
scope of what the usenet "system" is transporting.

The "hash" we use to identify file the file is not "assocaited metadata",
supplied by the user, but instead something that is defined by the data.

The user can post segements of these files associated with the meta data in
the header which we will preserve and transport (you need to document where
the data came from in all cases), but the logical model of what's getting
transported at the higher level is nothing more than a N byte file which is
uniquely identified by it's hash (collisions will cause corruption but we
are willing to live with that).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61163
Author: Russ Allbery
Date: Tue, 08 Oct 2002 04:53
286 lines
16177 bytes
Curt Welch <curt@kcwc.com> writes:

> Each of those translations is an "encoding" no different than uuencode
> or yEnc or multipart files in it's complexity (many like the form it's
> actually writen to a disk service is far more complex).  The only
> difference is that it's a well defined and correctly engineered so it
> works.

Well, some of the cases that you're talking about are either dead-simple
(NNTP wire formatting), or the writer and the reader are the same person
(like your disk drive).  You don't have to standardize the encoding on the
disk drive; all that you have to do is make sure the disk drive can read
its own encoding.  (And there have been arguments about NNTP wire
formatting before, so it's not as clearly reversible as it looks.)

Encoding for transport is a bit different.

What I'm talking about is that when transporting files from one place to
another, the best way to do that is to transport them as the binary
streams that the other side wants to recover.  Anything else adds
complexity, and the more complexity you add, the larger chance there is
that something will break.  Every change you made has to be carefully
analyzed to be sure that it's reversible, which is work you don't have to
do if you minimize the number of changes you have to make.

> You are talking about turning that into 5 and that removes "all the
> encoding?".  I don't think so.  YOu just need to make the top level
> (yEnc + multipart) as sold of an endoding standard as all the levels
> below it.

Headers are not the same thing as encoding, either at the packet level or
at the message level.  Putting something in an envelope isn't the same as
changing the materials it's made out of.

>> There's no such thing as a 5 part post that contains 12 uuencoded
>> pictures.  :)

> There are.  I've seen them.  My newsreader decodes them correctly.  I'll
> be happey to send you the Message-Ids of the set next time I spot one.

Okay, fair enough.  I don't know enough about the strange stuff that
people do on Usenet.

> The "correct" algorithm for decoding a multipart uuencoded article is
> very simple.  All you do is concatenate the body lines (being sure to
> not include the blank line between the header and the body), of all the
> articles into one large body.  Then decode it as if it were one large
> article.  If it has 5 jpgs uuencoded, it just works.

You're missing the whole reason why this isn't even remotely simple,
namely figuring out which posts to grab and what order to put them in.
That's the thing that multipart uuencode doesn't have, and exactly the
reason why dealing with them in news software is such a pain.

> uuencode multipart posts from 10 years ago did it perfectly.

So that's why you're spending a bunch of your time on this newsgroup right
now trying to, in part, reinvent message/partial?  :)  Or something very
much like message/partial, although perhaps a bit better.  I haven't
analyzed them both very closely to compare.

> The hard part is that you have to cleanly define the mapping from one
> "encoding" to the next to make it a "solid" encoding system.  We have no
> clean standards currently at this level, so it's impossible to convert
> without loosing important information.

Yes, actually, we do.  Really, honestly, you should spend a bunch of time
reading the MIME standards, if you haven't already.

Seriously, people use this stuff every day.  People send AppleDouble
messages.  People send all sorts of multipart messages.  People even send
entire web sites complete with PNGs.  There's a formal structure that
explains exactly how to put them together and take them back apart again,
and they're even recoded in transit by mail servers and still work
properly.

MIME has got to be one of the most reinvented wheels in the history of
Internet standards, and the reason why that happens is precisely because
people take one look at MIME, don't really understand it, see that it's
really large and really complicated, notice that a lot of people have
written half-hearted implementations of it, and go off to do their own
thing instead.  Because they have some other special requirement, and they
think it's easier to solve their little problem.

Then they find more edge cases, and then they discover they want to do a
few other things, and slowly their little simple system turns into
something as complicated as MIME, but with things tacked on at weird
angles and without the level of peer review and existing implementation
that MIME has.

If half that energy had been spent fixing the bugs in the existing MIME
implementations, more net forward progress would have been made, but
really understanding MIME and fixing bugs in implementations of it isn't
as much fun as building something new from the ground up.

Heaven knows I've wasted my time reinventing that particular wheel before,
and even more time arguing against the wheel that already exists.  And
it's certainly true that MIME is large and complicated and hard to fully
implement properly.  That's because the *problem* is large and complicated
and hard to implement properly.  The complexity is mostly real complexity,
not complexity forced by an accident of implementation.

> No, there is no mime standard for doing what you can do with uuencoded
> data inserted into a text file (other than leaving it as a large
> text/plain segment which of course is not what you are after).

Well, yes, there is.  It may not be currently followed by all MIME
clients, but there is, in fact, a standard.

> _every_ usenet newsreader that can decode pictures in-line will produce
> bascially the same end-user representation of a text article with
> multiple uuencoded pictures inserted a various places in-line.  It's
> simply one large text article with pictures between the words.

Most Usenet newsreaders that I'm aware of can't decode pictures in-line.
:)  So I can't really argue with this; it's outside of my experience.
Gnus, unsurprisingly, treats such an article exactly the same as the
corresponding MIME article.

> In mime, it's simple to encode the same data, you can do a
> multipart-mixed and put in alternating text/plan and image/jpeg
> segmetents.

> But very few mime "viewers" will display that the same way as _all_ the
> newsreaders displayed the article.  Instead of making this one large
> page, they will do things like show the first text segment as the
> article, then show the the rest as "attachements".

And if they do this despite a Content-Disposition: inline header in the
MIME parts, they're wrong.  There are a decent number of MIME
implementations that do get that wrong, and others that get that right.
One can put effort into fixing the ones that are wrong; my impression is
that a lot of binary readers already use specialized software, so it's not
like you have to fight the Outlook Express juggernaut to fix this.

> The encoding of the uuencoded text has a semantic understanding that it
> is "one page".  MIME has no such thing for text segemnts.

Yes, see, it does.  It's not widely implemented correctly, but if you read
RFC 2183, exactly how to do this is clearly specified.

2.1  The Inline Disposition Type

   A bodypart should be marked `inline' if it is intended to be
   displayed automatically upon display of the message.  Inline
   bodyparts should be presented in the order in which they occur,
   subject to the normal semantics of multipart messages.

> What I'm saying is that it's NOT A STANDARD.  The mapping from one type
> of multipart binary encoding to another is just not well defined.

And I'm disagreeing.  :)  I believe that it is, in fact, well-defined, and
much better defined than it is for legacy encodings like yEnc and
uuencode.  It may not be *implemented* properly, but if you invent a new
standard, that isn't going to be implemented properly to start with
either.

> What Usenet could really use is a standard for what a "binary post"
> logicaly is.  Then we can create various encoidngs to represent that
> standard and various ways to convert from one encoding to another
> without loosing any of the "real content" of the message.

I have a very hard time imagining how this would not end up looking quite
a lot like the existing MIME standard.

> Well, not in my mind because I'm trying to do something a little
> different than you I think.

> I'm on a mission to try and find a way to make large multipart binary
> files work much better on Usenet.  So I'm looking at ideas of how we can
> make the usenet servers know they are transporting files, and not just
> articles.

Right, I understand.  I think you're not going deep enough into the
fundamental brokeness of what's currently being done, but that in and of
itself is a laudible goal, and I won't argue with whatever results you get
out of it.

> But, for the text articles which doesn't fall under this idea of a
> "large file binary transport system", I don't care if they still contain
> pictures and sound files etc.

> You on the other hand want to see all binaries forced into a new system
> so you can easily filter and control their distribution.

Well, what this came out of was my observation that I think multipart
posts are inherently broken to the degree of being abusive in that they
inflict themselves on sites that don't want them and wouldn't deal with
them if they had some way of avoiding doing so.

So insofar as you're interested in eliminating or controlling multipart
posts so that sites can still make effective article size decisions, we're
pursuing similar goals, although you want them to propagate more smoothly
and I want to be able to opt out of responsibility for propagating them.

> Could be.  But that's not what I'm seeing.  I'm seeing a system that
> bascially allows people to point to a file on their disk and say "send
> that on Usenet and here's the From: and Subject: and Newsgroups: to put
> with it".

I think this is pretty limited, frankly.  I think you'll run into the
limits very quickly.  What you end up with is basically a p2p file sharing
system with central caches that happens to use NNTP as a transport
protocol, which I don't think is very interesting or very useful.

But I could be wrong.

What's *interesting*, I think, is supporting the full spectrum of
structured messages that MIME makes possible within the structure and
facilities of Usenet.  Which includes large attachments.

But I agree that the current binary Usenet looks a lot more like a p2p
file sharing system, so maybe that's a good model to look at if what you
care about is making that existing system work better.  I think this is,
in the long run, as much of a doomed effort as Napster was for many of the
same reasons, and think that designing technology that's just going to be
used almost exclusively for illegal activity and outside of that doesn't
really do anything all that *interesting* is kind of a waste of time.
But that's just a statement about what scratches my itches, and you're
certainly entitled to scratch your own.

> I don't know enough about MIME and message/partial to know for sure what
> you are getting into if you try that, but generally, I see MIME as a
> very large and complex beast which belongs at a level above what I'm
> looking at.

> Would you use MIME message-partial to split up a file into disk blocks
> on disk drive?  That would be absurd.  That's the level I'm thinking at
> here when I talk about splitting up files and transporting them in some
> formal, but very simple way, over usenet.

No, you're not talking about saving them on disk.  You're talking about
transporting them over a network protocol.

This is *precisely* what message/partial was designed to do, to take a
message and split it apart into parts for transport over a network
protocol so that it can be reassembled by an application on the other
end.  It is intended to include all the information required to identify
the parts and assemble them in the right order and make sure that the
resulting assembled article is valid and was decoded correctly.

The transport that it was designed for was SMTP rather than NNTP, so it's
hostile towards 8-bit, but other than that it looks a heck of a lot like
the wheel you're inventing.

> Another way to attack this multipart problems is to look for a formal
> way to define splitting up usenet articles (instead of files) and then
> transporting them over Usent.  So you can post soemthing as a huge 10GB
> MIME single part article, and then under the covers, the usenet servers
> have some formal way for splitting that up into many smaller parts to
> make it easy to move around and store.

Right.  This is exactly the sort of thing that message/partial is for,
although message/partial involves a degree of robustness that may not be
entirely necessary if you're only doing the disassembly and reassembly at
the transit layer rather than also storing the articles that way.

> But that approach mostly kills the conept of allowing multiple people to
> post parts of the same file.  When you split and transport "files"
> instead of "articles" you end up with something that can be shared.

I don't see why this is useful.

> BTW, a file in my mind is fixed and ordered sequence of 8 bit bytes from
> 0 to N bytes long - and which there is _NO_ associated metadata supplied
> by the user (like file name, or content type, or creation date, etc).
> They can of course supply stuff like that in the headers, but it's
> outside the scope of what the usenet "system" is transporting.

I think this is a serious mistake.  Files without metadata are
substantially less useful.  This is a problem that's been rediscovered
independently by multiple different protocols, including SMTP, HTTP, and
the current news article format.  You need the metadata to make reasonable
decisions about what to do with the resulting file.

> The "hash" we use to identify file the file is not "assocaited metadata",
> supplied by the user, but instead something that is defined by the data.

Like Content-MD5.

-- 
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: [FNTP] 'in-completeness'
#61165
Author: Juergen Helbing
Date: Tue, 08 Oct 2002 05:01
40 lines
2621 bytes
Klaas <spamhole@klaas.ca> wrote:

>> I'm still convinced that the reduced attractivity of Usenet
>> would be fatal. 
>
>I'm curious as to on what you're basing that.  In almost every group I 
>subscribe to, the vast majority of regs are not involved in binary usenet 
>at all (obviously I don't know everyone well enough to be sure).

All people I know from the binaries are also active in the text groups.
But they are not ashame to admit it :-)

Most newbie people come to Usenet because they heared that 
it would be a great place for music, movies, warez and erotica.
They find google earlier or later and become used to handle 
the newsgroups. From there to the text-groups is a small step.
Such users have learned about spam, flames and other 'standards'.

People who come from the text-web-boards to Usenet are having
big difficulties. The complexity of newsreaders, to lack of moderation,
to general tendency to condemn newbies if they ask off-topic, the 
rude behavior.....

If there is any "marketing" for Usenet then it are the binaries.
If there is a Usenet hell, then it are the text-groups......


Every 'good' and successful magazine and newspaper contains
a certain dose of pictures and 'stimulance' - and Usenet is
exactly the same thing....  SMS becomes MMS today....

Perhaps we agree when I say: "We dont know exactly how 
important the binaries are, but discarding them would be
a backstep."
Else we agree to disagree.  :-)

-- 
Juergen

Re: [FNTP] 'in-completeness'
#61166
Author: Juergen Helbing
Date: Tue, 08 Oct 2002 05:18
18 lines
1914 bytes
Klaas <spamhole@klaas.ca> wrote:

>I was simply questioning your assertion that we 'know' that usenet will end 
>up being a distributed database of for-pay material.

Usenet _is_ a distributed database for "pay" and "free" material.
Without and indicator for "free/pay" and without a "pay button".
I dont think that this is questionable.

Meanwhile there are even self-service "flower-plants" with price tags
and a small box where you can leave your money. No cashier at all.
People are accepting even this - and they are happy about it.

Do you understand me ?  
-- 
Juergen

Re: [FNTP] 'in-completeness'
#61169
Author: Kjetil Torgrim Homme
Date: Tue, 08 Oct 2002 08:38
26 lines
2482 bytes
[Curt Welch]:
>
>   That wasn't my point. My point is that when the sender gets the
>   abort request (which will be very quickly), there will be a huge
>   amount of data in the pipe going the other way (100K is not
>   unresonable between the application output queues, the TCP IP
>   stack, the net, the receiving TCP/IP statck, and the application
>   input queues).  I just think it's silly to try and abort output
>   when the data won't stop for 100KB.

100 kB of a 100 MiB posting is 99 MiB saved.  100 kB is 12 seconds on
ISDN, and 2 seconds on slow ADSL.  quite acceptable, I think.  but the
advantage compared to just dropping the connection may not be great.
for transit, though, you'll be on the receiving end, and will have to
wait a minute or five for your peer to open up a new connection.

>   I think you need to find a way to prevent it from being sent in
>   the first place if you really don't want it that bad.

perhaps.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61170
Author: Curt Welch
Date: Tue, 08 Oct 2002 12:15
36 lines
2947 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:
> >
> >   That wasn't my point. My point is that when the sender gets the
> >   abort request (which will be very quickly), there will be a huge
> >   amount of data in the pipe going the other way (100K is not
> >   unresonable between the application output queues, the TCP IP
> >   stack, the net, the receiving TCP/IP statck, and the application
> >   input queues).  I just think it's silly to try and abort output
> >   when the data won't stop for 100KB.
>
> 100 kB of a 100 MiB posting is 99 MiB saved.

Yeah, when the file size is >> the total amount in the pipe, it's worth
waiting for sure.

> >   I think you need to find a way to prevent it from being sent in
> >   the first place if you really don't want it that bad.
>
> perhaps.

To me, everything is so much more predictable and relieable if you have a
protocol which can "plan ahead" in effect and not ask for stuff it doesn't
want instead of trying to to stop it after it's already started.

If you need to scan the body to figure out if you want the file, then you
need to do the scan on the other side of the pipe, or change things so that
whatever you are looking for in the body get's moved to the headers etc.

Now, for a UI abort function, that's something else.  This is something you
want to provide and it's something that's just not very clean with NNTP.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61173
Author: Russ Allbery
Date: Tue, 08 Oct 2002 16:28
16 lines
1977 bytes
Juergen Helbing <archiver@i3w.com> writes:

> Perhaps we agree when I say: "We dont know exactly how important the
> binaries are, but discarding them would be a backstep."  Else we agree
> to disagree.  :-)

I think we'll agree to disagree.  :)  (Assuming that by binaries, you're
meaning the large piles of mostly autoposted binaries in the binary
hierarchies.)

-- 
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: [FNTP] 'in-completeness'
#61183
Author: Curt Welch
Date: Tue, 08 Oct 2002 20:52
159 lines
10216 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> Headers are not the same thing as encoding, either at the packet level or
> at the message level.  Putting something in an envelope isn't the same as
> changing the materials it's made out of.

Splitting a binary file up into packets and putting headers on each packet
is an encoding.  If that's not an encoding, then neither is
uuencode which simply splits the bit stream up into 6 bit packets and adds
a two bit header to each packet and a 24 bit spacer between sets of
each 60 packets and few special packets at the beginning and end of the
file.  It's all just a matter of how you look at it.  We normally think
about these things differently and you would confuse people if you called
the encaspulation done by TCP as "encoding", but it is, in fact, only
different if you choose to look at it that way.

> > The encoding of the uuencoded text has a semantic understanding that it
> > is "one page".  MIME has no such thing for text segemnts.
>
> Yes, see, it does.  It's not widely implemented correctly, but if you
> read RFC 2183, exactly how to do this is clearly specified.
>
> 2.1  The Inline Disposition Type

How stupid of me to say "MIME has no such thing".  Every time I say that
it comes back to bite me.  OK, MIME has _everything_ I admit it. :)

If we keep having enough of these debates you will end up teaching me
everything there is to know about MIME one section at a time and then
I'll never have to sit down and read the full set of standards.

> > What I'm saying is that it's NOT A STANDARD.  The mapping from one type
> > of multipart binary encoding to another is just not well defined.
>
> And I'm disagreeing.  :)  I believe that it is, in fact, well-defined,

I switched topics above and I think you missed it.  I know MIME has
a great set of well defined mappings from almost eveything you want
to transport in a mail message to a MIME message, and back again.

I was talking about converting sets of Usenet multipart artricles (as you
find them now on Usenet), to some fixed "binary" standard (MIME or
otherwise) and then back to a multipart message can't be done without
loosing information because the multipart articles are curretnly created
under a wide range of very loose standards.  I don't think this is anything
you don't already know.

> So insofar as you're interested in eliminating or controlling multipart
> posts so that sites can still make effective article size decisions,
> we're pursuing similar goals, although you want them to propagate more
> smoothly and I want to be able to opt out of responsibility for
> propagating them.

Yeah, and I think that works.  If we had a clean and well difined standard
for doing large articles as multipart posts, my thought is that no one
would waste their time with anything else if they had something large to
move over usenet.

The only exception is if they found that using the "broken" old formats
allowed binary posts to get to their server when any attempt to use the
good standard meant the article didn't show up at all on their server.

I suspect however that with a good standard to work with, Usenet might work
better in that people that had servers which couldn't keep up would have a
simple and accurate way to adjust it so it could keep up (i.e. block all
multipart articles for files over size X).  And I think it might actually
become well understod that if a post didn't show up, then it was because it
was not wanted on that server, and if you want to see the post, go to a
server that is willing to carry it.

I'm not 100% certain of that however.

> What's *interesting*, I think, is supporting the full spectrum of
> structured messages that MIME makes possible within the structure and
> facilities of Usenet.  Which includes large attachments.

But doesn't that "work" today in so far as anyone that wants to can
post correctly generated MIME messages on Usenet now?

> > But that approach mostly kills the conept of allowing multiple people
> > to post parts of the same file.  When you split and transport "files"
> > instead of "articles" you end up with something that can be shared.
>
> I don't see why this is useful.

Because usenet is all about sharing.

It means that when 3 people have a copy of a huge file which was posted 6
months ago, and there are a lot of requests for "someone" to repost it, the
3 people can get togther and agree to each post 1/3 of the file.  It's a
32GB file so the first guy says he will post the first 10GB over the next
week, and the second guy, at the same time will post the second 10GBs of
the file, but it will take him two weeks to upload it all, and the thrid
guy says he will post the last 12+GB in two days (he's got very high speed
access).  They each do their own partial posting of about 1/3 of the file
(each picking different article sizes to post in), but yet, anyone that
wnats that file can see that a single part was posted, click on that part
and tell their download tool to find all the parts and put the file
together, and the download tool will do it (for the next few weeks - all
automatically without the user having to select and mark anything.  It
works without any broblem even though was some overlap in what was posted,
and the subjects were different, and the part sizes were different, and one
guy even posted his to a different group.

This is something I just don't think MIME is set up to address (though I
refuse to ever say it _DOESNT_ do it again).  This is the type of thing you
can do with my ideas.

> I think this is a serious mistake.  Files without metadata are
> substantially less useful.  This is a problem that's been rediscovered
> independently by multiple different protocols, including SMTP, HTTP, and
> the current news article format.  You need the metadata to make
> reasonable decisions about what to do with the resulting file.

Well, I'm not saying there is _no_ meta data. I'm saying it's at a
different level of the protocol.  TCP moves a data stream with no meta data
- where's the problem there?   TCP doesn't care if it's a jpg or ASCII or
whatever.  My point is that at the Usenet file trasport level, we just want
to move raw files. The meta data issue is delt with at a higher level.

Maybe to make this all work well you do have to address how and where the
meta data is delt with, and maybe, putting all this trasport convetion
under yet another MIME standard would be the way to go as well.  But the
special use of Message-Ids is something that's only important to Usenet and
NNTP because of the fact that NNTP doesn't send anything but the Message-ID
in news feeds and not much else useful in XOVER data.  If not for the
compatibility needs of Usenet, you would put that stuff elsewhere in the
header (just like MIME has done) for sure and include it in the CHECK
message as needed as "extra" data instead of putting inside the Message-ID.

> > The "hash" we use to identify file the file is not "assocaited
> > metadata", supplied by the user, but instead something that is defined
> > by the data.
>
> Like Content-MD5.

For sure.

But, like I've talked about here, a different type of hash which meets the
special needs of this application I think would work much better than MD5
alone.  And I don't hink MIME has that yet.  But, it would be simple to use
the MIME framework to put all this stuff (like the block of hash data
needed to veryify each file segment) into a news article.  And it would be
simple to put all the stuff we have talked about from the Message-ID into
MIME format headers.  And it might be wise to try to head all this into a
MIME standard so what we end up with down the road is that _all_ articles
on Usenet follow the MIME standard but a special subset of the articles are
very special types of MIME articles used for transporting large files like
I have talked about.  There's no reason that to prevent you from doing that
under MIME, but I'm farly sure that MIME as it is now just isn't there yet
- you have to extend it a bit further (or create a standard for how MIME is
to be used to do this and don't call that standard a MIME standard - more
games with semantics).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61185
Author: J.B. Moreno
Date: Tue, 08 Oct 2002 21:03
16 lines
1961 bytes
In article <34017.8a2200@archiver.winews.net>, 
 Juergen Helbing <archiver@i3w.com> wrote:

> Every 'good' and successful magazine and newspaper contains
> a certain dose of pictures and 'stimulance' - and Usenet is
> exactly the same thing....  SMS becomes MMS today....

Except that Usenet isn't a magazine or newspaper.

Pictures are not generally useful -- sure I like Xfaces as much as the
next guy, but even they aren't really needed, let alone the ability to
drop a picture into a discussion.

-- 
J.B. Moreno
Re: [FNTP] 'in-completeness'
#61190
Author: Wolfgang Schelongowski
Date: Tue, 08 Oct 2002 22:08
27 lines
2440 bytes
In <55187.8a2201@archiver.winews.net> archiver@i3w.com (Juergen Helbing) writes:

>Klaas <spamhole@klaas.ca> wrote:

>>I was simply questioning your assertion that we 'know' that usenet will end 
>>up being a distributed database of for-pay material.

>Usenet _is_ a distributed database for "pay" and "free" material.

Yet another assertion.

...
>People are accepting even this - and they are happy about it.

In the words of the late Mr. Springer: "Zehn Billionen Fliegen k�nnen
sich nicht irren!" (=~ 10E12 flies can�t be wrong)

>Do you understand me ?  

No, even after translating all of what you wrote into German it
doesn�t make any sense at all. 
-- 
The man in the silk suit hurries by 
As he catches the poor old ladies' eyes
Just for fun he says "get a job"
  -- B.R. Hornsby, The Way It Is
Re: [FNTP] 'in-completeness'
#61191
Author: Russ Allbery
Date: Tue, 08 Oct 2002 22:36
195 lines
11756 bytes
Curt Welch <curt@kcwc.com> writes:

> Splitting a binary file up into packets and putting headers on each
> packet is an encoding.  If that's not an encoding, then neither is
> uuencode which simply splits the bit stream up into 6 bit packets and
> adds a two bit header to each packet and a 24 bit spacer between sets of
> each 60 packets and few special packets at the beginning and end of the
> file.  It's all just a matter of how you look at it.

Yes.  I don't find your way of looking at it useful for working out how
best to do things.  :)  This may be one of those agree to disagree things.

> If we keep having enough of these debates you will end up teaching me
> everything there is to know about MIME one section at a time and then
> I'll never have to sit down and read the full set of standards.

*laugh*

> I was talking about converting sets of Usenet multipart artricles (as
> you find them now on Usenet), to some fixed "binary" standard (MIME or
> otherwise) and then back to a multipart message can't be done without
> loosing information because the multipart articles are curretnly created
> under a wide range of very loose standards.  I don't think this is
> anything you don't already know.

Hm.  I sort of agree with you, but not entirely.  If you want full end to
end transparency with re-encoding in the middle for every type of legacy
encoding that's out there, then yes, I agree.  It's too hard to re-encode
and get exactly the original messages back.

But if you're just talking about information-preserving re-encodings, I
think it's possible and standardized.  The client support may not be
properly implemented, but that's a slightly different thing.

> I suspect however that with a good standard to work with, Usenet might
> work better in that people that had servers which couldn't keep up would
> have a simple and accurate way to adjust it so it could keep up
> (i.e. block all multipart articles for files over size X).

Yes, exactly.  That's what I want too.  If we can get that with multipart
posts, I won't complain.

> And I think it might actually become well understod that if a post
> didn't show up, then it was because it was not wanted on that server,
> and if you want to see the post, go to a server that is willing to carry
> it.

> I'm not 100% certain of that however.

We would at least have a fighting chance at getting that across, more than
we do right now.

>> What's *interesting*, I think, is supporting the full spectrum of
>> structured messages that MIME makes possible within the structure and
>> facilities of Usenet.  Which includes large attachments.

> But doesn't that "work" today in so far as anyone that wants to can
> post correctly generated MIME messages on Usenet now?

Kind of.

There's still a very surprising amount of resistance in the
standardization mailing lists against actually using MIME on Usenet,
rather than fiddling with it and changing it and outlawing little bits and
saying you have to do other little bits differently.  And there's still a
great deal of legacy crap floating around.

Plus, there's a whole bunch of really broken client implementations.

But for the most part, we're getting there, except that right now MIME
just doesn't work for large binary posters, as evidenced by the fact that
they don't use it.  And clearly the yEnc encoding is better for their
purposes than any of the standard MIME encodings are, so that creates even
more trend away from really viewing Usenet as a medium for exchanging MIME
messages.  And I think is the right direction to go in terms of future
development of Usenet software, since there's a lot more momentum behind
MIME than there is behind anything else we're going to come up with
internal to Usenet.

Using MIME for messaging is kind of like using HTML for publishing
information.  Parts of it are annoying, the whole standard is really huge,
and some clients just do stuff utterly wrong, but there's so much support
out there already that you're better off using it and trying to improve
the client support than trying to invent something new from the ground up.

> It means that when 3 people have a copy of a huge file which was posted
> 6 months ago, and there are a lot of requests for "someone" to repost
> it, the 3 people can get togther and agree to each post 1/3 of the file.
> It's a 32GB file so the first guy says he will post the first 10GB over
> the next week, and the second guy, at the same time will post the second
> 10GBs of the file, but it will take him two weeks to upload it all, and
> the thrid guy says he will post the last 12+GB in two days (he's got
> very high speed access).  They each do their own partial posting of
> about 1/3 of the file (each picking different article sizes to post in),
> but yet, anyone that wnats that file can see that a single part was
> posted, click on that part and tell their download tool to find all the
> parts and put the file together, and the download tool will do it (for
> the next few weeks - all automatically without the user having to select
> and mark anything.  It works without any broblem even though was some
> overlap in what was posted, and the subjects were different, and the
> part sizes were different, and one guy even posted his to a different
> group.

Huh.  Interesting.  Do people actually do this right now?

> This is something I just don't think MIME is set up to address (though I
> refuse to ever say it _DOESNT_ do it again).  This is the type of thing
> you can do with my ideas.

You can do this with message/partial; the only tricky part is that the
people cooperating on the repost have to agree on the number of parts, the
split boundaries, and a message ID in advance.

This is one of those areas where I think a minor adaptation of
message/partial could be done that would be a lot more useful for Usenet.

Anyway, to give you an idea of why message/partial keeps coming to mind,
here's the excerpt from RFC 2046:

5.2.2.  Partial Subtype

   The "partial" subtype is defined to allow large entities to be
   delivered as several separate pieces of mail and automatically
   reassembled by a receiving user agent.  (The concept is similar to IP
   fragmentation and reassembly in the basic Internet Protocols.)  This
   mechanism can be used when intermediate transport agents limit the
   size of individual messages that can be sent.  The media type
   "message/partial" thus indicates that the body contains a fragment of
   a larger entity.

In other words, they were thinking of a very similar sort of case when
they were working on this, except that it's certainly true that
message/partial was designed with the thought in mind that the poster had
possession of the complete message and is fragmenting it themselves.

> Well, I'm not saying there is _no_ meta data. I'm saying it's at a
> different level of the protocol.  TCP moves a data stream with no meta
> data - where's the problem there?  TCP doesn't care if it's a jpg or
> ASCII or whatever.  My point is that at the Usenet file trasport level,
> we just want to move raw files. The meta data issue is delt with at a
> higher level.

So basically you're thinking of the metadata as being carried by the
headers, which would be distinct from the message body somehow?

> Maybe to make this all work well you do have to address how and where
> the meta data is delt with, and maybe, putting all this trasport
> convetion under yet another MIME standard would be the way to go as
> well.  But the special use of Message-Ids is something that's only
> important to Usenet and NNTP because of the fact that NNTP doesn't send
> anything but the Message-ID in news feeds and not much else useful in
> XOVER data.  If not for the compatibility needs of Usenet, you would put
> that stuff elsewhere in the header (just like MIME has done) for sure
> and include it in the CHECK message as needed as "extra" data instead of
> putting inside the Message-ID.

Yeah, understood.  There has to be some way of conveying some additional
bits of metadata between transit servers, and the only thing that works
with existing servers is the message ID.  Doing anything else will require
protocol modifications.

I think the protocol modifications are the right way to go down the road,
but it's harder to prototype that way.

> But, like I've talked about here, a different type of hash which meets
> the special needs of this application I think would work much better
> than MD5 alone.  And I don't hink MIME has that yet.

Yes, one of the problems that I have with the way that MIME chose to
standardize that is that Content-MD5 doesn't generalize to other hashes.
That was short-sighted of them.

But RFC 1864 (Content-MD5) is dead-simple, and it wouldn't be too much
harder to define a similar header that was just Content-Hash that
generalized to the hash of your choice (although it would require an IANA
registry of hashes, if such a thing doesn't already exist).

> But, it would be simple to use the MIME framework to put all this stuff
> (like the block of hash data needed to veryify each file segment) into a
> news article.  And it would be simple to put all the stuff we have
> talked about from the Message-ID into MIME format headers.  And it might
> be wise to try to head all this into a MIME standard so what we end up
> with down the road is that _all_ articles on Usenet follow the MIME
> standard but a special subset of the articles are very special types of
> MIME articles used for transporting large files like I have talked
> about.

Yeah, that's exactly the sort of thing that I'd like to see.

-- 
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: [FNTP] 'in-completeness'
#61207
Author: Curt Welch
Date: Wed, 09 Oct 2002 01:52
244 lines
14804 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> Hm.  I sort of agree with you, but not entirely.  If you want full end to
> end transparency with re-encoding in the middle for every type of legacy
> encoding that's out there, then yes, I agree.  It's too hard to re-encode
> and get exactly the original messages back.

I don't want it. I just felt some of the ideas you brought up would require
it so I was just trying to point out that it's not really possible.

> But if you're just talking about information-preserving re-encodings, I
> think it's possible and standardized.  The client support may not be
> properly implemented, but that's a slightly different thing.

Right.  The _intent_ of what people are trying to do with the binary posts
could be reproduced in all their complex glory with various MIME encodings,
it's just that their actual posts (in all their complex broken and sloppy
forms) could not always be reproduced.  So if you try to do a clean
conversion from each type of weird binary post to you find on Usenet to
MIME, you wouldn't be able to do it.  You couldn't even fine a clean line
between the "good" posts and the "broken" posts.  All you end up with is
code that works for X% of the posts and if you keep adding more code, you
get X closer and closer to 100.

But that's no reason why we shouldn't get users to post in a better format,
it's just the problems you will run into if you try to "clean up" what they
give you.

> > And I think it might actually become well understod that if a post
> > didn't show up, then it was because it was not wanted on that server,
> > and if you want to see the post, go to a server that is willing to
> > carry it.
>
> > I'm not 100% certain of that however.
>
> We would at least have a fighting chance at getting that across, more
> than we do right now.

Yeah, that's the way I see it too.

> >> What's *interesting*, I think, is supporting the full spectrum of
> >> structured messages that MIME makes possible within the structure and
> >> facilities of Usenet.  Which includes large attachments.
>
> > But doesn't that "work" today in so far as anyone that wants to can
> > post correctly generated MIME messages on Usenet now?
>
> Kind of.
>
> There's still a very surprising amount of resistance in the
> standardization mailing lists against actually using MIME on Usenet,

I'm not surprised.  I see two issues.  First, even though Usenet is very
much like e-mail, it is a different beast with some different requirements.
Just trying to get MIME to solve all the problems if e-mail is tough
enough. I'm not surprised that there are people not wanting to make the
problem space even larger.

And two, most people on Usenet don't want to see most of the features of
MIME on Usenet.  It tends to be abused by accident.  For example, people
with Macs end up posting apple-double format jpgs in groups that have
nothing to do with Macs.  They don't even know they are doing it - they
just post their jpg file.  Everyone else in the world has no interest in
seeing a apple-double format jpg file and some can't even read it.

This is mostly a news posting tool issue because the power to post
apple-double is not bad by itself.  There are places on Usenet where that
is probably a good thing to be able to do.  But Mac newsreaders should be
smart enough to know that the correct way to post a jpg file is not as an
apple double.

But this just points out the problems of dealing with something as complex
as MIME.  It's hard to get all these little things right and it's expensive
- something that I believe is justified for e-mail, but creates issues when
brought to the world of Unix freeware.  But there's not much money in
selling newsreaders and not much interest in the part of any big developer
to get the complexities of MIME working correctly for Usenet when plain
text and files is 95% of all you need to make work.

Maybe, if anyone has the energy, the thing to do is create a MIME for
Usenet paper which outlines the correct way to do MIME stuff on Usenet.
The intent would be to make all posts MIME complient, but yet encourage to
"correct" use of MIME on Usenet instead of assuming that "Anything that can
be done with MIME is fine for usenet because MIME is the standard for
Usenet".

> rather than fiddling with it and changing it and outlawing little bits
> and saying you have to do other little bits differently.  And there's
> still a great deal of legacy crap floating around.
>
> Plus, there's a whole bunch of really broken client implementations.

Which is mostly just a a side-effect of the complexity of the problem.

> But for the most part, we're getting there, except that right now MIME
> just doesn't work for large binary posters, as evidenced by the fact that
> they don't use it.  And clearly the yEnc encoding is better for their
> purposes than any of the standard MIME encodings are, so that creates
> even more trend away from really viewing Usenet as a medium for
> exchanging MIME messages.  And I think is the right direction to go in
> terms of future development of Usenet software, since there's a lot more
> momentum behind MIME than there is behind anything else we're going to
> come up with internal to Usenet.
>
> Using MIME for messaging is kind of like using HTML for publishing
> information.  Parts of it are annoying, the whole standard is really
> huge, and some clients just do stuff utterly wrong, but there's so much
> support out there already that you're better off using it and trying to
> improve the client support than trying to invent something new from the
> ground up.
>
> > It means that when 3 people have a copy of a huge file which was posted
> > 6 months ago, and there are a lot of requests for "someone" to repost
> > it, the 3 people can get togther and agree to each post 1/3 of the
> > file. It's a 32GB file so the first guy says he will post the first
> > 10GB over the next week, and the second guy, at the same time will post
> > the second 10GBs of the file, but it will take him two weeks to upload
> > it all, and the thrid guy says he will post the last 12+GB in two days
> > (he's got very high speed access).  They each do their own partial
> > posting of about 1/3 of the file (each picking different article sizes
> > to post in), but yet, anyone that wnats that file can see that a single
> > part was posted, click on that part and tell their download tool to
> > find all the parts and put the file together, and the download tool
> > will do it (for the next few weeks - all automatically without the user
> > having to select and mark anything.  It works without any broblem even
> > though was some overlap in what was posted, and the subjects were
> > different, and the part sizes were different, and one guy even posted
> > his to a different group.
>
> Huh.  Interesting.  Do people actually do this right now?

They don't have the tools to do much of that, but it seems obvious to me
that there would be a desire to do a lot of stuff like that if they had
the tools.  People re-post lost articles all the time.  They break up
huge files into multiple large .rar files and then post each of those
as sets.  When someone couldn't get one of the .rar files, someone else
that did get it will sometimes repost it for them - so that acts like
a partial re-post.

With today's formats and totdays tools, you can't really deal with
partial posts.

For example, as far as I know, there is not a single download tool on the
market that will allow a user to mark a set of 5 posts (out of a 10 part
multipart), and tell the tool to download those parts now, and keep a
look-out to see if the others show up later, and automatcially add those
parts to the download when they show up.

This means that news servers with short retention cause real problems.  To
work well, the entire multipart post must be on the server at the same
time.  If it takes the guy uploading the post 8 hours to post all the parts
(posting though a modem), and you add Usenet feed delays into the equation,
that means there may be a 12 hour span from the time the first post shows
up on some far away server and the last shows up.

A server with 24 hours of retention will have all the parts on the server
for only 12 hours.  This means that anyone wanting to download that post
must check the server at some time in that 12 hour window.  And, if they
are trying to download it with a slow modem, then they most also download
the parts before they expire.

If they try to post a huge file over a period of a week, then most download
tools would not be able to deal with it until all the parts had been
posted.

So, nobody does that.  Insted, they break up a large file into a lot of rar
files (by hand), and then post, (by hand) each of the rar files (or other
such systems for splitting large files up).  Then, each day, someone just
downloads the rar files that were posted that day.  At the end of the week,
they try to put everything together.

With the type of system I'm talking about using these hash values to
identify the file segments, all that could be thrown out the window.  YOu
could actually just post the entire file, one segment at a time each night,
and anyone who saw one of the posts (no need to wait for them all to show
up), could use that to tell the download tool to find all matching articels
(no matter who posts it), and tell me when you have the entire thing.

Right now, if two different people repost the same file, there's nothing in
the article to let a download tool know it's the same file, so there's now
way to automatically take advatage of the fact that the same file is being
posted 12 times to usenet in 12 different groups.

> > This is something I just don't think MIME is set up to address (though
> > I refuse to ever say it _DOESNT_ do it again).  This is the type of
> > thing you can do with my ideas.
>
> You can do this with message/partial; the only tricky part is that the
> people cooperating on the repost have to agree on the number of parts,
> the split boundaries, and a message ID in advance.

Exactly.  And that is so tricky as to make the idea mostly unworkable.  It
could be made to work with the right software, but the the problems the
users would have to deal with (trading the posting infomation) are so
complex that few would every even do it even if they had the tools.

> This is one of those areas where I think a minor adaptation of
> message/partial could be done that would be a lot more useful for Usenet.

Probably so.

> In other words, they were thinking of a very similar sort of case when
> they were working on this, except that it's certainly true that
> message/partial was designed with the thought in mind that the poster had
> possession of the complete message and is fragmenting it themselves.

And that there was never any need to deal with problems of missing posts
and with allowing a third party to send you what was missing.

> So basically you're thinking of the metadata as being carried by the
> headers, which would be distinct from the message body somehow?

Yeah.  The "somehow" is that I was thinking it wouldb't even be part
of the standard because a usenet server which is dealing with transport
issues doesn't care whether it's a jpg or dvi or whatever.  It's just
trying to deal with the issue of moving bytes.  It just wnats to know
how many bytest there are total, which bytes are these, and whats the
name of this set of bytes so I can match it up with the other sets.

But, all newsreaders will care about that once it gets a copy of the file,
so it's got to be somewhere.  Content-Type: is obviously the most needed
and everyone wants a file name.

> Yeah, understood.  There has to be some way of conveying some additional
> bits of metadata between transit servers, and the only thing that works
> with existing servers is the message ID.  Doing anything else will
> require protocol modifications.
>
> I think the protocol modifications are the right way to go down the road,
> but it's harder to prototype that way.

And harder to make use of because it only works between two sites after
both have upgraded which creates a check-and egg problem you have to fight
to get anyone to upgrade.  When you make it backward compatible by putting
stuff in the Message-Id, then any sites that upgrades will be able to start
taking advantage of the feature.  And if you can put some other more
advnacned features into the news server at the same time which will work
once a peer upgrades, you can get that into ciculation at the same time.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61210
Author: BOUWSMA Beery
Date: Wed, 09 Oct 2002 08:35
91 lines
6566 bytes
Zig heil!
%s wrote on %.3s, %lld Sep 1993

> And two, most people on Usenet don't want to see most of the features of
> MIME on Usenet.  It tends to be abused by accident.  For example, people
> with Macs end up posting apple-double format jpgs in groups that have
> nothing to do with Macs.  They don't even know they are doing it - they
> just post their jpg file.  Everyone else in the world has no interest in
> seeing a apple-double format jpg file and some can't even read it.

Um, if I'm not mistaken, posting a Mac JPEG file with MIME renders it
completely useful for MIME-aware readers on other platforms -- they
simply display the image part of the MIME attachment and ignore the
separate datafork.

(disclaimer:  it's been years since I viewed Mac pr0n transferred
over MIME, but I never had any problems, and I doesn't know no details
about Macs nor appledouble nor nuthin.)

Now, I vaguely recall there being a Mac-specific encoding that gets
used outside the MIME framework, which is definitely *not* compatible
with common tools.  I wonder if that format is being shoehorned as a
non-standardized X- encoding, akin to x-uuencode, within a MIME header
framework, which of course wouldn't work any more than x-uuencode is
going to work on a strict MIME parser that doesn't have uuencode
support built in (there were some of those).  Or perhaps the image
part of the posting isn't tagged as image/* but rather as a generic
octet-stream, which of course won't automatically be displayed by a
conforming MIME reader.

Anyway, if a Mac MIME client isn't using CTE BASE64 but instead the
binhex or whatever, or failing to properly label the image part, or
if the non-Mac reader isn't just ignoring the datafork (or offering
to save it separately) and concentrating on the image part, then I
would agree that improper implementations will have problems with
appledouble posts, but certainly not correctly-implemented readers.
Are you sure that MIME is at fault here, or is my memory trashed?

Isn't that like saying `uuencode' is useless for non-Unix systems
because of the
begin 4755 ~/.rhosts
additional permission information given before the filename that no
Real OS (except those run by a tiny negligible handful of asocial
geeks and nerds) can do anything with?


> But this just points out the problems of dealing with something as complex
> as MIME.  It's hard to get all these little things right and it's expensive
> - something that I believe is justified for e-mail, but creates issues when
> brought to the world of Unix freeware.  But there's not much money in
> selling newsreaders and not much interest in the part of any big developer

I wouldn't be surprised if a majority of newsreaders out there had
both mail and news support, and could use the common k0debase for
both.  (Not talking serious readers here, but by sheer numbers of
installed instances.)


> This means that news servers with short retention cause real problems.  To
> work well, the entire multipart post must be on the server at the same

To restate the obvious, short retention is either the result of
sloppy configuration (such as the one-day retention, even across
text-only groups, of a nearby swerver), or being unable to devote
adequate resources, or nowadays, the result of people trying to
cram multiparts where they don't belong to try to get them to the
swerver with one day or less of retention, making it worse for
that swerver that probably has more than enough capacity for a
much lower level of feed, and probably could keep pr0n pictures
for a week or more if they could drop multiparts, which used to
be easy to do years ago when a good percentage of volume was in
articles 2/3 of a megabyte and larger, but has dropped over time
as people use smaller part sizes so that discerning a single-part
pr0n titcure from a multi-part video within a group at the transit
level with traditional software was no longer possible.  How's that
for a long sentence.

I mean, the swerver I used to mangle not long ago a'tall, today would
not even have half a day of retention, if it were still in use, and
it was a hefty investment back in its day when it had capacity for
days of retention.  We understand the growth of news and how fast
expensive hardware becomes obsolete, but the beancounters who don't
have their hands soiled by news do not, and often one must limp
along on an unsatisfactory solution well past its MHD date.


barry bouwsma
end

Re: [FNTP] 'in-completeness'
#61212
Author: Curt Welch
Date: Wed, 09 Oct 2002 15:00
151 lines
10042 bytes
BOUWSMA Beery <usenet-pedophile@news.netscum.dyndns.dk> wrote:

> Anyway, if a Mac MIME client isn't using CTE BASE64 but instead the
> binhex or whatever, or failing to properly label the image part, or
> if the non-Mac reader isn't just ignoring the datafork (or offering
> to save it separately) and concentrating on the image part, then I
> would agree that improper implementations will have problems with
> appledouble posts, but certainly not correctly-implemented readers.
> Are you sure that MIME is at fault here, or is my memory trashed?

No, the MIME standard isn't "at fault" in that sense.  You are right, a
correctly implemeneted MIME decoder will show the picture.  But even a
correctly implemented MIME decoder will have this strange data fork
attachment show up in the post which "is broken".  They guy was simply
trying to post a jpg to usenet, why did the software add this strange data
file which looks like a virus?

The correct thing on Usenet is NOT to post native file formats (unless
there's a justified reason like maybe you are trading files between Mac
users in a Mac image group for example).  The correct thing is to convert
all native formats to the correct usenet standard formats.  MIME tends to
encourage the support of native formats because it supports them all.

So, the better newsreaders are smart enough to not post apple-double format
jpgs by default.  But it happens.  So the better newsreaders on the other
side have to add special code, to convert apple-double jpg to Usenet
standard jpg (by simply striping off the datafork and not presenting it to
the user as an attachment).  This is code I had to add to my newsrader to
deal with what I see as a "broken" Mac MIME newsreader (OE I suspect).

And it happens because MIME caused the confusion, even though the standard
is not written wrong.  It's simply that it's got stuff that was never
needed for Usenet and in my view never had been added to MIME _if_ the
intent of MIME was to create a standard for Usenet articles (which it was
not of course).

> Isn't that like saying `uuencode' is useless for non-Unix systems
> because of the
> begin 4755 ~/.rhosts

Set user ID on a .rhosts file?  How odd of you.

> additional permission information given before the filename that no
> Real OS (except those run by a tiny negligible handful of asocial
> geeks and nerds) can do anything with?

I never said MIME was useless did I?  I just said it causes problems.
uuencode with it's 644 stuff sure confuses PC programers.  They
end up writing code to simply ignore it.  But then some of them, seeing
that everything he has seen posted to usenet had 644 value, looks for
"begin 644" as the magic string to spot a uuencoded file.  Then someone
posts their 4755 mode .rhosts and it doesn't work for the broken uudecoding
tool.  Yet another broblem caused by a bad standard being used in the wrong
place.

And that's only one magic number.  MIME had hundreds and hundrds of pages
of "magic" to cause a never ending stream of "confusion" problems like
the 644 bug above or the apple-double bug example I brought up.

Programmers tend to go overboard most the time when creating standards (or
any software) because they feel the need to make the software "deal with
everything".  If there is something their software can't do, they have
failed to do their job.  But, in fact, you will reach a point where the
complexity of doing "everything" causes far more problems than the lack of
features that comes with simplicity creates.  This has always been my gut
reaction to MIME in general, and particular to MIME on Usenet.

Any first year programmer can spot a missing feature and figure out a way
to add it.

But the real art of design is knowing when to leave a feature out.  Knowing
when you have crosed the line of too much complexity. 95% of all
programmers I worked with have no clue where that line is.  50% of them
don't even know that the line exists.  The problem is that the location of
the line is determined by the end-user's level of confusion and their
abiltiy to understand complexity, not by the programmers ablity to
understand their own software (or their own MIME spec).

All the software we create is intened to do one thing.  It's to create a
machine which does something for somebody.  When you design protocol specs
like MIME, we tend to completly lose track of the end user that will one
day will have to deal with problems created by your "machine".  You tend to
think of your "user" as another programmer and assume that it is his job to
use your spec to solve the real users problem.  If the end-user has a
problem, then it's not the fault of the MIME, spec, it's the falut of the
newsreader author.  But this is wrong.  No mater how deep into the hardware
you go, you can never forget the end-users that are ultimately paying for
all this work and who will be forced to deal with the "problems" of our
designs.

You say MIME is not at fault because it deals with the apple-double
problem.  The apple-double standard was designed to "just work" for non
apple-double aware applications.  But, when a user sees a strange data
attachment in a post of a simple picture, I say MIME has failed to do it's
job.  I see it as something that some out of control programmers have taken
way past the point of usefulness simply because they didn't know when to
say no. (a very common problem of all design-by-committee work).

> > But this just points out the problems of dealing with something as
> > complex as MIME.  It's hard to get all these little things right and
> > it's expensive - something that I believe is justified for e-mail, but
> > creates issues when brought to the world of Unix freeware.  But there's
> > not much money in selling newsreaders and not much interest in the part
> > of any big developer
>
> I wouldn't be surprised if a majority of newsreaders out there had
> both mail and news support, and could use the common k0debase for
> both.  (Not talking serious readers here, but by sheer numbers of
> installed instances.)

That's clear for a few of them like OE and Netscape.  And I think both
fail to be good newsreaders because of it.

> > This means that news servers with short retention cause real problems.
> > To work well, the entire multipart post must be on the server at the
> > same
>
> To restate the obvious, short retention is either the result of
> sloppy configuration (such as the one-day retention, even across
> text-only groups, of a nearby swerver), or being unable to devote
> adequate resources, or nowadays, the result of people trying to
> cram multiparts where they don't belong to try to get them to the
> swerver with one day or less of retention, making it worse for
> that swerver that probably has more than enough capacity for a
> much lower level of feed, and probably could keep pr0n pictures
> for a week or more if they could drop multiparts, which used to
> be easy to do years ago when a good percentage of volume was in
> articles 2/3 of a megabyte and larger, but has dropped over time
> as people use smaller part sizes so that discerning a single-part
> pr0n titcure from a multi-part video within a group at the transit
> level with traditional software was no longer possible.  How's that
> for a long sentence.

Pretty good.  It made me pass out from a lack of oxygen just trying
to read it.

> I mean, the swerver I used to mangle not long ago a'tall, today would
> not even have half a day of retention, if it were still in use, and
> it was a hefty investment back in its day when it had capacity for
> days of retention.  We understand the growth of news and how fast
> expensive hardware becomes obsolete, but the beancounters who don't
> have their hands soiled by news do not, and often one must limp
> along on an unsatisfactory solution well past its MHD date.
>
> barry bouwsma
> end

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61215
Author: Russ Allbery
Date: Wed, 09 Oct 2002 16:48
57 lines
4621 bytes
Curt Welch <curt@kcwc.com> writes:

> No, the MIME standard isn't "at fault" in that sense.  You are right, a
> correctly implemeneted MIME decoder will show the picture.  But even a
> correctly implemented MIME decoder will have this strange data fork
> attachment show up in the post which "is broken".  They guy was simply
> trying to post a jpg to usenet, why did the software add this strange
> data file which looks like a virus?

Not if the person implementing the news client reviewed the MIME type
registrations maintained by IANA.  If they had, they would have written
their client to ignore application/applefile parts inside a MIME type of
multipart/appledouble and just show the second part with its native MIME
type, unless of course the software was running on a Mac.

> The correct thing on Usenet is NOT to post native file formats (unless
> there's a justified reason like maybe you are trading files between Mac
> users in a Mac image group for example).

The nice thing about multipart/appledouble is that when correctly
implemented it doesn't matter at all.

> So, the better newsreaders are smart enough to not post apple-double
> format jpgs by default.  But it happens.  So the better newsreaders on
> the other side have to add special code, to convert apple-double jpg to
> Usenet standard jpg (by simply striping off the datafork and not
> presenting it to the user as an attachment).

This is exactly the sort of thing that you don't have to worry about if
the posting news reader used MIME properly.

> And it happens because MIME caused the confusion, even though the
> standard is not written wrong.

I don't agree with this.  The MIME standards are explicitly clear about
what image/gif means and what multipart/appledouble means and what you
post as one or as the other.  It would not be possible for the MIME
standards to be more clear on this point.  There are just some people who
wrote clients badly and wrong, which is going to be true of any standard
you try to propose.

It's not like the existence of the multipart/appledouble stuff adds
complexity, either.  This was well-designed.  If you just read the base
standard and base registrations, it specifies image/jpeg and makes it
clear what that file format means, and it *does not* include a resource
fork.  So posting something with a resource fork as image/jpeg is clearly
and completely wrong, and it's obvious from reading that standard that the
file has to be converted before posting.  If you want to preserve that
information, you read farther and discover the multipart/appledouble
specification.

-- 
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.
Page 6 of 7 • 313 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