🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
313 messages
313 total messages Page 5 of 7 Started by Juergen Helbing Mon, 23 Sep 2002 06:06
Page 5 of 7 • 313 total messages
Re: [FNTP] 'in-completeness'
#61040
Author: J.B. Moreno
Date: Sat, 05 Oct 2002 01:35
16 lines
1786 bytes
In article <ylwuoxhhhx.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> I'm willing to be convinced that I'm wrong.  Let me know what I'm
> missing.

I think you'll have to argue that out with someone running a large
server, I'm not real solid on the theory here, let alone how theory
plays out in practice.

OTOH, the middle ground seems to be that at least in the 1-2 meg range,
not splitting is the thing to do.

-- 
J.B. Moreno
Re: [FNTP] 'in-completeness'
#61041
Author: Kjetil Torgrim Homme
Date: Sat, 05 Oct 2002 02:10
72 lines
3972 bytes
[Russ Allbery]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>   
>   > we also need a mechanism for signalling an aborted transfer, at least
>   > if we want to implement cut-through transit, rather than
>   > store-and-forward.
>   
>   I don't understand what you mean, or what cut-through transit is.

I'm using the terminology from network switches.  it's is called
cut-through operation when they start retransmitting the data as soon
as the recipient MAC address is known.

>   I certainly wasn't proposing any sort of mechanism to avoid store
>   and forward, though.

I think large articles will be too resource intensive, then.

>   > TAKETHIS allows the recipient to say "239 article transferred ok", but
>   > there is no way for the sender to say "sorry, it turns out the article
>   > was incomplete".
>   
>   Yes, there is.  You close the connection.
>   
>   It's not particularly elegant, but that should also be an uncommon
>   case.

it's really, really ugly.

>   > while we're at it, an ABORT command would be nice, mostly for readers,
>   > but also for transit.
>   
>   I've never understood why people object to just closing the
>   connection for readers, given how infrequently aborts happen.

you don't see the chicken and egg problem?

>   > this might be worthwhile to save bandwidth when you don't want to
>   > hassle your peer with updating the group list all the time.
>   
>   That's the wrong protocol level to solve that problem, I think.
>   Inline NNTP commands sound really, really ugly; let's not reinvent
>   a Frankenstein merger of rnews batches and FTP.  :)

what do you mean?

>   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.

actually, I think it's better to do header feeds where appropriate,
and let the recipient issue the ARTICLE commands needed.

>   > you can of course do all kinds of filtering, you can even look
>   > at the first line of the body (=yenc...)
>   
>   Of course, if yEnc were done right, you could have made that
>   decision based on the headers....

so?

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61042
Author: Kjetil Torgrim Homme
Date: Sat, 05 Oct 2002 02:13
22 lines
2164 bytes
[J.B. Moreno]:
>
>   Russ Allbery <rra@stanford.edu> wrote:
>   
>   > I'm willing to be convinced that I'm wrong.  Let me know what I'm
>   > missing.
>   
>   I think you'll have to argue that out with someone running a large
>   server, I'm not real solid on the theory here, let alone how theory
>   plays out in practice.
>   
>   OTOH, the middle ground seems to be that at least in the 1-2 meg
>   range, not splitting is the thing to do.

to support gigabyte files, major surgery has to be done to both Diablo
and INN.  heh, the perl filter will work real well, I suspect.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
#61045
Author: Juergen Helbing
Date: Sat, 05 Oct 2002 05:26
94 lines
4644 bytes
Russ Allbery <rra@stanford.edu> wrote:

>There's one exception, however:  I will not carry new binary groups
>devoted to the postings of multipart binaries, because I consider
>multipart binaries to be inherently abusive regardless of their contents.
>[...] and there will no longer be
>any problems with partial completion.

You are opening a new "cathegory" of NSPs.  "Binary-Light"  :-)

>I doubt we can ever get there from here, but I can at least take my own
>little personal stand for whatever it's worth.

Of course your policy is fully acceptable.
This is the beauty - and the problem - of Usenet:  Freedom of Choice.

The good questions are now:

* What is your size limit for articles ?
* How do you enforce this size ?
* Are your transits already discarding multiparts ?
  (Important for your peers)
* Do you prevent your users from POSTing multiparts ? 
* What's your current daily volume with this "binary-light-policy"?
* How much work is necessary to enfore "binary-light"
  - compared to simply reject _all_ binaries ?
* How can other admins learn from you ?
* What will be the topology of Usenet with three different "host-types".

Having exactly two kinds of NSPs would be easier to handle:
*Only text*    *Full (or holey) binaries*

Your "third way"  (specified binaries) would require a very well
defined set of rules/groups/hierarchies to work properly
and be not a big problem for the *full* way.

Is this "defined set" specified anywhere - or which taskforce
is officially (or inofficially) working on it?
Whould NAS be an answer (your answer) ?


>This paragraph is a bunch of complete bullshit, particularly given
>everything I said in the last message.

This _is_not_an_ accusation - I just accept it as facts.
You and/or your boss decided to rate "liability" higher than "freedom".
"Concentration on the focus" overrides "curiosity".
You are resposible and have made the necessary decisions.
That's really OK for me.

>> And it is nice to know that the "academic world" is no longer involved
>> into the further development of the Binary Usenet. The only people who
>> would have time and ressources have abandoned it.
>
>While I find it amusing that you're attributing such vast powers to me,
>and I'm sorely tempted to put "dictator of the academic world" on my
>resume, you may want to talk to, oh, maybe two or (*gasp*) three different
>people before making sweeping conclusions about thousands of sites.

Perfect understatement  :-))
(I know what a bunch of other academic Usenet admins do/think).
btw.:  I am talking about BINARY Usenet - not about UseFor or NNTPfor....


Some more speculation:

The people who are working for the further development in the "regular" 
taskforces are concentrating on Text-Usenet. There _are_ a lot of academic
people involved. But these specialists are not confronted with the daily
problems of a 500 Gig binary stream - so they dont care about it. And they
dont even get feedback from their students - because they are cut off...
Worse: they dont have the experience (any more).
Worse: they would even like to see Binary Usenet dead today than tomorrow.
Worst: The future of the binary Usenet is now fully in the hands of overworked
commercial news-admins, the users, some hobby programmers - and some
experienced nerds (as myself).

This is _speculation_ - but I am afraid that I am very close to reality.

The good question is whether nerds, hobbyists, users and admins
are able to solve the theoretical and practical problems. 
But whatever they do - it will not be a proper scientific solution.



I hope you understand that I enjoy this kind of conversation with you
and that I highly respect your opinion and activities.
Nothing written here should be taken as a personal insult.

CU
-- 
Juergen

Re: [FNTP] 'in-completeness'
#61046
Author: Russ Allbery
Date: Sat, 05 Oct 2002 05:54
14 lines
1930 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> to support gigabyte files, major surgery has to be done to both Diablo
> and INN.  heh, the perl filter will work real well, I suspect.

INN should be able to handle articles up to 2GB without doing any surgery,
unless I'm missing something major.  What are you thinking of?

-- 
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'
#61047
Author: Russ Allbery
Date: Sat, 05 Oct 2002 06:01
36 lines
2632 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> [Russ Allbery]:

>>   I certainly wasn't proposing any sort of mechanism to avoid store
>>   and forward, though.

> I think large articles will be too resource intensive, then.

Can you give me some feel for why you believe that?  How is handling a
large article any more resource-intensive than handling the same quantity
of bytes in separate articles?

>>   I've never understood why people object to just closing the
>>   connection for readers, given how infrequently aborts happen.

> you don't see the chicken and egg problem?

No, which chicken and egg problem are you talking about?

>>   That's the wrong protocol level to solve that problem, I think.
>>   Inline NNTP commands sound really, really ugly; let's not reinvent
>>   a Frankenstein merger of rnews batches and FTP.  :)

> what do you mean?

One of the hardest things about implementing an FTP server properly is
dealing with the asynchronous nature of the protocol, due to having a
separate data channel and control channel.  Having embedded commands in
the NNTP stream is a lot like the way that rnews batches work.

-- 
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'
#61048
Author: Curt Welch
Date: Sat, 05 Oct 2002 06:24
54 lines
3898 bytes
Russ Allbery <rra@stanford.edu> wrote:

> My argument is based on the following:

> I'm willing to be convinced that I'm wrong.  Let me know what I'm
> missing.

Your argmuents are telling us mostly what we already know - that multipart
posts are a stupid way to transmit files.  But people can't send them as
single large files, so that's not an option.  They do what they do because
it's the best solution given what they have to work with.

So just what are you trying to argue?  That users should be banned from
posting multipart files?  Or that the best way to make things better for
them is to convert all the servers in the world to support unlimited length
articles, and to force all users to post their 10GB DVDs as a single Usenet
article?

Do you think users will be happy when the server they are uploading to
reboots near the end of an 8 hour single-file transfer?  Do you think
admins will like having to reboot their server knowing that somebody is
probably near the end of either an 8 hour single-file upload or an 8 hour
single-file download?

Do you honestly think that you can modify INN to support unlimited length
posts and end up with fewer problems than we have today with multipart
posts?  That articles in transit as a single 500MB article will cause less
problems than when it's sent as 2000 articles like it is today?

I'd strongly suggest you re-examine how INN works in terms of what will
happen if the users are allowed to post unlimited length articles.  I
suspect a lot of things will either outright break, or will perform like
shit if you were to try that.

I don't know much about how INN works, but I'll ask you a few things that
maybe you can answer.  When INN recieves an article, what does it do with
it as it's being received?  Hold it in memory?  Write it to a temp disk
file? Write it straight to a spool?  what?

When it gets assigned to a spool, how does it get copied from where it was
held to the spool?

When acting like a transit machine (which may not be fair because INN isn't
use like that much anymore for high volume servers), how does the article
get from where it's stored to the outgoing TCP stack?

Think about how imporant the memory cache is into making this work without
much disk IO.  Think about how changing the average article size from 200K
to 10MB will change the dynamics of the memory cache.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61049
Author: Jeffrey M. Vinocur
Date: Sat, 05 Oct 2002 06:26
26 lines
1910 bytes
In article <1rvg4h8wk6.fsf@atta.ifi.uio.no>,
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?

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [FNTP] 'in-completeness'
#61050
Author: Jeffrey M. Vinocur
Date: Sat, 05 Oct 2002 06:28
21 lines
1687 bytes
In article <yld6qpwhiy.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>> [Russ Allbery]:
>
>>>   I've never understood why people object to just closing the
>>>   connection for readers, given how infrequently aborts happen.
>
>> you don't see the chicken and egg problem?
>
>No, which chicken and egg problem are you talking about?

Presumably that readers don't often abort because it's somehow
too expensive, but they might be able to make better use of it
given an easier mechanism.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [FNTP] 'in-completeness'
#61051
Author: Russ Allbery
Date: Sat, 05 Oct 2002 06:36
20 lines
2282 bytes
Russ Allbery <rra@stanford.edu> writes:
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

>> to support gigabyte files, major surgery has to be done to both Diablo
>> and INN.  heh, the perl filter will work real well, I suspect.

> INN should be able to handle articles up to 2GB without doing any surgery,
> unless I'm missing something major.  What are you thinking of?

Ah, yeah, I see.  Streaming to disk rather than caching the entire thing
in memory.  Yeah, that's a good point, although that's not that large of a
modification.  I can even think of one fairly obvious way to do it easily,
although it's something of a hack.

-- 
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'
#61052
Author: Juergen Helbing
Date: Sat, 05 Oct 2002 06:41
35 lines
2321 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.
* If a POST command is aborted by simply cutting the connection
  during the "final" handshake then nobody knows if the article
  was accepted or not.
* If a user decides to stop posting (made a mistake) then he does
  not know what to do - or what exactly happens when he uses "stop".
* Fetching new headers from a server can take a long time.
  If someone subscribes to a new host and fetches heades for
  50 groups then a lot of reconnects can be necessary.
* The statement "dont reconnect all the time" is well known.
* Fetching just the first 50 lines of a post is not possible.
  (the "deliver partial body helps here).
* 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.
* Large Binary newsgroups, remote (20 hops) binary NSPs and huge
  articles have special effects - which are not respected by NNTP today.

The "normal" text-server located at my ISP does not make problems.

Just some unsorted subjective thoughts..... 
   also from my own "automated" server/reader programming.
 
-- 
Juergen

Re: [FNTP] 'in-completeness'
#61053
Author: Curt Welch
Date: Sat, 05 Oct 2002 06:45
41 lines
3033 bytes
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.

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.

> this might be worthwhile to save bandwidth when you don't want to
> hassle your peer with updating the group list all the time.  you can
> of course do all kinds of filtering, you can even look at the first
> line of the body (=yenc...)

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.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61054
Author: Russ Allbery
Date: Sat, 05 Oct 2002 06:49
115 lines
6927 bytes
Curt Welch <curt@kcwc.com> writes:

> Your argmuents are telling us mostly what we already know - that
> multipart posts are a stupid way to transmit files.  But people can't
> send them as single large files, so that's not an option.  They do what
> they do because it's the best solution given what they have to work
> with.

Okay, good, I'm not full of shit.  :)

> So just what are you trying to argue?  That users should be banned from
> posting multipart files?

I think there are certainly circumstances under which it makes a lot of
sense to filter out multipart postings, perhaps as they're being posted.
I certainly think that multiparts for less than 1MB files are a stupid
waste of resources.

> Or that the best way to make things better for them is to convert all
> the servers in the world to support unlimited length articles, and to
> force all users to post their 10GB DVDs as a single Usenet article?

I think the best way to make things better is to not have 10GB DVDs on
Usenet, and I think we're going there fast, so I'm not too worried about
that particular point.  :)

I think that support for mid-ranged binaries, in the 1-10MB range, would
be a lot better without multipart posts.

I think that 10GB binaries are inherently doomed, and that they're already
effectively extinct on Usenet except at a few major sites that can only
ever manage to send them to each other, so in practice they're going to
end up being a non-issue for most of us except insofar as we have to waste
our resources trying to reject them.  And the more resource we have to
waste to reject them, the more sites are just going to drop all binary
newsgroups entirely rather than trying to puzzle it out.

> Do you think users will be happy when the server they are uploading to
> reboots near the end of an 8 hour single-file transfer?  Do you think
> admins will like having to reboot their server knowing that somebody is
> probably near the end of either an 8 hour single-file upload or an 8
> hour single-file download?

No.  That argues for being able to resume POST as well.

Isn't it interesting that the more you try to effectively support binary
posting on Usenet, the more you turn NNTP into FTP?  :)

> Do you honestly think that you can modify INN to support unlimited
> length posts and end up with fewer problems than we have today with
> multipart posts?

Yes, absolutely and without question.  If I thought that multipart
articles would actually go away, I'd even seriously look at starting to do
the work.

Right now, there's no real incentive to work on this because the posters
won't stop posting multipart messages.

> That articles in transit as a single 500MB article will cause less
> problems than when it's sent as 2000 articles like it is today?

Yes, absolutely.

I believe that the vast majority of sites that are currently carrying
those 500MB articles *don't want them* and only have them because they
can't easily filter them out, and that if they were ever given the
*option* they would immediately express that preference, leaving those
articles to the small handful of sites that actually care about them and
have the resources to support them.  That would be an unquestionable good
thing for the network as a whole, as sites which attempt to carry such
things without wanting to and without having the resources to do so help
no one.

> I'd strongly suggest you re-examine how INN works in terms of what will
> happen if the users are allowed to post unlimited length articles.  I
> suspect a lot of things will either outright break, or will perform like
> shit if you were to try that.

Obviously, you can't spool articles entirely in memory, but that's not as
hard to fix in INN as you seem to think.  All you have to change is to
have INN start writing things straight to the spool rather than spooling
them in memory first, which isn't that hard of a change (although it's
probably a week's worth of work to get it tested properly).

> Think about how imporant the memory cache is into making this work
> without much disk IO.  Think about how changing the average article size
> from 200K to 10MB will change the dynamics of the memory cache.

The sites that are willing to carry an average article size of 10MB can
throw considerably more resources at the problem than the average Usenet
site which is currently being deluged with article pieces because there's
no effective way to express a size limit preference.

I can see the point about starting a simultaneous outgoing feed while the
article is still in disk cache, but I'll also point out that 500MB of disk
cache is pretty cheap, certainly cheap for the sort of hardware that you
need to run a serious binary server.

And if you seriously want to handle 10GB Usenet articles and think that
this will be any sort of common enough case to have an impact on average
performance, you're dealing with a sort of Usenet volume that's going to
argue for a lot of custom coding, IMO.

But again, maybe I'm full of shit.  I've not done the high-end binary
thing; all I can comment on with any sort of authority is how annoying the
quest for larger and larger effective article sizes is on those of us who
are not interested in carrying any *files* that are larger than a few MB.

-- 
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'
#61056
Author: Curt Welch
Date: Sat, 05 Oct 2002 06:59
28 lines
2618 bytes
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".

> 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.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61055
Author: Juergen Helbing
Date: Sat, 05 Oct 2002 07:03
41 lines
2573 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>> In the past most people agreed to the statement that the end of 
>> the binary newsgroups would be also the end of the text newsgroups.
>
>If so, most people are fools -- the bandwidth available to users today
>means that text groups could survive via user bandwidth alone.
>I.e. anyone with a high speed connection and the interest could easily
>host a few dozen text groups for a couple of hundred people.

I'd be curious how you manage 10.000 hosts with each a few
dozen groups.....  OK, it's simple: They are using a handful
of "larger" central text-servers.....

>And the possibility of text only commercial services is not
>unreasonable, less people interested in it, but the cost are
>significantly less on both sides.
>(Plus universities where they started off).
>All of which adds up to one thing: text groups aren't going to die off.

The free text-server at the FU-Berlin (free university) does replace 
already a lot of these "small ISP-servers". A lot of "Hamster" servers
are connecting to Usenet through it.

There is _no_ reason for an ISP to run even an own text-server.
Especially for the few Mbytes. Compared to the necessity to
have an abuse department. And the (still) remaining adminstrative
work.


I may be wrong - but Usenet is changing a lot in the last time.

It seems to follow the economy: For years it was great to
expand and add new areas to your business. Now it is better
to focus on the core business. Unfortunately the strategy to
throw customers out seldom works.

-- 
Juergen

Re: [FNTP] 'in-completeness'
#61057
Author: Curt Welch
Date: Sat, 05 Oct 2002 07:04
20 lines
2425 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>
> > to support gigabyte files, major surgery has to be done to both Diablo
> > and INN.  heh, the perl filter will work real well, I suspect.
>
> INN should be able to handle articles up to 2GB without doing any
> surgery, unless I'm missing something major.  What are you thinking of?

But how will it peform when trying to recieve 20 articles like that at the
same time on a machine with only 1GB of memory?  How would it have
performed if it received them as 300KB files instead? I suspect there are
some very important cache savings going on that you are are not thinking
about.  Think about what happens to any applicaion when it's working set of
pages can't fit in real memory.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61058
Author: Curt Welch
Date: Sat, 05 Oct 2002 07:08
16 lines
2070 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Can you give me some feel for why you believe that?  How is handling a
> large article any more resource-intensive than handling the same quantity
> of bytes in separate articles?

Because if you try to access the first byte again after only writing 100KB
of data, the first byte will still be in your memory cache.  If you have to
write 1GB of data before you go back and try to read the first byte, it's
not going to be in the cache and you are going to have to read the entire
1GB article off a disk instead of reading out of memory.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61060
Author: Juergen Helbing
Date: Sat, 05 Oct 2002 07:13
34 lines
2313 bytes
Klaas <spamhole@klaas.ca> wrote:

>> The contrary would happen:
>> People would post their _entire_ collection all the time.
>> Simply because they can now be sure that those who have some
>> pics already will not download them again.
>
>If that were true then the only reason people don't already post their 
>"full collection" is because they think some people might already have 
>it.  I don't think that that is the case.

I wanted to show that such "new features" also have their backsides.
Actually there are people who post selectively and those who make
full posts.
If we deliver "perfect identity" information then I'm expecting
a "monthly full post".....


>> 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 ?

CU
-- 
Juergen

Re: [FNTP] 'in-completeness'
#61061
Author: Juergen Helbing
Date: Sat, 05 Oct 2002 07:18
22 lines
1671 bytes
Kjetil Torgrim Homme <kjetilho@ifi.uio.no> wrote:

>well, I believe I've seen servers to accept no more than four
>connections or so from one IP.  

This is usual behavior for commercial NSPs.

>that would usually work fine for that
>private LAN behind the shared DSL line or whatever, but for a large
>ISP proxy, the number of simultaneous connections could easily reach a
>hundred.

The good question is if such "conenctions" limits are based on
user-accounts - or on ip-addresses.

Curt, Jeremy, Jason, Mike, .... ??

TIA
-- 
Juergen

Re: [FNTP] 'in-completeness'
#61062
Author: Thomas
Date: Sat, 05 Oct 2002 07:59
15 lines
1954 bytes
Russ Allbery wrote:

> INN should be able to handle articles up to 2GB without doing any surgery,
> unless I'm missing something major.  What are you thinking of?

Hmm... you have to buffer the incoming 2GB files someplace. Or, if you write 
them to cycbuffs directly, there is only a limited number of 2GB files you can 
accept at the same time until other articles have to wait until a cycbuff is free.

No problem for tradspool, I'd guess.


Thomas

Re: [FNTP] 'in-completeness'
#61063
Author: Curt Welch
Date: Sat, 05 Oct 2002 08:38
126 lines
8395 bytes
Russ Allbery <rra@stanford.edu> wrote:
> I think that support for mid-ranged binaries, in the 1-10MB range, would
> be a lot better without multipart posts.

That may be so.  But the current mess we have with sites trying to filter
large binaries by filtering on articles size is giving the users the
completely wrong message.  It's trainging them that posting in large
part sizes is "bad", and posting in smaller part sizes is "good".

As long as a bulk of the posters still post huge things in small
part sizes, we are never going to be able to get people to increase
there posting size.  Sites that need to control volume will still
continue to filter by article size.

> I think that 10GB binaries are inherently doomed, and that they're
> already effectively extinct on Usenet except at a few major sites that
> can only ever manage to send them to each other, so in practice they're
> going to end up being a non-issue for most of us except insofar as we
> have to waste our resources trying to reject them.  And the more resource
> we have to waste to reject them, the more sites are just going to drop
> all binary newsgroups entirely rather than trying to puzzle it out.

Well, that's the point of these message-id conventions.  We are looking
for simple ways to tranform usenet so that sites that want partial binary
feeds will have much better options to pick from.  If all the binary
multipart posts had message-ids that include the full size of the binary
file, filtering by binary file size (instead of article size) becomes
trivial.  You do have issues with users refusing to use the convention
becuase it only causes their posts to be filtered (or continuing to post
sets of rar files instead of one huge file to get under the per-file limit
of their server).  But, if you combine these conventions with other feature
that the users like, and if enough news admins like the features, then it
can be forced on most of usenet.  For example, you could set up feeds to
peers that won't feed any article over 10K unless it was marked correctly
with this new message-Id convention.  The admins might end up forcing the
users to use this convention because if they don't the articles get dropped
faster than binaries in non-binary groups.

> No.  That argues for being able to resume POST as well.

yeah, but we already have that "fixed" with multipart posts.  So to me, it
really feels like you are trading one set of problems for another set which
are equally bad (or for which you make your problems - filtering binary
posts - become user problems - waiting for developers to implement a resume
POST function).

> Isn't it interesting that the more you try to effectively support binary
> posting on Usenet, the more you turn NNTP into FTP?  :)

Not surprising really.  NNTP cleary was not designed for large files and
FTP was.  But there's more than one way to "fix" it.

> Right now, there's no real incentive to work on this because the posters
> won't stop posting multipart messages.

Yeah, the way we are forced to filter volume by article size has to be
fixed before we could ever realy get anyone to try posting larger articles.

> > I'd strongly suggest you re-examine how INN works in terms of what will
> > happen if the users are allowed to post unlimited length articles.  I
> > suspect a lot of things will either outright break, or will perform
> > like shit if you were to try that.
>
> Obviously, you can't spool articles entirely in memory, but that's not as
> hard to fix in INN as you seem to think.  All you have to change is to
> have INN start writing things straight to the spool rather than spooling
> them in memory first, which isn't that hard of a change (although it's
> probably a week's worth of work to get it tested properly).

I can see that working for tradational spools without huge code impact
(cache performance is another issue), but how do you deal with cycbufs.
You can't write straight to the cycbuf as you receive an article because
only one thread can write to the spool at a time and you can't afford to
lock up the entire cycbuf when an incomming article stalls or is
disconnected mid-article.

If you write to temp files, it will work, but if you work with articles
that are on average 10 times larger, you will need 10 times more memory in
your cache to get the same performance.

> > Think about how imporant the memory cache is into making this work
> > without much disk IO.  Think about how changing the average article
> > size from 200K to 10MB will change the dynamics of the memory cache.
>
> The sites that are willing to carry an average article size of 10MB can
> throw considerably more resources at the problem than the average Usenet
> site which is currently being deluged with article pieces because there's
> no effective way to express a size limit preference.
>
> I can see the point about starting a simultaneous outgoing feed while the
> article is still in disk cache, but I'll also point out that 500MB of
> disk cache is pretty cheap, certainly cheap for the sort of hardware that
> you need to run a serious binary server.
>
> And if you seriously want to handle 10GB Usenet articles and think that
> this will be any sort of common enough case to have an impact on average
> performance, you're dealing with a sort of Usenet volume that's going to
> argue for a lot of custom coding, IMO.
>
> But again, maybe I'm full of shit.  I've not done the high-end binary
> thing; all I can comment on with any sort of authority is how annoying
> the quest for larger and larger effective article sizes is on those of us
> who are not interested in carrying any *files* that are larger than a few
> MB.

I've spent the last week fighting with my feed servers which are once again
no longer able to keep up with a full feed now that I've upgraded my
bandwidth and found news is another 10Mbits larger than it was 2 months
ago.  I've dounled the memory on one, replaced the burned out disk, and
orded a scond processor for it.  But that's not doing it, so I've orded a
new server which is about twice the power of my current "fast" server.  And
now, while waiting for the new server to get here, I find my old server is
starting to melt under the presure.  It's power cycling and rebooting about
every 10 minutes now.

I'm not an expert on what life would be like if the article size was 1MB
instead of 100KB, but it only seems like it's going to make life that much
harder for my servers to keep up.  Some of that is just the way I structed
my code, but some is just a fact of life with store and forward systems
that work better if they don't have to "store" as much before they can
"forward" and then free up the cache space.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61064
Author: Russ Allbery
Date: Sat, 05 Oct 2002 16:20
33 lines
3115 bytes
Curt Welch <curt@kcwc.com> writes:

> But how will it peform when trying to recieve 20 articles like that at
> the same time on a machine with only 1GB of memory?  How would it have
> performed if it received them as 300KB files instead? I suspect there
> are some very important cache savings going on that you are are not
> thinking about.  Think about what happens to any applicaion when it's
> working set of pages can't fit in real memory.

Right, you clearly can't spool the entire article in memory.  That's the
significant change.  You have to instead stream it to disk as it arrives
when the article is large.

For cyclical storage, this means that you want a quantity of binary
storage buffers on the order of the number of incoming binary peering
connections that you have, and you may well take a performance hit from
the lack of locality of your disk writes.  I think that would take some
real experimentation to see how bad it is, particularly if your disk has a
write-back cache.  But having a decent number of cycbuffs isn't
particularly hard (although with that configuration, nnrpd's current
behavior is naive, but also not all that difficult to fix).

I'll point out that this all only really matters if you're talking about
an average article size well over 10MB, since down in the range that I
think most servers will be operating at, you can just toss more memory in
the box and let innd be large.

-- 
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'
#61065
Author: Russ Allbery
Date: Sat, 05 Oct 2002 16:52
203 lines
12188 bytes
Curt Welch <curt@kcwc.com> writes:

> That may be so.  But the current mess we have with sites trying to
> filter large binaries by filtering on articles size is giving the users
> the completely wrong message.  It's trainging them that posting in large
> part sizes is "bad", and posting in smaller part sizes is "good".

Yes, I agree.  In fact, I consider the social problems, like that one, to
be the truly significant problem, not the technical problems.

Here's what was occuring to me last night:  Some providers are already
decoding binaries for their users and making them available in decoded
form.  This is additional evidence that NNTP actually sucks for doing what
people are doing with NNTP.  Now, suppose you're an ISP who wants to carry
a full binary feed, and you already peer with a few other sites that also
want to do that.

One of those sites comes to you and says "Look.  We can keep feeding you
encoded binaries in tons of separate parts, or, since we decode those
binaries for our users anyway, we'll decode all the locally posted
binaries, convert those files into MIME-encoded files using the 'binary'
CTE, and put them in dated and timestamped files in a directory.  We'll
then give the IP addresses of your choice access to download from that
directory.  Feel free to run wget or or rsync or something, and then
re-encode the binaries for your local readers if you want or just put them
directly into your decoded binary interface."

What would you do?

Suppose that most of the large sites originating binaries started doing
that.

Now, throw this in:  Users aren't *really* thrilled with posting binaries
themselves.  It's better with yEnc than with uuencoded posts, but it's
still a real pain to upload all that stuff through a slow connection,
particularly if their connection dies or stalls and they have to restart.

So suppose one offers a service like this:  They can post the text portion
of the post with a marker in the body with the file name that they want to
insert, and it goes into a hold queue.  Then they can upload the binaries
into a personal FTP area, using a regular FTP client with resuming of
upload and all of the other nice features of FTP, without having to do any
encoding at all.  The ISP then takes the binary and the text portion and
puts it together, encodes it however, and posts it for them.

Now combine the two ideas.

Before long, you've got a mechanism for distributing binaries that works a
lot better than Usenet.  People upload the files via FTP.  Sites exchange
the files via rsync or wget or some other mirroring protocol, which is
considerably more efficient than NNTP in every way.  If they want, they
recode the articles into base64 or yEnc or whatever and dump the articles
into their local spool, but many sites will then just make the binaries
available to their customers to download via HTTP.

You end up using the right protocols for the work you actually want to do,
and the entire arrangement is more convenient, has better *existing*
tools, and is much less of a pain for everyone involved.  It's just a lot
of hassle to set up the first time.

Now, I don't think this will ever happen, but that's not for technical
reasons.  I don't think it will ever happen because the levels of
indirection and nonsense that happen with binaries over NNTP right now
give providers plausible deniability when it comes to DMCA complaints and
similar issues, and I think sites would be worried about putting up
something like the above because it would make it entirely obvious exactly
what they were doing.

But I think it's *significantly* better from a technical standpoint, and I
highly doubt that *anything* you do to the NNTP protocol will even
approach a setup like the above for convenience, reliability, and ease of
use for the really large binaries.  You can even string together mirroring
arrangements to achieve something very much like the existing flood fill
system, except that on top of that you can even backfill from other
people's posting queues (depending on their retention; I expect a cron job
will periodically blow away the older articles sitting in the mirror spool
for other sites).  And frankly, rsync with some tweaking to only sync the
directories later than the last time you updated is likely to be a lot
more efficient even than streaming news feeds.

Again, I don't do the large volume binary thing, so I may well be missing
something.  I'm very interested in being told where I'm full of shit.  :)

> As long as a bulk of the posters still post huge things in small part
> sizes, we are never going to be able to get people to increase there
> posting size.  Sites that need to control volume will still continue to
> filter by article size.

Filtering by article size does not control volume.  That's the fundamental
problem.  You can filter out everything larger than 1MB and still end up
receiving almost all of the articles that you'd receive with an unlimited
article size, from the statistics that I've heard (although I don't have
them at my fingertips, so I could be surprised).

You have to filter by stuff like whether the article "looks" like a
multipart and then your guesses about how big the combined size would be,
and that's a complete mess.

> Well, that's the point of these message-id conventions.  We are looking
> for simple ways to tranform usenet so that sites that want partial
> binary feeds will have much better options to pick from.  If all the
> binary multipart posts had message-ids that include the full size of the
> binary file, filtering by binary file size (instead of article size)
> becomes trivial.

Don't get me wrong; I'd love to see that.  I'd happily make use of that.
But I think it's an ugly hack to put meta-information into the message ID,
and I'm also very skeptical that this will actually work.

> You do have issues with users refusing to use the convention becuase it
> only causes their posts to be filtered (or continuing to post sets of
> rar files instead of one huge file to get under the per-file limit of
> their server).  But, if you combine these conventions with other feature
> that the users like, and if enough news admins like the features, then
> it can be forced on most of usenet.

The problem is that it strikes me as an equivalent or only a little bit
less work than the system that I describe up above, since there's going to
be a lot more resistance since it isn't as convenient for the users and
they have to update their autoposting software, and just doing something
like I describe above *really* solves the problem and would make
*everyone* happier.

> For example, you could set up feeds to peers that won't feed any article
> over 10K unless it was marked correctly with this new message-Id
> convention.

Not unless you're going to force text posters to use this convention too,
you can't.  And that requires changing a heck of a lot of software.

>> No.  That argues for being able to resume POST as well.

> yeah, but we already have that "fixed" with multipart posts.

No, we've got a horribly hacked-up solution that allows you to "resume" at
500KB boundaries or so, at the cost of it being more common than not for a
site to not get all the parts of the binary, to the degree that people are
inventing parity solutions for their posts to restore missing parts.

Calling that "fixed" even with the quotes is quite a stretch.

> I can see that working for tradational spools without huge code impact
> (cache performance is another issue), but how do you deal with cycbufs.
> You can't write straight to the cycbuf as you receive an article because
> only one thread can write to the spool at a time and you can't afford to
> lock up the entire cycbuf when an incomming article stalls or is
> disconnected mid-article.

Yes, you can, if you have a number of cycbuffs on the order of your
incoming binary streams, but I talked about this more in another message.
(Disconnected isn't a problem; you just roll back to the last successful
write point and start accepting another article.)

> If you write to temp files, it will work, but if you work with articles
> that are on average 10 times larger, you will need 10 times more memory
> in your cache to get the same performance.

For what?

I don't see how this is relevant at all to a reader server.  Is it your
experience that your readers are so fast about downloading new articles
that newly arriving articles are served out to reader connections out of
your disk cache rather than going to disk?

That would surprise me, but then I know that much binary newsgroup reading
is being done by automated programs, so maybe that's really the case.  But
on first glance, it sure sounds like you're worried about feeding articles
out to other sites rather than feeding them to readers, and honestly I
don't see why you care if that's a bit slower.

The transit server can be drastically simpler in many respects than the
machine that serves readers.  It doesn't have to build overview databases,
for one.  Seems like if you threw comparable hardware at it as you throw
at your reader server, it could absorb the cache hit in all the overhead
it's saving by having fewer database commits.

And seriously, for a high-end operation, it's not *that* relatively
expensive to just put 10GB of RAM in your transit server.  Given that I
could consider doing that, and I have practically *no* budget for news, it
would surprise me if that would be a serious issue for a site devoted to
news (although I know Usenet sites are often run on much more of a
shoestring budget than I'd expect).

> I'm not an expert on what life would be like if the article size was 1MB
> instead of 100KB, but it only seems like it's going to make life that
> much harder for my servers to keep up.  Some of that is just the way I
> structed my code, but some is just a fact of life with store and forward
> systems that work better if they don't have to "store" as much before
> they can "forward" and then free up the cache space.

You certainly have a valid point about the effects of caching for transit
servers.  Maybe it ends up weighing more heavily than I expect it to.

But the whole thing overall strikes me as such a waste.  There are so many
better ways to engineer something like this than the God-awful hacks we're
running over NNTP right now.

-- 
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'
#61066
Author: Russ Allbery
Date: Sat, 05 Oct 2002 17:08
126 lines
7057 bytes
Juergen Helbing <archiver@i3w.com> writes:

> * What is your size limit for articles ?

Right now, I'm limiting article size to 1MB for no particularly good
reason other than we've already limited it to 1MB and the article size
limit is mostly irrelevant.

> * How do you enforce this size ?

I don't, effectively.  I just reject single articles over that size.

> * Are your transits already discarding multiparts ?
>   (Important for your peers)

No.  I've looked at the filtering problem a few times and got too
disgusted to want to try to tackle it.  Most of my peers don't want and
don't send binaries; nearly all of my binary peering is over Internet2
where I can throw away a ton of articles and not care about the bandwidth
consumption.

> * Do you prevent your users from POSTing multiparts ?

No, see above about the filtering problem.  Although it's occurred to me.
(I've only changed my mind on this topic very recently.)

> * What's your current daily volume with this "binary-light-policy"?

At this point, I'm only carrying some mostly picture newsgroups and not
very many of those, so I've got my accepted volume well under control.
It's under 10GB in fact.  I'm essentially not participating in the binary
Usenet at all right now.

If I had some way of controlling multipart binaries, I'd throw the
floodgate open to requests for any picture newsgroups that my users want
and I'd start actively participating in carrying smaller binaries again.
My users would love it if I changed that policy; there's a large queue of
pending requests for binary groups that I'd be happy to carry.

> * How much work is necessary to enfore "binary-light"
>   - compared to simply reject _all_ binaries ?

Too much; that's why I'm not doing it.  Because right now it requires some
insanely complicated filters.

> You and/or your boss decided to rate "liability" higher than "freedom".
> "Concentration on the focus" overrides "curiosity".

No, no, no.

Again, I made this point clearly in my other message:  It's a *balance*.
If what you said above were actually true, I wouldn't be carrying any
binary newsgroups at all, whereas I'd happily carry *more* of them if I
could control some of the technical problems caused by multipart posts.

> The people who are working for the further development in the "regular"
> taskforces are concentrating on Text-Usenet. There _are_ a lot of
> academic people involved. But these specialists are not confronted with
> the daily problems of a 500 Gig binary stream - so they dont care about
> it. And they dont even get feedback from their students - because they
> are cut off...

The problem you're going to face in getting me to care about a 500GB
binary stream is that 99% of that 500GB is flat-out illegal.  Whether one
agrees with those laws or not, that's the fact of the matter, and why
would anyone spend university resources on carrying illegal content?

I know that a lot of people who use the binary groups on Usenet live in
some sort of fantasy land where that isn't something that they even think
about, and no one enforces those laws against individual users, but I will
point out that universities have already been threatened with significant
lawsuits over peer-to-peer, and if Usenet had a higher profile, we'd be
facing the same thing over Usenet.

And it's not like the lawsuits are just wrong either.  They're *right*.
The stuff that's being copied is their legitimate property, under the best
system that we have for managing such things right now, and I don't want
to participate in theft of their property.  I don't like the copyright
laws very much, and I think there are better ways of organizing society,
but there's also something to be said for having a consistent set of
rules, and in many cases that's more important than having the ideal set
of rules.

However, you could very easily get me to care about at least 20GB or 30GB
of that data.  There are a lot of picture newsgroups for sharing content
that's perfectly legal (there are a *lot* of non-porn picture newsgroups,
for one).  I'd like to carry a bunch more of that.

And frankly, I'd love to carry MP3 newsgroups devoted to people's original
content, but the only way to do that would be to have moderated ones.
There are a lot of Stanford students who'd be quite happy to distribute
their own original material via some sort of Usenet-like binary
distribution system.

But I'd rather that they post those MP3s on a web site.  And I think that
distributing complete software distributions or DVDs over Usenet is
completely insane, and not something that I'm ever going to be interested
in trying to support.  You can write highly-tuned FTP servers with special
backend support for running programs and use them to serve out a web site
too, but why on earth would anyone bother rather than just installing a
web server?  And why would I want to help them?

> Worst: The future of the binary Usenet is now fully in the hands of
> overworked commercial news-admins, the users, some hobby programmers -
> and some experienced nerds (as myself).

> This is _speculation_ - but I am afraid that I am very close to reality.

On the last score, I think you're entirely correct.

> I hope you understand that I enjoy this kind of conversation with you
> and that I highly respect your opinion and activities.  Nothing written
> here should be taken as a personal insult.

Yes, I understand.

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.

-- 
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'
#61067
Author: Russ Allbery
Date: Sat, 05 Oct 2002 17:12
59 lines
3428 bytes
Juergen Helbing <archiver@i3w.com> writes:
> 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?  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.

> * If a POST command is aborted by simply cutting the connection
>   during the "final" handshake then nobody knows if the article
>   was accepted or not.

Not talking about POST.

> * If a user decides to stop posting (made a mistake) then he does
>   not know what to do - or what exactly happens when he uses "stop".

Not talking about POST.

> * Fetching new headers from a server can take a long time.
>   If someone subscribes to a new host and fetches heades for
>   50 groups then a lot of reconnects can be necessary.

If the news reader can't cache that sort of information across closes of
the network connection, the user should throw it away and get a new one.
Mine certainly doesn't have that problem.

> * The statement "dont reconnect all the time" is well known.

So don't cancel downloading articles all the time.  :)

> * Fetching just the first 50 lines of a post is not possible.
>   (the "deliver partial body helps here).

Correct.  The useful use of closing the connection is to provide "user
stop" capability on downloading a large binary, not to grab information to
use to make filtering decisions.

> * 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?

-- 
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'
#61069
Author: BOUWSMA Beery
Date: Sat, 05 Oct 2002 20:40
79 lines
5533 bytes
Zig heil!
%s wrote on %.3s, %lld Sep 1993

> > I'm willing to be convinced that I'm wrong.  Let me know what I'm
> > missing.
> I think you'll have to argue that out with someone running a large
> server, I'm not real solid on the theory here, let alone how theory

Sorry for the delay -- I had to smuggle several cases of dark beer
across the border and so wasn't able to reply in a timely fashion.

I have to throw in my experience, years ago when one could actually
see the difference between single-part pr0n and multi-part mp3 groups,
that the swerver I was mangling had no problems receiving parts of 1MB
and up, typically to 4MB (that being the limit of the Highwind software
a number of peers were using), and sometimes 10MB, and having those
posts being complete.  (I even recall rejecting a 22MB part, which on
later inspection turned out to be several bunnies improperly concatenated
together due to a known bug, rejected because I hadn't bumped up the
point where I'd accept articles past the 10MB point.)

So there's no inherent problem in using posting sizes in the megabyte-
size range.

Noting that was some years ago, right before I was ordered to reduce
the volume used by news to something more reasonable which I did by
imposing a size-based restriction on articles, I'll observe the
following:
* The volume was much less then, while later evaluation of the particular
software I was using showed it was less efficient than more recent INN
software, plus there may have been a well-known OS filesystem bug that
was recently addressed that may have adversely affected the more recent
k0debase I was testing.
* One must devote adequate resources to the problem.  With some peers
it was akin to pulling teeth to get them to use enough connections to
keep up with the flow of news back then.  Today, it's much worse.
* The bandwidth back then was much less; today I wouldn't even try to
run a news swerver on what was available to me (I had to fake it with
multiple interfaces last time I tried, and still they were maxxxed out
totally).

My conclusion back then, which hasn't changed over the years, is that
a site having problems with binaries is simply not adequately equipped
to handle them, and by trading off 95% of missing huge articles, one
instead gets 10% or so of missing medium-sized articles across the board.
In order to properly handle a full feed, including the biggest articles,
one needs adequate bandwidth -- I think gig ethernet is essential today
with the numbers I've seen floating by -- and enough peers who are
able to devote the resources, in particular, simultaneous connections
and IHAVE rather than CHECK for larger articles (I reduced wasted
bandwidth by a factor of 10 with that, which also translates to a
zippier turnaround).

By the time I stopped doing news, the volume/posting-size distribution
had significantly changed (I'd love to dig up GIF^H^H^H images of this
but I'm lazy) so that the >1MB sized articles were almost never
encountered, and a site that tried to keep bandwidth within reason
by imposing a size cutoff (which of course requires cooperation by
all peers -- one renegade can trash ones allocated bandwidth easily)
would have a very hard time doing so and would adversely affect the
pr0n froups that would previously be unaffected.

In short (since I seemed to have sampled too much of the dark beer that
I was smuggling), a well-run swerver, particularly today, should have
no problem handling megabyte-sized articles.  With the caution that
this also requires cooperation from peers and an understanding of
what's going on out there.


> OTOH, the middle ground seems to be that at least in the 1-2 meg range,
> not splitting is the thing to do.

I heartily endorse this product and/or service.  *HIC!!!*


barry bouwsma, drunkard

Re: [FNTP] 'in-completeness'
#61072
Author: Curt Welch
Date: Sat, 05 Oct 2002 21:08
15 lines
2016 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> The good question is if such "conenctions" limits are based on
> user-accounts - or on ip-addresses.
>
> Curt, Jeremy, Jason, Mike, .... ??

For those of us selling password accounts to the server the connection
limits are always account based and not IP based. But I think the context
of this thread started with some type of assumption on IP based
restrictions.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61073
Author: Curt Welch
Date: Sat, 05 Oct 2002 21:18
24 lines
2721 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> I'll point out that this all only really matters if you're talking about
> an average article size well over 10MB, since down in the range that I
> think most servers will be operating at, you can just toss more memory in
> the box and let innd be large.

Yeah, when you change the discussion from "post all binaries as single
parts", to "lets just try to get the stuff up to 10MB posted as single
parts", it's an entirely different issue.  You tune a few things and add
more memory and it will proabably work ok on most the current servers.

However, I think there's more value all around to making multiparts work
better instead of trying to do things to get rid of them. If you make them
work better in general, I think that would lead to people using larger part
sizes as well (i.e., if a post is filtered for reaons other than the
article size, then there's little reason to keep the article size so
small).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61074
Author: J.B. Moreno
Date: Sat, 05 Oct 2002 21:27
58 lines
4117 bytes
In article <yld6qosu9b.fsf@windlord.stanford.edu>,
 Russ Allbery <rra@stanford.edu> wrote:

> Curt Welch <curt@kcwc.com> writes:
-snip-
> > As long as a bulk of the posters still post huge things in small
> > part sizes, we are never going to be able to get people to increase
> > there posting size.  Sites that need to control volume will still
> > continue to filter by article size.
> 
> Filtering by article size does not control volume.  That's the
> fundamental problem.  You can filter out everything larger than 1MB
> and still end up receiving almost all of the articles that you'd
> receive with an unlimited article size, from the statistics that I've
> heard (although I don't have them at my fingertips, so I could be
> surprised).
> 
> You have to filter by stuff like whether the article "looks" like a
> multipart and then your guesses about how big the combined size would
> be, and that's a complete mess.

That doesn't meant that people don't do it -- but as you say it doesn't
work, and the reason it doesn't work is because users can see it
working and respond by reducing article size.

> > Well, that's the point of these message-id conventions.  We are
> > looking for simple ways to tranform usenet so that sites that want
> > partial binary feeds will have much better options to pick from. 
> > If all the binary multipart posts had message-ids that include the
> > full size of the binary file, filtering by binary file size
> > (instead of article size) becomes trivial.
> 
> Don't get me wrong; I'd love to see that.  I'd happily make use of
> that. But I think it's an ugly hack to put meta-information into the
> message ID, and I'm also very skeptical that this will actually work.

I've stopped thinking of it as a hack -- the Message-ID is what
uniquely defines an article, if the article is in reality a file, it
seems to me that that fact ought to be reflected in the Message-ID.

Putting info in the Message-ID thus makes a lot of sense to me.

-snip-

> > For example, you could set up feeds to peers that won't feed any article
> > over 10K unless it was marked correctly with this new message-Id
> > convention.
> 
> Not unless you're going to force text posters to use this convention too,
> you can't.  And that requires changing a heck of a lot of software.

The vast majority of text articles are under 10k and so not a problem,
it happens rarely enough that users can just fix it by hand when
happens (particularly if the server rejects the POST command).

-- 
J.B. Moreno
Re: [FNTP] 'in-completeness'
#61075
Author: Russ Allbery
Date: Sat, 05 Oct 2002 21:35
27 lines
2551 bytes
J B Moreno <planb@newsreaders.com> writes:

> The vast majority of text articles are under 10k and so not a problem,
> it happens rarely enough that users can just fix it by hand when happens
> (particularly if the server rejects the POST command).

Heh.

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.

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?

Nope.  It's a nice idea, but it's unfortunately nowhere near that simple.

-- 
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'
#61076
Author: J.B. Moreno
Date: Sat, 05 Oct 2002 21:40
23 lines
2190 bytes
In article <32039.5a2202@archiver.winews.net>, Juergen Helbing
<archiver@i3w.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> 
> >> In the past most people agreed to the statement that the end of 
> >> the binary newsgroups would be also the end of the text newsgroups.
> >
> >If so, most people are fools -- the bandwidth available to users today
> >means that text groups could survive via user bandwidth alone.
> >I.e. anyone with a high speed connection and the interest could easily
> >host a few dozen text groups for a couple of hundred people.
> 
> I'd be curious how you manage 10.000 hosts with each a few
> dozen groups.....  OK, it's simple: They are using a handful
> of "larger" central text-servers.....

Not sure what you mean by "manage"?  The number of hosts goes up, but
that's not a problem.

-- 
J.B. Moreno
Re: [FNTP] 'in-completeness'
#61080
Author: Curt Welch
Date: Sat, 05 Oct 2002 22:39
315 lines
17699 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
>
> > That may be so.  But the current mess we have with sites trying to
> > filter large binaries by filtering on articles size is giving the users
> > the completely wrong message.  It's trainging them that posting in
> > large part sizes is "bad", and posting in smaller part sizes is "good".
>
> Yes, I agree.  In fact, I consider the social problems, like that one, to
> be the truly significant problem, not the technical problems.
>
> Here's what was occuring to me last night:  Some providers are already
> decoding binaries for their users and making them available in decoded
> form.  This is additional evidence that NNTP actually sucks for doing
> what people are doing with NNTP.  Now, suppose you're an ISP who wants to
> carry a full binary feed, and you already peer with a few other sites
> that also want to do that.
>
> One of those sites comes to you and says "Look.  We can keep feeding you
> encoded binaries in tons of separate parts, or, since we decode those
> binaries for our users anyway, we'll decode all the locally posted
> binaries, convert those files into MIME-encoded files using the 'binary'
> CTE, and put them in dated and timestamped files in a directory.  We'll
> then give the IP addresses of your choice access to download from that
> directory.  Feel free to run wget or or rsync or something, and then
> re-encode the binaries for your local readers if you want or just put
> them directly into your decoded binary interface."
>
> What would you do?

I'm an NSP.  I have to have the orginal articles because I provide
access to those.  There's not much to be gained by having to transfer
the orginal article, and then transfer a decoded version as well.  That
just doubles my incoming bandwidth.

And I wouldn't trust that the person I sucked the articles from decoded
them correctly anywhow.  And for leagl reason, I need the orginal articles
to help establish the content isn't "mine" and to document where the
content came from.

If usenet in general was changed so it move binary files instead of
articles, then all I need is what is transmitted to me from my peers.

Also, sucking sucks. Feeders work much better if they have the option of
sending out N copies of the article to their peers at the same time so the
article doesn't have to be read from disk (it's in the memory cache).  When
your peers suck from you, you loose the timing advantage and the locality
of cach savings, so it ends up being much more disk I/O intensive to do the
same amount of peering.

On top of that, if I'm having problem delivering content to my peers, I can
turn off a feed or reduce it in size.  When people suck from you, it's very
hard to control how much load they put on your servers. Yo uwould be forced
to just block them completely (or spend a lot of time devloping a new NNTP
replacement protocol with lots of built in fetures that allow you to
control how fast the peers can "suck" from you, etc.).

> Suppose that most of the large sites originating binaries started doing
> that.
>
> Now, throw this in:  Users aren't *really* thrilled with posting binaries
> themselves.  It's better with yEnc than with uuencoded posts, but it's
> still a real pain to upload all that stuff through a slow connection,
> particularly if their connection dies or stalls and they have to restart.
>
> So suppose one offers a service like this:  They can post the text
> portion of the post with a marker in the body with the file name that
> they want to insert, and it goes into a hold queue.  Then they can upload
> the binaries into a personal FTP area, using a regular FTP client with
> resuming of upload and all of the other nice features of FTP, without
> having to do any encoding at all.  The ISP then takes the binary and the
> text portion and puts it together, encodes it however, and posts it for
> them.

I already offer that service though HTTP.  You type in the text, you upload
the binary (in binary), and only after the entire binary is uploaded, my
server spits out the multipart articles (complete with the correct size
calculating algorithm which keeps all the parts the same size).

HTTP offers no resume-upload features, and the function is limited in how
large an article can be posted (30MB), so it's not a great solution.  But
it's something anyone can do now.  With the help of a better PC client,
this type of technique would work very nicely.  It could easilly be added
to NNTP as well and probably should be.

> Now combine the two ideas.
>
> Before long, you've got a mechanism for distributing binaries that works
> a lot better than Usenet.

Well, this is what I've been trying to make happen.  I want the news
servers to have a standard way of moving binary files (and for the servers
to "know" they are moving a binary file).  I don't think however that
moving them as one large binary file over a TCP connection is the best way
to do it.  That won't work until we get a large subset of Usenet converted
to a new transport system.  So we need to find a way to migrate the current
system (being as backwards compatible as possible), to the new system,
where news servers are moving files, and not just articles that happen to
have files hidden in them.

Right now, there is no "correct way" to turn multipart posts into binary.
It's impossible to convert a usenet post, into binary, then convert back to
"usenet article" without lossing important information.

But, if we can get to a "real" standard for moving files of usenet, this
might be possible down the road.

> People upload the files via FTP.  Sites
> exchange the files via rsync or wget or some other mirroring protocol,
> which is considerably more efficient than NNTP in every way.

The push system of Usenet is hard to beat.  Unless you are doing a
suck-and-cache-on-demand proxy system, sucking sucks.  And with the
conversion to yEnc, you can't even argue the overhead issue of uuencode
anymore.

> If they
> want, they recode the articles into base64 or yEnc or whatever and dump
> the articles into their local spool, but many sites will then just make
> the binaries available to their customers to download via HTTP.

Yeah, one day, it might be neat to be able to do that.  But we are just
no where near that yet because of how much of a mess we have when it
comes to how binary files are encoded on usenet.

> Now, I don't think this will ever happen, but that's not for technical
> reasons.  I don't think it will ever happen because the levels of
> indirection and nonsense that happen with binaries over NNTP right now
> give providers plausible deniability when it comes to DMCA complaints and
> similar issues, and I think sites would be worried about putting up
> something like the above because it would make it entirely obvious
> exactly what they were doing.

Yeah, how things work now, that's important.  You need to deliver what the
user created, without editing it.  A "smart" decoding tool that translates
the posts into binary and stips out the references to the orginal post is
a legally dangerous thing.  Usenet web file extraction sites have been
suied by spammers (and the spammer won) for extrating the jpg from a usenet
article and not including the rest of the text (site name and URL for
spammers site) as well.

But, if we can first get the servers to know in some standard fashion that
they are moving binaries, then we are one step closer to where the text
and the binary go hand and hand, and the server will have the power to
translate the binary to alternate encodings (or to pure binary) without
it lookig like "editing content".

> Again, I don't do the large volume binary thing, so I may well be missing
> something.  I'm very interested in being told where I'm full of shit.  :)

Well, I think the suck system just won't work.  The push system works beter
both technically, and socially.

> Filtering by article size does not control volume.  That's the
> fundamental problem.  You can filter out everything larger than 1MB and
> still end up receiving almost all of the articles that you'd receive with
> an unlimited article size, from the statistics that I've heard (although
> I don't have them at my fingertips, so I could be surprised).

There's not much volume over 1MB.  Doesn't INN still come with a 1MB size
limit out of the box?  But there's lots of volume in the 500 to 1MB range
and filtering around there will cut volume substantially.  It just sucks
however because you end up cuting out stuff you would like to carry (like a
800 MB single part post), and lossing stuff you don't want (like a 1000
part warez post).

> You have to filter by stuff like whether the article "looks" like a
> multipart and then your guesses about how big the combined size would be,
> and that's a complete mess.

right.  It's a mess.  But I think it's a mess that we might be able to
clean up because the cleaned up version I think can be a win for everyone.

> Don't get me wrong; I'd love to see that.  I'd happily make use of that.
> But I think it's an ugly hack to put meta-information into the message
> ID,

Yeah, that's a valid point.  But it's not "that" ugly if the intent is to
make Usenet transport files and not just articles.  My idea is to move
from just labeling the binary files with special IDs to moving to a system
where, for those types of articles, the usenet servers will have the
"right" to transform those articles, and store those articles, anyway they
see fit.

I see this headding to a time where Usenet is transporting two very
different types of things.  They transport normal articles (like they do
today), and they transport file segments.  The file segments are identified
to the usenet servers by their unique ID (which is the hash of the data),
their full size, and the offset/size of the segment.  These special "file
segments" will have a header which is bascially the same as current
articles, but the body is simply the data for the segment - nothing else.

How that's encoding now will be with things like yEnc.  But over time, I
think we are likely to migrate to something very different.

NNTP will be extended to allow posting theise "file segments" is a very
different way then articles work now.  You will upload headers, and then
the data, and the server will do the encoding for you.

On download, these segments will look very different as well.  They won't
be mixed in the XOVER data for normal articles (expect for the backward
compatable clients), they will be listed is a special Segment overview list
where everything is already nicely sorted by the file hash for the client.
It just lists the file hash, and the data ranges available for download.
And there will be special download commands added to NNTP where you ask not
for a segment as posted, but you simply ask for the the data range you
want...

  GETDATA <file-hash> [<offset> [<size>]]

Which allows you to download in pure binary any part of the file.  The news
server will know how to combine and decode the actual "articles" it has on
file for that file so the offset and size arguments you give it don't have
to allign with actualy file segments.  And because you can specify the
offset, that gives you the natural resume-download feature.  If you leave
the <size> argument off, it downalds the entire file starting at the
offset.  A missing <offset> would mean 0, or start from the beginning of
the file.

All this is possible once the news servers start to "know" they are
transporting files instead of just files hidden in articles.  And I think
this message-id hack, is the right way to get is headed to this new system.

> and I'm also very skeptical that this will actually work.

The trick is finding a way to "bait" all of usenet into changing.

> The problem is that it strikes me as an equivalent or only a little bit
> less work than the system that I describe up above, since there's going
> to be a lot more resistance since it isn't as convenient for the users
> and they have to update their autoposting software, and just doing
> something like I describe above *really* solves the problem and would
> make *everyone* happier.

I don't think it does.  The message-Id stuff I think has a chance of making
it into usenet if done correctly because we can start with stuff that's
easy to add to existing software (5 lines of code type changes - where
they simply generate message-ids that document what's being posted using
this new convention).

If someone creates some nice tools that take advanatage of the new ids,
then that will motivate people to use the id-s more.  The big thing they
can allow is the abilty for third parties to do partal reposts and for
everyone to take advantage of that.

Also, most download tools (I belive) dont' work at all right now if the
complete multipart post isn't on the server (or on a set of servers) for
download.  They just don't have the power to download a few pieces today
and then start to watch for the rest to show up later.  With this new
technology, a user can see a single part (say part 54 or 54) of a post and
think - "hey I want that file".  He could then mark that single part for
download and tell his download tool to keep an eye out for the rest of the
parts.  And it would be able to grab the parts no matter who posted them,
or what group they were posted in, or what the subject was, or what the
file name was, or what the size of the parts were.

Nothing that I know of does that now.  I think a lot of uses would get
very excited by this technology and if the correct download tools were
available for free, then it would spread quicker then yEnc though Usenet.
And as a side effect, we would be one step closer to the time where usenet
servers were transporting file-segments differently from how they
transported articles.

> Not unless you're going to force text posters to use this convention too,
> you can't.  And that requires changing a heck of a lot of software.

I was only talking about binary posts over 10K.  You don't want the text
posters to do that becaus they will stay like they are.

> No, we've got a horribly hacked-up solution that allows you to "resume"

> Calling that "fixed" even with the quotes is quite a stretch.

True. :)  How about """fixed""".  (do I look like Joey?)

> > If you write to temp files, it will work, but if you work with articles
> > that are on average 10 times larger, you will need 10 times more memory
> > in your cache to get the same performance.
>
> For what?

For transit.

> I don't see how this is relevant at all to a reader server.

Yeah, I'm thinking transit issues mostly when I talk about these
cache issues.  But that's also because this entire thread was
strated on the problem of "lost articles", and no one I know of
has problems loosing articles between their transit servers and
their reader boxes.

> And seriously, for a high-end operation, it's not *that* relatively
> expensive to just put 10GB of RAM in your transit server.  Given that I
> could consider doing that, and I have practically *no* budget for news,
> it would surprise me if that would be a serious issue for a site devoted
> to news (although I know Usenet sites are often run on much more of a
> shoestring budget than I'd expect).

There's not a lot of money in "usenet" no matter how you slice it up. :)

> But the whole thing overall strikes me as such a waste.

We are talking about Usenet after all. :)

> There are so
> many better ways to engineer something like this than the God-awful hacks
> we're running over NNTP right now.

A big part of the problem is not just finding a better way to do something
but finding a workable path to get from here to there.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61083
Author: Russ Allbery
Date: Sat, 05 Oct 2002 23:03
157 lines
9492 bytes
Curt Welch <curt@kcwc.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> One of those sites comes to you and says "Look.  We can keep feeding
>> you encoded binaries in tons of separate parts, or, since we decode
>> those binaries for our users anyway, we'll decode all the locally
>> posted binaries, convert those files into MIME-encoded files using the
>> 'binary' CTE, and put them in dated and timestamped files in a
>> directory.  We'll then give the IP addresses of your choice access to
>> download from that directory.  Feel free to run wget or or rsync or
>> something, and then re-encode the binaries for your local readers if
>> you want or just put them directly into your decoded binary interface."

> I'm an NSP.  I have to have the orginal articles because I provide
> access to those.  There's not much to be gained by having to transfer
> the orginal article, and then transfer a decoded version as well.  That
> just doubles my incoming bandwidth.

Hm, I'm not sure you understand what I'm saying.  The *posting site*,
which is certainly in possession of the original article, and with which
you're already peering, is offering you the article in two different
forms.  They can either feed them to you normally, or they can put the
original articles in a place where you can pull them down from (and
presumably tell you the message IDs so that you can just refuse any
offered copies of the same articles from other peers).

This obviously doesn't double your incoming bandwidth.  This is a peer
that would be offering you an article that you'd accept, and is giving you
an option of a different way of accepting it.

> And I wouldn't trust that the person I sucked the articles from decoded
> them correctly anywhow.

Given that the person providing the articles to you is the originating
site, why trust that they stored the article correctly or forwarded it to
you correctly either?

> And for leagl reason, I need the orginal articles to help establish the
> content isn't "mine" and to document where the content came from.

They're providing you with the original articles.  Either way.

> Also, sucking sucks. Feeders work much better if they have the option of
> sending out N copies of the article to their peers at the same time so
> the article doesn't have to be read from disk (it's in the memory
> cache).  When your peers suck from you, you loose the timing advantage
> and the locality of cach savings, so it ends up being much more disk I/O
> intensive to do the same amount of peering.

Ignore this for a bit.  I see your point, but let's skip that just for a
moment.  I'm not asking you to do this, I'm saying that suppose one of
your peers came to you and said that they're *already* doing this and
offers you a choice of how you want to get the articles that are
originating with them.

> On top of that, if I'm having problem delivering content to my peers, I
> can turn off a feed or reduce it in size.  When people suck from you,
> it's very hard to control how much load they put on your servers.

Suppose your peer has this handled somehow.  It's not particularly hard to
handle this since you only allow your peers to suck, not anyone in the
world.

> I already offer that service though HTTP.  You type in the text, you
> upload the binary (in binary), and only after the entire binary is
> uploaded, my server spits out the multipart articles (complete with the
> correct size calculating algorithm which keeps all the parts the same
> size).

Cool!  So this part of my idea is already available.

> Well, this is what I've been trying to make happen.  I want the news
> servers to have a standard way of moving binary files (and for the
> servers to "know" they are moving a binary file).  I don't think however
> that moving them as one large binary file over a TCP connection is the
> best way to do it.  That won't work until we get a large subset of
> Usenet converted to a new transport system.  So we need to find a way to
> migrate the current system (being as backwards compatible as possible),
> to the new system, where news servers are moving files, and not just
> articles that happen to have files hidden in them.

I think we're pretty much coming to the same sorts of conclusions, except
that I think that it would be even easier to drop NNTP at the first step
rather than at some far later step.

> Right now, there is no "correct way" to turn multipart posts into
> binary.  It's impossible to convert a usenet post, into binary, then
> convert back to "usenet article" without lossing important information.

Could you give me some more information about the basis of this opinion?
On the surface, this doesn't seem correct to me, but you may be alluding
to some problem that I don't understand.

> Yeah, that's a valid point.  But it's not "that" ugly if the intent is
> to make Usenet transport files and not just articles.

Except that the text Usenet is far more important to me, and I'm not sure
that model makes sense for the text Usenet.  Because on the text Usenet,
one really is transporting articles, not files, and some of the tagging of
files and the like doesn't make sense and isn't really compatible with
what people are doing now.

> My idea is to move from just labeling the binary files with special IDs
> to moving to a system where, for those types of articles, the usenet
> servers will have the "right" to transform those articles, and store
> those articles, anyway they see fit.

Something closer to e-mail, where CTE transformations are permitted?  That
makes me nervous in general, although mostly only if those articles leak
back out into the news stream again (which with suck feeds seems a likely
possibility).

> I see this headding to a time where Usenet is transporting two very
> different types of things.  They transport normal articles (like they do
> today), and they transport file segments.  The file segments are
> identified to the usenet servers by their unique ID (which is the hash
> of the data), their full size, and the offset/size of the segment.
> These special "file segments" will have a header which is bascially the
> same as current articles, but the body is simply the data for the
> segment - nothing else.

Hm.  That makes sense, actually.

> NNTP will be extended to allow posting theise "file segments" is a very
> different way then articles work now.  You will upload headers, and then
> the data, and the server will do the encoding for you.

That doesn't sound like the right direction to go, however.  What about
putting text into the body of the message?  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)?

You pretty much have to do something compatible with e-mail if there's any
intention at all for these messages to be read by normal news readers
rather than just being put on a web site for people to download.  There's
far too much momentum behind e-mail clients and MIME and not nearly enough
resources in the Usenet world to reinvent the wheel.

> I don't think it does.  The message-Id stuff I think has a chance of
> making it into usenet if done correctly because we can start with stuff
> that's easy to add to existing software (5 lines of code type changes -
> where they simply generate message-ids that document what's being posted
> using this new convention).

This is true, I'll grant.

> A big part of the problem is not just finding a better way to do
> something but finding a workable path to get from here to there.

Yes, this is also a very good point.

-- 
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'
#61084
Author: J.B. Moreno
Date: Sat, 05 Oct 2002 23:16
33 lines
2846 bytes
In article <ylsmzkefhs.fsf@windlord.stanford.edu>,
 Russ Allbery <rra@stanford.edu> wrote:

> J B Moreno <planb@newsreaders.com> writes:
> 
> > The vast majority of text articles are under 10k and so not a problem,
> > it happens rarely enough that users can just fix it by hand when happens
> > (particularly if the server rejects the POST command).
> 
> Heh.
> 
> 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.

Yes, I know.  But it's probably still workable.

> Oh, and most RFDs, CFVs, and RESULTs.
> 
> 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?
> 
> Nope.  It's a nice idea, but it's unfortunately nowhere near that simple.

Then up the limit, or have the server examine the body and reject it
based upon that if it's too large -- the important thing is to reduce
the propagation of untagged binary articles.

-- 
J.B. Moreno
Re: [FNTP] 'in-completeness'
#61095
Author: JanC
Date: Sat, 05 Oct 2002 23:35
14 lines
1910 bytes
archiver@i3w.com (Juergen Helbing) schreef:

> The good question is if such "conenctions" limits are based on
> user-accounts - or on ip-addresses.

Many of the non-Usenet news servers (with only local groups) use anonymous 
access.  Probably some of these have an IP-based connections limit?

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Re: [FNTP] 'in-completeness'
#61097
Author: Russ Allbery
Date: Sat, 05 Oct 2002 23:41
14 lines
2110 bytes
J B Moreno <planb@newsreaders.com> writes:

> Then up the limit, or have the server examine the body and reject it
> based upon that if it's too large -- the important thing is to reduce
> the propagation of untagged binary articles.

If one combines it with binary detection, I guess that might work.  Hm.

-- 
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'
#61098
Author: J.B. Moreno
Date: Sun, 06 Oct 2002 01:31
24 lines
2572 bytes
In article <yl7kgwcv2p.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> J B Moreno <planb@newsreaders.com> writes:
> 
> > Then up the limit, or have the server examine the body and reject it
> > based upon that if it's too large -- the important thing is to reduce
> > the propagation of untagged binary articles.
> 
> If one combines it with binary detection, I guess that might work.  Hm.

As I see it, the biggest obstacle is getting the various servers to
play ball -- and I think convincing them to go along with it is going
to be a tough row to hoe.

Basically you have to do two things -- convince a lot of readers to
implement it, and convince either a significant number or a few
critical servers to do likewise.  I don't see any real problem with the
clients if you have a commitment from the servers, but I'm not sure
it's even possible to get that commitment.

-- 
J.B. Moreno
Re: [FNTP] 'in-completeness'
#61100
Author: Curt Welch
Date: Sun, 06 Oct 2002 03:34
229 lines
12408 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
> > Russ Allbery <rra@stanford.edu> wrote:
>
> >> One of those sites comes to you and says "Look.  We can keep feeding
> >> you encoded binaries in tons of separate parts, or, since we decode
> >> those binaries for our users anyway, we'll decode all the locally
> >> posted binaries, convert those files into MIME-encoded files using the
> >> 'binary' CTE, and put them in dated and timestamped files in a
> >> directory.  We'll then give the IP addresses of your choice access to
> >> download from that directory.  Feel free to run wget or or rsync or
> >> something, and then re-encode the binaries for your local readers if
> >> you want or just put them directly into your decoded binary
> >> interface."
>
> > I'm an NSP.  I have to have the orginal articles because I provide
> > access to those.  There's not much to be gained by having to transfer
> > the orginal article, and then transfer a decoded version as well.  That
> > just doubles my incoming bandwidth.
>
> Hm, I'm not sure you understand what I'm saying.

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.

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.

> This obviously doesn't double your incoming bandwidth.  This is a peer
> that would be offering you an article that you'd accept, and is giving
> you an option of a different way of accepting it.

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.

> > Also, sucking sucks.

> Ignore this for a bit.

Ok, you got 30 minutes. :)

> I see your point, but let's skip that just for a
> moment.  I'm not asking you to do this, I'm saying that suppose one of
> your peers came to you and said that they're *already* doing this and
> offers you a choice of how you want to get the articles that are
> originating with them.

Ok. I'm supposing.

> > When people suck from you,
> > it's very hard to control how much load they put on your servers.
>
> Suppose your peer has this handled somehow.  It's not particularly hard
> to handle this since you only allow your peers to suck, not anyone in the
> world.

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 we're pretty much coming to the same sorts of conclusions,

Yeah, I do to.  We are thinking the same sort of things as to where it
should go, we are just seeing different paths and different conclusions.
But the overall ideas I think are motivated by the same gut feelings.

> except
> that I think that it would be even easier to drop NNTP at the first step
> rather than at some far later step.

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.

> > Right now, there is no "correct way" to turn multipart posts into
> > binary.  It's impossible to convert a usenet post, into binary, then
> > convert back to "usenet article" without lossing important information.
>
> Could you give me some more information about the basis of this opinion?
> On the surface, this doesn't seem correct to me, but you may be alluding
> to some problem that I don't understand.

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?

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?

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?

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?

> Except that the text Usenet is far more important to me, and I'm not sure
> that model makes sense for the text Usenet.  Because on the text Usenet,
> one really is transporting articles, not files, and some of the tagging
> of files and the like doesn't make sense and isn't really compatible with
> what people are doing now.

I've mostly been against using the Message-Id as a place to put meta data
about the article (like FAQ version numbers, etc).  Though many of the
ideas create some interesting posibilities, I feel none of them on their
own were wroth wasting that much space in the Message-ID.

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.

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.

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

> > My idea is to move from just labeling the binary files with special IDs
> > to moving to a system where, for those types of articles, the usenet
> > servers will have the "right" to transform those articles, and store
> > those articles, anyway they see fit.
>
> Something closer to e-mail, where CTE transformations are permitted?

Maybe.  There are issues.

> That makes me nervous in general, although mostly only if those articles
> leak back out into the news stream again (which with suck feeds seems a
> likely possibility).

If you can transform it, it must be a well defined transform which
is 100% reversible.  And I'm not sure if that's possible.

> > NNTP will be extended to allow posting theise "file segments" is a very
> > different way then articles work now.  You will upload headers, and
> > then the data, and the server will do the encoding for you.
>
> That doesn't sound like the right direction to go, however.

It's just ideas. There are issues.

> What about
> putting text into the body of the message?

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.

> 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.  Unix doesn't have a concept
of multipart files like CDC did.  I sure don't miss it.  And there's
always the zip/tar options.

The idea of posting sets of files was talked about in this thread and
allowing a file to be labeled as number N of Y in a set, and allowing
a random "tag" to identify the set.  But putting all that in a message-id
I think might be going too far.

But posting sets of files is common for many reasons and having to
bundle them in a zip or tar to keep them together would not be as good
as somehow being able to them separately but also allow them to be
associated.

> You pretty much have to do something compatible with e-mail if there's
> any intention at all for these messages to be read by normal news readers
> rather than just being put on a web site for people to download.  There's
> far too much momentum behind e-mail clients and MIME and not nearly
> enough resources in the Usenet world to reinvent the wheel.

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.

You either combine the segments together and send the file as a normal
huge mime message, or you somehow encode the segments and ship then
as separage messages.  The Message-ID tags we have talked about I assume
could work for e-mail as well.

This whole idea is far from well thought out at this point.  It's more of
just a vision which we are trying to put on paper (so to say) to see what
it looks like.

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.  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.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61101
Author: Simon Lyall
Date: Sun, 06 Oct 2002 08:58
109 lines
6140 bytes
Juergen Helbing <archiver@i3w.com> wrote:
>Simon Lyall <simon@darkmere.gen.nz> wrote:
>>No, Usenet is not effecient because it doesn't scale. In order to for an 
>>ISP to particpate fully in binary Usenet it needs to spend $100,000 on a 
>>server (plus more each year) and allocate 50Mb/s of bandwith (plus more 
>>each year). 
>Do you see any better way to distribute 500 Gigs/day ?

Customers at a 10,000 dialup customer ISP don't need 500GB per day either. 

Hows this for a solution:

Each person uploads the files once to disk space provided by this ISP. If 
someone on the other side of the world wants it then they ask their ISP's 
server which asks it upstreams, the article flows the other ways and is 
cached at each hop.

You could do it with now freenet, squid of even something like nntpcache. 
With nntpcache just give each ISP a group and everyone configures the 
servers like:

nz.xtra 	news.xtra.co.nz
nz.ihug 	news.ihug.co.nz
aus.*   	news.telstra.com.au
*       	news.sprint.net

which means I ask the local nz servers direct, all the aus.* stuff off 
telstra and everything else off sprint (my upstream). nntpcache sync's 
overview files every few minutes and within an hour or so everyone in the 
world will know about them.

Not saying it's a good solution but assuming I could have the full volume 
of overviews it would scale downwards better than the current system. If 
you did it in realtime with a proper protocol and some sort of real 
indexing then no problem.

The problem is not that you are distributing 500GB per day but that you 
are distributing 500GB per day of *illegal* content. If the stuff was 
legal we'd just have big local servers with every song ever recorded 
and/or global filesystems with every TV show and movie. All the playing 
about on usenet is because it's illegal to do that.

>The basic idea of Usenet - to transfer all data on just a few channels
>over continents - and then split them up seems to be still far better
>than 100 millions users who are fetching 10 billions webpages
>from 10 million webservers......

Except 60% of those pages are from 10 websites and another 10% are from 
the ISP. Transparant proxies and a local Akamai cluster actually make a 
big difference.

The problem is that Usenet is now too big for full participation by 
smaller and (some) medium sized ISPs. Going from comments there are maybe 
a dozen sites in the world that have a complete "Full Feed" and even those 
seem to have their bad days.

>>I work for a dialup ISP with over 150,000 customers and the economics of a 
>>full feed server are so bad it's not even worth me presenting the 
>>proposal. AFAIK no ISP in Aus/NZ has even close to a full feed on their 
>>own servers including the largest ones ( which have 600,000 dialup and 
>>50,000 broadband customers). 
>There seems to be no cooperation between the providers.   :-((
>If THEY would share the way the users do all day long then
>it would be easy to get full feeds to AUS/NZ and provide their users.

Bullshit. Most ISPs in this part of the world don't even have 50MB/s of 
local bandwidth to handle a full feed let alone the money for a full 
server.

Please tell me how an ISP with say 20,000 customers and a DS3 is supposed 
to participate in Binary Usenet?

Have a look at the following link:

http://216.239.53.100/search?q=cache:d7k02vCWjlwC:www.telstra.com.au/investor/dos/operational.pdf
http://www.telstra.com.au/investor/dos/operational.pdf

Scroll down a few screens and you'll see the numbers for Telstra Bigpond, 
it the largest ISP in Australia and owned by the local Telco. Lat year 
it's 590,000 dialup and 50,000 broaband customers averages just 4.5 Terabytes 
per day for EVERYTHING. Please let me why this company should invest a few 
million extra dollars per year for a Full-feed?

>Of course the "bad taste" of Binary Usenet is the most important reason.
>Combined with the fact that cooperation is now replaced by payment.

Trust me, you don't want to get me started on Australain peering.

>When the Web growed proxies were the very first answer.
>And I dont know how much traffic they are saving today.

30% is about the best you can get. They introduce all sorts of problems 
however. Even in this part of the world it's "almost" worth it to get rid 
of them (not quite however).

>Good proposal.
>In fact I am very close to it  :-))

Where?

-- 
Simon J. Lyall | Very Busy | Web: http://www.darkmere.gen.nz/
"Inside me Im Screaming, Nobody pays any attention."  |  eMT.

"Computer games don't affect kids.  I mean if Pacman affected our generation 
as kids, we'd all run around in a darkened room munching pills and listening
to repetitive music."

Re: [FNTP] 'in-completeness'
#61102
Author: JP Velders
Date: Sun, 06 Oct 2002 13:35
55 lines
3855 bytes
In article <1rd6qpaf9z.fsf@atta.ifi.uio.no>, Kjetil Torgrim Homme wrote:
> [JP Velders]:
> [ ... ]
> last I checked, our transit server is one or two hops away from
> everyone on Freenix Top20.  we don't try to get a complete binary
> feed, though, so we see only 200 GB/day inbound.

Right now a fullfeed hovers around 500GB/day...
Around June is hovered around 400GB/day...

>>   So eventually articles will spread.

> _all_ the links have to be weak, right?
> if there is one good link, traffic will flow.

Not necessarily.
You use the term "route" when referring to the article flow
within Usenet. That's a somewhat inaccurate term. In the old
(UUCP) days there was routing, but nowadays it's mostly:
article in, out to all peers (if they don't already have it)

Look at it as you look at a water irrigation project, if some
ducts don't function properly parts of the fields will receive
less water then others. Add to that that nowadays economics
have started to dictate peering policies at many locations...

> for sure, many of the smaller ISPs have very few peers.  some of them
> can't even get the posts of their customers out to the Usenet at large
> reliably.  there is very little we can do to help that, really.

And the other way round.

>>   But still there *is* a bottleneck... "Transit IP" traffic costs,
>>   significantly...
> for the most part the extra traffic from adding peers is miniscule.
> it is important that your peers are about even with you, though.  you
> don't want to add peers which get significantly more data from you
> than vice versa.  in theory, it should be a zero sum game.

For the text groups this is valid. For binary feeds it is not.
The smaller ISP's (i.e. non-multi-country ones without real
usenet knowledge/dedication) won't be able to get true full
feeds easily, or can't afford them.

I remember that "in the ye old days" of the European UUCP
network the costs of the transatlantic link (and its usage)
was split amongst several parties. The kind of solidarity
which is nowadays very hard to find...

But I'm straying ;D

Kind regards,
JP Velders

Re: [FNTP] 'in-completeness'
#61103
Author: Claus Färber
Date: Sun, 06 Oct 2002 15:04
19 lines
1912 bytes
Russ Allbery <rra@stanford.edu> schrieb/wrote:
> There's one exception, however:  I will not carry new binary groups
> devoted to the postings of multipart binaries, because I consider
> multipart binaries to be inherently abusive regardless of their contents.
> It's taken me a while to come to that conclusion, but it's becoming more
> and more obvious that pretty much the entire point of a multipart binary
> is to bypass article size limitations in news servers.

True. But they are technical limitations (no transfer of partial  
articles, stupid programming in servers), not purely administrative  
ones. It  should be possible to determine the overall size of a  
multipart post so that admins can filter out large files even if they  
are split.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [FNTP] 'in-completeness'
#61104
Author: Curt Welch
Date: Sun, 06 Oct 2002 20:52
274 lines
15709 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:
> >
> >   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> >   > the "answer" to part N-1 and N+1 must be a hash of their content.
> >   > anything else will allow the attacker to keep the answers and
> >   > replace the content.  assumption: we trust part 1.  it is therefore
> >   > part 1 which must contain the information allowing us to trust part
> >   > 2.  (and so on by recursion.)
> >   >
> >   > with such a hash in place (put it in a random header, it's
> >   > acceptable to use HEAD to choose the right candidate), the idea of
> >   > using overlapping parts is unnecessary.
> >
> >   Ah, but we want to be able to trust reposts even if they have
> >   nothing to do with the orginal post.
>
> mm, yes?  I'll be more explicit.  article 1 contains the segment
> 0..500k.  it includes the header:
>
> X-Next-Segment: offset=500000 size=5000000
>   md5=2ca809d77efa7254482d3350eb5abe53
>
> article 2 includes the header:
>
> X-Next-Segment: offset=1000000 size=5000000
>   md5=9cfe84382574173a6bf0af0333e30ed1
>
> if you want to repost a segment, you presumably have the complete
> file, and can calculate the MD5 hash of the byte range following your
> segment.  this scheme allows the reposts to use a different segment
> size than the original, it only makes the code for the verification in
> the client a little more complicated.
>
> the main issue is the loss of part 1.  then you've lost your anchor,
> and trust in the other parts is reduced.  but you can still piece the
> parts together into chains when the hashes matches.
>
>   real  1 2 3   5 6 7
>   fake        4 5
>
> you download parts 1 2 3 4.  you notice that the hash of 4 doesn't
> match the header of 3.  you download both 5, and notice that the hash
> of the fake 5 matches the header of the fake 4.  so you trust the
> other 5 more (but you're still not safe), download 6 and 7, and see
> that they form a chain.  you do know that you need to keep a look out
> for the real 4 to get a complete message.  when the real 4 arrives,
> you will know whether the chain 5-6-7 is genuine.
>
> if part 1 goes missing, nothing is certain, but the principle is the
> same.
>
> if part 1 is fake, we have a problem.  my best suggestion is to look
> at chain lengths.

Your system helps, but it doesn't solve the problem.

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.

Then, you post a fake 4 which has fake data so it doesn't match
the hash in the real part 3.  But it's hash for 5 is the real
hash for the real 5.  Does that make your download tool assume the
"real 5" is a fake?

What about an entire set of fake posts starting with part 1
which all match each other?

So what does this leave you with?  It means that the download tool
can't assume anthing about anything.  It _never_ knows that any
article it has is fake or real.  If the hash included in the
article for the next segment doesn't match, it tells the tool
nothing.  The next segment it has might be fake or it might be
real.  A match with a previous hash tells you nothing about which
is fake or which is real just like a failure to match tells you nothing.

What you do know is that you need a chain of matching hash values
from start to finish, but if the guy posting the fake sends an entire
set of fakes along with a bunch of false connections between
the the "real chain" and the "fake chain", the download tool ends
up with a problem that's so complex you once again you have nothing
but the full-file hash to fall back to.

The only thing you can do is piece together the entire file from
a set of these posts, calcualte the full hash, and see if it matches
the hash in the Message-ID.

If you double link your chain so the previous segment hash and the next
segment hash is included in each post (you can even make it circular so
the last points to the first and the first to the last), then you know
you are looking for a set of posts which create a complete chain, and
that will help, but it still requires you do download all the fakes, and
search through them.

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).  That won't prevent people from finding
non-proteced systems to send their fakes from, but it makes it a lot harder
for them to cause any real trouble so it's not likelty to be done.

> >   There must be some clever way to make this work.  If there are
> >   lots of "fakes" posted, I don't think there is anyway to avoid
> >   having to download a lot of the fake articles, but once you have
> >   them all downloaded, you want the job of reconstructing this
> >   jig-saw puzzle to be resonable.
>
> it's hard to avoid downloading fake data.  I think X-Prev-Segment can
> help there, actually.  from the example above, if you look at that
> header in both copies of 5, and see that one of them matches the fake
> 4, then you know which 5 is fake.

Not if the "next" hash is faked (or made real) for the purpose of throwing
your code off.

> >   One thing I was thinking about was trying to find a hash function
> >   that would allow you to calculate the file hash if you had hash
> >   values for each segment, without having to make a pass over all
> >   the raw data.
> >
> >   [...]
> >   The problem with a simple sum of course is that it's completely
> >   trivial to generate fake data which produces the correct sum.  So
> >   it offers no protection against forged data.
>
> exactly.
>
> >   Is there some way to get the security of a strong hash but yet
> >   still have a way to calculate the file hash from the segment
> >   hashes so you can mix-and-match various segments quickly without
> >   having to recalculate an entire file hash over the file?
>
> I suspect it is impossible to have a hash like that, and still make it
> cryptographically secure.

My other article about hashing blocks, and then hashing the hash values in
blocks until you get down to a single hash I believe solves that.

> >   What if you did something like calculate a real hash of fixed
> >   sized blockes from the file (say 1024 bytes?), then define the
> >   file hash to be simply the sum, or XOR of all the block hash
> >   values?
> >
> >   If all segments posted in this new system were required to be
> >   split on these 1K block boundries, then every article posted could
> >   have it's "hash" value included in the header (i.e. the sum of the
> >   hash of each of the blocks in that segment).
>
> 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?

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.

> >   Maybe something like this would give enough security from fake
> >   data but also make the job of sorting though real and fake
> >   articles fast enough to be practical?  If so, all you could gain
> >   by posting fake articles is to make people waste time downloading
> >   them - they wouldn't prevent you from getting the real data.
>
> I must ask, is terrorism such as this common?  I have a feeling this
> is all very theoretical.

Usenet terrorism is _very_ common.  But, this form of abuse where you
try to corrupt binary posts by posting fakes I've never seen, so even if it
has been done, I don't think it's a big problem right now.  But, a lot of
matching up posts today is done by hand (or can be hand-assisted) when the
machine algorithm fails.  So the abuse today I think is harder to make
work, and harder to get away with.

Part of where I see this message-ID system taking us is to a world where
automatic combining of posts _always_ works and you never have to step in
and hand-pick the correct articles for the software to combine.

For example, I've been thinking that with this system, you could start
a convention of posting a part 0 style header article which describes
the binary post and provides a link the file in the form of a fake
message-id which includes the file hash and file size, but nothing
else.  i.e. something like this:

  <~UB~h95b2e4ed3379e4~S61583b69~~@isp.com>

This Message-Id (like any real Usenet Binary Message-ID) is all you need
to pass to your download tool for it to start hunting down all the
file segments for you.

So you read this part-0 article, decide you want the file, and you
click on the Messaage-ID.  Your download tool asks if you want
to download the file, so you say yes, and it adds that file identification
(the hash and size) to it's list of stuff to find for you. Or, it starts to
hunt down the parts and tells you what it found and then asks if you want
to add that to the download list.

The actual binary posts can then be stuck in a sub-newsgroup, like a .b
group which no one normally looks at.  The Subjects of the files are
no longer important like they are today, so the subject could be either
left out or something very small (a few bytes from the hash just to
make the articles sort together if you did look at the group?) (which
reduces the size of the XOVER downloads which are required today).

If we get to that point, we must have a system which prevents someone from
posting a single fake article and causing the entire 10GB file post to be
corrupted.  For example, someone that wants to cause trouble can look for a
large post and notice where a few segments are missing, then post fakes to
fill in the missing gaps.  It's very little work considering what damage it
could be done for a very large file.

Right now, people break up the huge files into rar files (or other systems)
so each sub-file can be verified.  We don't want them to have to do that.
If they are going to post a 10GB file, we want them to be able to post it
as a 10,000 part post over a 6 month period if that is what it takes.

It's not only terrorism/abuse we need to protect against, you also want to
protect against broken software and broken hardware.

For example, what if someone downloaded that 10GB file last year, and is
trying to help re-post it now, or post fills for people.  But his hard
drive is having problems and it's sometimes corrupting data as it's read.
His download tool calculated the hash and it was fine, but then, when the
file was read for the second time to post it, the data was different.  The
posting tool adds the yEnc pcrc to it, so it the article "looks" good (its
got a valid crc), but in fact, the data is not valid and when combined with
all the other 10,000 segments, it will not produce the correct full-file
hash.  Anyone that downloads his segment will end up with a corrupt version
of the 10GB file with no easy way to figure out which segment is corrupted.

Even if you "play" the file and find that it's corrupted at some point, how
do you tell the download tools that something is wrong at 2 hours and 31
minutes into the video and that that's where the tool should look for
alternate segments to download?  The point is to get away from all that.

My system i think would fix all that.  Not only would it allow everyone
that downloads the segment to know it's good or bad, the posting tool would
be checking it before it's posted as well so it knows that the file is
corrupted.  If the posting computer has hardware problems between the
computer's memory (where everything was checked for accuracy before it was
posted) and the news server, then the news server can also check the
article for accuracy before it's sent out to the world (without having
access to all the other parts).

What you need is a way to prove that a chunk of data matches the file id
(i.e the hash) in the Message-ID without having access to any other
segments of the file.  I think my hash does that.  Why use something like
SHA1 which can't do it if we have something that can?

BTW, this hash-of-hash system is easy to do on a single pass.  You just
need to keep N hash states where N is the depth of the tree you are working
with instead of one hash state. (and in my example the tree depth was only
6 for a file larger that most posted to Usenet).  The performance of this
hash should be almost identical to the performance of the hash it's built
on, so that shouldn't be an issue either.

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).

And this of course, like other hash code, is something you would right once
and publish in a reference standard for everyone to copy.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61106
Author: Curt Welch
Date: Sun, 06 Oct 2002 20:59
11 lines
2247 bytes
curt@kcwc.com (Curt Welch) wrote:
> ... is something you would right once and publish ...
                             ^write

I should learn to never read my posts _after_ I send them.  My spelling
even scares me at times.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61107
Author: Curt Welch
Date: Sun, 06 Oct 2002 22:12
140 lines
8859 bytes
Simon Lyall <simon@darkmere.gen.nz> wrote:
> Juergen Helbing <archiver@i3w.com> wrote:
> >Simon Lyall <simon@darkmere.gen.nz> wrote:
> >>No, Usenet is not effecient because it doesn't scale. In order to for
> >>an ISP to particpate fully in binary Usenet it needs to spend $100,000
> >>on a server (plus more each year) and allocate 50Mb/s of bandwith (plus
> >>more each year).
> >Do you see any better way to distribute 500 Gigs/day ?
>
> Customers at a 10,000 dialup customer ISP don't need 500GB per day
> either.
>
> Hows this for a solution:
>
> Each person uploads the files once to disk space provided by this ISP. If
> someone on the other side of the world wants it then they ask their ISP's
> server which asks it upstreams, the article flows the other ways and is
> cached at each hop.

Technically, that looks interesting.

We have looked at that a lot over the years (ideas under the topic of
header only feeds).  Generally, it is thought that it wouldn't work on
Usenet because you would have to depend on far too many systems to
get the articles from.  The probabliity that one of the sites in the
chain would either be down or far too overloaded is way to high.  What
it is expected to produce is a version of usenet where you have full
headers, but 90% of the articles aren't there (or take 10 minutes
to show up) when you click on it.  That would make usenet completely
useless.

I think it could be made to work if one company controlled a large set of
distributed servers like this and made sure they were all working and
upgraded servers as required to keep everything going.

The multi-level fetch would be a real issue however if you were trying
to fetch stuff in real time.  Even if all the servers were working,
a store and forward transfer of a large article though a chain of 5
servers can take minutes just to get it to the last one so you can
start the download.  But, this could work, it would just be a bit
different than what usenet does now.  A download tool now assumes that
when it asks for an article it will either get a negative response
or get the article, a 5 minute wait for the start of download is not
expected.

You would probably need to create a new ARTICLE command which returned
a code which meant "try again later - I don't have that article now but
I will get it for you".  And/or maybe a command to just ask if a given
article was ready for download and to request it for download later.

But, because anyone running a server has no control over what their
peers are doing, you don't want a protocol that requies your servers
to be working.

Also, on the fetch part of that system, you need to create redudancy
somewhow so there are multiple options on the fetch path so if one
server is down it won't block access to files stored on other servers.
That's a bit complex I think, but I'm sure it could be solved.

> The problem is not that you are distributing 500GB per day but that you
> are distributing 500GB per day of *illegal* content. If the stuff was
> legal we'd just have big local servers with every song ever recorded
> and/or global filesystems with every TV show and movie. All the playing
> about on usenet is because it's illegal to do that.

That's an intersting idea.  We all know it's used for lots of illegal
stuff, but is that all it's good for?  Is there no hope for usenet ever
being used to post large files which aren't illegal?

Is there anything "large" being posted to usenet that isn't illegal now?
Or do we trully have a situation that everything "large" tends to take real
time to create, and therefor, anyone that spends months creating something
(a video for example) will never want to give it way for free (i.e. post it
on Usenet)?

I think Usenet is technicall a good system for distributing data to a large
base of users.  But maybe we have the case that anything which a large base
of users really want will, by definition, be valuable and therefor, not
something the owner would give away for free.  And the large stuff that is
given away for free (like a one hour home video of the grass growing) is so
unpopular that  usenet is the wrong way to distribute it - it should just
be put on a web site because only 2 people in the world are going to
download it anyway.

And even when it works, Usenet is always a "temporary" system.  That is,
the data is expected to vanish in a few weeks.  So many large things that
are given away for free get put on web sites with multiple mirrors to
distibute the load instead of distributed over usenet (like FreeBSD for
example) because it's natural for them to stay there for months.

What if we had this message-id and hash system in place?  Would that
perhaps enable people to use Usenet to distribute large free things like
operating systems without fear of the data being compromised?  i.e. the
file hash-id is published on the offical web site (or distributed though
usenet with the help of encription like PGP), but then the the users
download the distribution updates from Usenet automatcially?  If they trust
the file hash they can trust the data they download and it can all be
auotmated so users just set up their systems to suck the updates off of
usenet as they are published and can trust it would work?  Or is usenet
never going to be relieable enough to make that work?

I suspect many people might see the use of Usenet like this by some
organization as an abuse of Usenet.  Maybe it is.  But if the content was
something a large number of people wanted, then usenet seems to be valid
way to distribute it (i.e. get the users that download it to pay for the
usenet access to cover the cost of distrbuting this "free" data so the
organization that's already carrying the burden of creating the content
doesn't have to also carry the burden of paying for the bandwidth and
servers to distribute it.)

But the question is, how wide an audience is required for some content
before it's justified to use usenet to distribute it?  Do we have a general
case where nothing other than illegal content has a wide enough apeal to
justify it be distributed on Usenet?

So is the large binary groups of Usenet dommed to never carry anything
which is both legal and wanted by enough users to justify it being put on
Usenet?

> Scroll down a few screens and you'll see the numbers for Telstra Bigpond,
> it the largest ISP in Australia and owned by the local Telco. Lat year
> it's 590,000 dialup and 50,000 broaband customers averages just 4.5
> Terabytes per day for EVERYTHING. Please let me why this company should
> invest a few million extra dollars per year for a Full-feed?

I think the problem there is that usenet size tends to match the cost of
technology and the demand.  And these numbers are probably very different
right now in the US vs what they are in Australia.  So the US Usenet is
just to expensive to transport around Australia becuase it doesn't fit the
price/value ratios that exist there (bandwidth too high and/or demand for
the US Usenet too low (not enough high speed internet users as well as
difference in local taste for "content")).

I believe that there are likewise some high volume segments of Usenet in
Europe that never make it to US servers for the same reasons.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
#61108
Author: Bill Cole
Date: Sun, 06 Oct 2002 23:06
58 lines
3907 bytes
In article <20219.u9220b@archiver.winews.net>,
 archiver@i3w.com (Juergen Helbing) wrote:

> 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. 

> >The protocols 
> >for transport and the logical model of the data set are absolutely 
> >absurd as a mechanism for distributing and storing anything other than 
> >conversations. 
> 
> Yes, it would be high time to find a better way to transport
> these few text-message-bytes. They are only disturbing
> the binary flow  :->>>

You clearly did not read what I wrote. 

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. News is designed for the text groups, and 
shoehorning binaries into that model has never worked well and will 
never work well. 

> >The death of binary news and the ensuing collapse of the 
> >binary-focused NSP's would be a Very Good Thing for Usenet. An event 
> >worth speeding and assisting, even if it costs the employment of some 
> >fine people like Curt and Jeremy and Andrew.
> 
> Binary Usenet is one of the very few Internet services which is successful
> in terms of payment. And the only reason why text usenet is still existing
> is that there are people who are paying for the binaries.

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. 

> Some unconventional answers ?
> There is no reason that your approach is any better than mine.
> But I am offering at least reasonable arguments rather than fatalism.

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.

-- 
Bill Cole
This message is the official opinion of the voices in my head. 
I do not channel my bosses, their lawyers, or Andy Kaufman
Re: [FNTP] 'in-completeness'
#61111
Author: Ade Lovett
Date: Sun, 06 Oct 2002 23:56
36 lines
2637 bytes
In article <051020022131263638%planb@newsreaders.com>,
J.B. Moreno <planb@newsreaders.com> wrote:
>Basically you have to do two things -- convince a lot of readers to
>implement it, and convince either a significant number or a few
>critical servers to do likewise.  I don't see any real problem with the
>clients if you have a commitment from the servers, but I'm not sure
>it's even possible to get that commitment.

Cue LIST EXTENSIONS, getting both servers and clients to implement that,
then once that's deployed, take anything you like in the X-extension
space, provide some working client and server code, and go from there.

The fundamental mechanism by which servers offer services above and beyond
"raw" NN{R,T}P is in place (albeit in a never-ending draft), use it.

Indeed, extending LIST EXTENSIONS to purely transit servers may be an
excellent opportunity to test out server-server concepts between willing
sites.  Hell, for all I care, CHECK and TAKETHIS shouldn't be available
until a site has explicity done a LIST EXTENSIONS and got a 'STREAMING'
extension token back as a result.

Hrm.  Whiteboard and Beer, I think..

BTW -- introducing more predicability into the Message-ID is bad on two
counts.  (1) it increases the chance for collision, and (2) increases the
chance for drop-fake-article-in-the-middle smacks, which defeats the
purpose of what is trying to be achieved here.  This, as my physics
lecturer would say, "is a bit of a fundamental problem that needs to
be solved before choosing what to drink at the bar" :)

-aDe

-- 
Ade Lovett, Austin, TX.		Director, Supernews[tm]
mailto:ade@supernews.net	http://www.supernews.net/
Re: [FNTP] 'in-completeness'
#61113
Author: Russ Allbery
Date: Mon, 07 Oct 2002 00:07
21 lines
1943 bytes
Ade Lovett <ade@supernews.net> writes:

> Cue LIST EXTENSIONS, getting both servers and clients to implement that,
> then once that's deployed, take anything you like in the X-extension
> space, provide some working client and server code, and go from there.

Yup.

> Indeed, extending LIST EXTENSIONS to purely transit servers may be an
> excellent opportunity to test out server-server concepts between willing
> sites.

Yup.  cf XBATCH, for an example of something that people did even before
LIST EXTENSIONS.  And for that matter, streaming itself started that way.

-- 
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'
#61114
Author: Ade Lovett
Date: Mon, 07 Oct 2002 00:23
23 lines
1780 bytes
In article <ylhefzru10.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>> Indeed, extending LIST EXTENSIONS to purely transit servers may be an
>> excellent opportunity to test out server-server concepts between willing
>> sites.
>
>Yup.  cf XBATCH, for an example of something that people did even before
>LIST EXTENSIONS.  And for that matter, streaming itself started that way.

Right, so there's two uses right now.  I think that justifies their
existence in the server world.  Shouldn't be too hard to code up an
XBATCH proof-of-concept for diablo either (INN gets the advantage of
doing nothing owing to prior art :).  Certainly it's something we'd
consider in our own servers.

Perhaps it's time to write up the verbiage for the draft.

-aDe

-- 
Ade Lovett, Austin, TX.		Director, Supernews[tm]
mailto:ade@supernews.net	http://www.supernews.net/
Re: [FNTP] 'in-completeness'
#61116
Author: Russ Allbery
Date: Mon, 07 Oct 2002 01:30
19 lines
1945 bytes
Ade Lovett <ade@supernews.net> writes:

> Right, so there's two uses right now.  I think that justifies their
> existence in the server world.  Shouldn't be too hard to code up an
> XBATCH proof-of-concept for diablo either (INN gets the advantage of
> doing nothing owing to prior art :).  Certainly it's something we'd
> consider in our own servers.

Note that I'm not a huge fan of XBATCH.  I'm also not *not* a fan of
XBATCH.  *heh*  I'm very curious as to whether or not it's useful or not;
I don't think it ever got enough publicity.  Having a real standard would
help 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'
#61118
Author: J.B. Moreno
Date: Mon, 07 Oct 2002 02:31
13 lines
1773 bytes
In article <20021006181237.828$fD@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> That's an intersting idea.  We all know it's used for lots of illegal
> stuff, but is that all it's good for?  Is there no hope for usenet ever
> being used to post large files which aren't illegal?

I believe there is amateur porn video's being distributed -- their
legality depends upon your locality.

-- 
J.B. Moreno
Page 5 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