🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11148

Re: Netscape and Win/NT vs. NNTP

#11148
From: Joe Greco
Date: Wed, 25 Sep 1996 00:00
103 lines
5571 bytes
In news.software.nntp article <slrn545632.a93.cbbrowne@wolfe.brownes.org>, cbbrowne@unicomp.net wrote:
:In article <3241A571.28EB@netscape.com>, Ben Polk wrote:
:>Craig Harding wrote:
:>I admit to ambiguous feelings on this issue.  I work on servers,
:>and life for servers would certainly be easier without this
:>client behaviour.
:
:If the overall system doesn't work, then *it's broken.*  The apparent
:user-friendliness of the clients *doesn't matter.*  If the clients function
:in a server-abusive fashion, then the system will work badly.

This is something that it is hard to convince people of, until you _show_
them what happens during a period where severe abuse is happening.

I have personally witnessed an "attack" by NewsBin95 on a news server.
NewsBin95 apparently attempts to open simultaneous connections and 
proceeds to get one article per session.  This is devastating to the
news server that is handling the other end... particularly since the
"attack" I have in mind happened at Ethernet speeds.

The CPU just became slow.  Suddenly NNRP sessions that normally started
in a second were starting in twenty.  It was very ugly.  There wasn't
enough CPU horsepower to deal with it.  Get a faster CPU?  Sure.  But
you can always max out a CPU at some level.  I figure the speed of the
CPU's I need based on expected usage pattern, plus a hefty amount of
"breathing room"...

Now, that may be a tad unusual in that it happened at Ethernet speeds,
and naturally the staff member who was responsible (it was not intentional,
he just had this nifty program, ya' know?) got his hands slapped...  but
10 people doing it over ISDN could be similarly damaging.

:>Christopher B. Browne in another post pointed out that the client
:>should queue up QUIT commands, rather than simply dropping the
:>TCP/IP command.  That might bring Navigator up to the letter of
:>the 977 law, but I'm not sure it is really that great of an
:>idea.  Whatever operation the client was attempting to terminate 
:>will continue.  Why not close the connection, and let the server
:>detect that the session is dead when the send fails?  This will
:>save servers work.  Severs must handle this case gracefully 
:>anyway, because connections do sometimes get terminated 
:>unexpectedly.
:
:I said that it would be *better* if it *at least* queued up QUIT commands.
:
:I also suggested that it might be an idea to *also* limit the number of
:connections.  This in effect throws the problem back into the faces of those
:that develop client software.

Some of us are implementing this, today.

:The real problem here is that the server has no way to instantly conclude
:that the TCP connection has been discarded.  It is likely that those dead
:connections are sticking around for a couple of minutes, which is a fairly
:appropriate policy *in general* for TCP services.

Yes.

:It might be more appropriate to drop UDP connections; there is the contract
:of reliability there.

And hopefully no dedicated server process on the server side.

:>Is it right for someone dialed in on a 14.4 modem that lands 
:>on a 1MB article to be locked up for the two minutes it's going
:>to take to receive the results of the ARTICLE command?  That 
:>sounds "wrong" to me.
:
:1MB is a clear cut case.  It makes sense to drop the connection in that
:case.  For the one article.  Doing this in alt.binaries.tasteless.pictures,
:where this could occur 50 times, is nonetheless abusive.

This is clearly the extreme case: nonetheless it is also the case which
is most likely to cause the user to act in this fashion!  I think that
this is the scenario we should consider when devising a solution...

:>Or we could have some other way for the client to tell the
:>server to teminate the connection.  For example, have the
:>client make it's second connection, and send a new NNTP
:>command that includes the IP address and port of the 
:>connection to be terminated.  The server then aborts 
:>whatever operation is going there. 
:
:Wonderful.  I'll run telnet sessions on port 119 that will kill other users
:sessions.  We replace one denial of service "attack" with another far more
:explicit way to do denial of service attacks.

Yes, I pointed that out too.  Hey, cool.  _I_ wanna do it.  >:-)

:>Or we could simply agree that it is OK for a client to 
:>sometimes terminate a connection at user request.  Perhaps
:>the agreement should include some limit on how freqently
:>this can be done.  This is what I favor for now.
:
:This has the possibility of hanging the client, you realize.

If it is the client or the server, I would rather hang the client.  I
would rather lose one client than a server handling hundreds of clients.

... JG

Technical Details
Message-ID: <52bo7c$7vp@brasil.moneng.mei.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <32407EB0.2DE0@netscape.com> <51rftd$3m1@evil-smelling-bugger.acme.gen.nz> <3241A571.28EB@netscape.com> <slrn545632.a93.cbbrowne@wolfe.brownes.org>

Show Full Headers
Complete Article Headers
Message-ID: <52bo7c$7vp@brasil.moneng.mei.com>
Subject: Re: Netscape and Win/NT vs. NNTP
Date: Wed, 25 Sep 1996 00:00:00 +0000
From: jgreco@brasil.moneng.mei.com (Joe Greco)
References: <32407EB0.2DE0@netscape.com> <51rftd$3m1@evil-smelling-bugger.acme.gen.nz> <3241A571.28EB@netscape.com> <slrn545632.a93.cbbrowne@wolfe.brownes.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 185282576
Distribution: inet
Organization: Marquette Electronics, Inc. - Milwaukee, WI.
Newsgroups: news.software.nntp,news.software.readers