Thread View: news.software.nntp
32 messages
32 total messages
Started by Bert Hyman
Mon, 16 Sep 1996 00:00
Netscape and Win/NT vs. NNTP
Author: Bert Hyman
Date: Mon, 16 Sep 1996 00:00
Date: Mon, 16 Sep 1996 00:00
28 lines
1777 bytes
1777 bytes
I run a small NNTP server on an 486-based SVR4 box, handling on average about 40 to 50 users at a time. This morning, two users both happened to start using new Windows NT installations, and both fired up Netscape (don't know what version) to read the news from this server. Both systems got into some kind of state where they each had about 60 NNTP connections open simultaneously. Looking at the log, I see bursts of about 5 or 6 opens in rapid succession with one or 2 "disconnect: broken pipe"s thrown in from time to time. Things went sour real fast when I ran out of processes. When I got the users to exit Netscape, the system returned to normal as the NNTP processes went away. I've got lots of other users running Win 3.x and Win 95 who access the machine with Netscape and all other varieties of NNTP-based news readers and have never seen anything like this. Anyone have any clues as to what happened? -- The opinions expressed in this message are my own and are not the opinions of anyone who does not hold those opinions. Bert Hyman | Unisys - Roseville MN bert@rsvl.unisys.com | (612) 635-7791 | net2: 524-7791
Re: Netscape and Win/NT vs. NNTP
Author: John Stewart
Date: Mon, 16 Sep 1996 00:00
Date: Mon, 16 Sep 1996 00:00
47 lines
2890 bytes
2890 bytes
In <DxuEJx.IpG@rsvl.unisys.com> bert@rsvl.unisys.com (Bert Hyman) writes: >I run a small NNTP server on an 486-based SVR4 box, handling on average about >40 to 50 users at a time. >This morning, two users both happened to start using new Windows NT >installations, and both fired up Netscape (don't know what version) to read >the news from this server. >Both systems got into some kind of state where they each had about 60 NNTP >connections open simultaneously. Looking at the log, I see bursts of about 5 >or 6 opens in rapid succession with one or 2 "disconnect: broken pipe"s thrown >in from time to time. >Things went sour real fast when I ran out of processes. When I got the users >to exit Netscape, the system returned to normal as the NNTP processes went >away. >I've got lots of other users running Win 3.x and Win 95 who access the machine >with Netscape and all other varieties of NNTP-based news readers and have >never seen anything like this. Anyone have any clues as to what happened? One annoying "feature" I've seen with the Netscape newsreader is that if you ask it to display the next article before it has finished receiving the current article it drops the connection to the news server and opens a new one. From the users viewpoint this is great since they don't have to sit around waiting for the unwanted article to be completely downloaded before they can go on to the next article. You are much more likely to see this situation if the user is connected via a dialin connection and is poking through a newsgroup that contains a lot of large articles (eg. binary pictures). Since we are only going to see more and more users running this type of client software it would be nice if the NNTP protocol could be extended to provide a better mechanism for the client to abort an article fetch. For example, a modified ARTICLE command could be provided that would peridically ask the client if it wants to continue/abort the transmission of the article. -- John Stewart -- Computing and Communications Services, Carleton University Internet: jstewart@ccs.carleton.ca 613-520-2600x3707 Freenet related queries: xx104@freenet.carleton.ca
Re: Netscape and Win/NT vs. NNTP
Author: Ben Polk
Date: Tue, 17 Sep 1996 00:00
Date: Tue, 17 Sep 1996 00:00
35 lines
2043 bytes
2043 bytes
Bert Hyman wrote: > > I run a small NNTP server on an 486-based SVR4 box, handling on average about > 40 to 50 users at a time. > > This morning, two users both happened to start using new Windows NT > installations, and both fired up Netscape (don't know what version) to read > the news from this server. > > Both systems got into some kind of state where they each had about 60 NNTP > connections open simultaneously. Looking at the log, I see bursts of about 5 > or 6 opens in rapid succession with one or 2 "disconnect: broken pipe"s thrown > in from time to time. We've seen reports of problems with the Navigator Newsreader running on NT going haywire and sending extra connects like this, but have had trouble reproducing it. There's work going to to correct this problem. > I've got lots of other users running Win 3.x and Win 95 who access the machine > with Netscape and all other varieties of NNTP-based news readers and have > never seen anything like this. Anyone have any clues as to what happened? It doesn't seem to happen with the other Windows platforms, although as another poster mentioned, when operations are interrupted the newsreader will terminate the connection, which can result in some dead connections waiting to time out. Ben Polk Netscape News Server Engineering
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Wed, 18 Sep 1996 00:00
Date: Wed, 18 Sep 1996 00:00
76 lines
3991 bytes
3991 bytes
In article <323EF34D.1178@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: >Bert Hyman wrote: >> >> I run a small NNTP server on an 486-based SVR4 box, handling on average about >> 40 to 50 users at a time. >> >> This morning, two users both happened to start using new Windows NT >> installations, and both fired up Netscape (don't know what version) to read >> the news from this server. >> >> Both systems got into some kind of state where they each had about 60 NNTP >> connections open simultaneously. Looking at the log, I see bursts of about 5 >> or 6 opens in rapid succession with one or 2 "disconnect: broken pipe"s thrown >> in from time to time. > >We've seen reports of problems with the Navigator Newsreader running on >NT going haywire and sending extra connects like this, but have had >trouble >reproducing it. There's work going to to correct this problem. I've watched a single client open somewhere between 100 and 150 nnrp sessions simultaneously and take a very large news server into the ground with it. Unfortunately I do not have a lot of details, but Exec-PC Help Desk apparently confirmed in the instances we've seen that this is with a Beta version of Netscape. Wait, maybe one was a Beta of Micro$ost I.E... not sure. But Netscape _has_ been seen to do it. >> I've got lots of other users running Win 3.x and Win 95 who access the machine >> with Netscape and all other varieties of NNTP-based news readers and have >> never seen anything like this. Anyone have any clues as to what happened? > >It doesn't seem to happen with the other Windows platforms, although as >another >poster mentioned, when operations are interrupted the newsreader will >terminate >the connection, which can result in some dead connections waiting to >time out. Well, this is really a little abusive, don't you think? NNRP was designed as a long term single sesison protocol where you connect and request many articles, and then politely terminate. Those of you who are screwing with this paradigm (Netscape is NOT the worst but is probably the most annoying) cause lots of problems at large scale installations. Netscape isn't too bad - it only does this if a user hits a stop button. Dropping the connection is probably rude, opening a new one means that there are now two connections open when there should only be one, and failing to send a QUIT is definitely more than a pet peeve of mine. On the other hand we now have real loser clients, like the "NewsBin32" piece of **** which appears to open multiple NNRP sessions and proceeds to read one article per connection and then hang up... this really SUCKS big time, and folks like me are engineering systems to prevent: o Multiple simultaneous NNRP connections. o Lots of small "http-style" connections each asking for a single article. I hope that you folks remember that just because HTTP is a protocol where multiple simultaneous accesses is considered the norm, that does not mean that NNRP follows the same paradigm. I have not been a fan of your newsreader up to this point, and it is too bad, because it is due to technical merit. You guys do a nice job of the user interface stuff, but a nice looking car with a crappy engine is basically a crappy car when you get right down to it. ... JG
Re: Netscape and Win/NT vs. NNTP
Author: Ben Polk
Date: Wed, 18 Sep 1996 00:00
Date: Wed, 18 Sep 1996 00:00
64 lines
3211 bytes
3211 bytes
Joe Greco wrote: > > In article <323EF34D.1178@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: > >Bert Hyman wrote: > >[snip]... which can result in some dead connections waiting to > >time out. > > Well, this is really a little abusive, don't you think? That's about exactly how I would describe it. > NNRP was designed as a long term single sesison protocol where you > connect and request many articles, and then politely terminate. > > Those of you who are screwing with this paradigm (Netscape is NOT > the worst but is probably the most annoying) cause lots of problems > at large scale installations. > > Netscape isn't too bad - it only does this if a user hits a stop > button. Actually, it does it whenever an operation is going, and you click to request something different. > Dropping the connection is probably rude, opening a new one > means that there are now two connections open when there should only > be one, and failing to send a QUIT is definitely more than a pet > peeve of mine. This is a trade-off the Navigator newsreader designers choose to make. The gain is that the newsreader is very responsive, it doesn't get locked up while long operations are going on. The loss is the extra connections and missing QUIT commands as you point out. The people that did this are long time Internet programmers, and this choice wasn't made lightly. I should probably let them speak for themselves, but strictly as a user, it's probably the single best feature of the Navigator newsreader. As a server developer it's admittedly a bit of a pain. > On the other hand we now have real loser clients, like the "NewsBin32" > piece of **** which appears to open multiple NNRP sessions and proceeds > to read one article per connection and then hang up... [snip] Yikes, that is awful. While I don't work on the Navigator client, I do know that nothing like THIS is in the works. The opposite in fact, the client team is trying to reduce the frequency of the dropped connections. > I hope that you folks remember that just because HTTP is a protocol > where multiple simultaneous accesses is considered the norm, that > does not mean that NNRP follows the same paradigm. Almost none of the people working on the News products here are HTTP people, either on the client or the server side. But I understand your concern. Ben Polk Netscape News SERVER Engineering
Re: Netscape and Win/NT vs. NNTP
Author: kremžská HOŘČICE
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
58 lines
3779 bytes
3779 bytes
On Thu, 19 Sep 1996, Ben Polk wrote:
[chomp]
> 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.
Hmmm, I know of a few TCP kernels which have a bug that enables this
feature ;-) Seriousilly, without being thought through in the manner of
FTP, this sounds like like a great opportunity for one to sniff the TCP
stream for certain strings like binaries.pictures.erotica and cause
befuddled users to congregate at help desks demanding an explanation why
they can't read their favorite newsgropes.
> Or we could abandon NNTP as a newsreading protocol
> and switch over to using IMAP4 as the client protocol, and
> leave NNTP for replication. This has some advantages.
> IMAP4 solves the problem we're discussing here. IMAP4
> addresses internationalization issues. If we did this
> the news world would never be behind the mail world in
> the type of messages that could be handled.
I'm using IMAP access to my news spool right now, making use of a beta
release of the CMU Cyrus IMAP server, and it has so many advantages over
NNTP access that it won't be easy for me to switch back. I'm hoping there
would be IMAP hooks for, say, GNUS, as another means to access the spool.
What I'm doing is experimentally using the Cyrus program as a channel
feed. It's not exactly perfect, but I'm not bothering to take the time to
work out the bugs, because when it's working well, combined with a fast
and up-to-date incoming feed, I can see posts arrive within a minute of
the time they are made. Plus, it completely frees up innd to take a
pounding from elsewhere. So I would agree that the advantages of IMAP
make it the preferred method of reading from the spool, and I would
encourage all administrators of sites that take a serious hit from readers
to look into it, particularly if your reading population is already using
an IMAP-capable program for newsreading. (I'll be happy to see full IMAP
support in Netscape.)
I'm not sure what other IMAP servers are available for reading from
the spool, but as this way of setting up real-time newsreading is rather
experimental, I should probably try to find the time to write up
suggestions for anyone interested in contemplating adding this feature.
This isn't likely, though, overworked as I am now, suffering through an
acute absence of sleep brought about by repeated crisis mismanagement,
which has probably rendered this post unintelligible. But if there's
enough interest, I'll probably do it. And sometime I'll probably set up
demo real-time anonymous IMAP access to news too. Later....
Barry Bouwsma <barryb@tuke.sk>
Re: Netscape and Win/NT vs. NNTP
Author: Ben Polk
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
83 lines
4334 bytes
4334 bytes
Craig Harding wrote: > Big deal. They may have agonised for months over the decision. > It's still wrong, and makes Navigator a broken NNTP newsreading > implementation. How very... *Netscape* of them. I admit to ambiguous feelings on this issue. I work on servers, and life for servers would certainly be easier without this client behaviour. But when you say "It's still wrong", are you expressing an opinion? Or observing that this behaviour violates the standard? Can you be more specific about why you don't like it? The only violation of 977 I can see is the failure to send the QUIT command in these cases. I think that what has really been screwing servers over isn't this fairly rare termination of connections, but a very nasty Navigator bug on NT that causes it to go berserk and initiate and terminate lots of connections. That's a bug, not a plot to subvert RFC 977. (FYI, I know that Navigator 3.0 is much better about the behaviour of starting and terminating connections quickly. Try holding the down the down-arrow in the thread pane. It scrolls rapidly down the list of articles without trying to read them, until you stop scrolling.) 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. 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. Perhaps we need a way that clients can request pieces of articles, so that they don't have to initiate operations that will take so long. If you could break thing up into operations that would only take a few seconds there'd be much less need to terminate connections. Another possibilty is to use TCP/IP OOB data to cancel an operation. I'm afraid that the TCP/IP implementations of urgent data are not reliable enough to do this. 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. Or we could abandon NNTP as a newsreading protocol and switch over to using IMAP4 as the client protocol, and leave NNTP for replication. This has some advantages. IMAP4 solves the problem we're discussing here. IMAP4 addresses internationalization issues. If we did this the news world would never be behind the mail world in the type of messages that could be handled. 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. We want to do the right thing, both for clients and servers. And we're more than willing to discuss these issues with anyone that's interested. Ben Polk Netscape News Server Engineering
Re: Netscape and Win/NT vs. NNTP
Author: Reality is a point of view
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
27 lines
1703 bytes
1703 bytes
+---- bpolk@netscape.com wrote (Thu, 19 Sep 1996 12:56:33 -0700):
| 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.
The number of lines in an article is usually a good indicator
of its size. Maybe a warning BEFORE downloading the article?
That would follow in the 'be liberal in what you accept and
conservative in what you send' tradition, and encourage better
net behavior.
| Perhaps we need a way that clients can request pieces of
| articles
+----
This would be a good thing. Isn't there a draft open to
comments at the moment?
--
Gary Johnson "Rosebud . . ."
gjohnson@season.com <a href="http://www.epic.org/privacy/wiretap">Freedom?</a>
CAMPAIGN '96: Juck 'em if they can't fake a toke.
Re: Netscape and Win/NT vs. NNTP
Author: Jamie Zawinski
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
31 lines
2209 bytes
2209 bytes
Reality is a point of view wrote: > > The number of lines in an article is usually a good indicator > of its size. That's true, but there's not always a Lines header. NNTP clients are not required to include a Lines header, and (as far as I know) NNTP servers are not required to generate one. At least, it is true in practice that a Lines header is not always present. Besides, that doesn't address the problem of starting to read a message, reading the first page, and then realizing that the rest isn't interesting. For example, I often skip messages where the whole first page is quoted material. Another example would be images: one might start reading a message, and realize in the first few percent of an image that it's a picture of something that you don't care to see the rest of. As to buffering up a QUIT command and leaving the stream open: Ben pointed out that this is somewhat wasteful in that it keeps the server busy, but there's another reason it's wasteful, which is that it clogs the user's pipe. This is a pretty big deal on 14.4 connections... -- Jamie Zawinski jwz@netscape.com http://www.netscape.com/people/jwz/ ``The hateful :) means `just kidding' and is used by people who would dot their i's with little circles and should have their eyes dotted with Drano.'' -- Penn Jillette
Re: Netscape and Win/NT vs. NNTP
Author: Ben Polk
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
19 lines
1346 bytes
1346 bytes
Reality is a point of view wrote: > | Perhaps we need a way that clients can request pieces of > | articles > +---- > > This would be a good thing. Isn't there a draft open to > comments at the moment? Stan Barber is working on a draft that is intended to document what NNTP does now. The draft will add an extension mechanism, but beyond that there's agreement that this draft won't define new stuff. The draft isn't available yet. It should be soon, and I'm sure there'll be talk of it here when it comes out.
Re: Netscape and Win/NT vs. NNTP
Author: Christopher B. Browne
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
47 lines
2538 bytes
2538 bytes
In article <32407EB0.2DE0@netscape.com>, Ben Polk wrote: >The people that did this are long time Internet programmers, >and this choice wasn't made lightly. No doubt. >I should probably let >them speak for themselves, but strictly as a user, it's >probably the single best feature of the Navigator newsreader. >As a server developer it's admittedly a bit of a pain. If it is a "feature" that messes up TCP/IP connections in great profusion, potentially taking down news servers, then that doesn't sound like much of a "feature" to me. It ain't a feature if the user can't read news because he took down the news server. This sounds like a good case for NNTP servers that require user authentication. Wouldn't it be interesting if the server were to refuse multiple simultaneous connections? e.g. ==== % telnet newshost.brownes.org 119 user cbbrowne password blah, blah, blah 666 Too Many Simultaneous Connections - Access Denied. Connection closed by foreign host. % At the very least, the browser should, upon interrupting, queue up some "quit" commands to close the to-be-discarded connections. If you want high responsiveness, by all means open a new connection right away. It's not *nice,* but it can be done. But close the old ones at the first available opportunity. You've got to make sure that not only is the browser designed for the users, but it's also designed to connect to the servers. Obviously Netscape-NT isn't well-designed for that purpose. -- Christopher B. Browne, cbbrowne@unicomp.net, chris_browne@sdt.com Web: http://www.conline.com/~cbbrowne SAP Basis Consultant, UNIX Guy Windows NT - How to make a 100 MIPS Linux workstation perform like an 8 MHz 286
Re: Netscape and Win/NT vs. NNTP
Author: Reality is a point of view
Date: Thu, 19 Sep 1996 00:00
Date: Thu, 19 Sep 1996 00:00
20 lines
1540 bytes
1540 bytes
+---- bpolk@netscape.com wrote (Wed, 18 Sep 1996 15:58:56 -0700):
| The people that did this are long time Internet programmers,
| and this choice wasn't made lightly. I should probably let
| them speak for themselves, but strictly as a user, it's
| probably the single best feature of the Navigator newsreader.
| As a server developer it's admittedly a bit of a pain.
+----
Another case of Netscape pushing its development problems out
onto the net? Just the other day I read a post from an ISP
admin complaining about this 'feature'.
--
Gary Johnson "Rosebud . . ."
gjohnson@season.com <a href="http://www.epic.org/privacy/wiretap">Freedom?</a>
CAMPAIGN '96: Juck 'em if they can't fake a toke.
Re: Netscape and Win/NT vs. NNTP
Author: Steve Jones
Date: Fri, 20 Sep 1996 00:00
Date: Fri, 20 Sep 1996 00:00
78 lines
3533 bytes
3533 bytes
In article <slrn545632.a93.cbbrowne@wolfe.brownes.org>,
Christopher B. Browne <cbbrowne@unicomp.net> wrote:
(quoted text of other posts ommitted)
>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.
>
(more text omitted)
>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.
>
>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.
I agree. Has *anyone* fiddled with TCP timeouts for their news servers
to combat this problem?
(attribution omitted)
>>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.
I agree. For now, their are client implimentations which behave badly
towards the server. For this to be corrected, the client needs to
have a means to avoid the undesired lengthy transfers. You've
effectively shot down (text ommitted) a couple of suggestions for
this, so I'll toss up a few to see how they also fly.
. Set server to truncate article transfers (ARTICLE,BODY)
at a preset byte length, using a new response code 224 if an
article transfer will be truncated. The limit size would be advisory,
and the server could impose a lower limit if it desired.
Enable limits:
MODE READER LIMIT=10000
Disable limits:
MODE READER
. Request articles with line ranges to limit transaction size.
The server will add a tag if the end of the article
was not supplied: "\n<END OF RANGE>\n"
Ask server if it supports ranges.
MODE READER LIMIT=LINES
Obtain first 500 lines of article (or body).
ARTICLE <message-id> LINES=1:500
ARTICLE 342 LINES=1:500
ARTICLE LINES=1:500
Obtain next 500 lines
ARTICLE 342 LINES=501:1000
Obtain remainder
ARICLE 342 LINES=1001:END
--
--
Steven Jones
Computing & Communications 354843, University of Washington
E-mail: noyd@u.washington.edu Phone: (206) 543-5852
Re: Netscape and Win/NT vs. NNTP
Author: Christopher B. Browne
Date: Fri, 20 Sep 1996 00:00
Date: Fri, 20 Sep 1996 00:00
74 lines
4149 bytes
4149 bytes
In article <3241A571.28EB@netscape.com>, Ben Polk wrote: >Craig Harding wrote: > >> Big deal. They may have agonised for months over the decision. >> It's still wrong, and makes Navigator a broken NNTP newsreading >> implementation. How very... *Netscape* of them. > >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. >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. 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. It might be more appropriate to drop UDP connections; there is the contract of reliability there. >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. >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. >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. -- Christopher B. Browne, cbbrowne@unicomp.net, chris_browne@sdt.com Web: http://www.conline.com/~cbbrowne SAP Basis Consultant, UNIX Guy Windows NT - How to make a 100 MIPS Linux workstation perform like an 8 MHz 286
Re: Netscape and Win/NT vs. NNTP
Author: Craig Harding
Date: Fri, 20 Sep 1996 00:00
Date: Fri, 20 Sep 1996 00:00
27 lines
1556 bytes
1556 bytes
Ben Polk (Ben Polk ) writes:
> Joe Greco wrote:
>
> > Dropping the connection is probably rude, opening a new one
> > means that there are now two connections open when there should only
> > be one, and failing to send a QUIT is definitely more than a pet
> > peeve of mine.
>
> [...stuff deleted...]
>
> The people that did this are long time Internet programmers,
> and this choice wasn't made lightly. I should probably let
> them speak for themselves, but strictly as a user, it's
> probably the single best feature of the Navigator newsreader.
Big deal. They may have agonised for months over the decision.
It's still wrong, and makes Navigator a broken NNTP newsreading
implementation. How very... *Netscape* of them.
- k
--
Craig Harding kilroy@acme.gen.nz ACME BBS +64 6 355-1104
"I don't know about God, I just think we're handmade" - Polly
Re: Netscape and Win/NT vs. NNTP
Author: Ben Polk
Date: Fri, 20 Sep 1996 00:00
Date: Fri, 20 Sep 1996 00:00
104 lines
5082 bytes
5082 bytes
Chris, Christopher B. Browne wrote: > 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. Do you have evidense of clients infrequently disconnecting making the overall system not work? And if this was true, which I'm doubt, are you sure this is the clients fault? Hey, I work on servers, and it would be easier on me to just say that clients can never drop connections. But servers *must* handle this gracefully for cases when connections are dropped for other reasons. It happens all the time, and it can happen in huge bursts as sections of the network drop out. Down below you say it's a clear cut case that it's OK to drop a connection downloading a 1MB image at user request, so are you just saying that we need to be sure to define this session dropping stuff in a way that doesn't hose the servers? > I said that it would be *better* if it *at least* queued up QUIT commands. Right. We've talked about doing this, but I'm not sure it really is better. I don't actually think it's any easier on our server software. And it's certainly not easier on the clients network connection. Do you actually want this? > 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. This is a little tricky. Do you limit it by IP address? What about multiuser machines? > The real problem here is that the server has no way to instantly conclude > that the TCP connection has been discarded. If the client FINs it, the server's send should fail immediatly. If the client simply abandons it, you're right. > 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. > > It might be more appropriate to drop UDP connections; there is the contract > of reliability there. huh? I think you mean "isn't the contract of reliablility", but I've never seen or heard any talk of running NNTP over UDP, so I'm not sure how this is relevent. > > >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. I agree with everything you say here. In fact, I think we're in violent agreement overall. > >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. I didn't say it was a good idea, I just said we could do it. And if we did we'd at least make them spoof their sending IP address to match the one of the session they were canceling. We could even give them a magic number they had to send across to identify the session. This could be made to work, but I don't think we should. > >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. Yep. Life's rough in client land. If the limit is on the order of a few seconds it shouldn't be too bad. Or perhaps we just have to put our trust in client implementors to not do this too often. Thanks for your thoughts Chris. Ben
Re: Netscape and Win/NT vs. NNTP
Author: Reality is a point of view
Date: Sat, 21 Sep 1996 00:00
Date: Sat, 21 Sep 1996 00:00
18 lines
1423 bytes
1423 bytes
+---- jwz@netscape.com wrote (Thu, 19 Sep 1996 19:00:43 -0700):
| Besides, that doesn't address the problem of starting to read a message,
| reading the first page, and then realizing that the rest isn't
| interesting.
+----
So the client developer punts, pushing the problem onto servers.
I've noticed less Netscape induced = wrapping lately, so maybe
there is hope.
--
Gary Johnson "Rosebud . . ."
gjohnson@season.com <a href="http://www.epic.org/privacy/wiretap">Freedom?</a>
CAMPAIGN '96: Juck 'em if they can't fake a toke.
Re: Netscape and Win/NT vs. NNTP
Author: Ben Polk
Date: Mon, 23 Sep 1996 00:00
Date: Mon, 23 Sep 1996 00:00
20 lines
1471 bytes
1471 bytes
Rich Salz wrote: > > In <3241A571.28EB@netscape.com> Ben Polk <bpolk@netscape.com> writes: > >The only violation of 977 I can see is the failure to send the > >QUIT command in these cases. > > This often means that TCP keeps the connection open for much longer > than if the client was well-behaved and sent a QUIT command. That's a bad thing. Does this happen even when the client explicitly closes the connection down? I thought that the FIN would get sent, resulting in the server getting an error when it tries to write. I think some of the cases where the connections really hang around for a long time result from clients simply abandoning them.
Re: Netscape and Win/NT vs. NNTP
Author: Ian G Batten
Date: Mon, 23 Sep 1996 00:00
Date: Mon, 23 Sep 1996 00:00
16 lines
1423 bytes
1423 bytes
In article <3241A571.28EB@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: > 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 is, of course, perfectly reasonable. If a server can't defend against a connection terminating --- in any state, at any time --- then it's broken. Full stop. OK, there's probably an implicit denial of service attack if connections are created and destroyed at massive rates, but you can't rely on client connections not going away. ian
Re: Netscape and Win/NT vs. NNTP
Author: Rich Salz
Date: Mon, 23 Sep 1996 00:00
Date: Mon, 23 Sep 1996 00:00
10 lines
965 bytes
965 bytes
In <3241A571.28EB@netscape.com> Ben Polk <bpolk@netscape.com> writes: >The only violation of 977 I can see is the failure to send the >QUIT command in these cases. This often means that TCP keeps the connection open for much longer than if the client was well-behaved and sent a QUIT command. /r$
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Tue, 24 Sep 1996 00:00
Date: Tue, 24 Sep 1996 00:00
65 lines
3154 bytes
3154 bytes
In news.software.nntp article <slrn541n9a.4kl.cbbrowne@wolfe.brownes.org>, cbbrowne@unicomp.net wrote:
:It ain't a feature if the user can't read news because he took down the news
:server.
:
:This sounds like a good case for NNTP servers that require user
:authentication. Wouldn't it be interesting if the server were to refuse
:multiple simultaneous connections?
:e.g.
:====
:% telnet newshost.brownes.org 119
:user cbbrowne
:password blah, blah, blah
:666 Too Many Simultaneous Connections - Access Denied.
:Connection closed by foreign host.
:%
You do not need authentication, at least in some environments. Since
people were running Netscape (or MIE, or whatever) on PPP dialups,
limiting by hostname is very effective and very ruthless.
I have code... and while I am not yet pressing it into official service,
the hit rate recorded by the central controlling process suggests that a
minimum of 10% of the connections I see at one client's site would be
rejected...
if ((rval = comm(host, REQ_SIGNON)) == ERR_OK) {
return(0);
}
return(0);
if (rval == ERR_PERMISSION) {
printf("502 You are not authorized to connect here. Goodbye.\n"
);
exit(1);
}
if (rval == ERR_TOOMANY) {
printf("502 You have too many connections open. Goodbye.\n");
exit(1);
}
if (rval == ERR_RESPAWN) {
printf("502 You are opening connections too rapidly. Goodbye.\n
");
exit(1);
}
Note the second return(0); is the only thing preventing it from actually
happening.
(Due to the distributed environment this is working in, there is a central
process on a separate machine which tracks NNRP sessions via network
communications... each session "signs on" and "signs off" unless the server
returns a code indicating that the user needs to take a hike).
The limits we have in mind are 4 simultaneous connections and 6 connections
per minute, max. (Any input in this area is welcome).
All you NNTP sh*tware authors out there - beware. You are being targeted.
... Joe
-------------------------------------------------------------------------------
Joe Greco - Systems Administrator jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI 414/546-7968
Re: Netscape and Win/NT vs. NNTP
Author: Chris Ulrich
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
61 lines
3205 bytes
3205 bytes
In article <32407EB0.2DE0@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: bp>Joe Greco wrote: bp>> bp>> In article <323EF34D.1178@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: bp>> >Bert Hyman wrote: bp> bp>> >[snip]... which can result in some dead connections waiting to bp>> >time out. bp>> bp>> Well, this is really a little abusive, don't you think? bp> bp>That's about exactly how I would describe it. bp> bp>> NNRP was designed as a long term single sesison protocol where you bp>> connect and request many articles, and then politely terminate. bp>> bp>> Those of you who are screwing with this paradigm (Netscape is NOT bp>> the worst but is probably the most annoying) cause lots of problems bp>> at large scale installations. bp>> bp>> Netscape isn't too bad - it only does this if a user hits a stop bp>> button. bp> bp>Actually, it does it whenever an operation is going, and you click bp>to request something different. bp> bp>> Dropping the connection is probably rude, opening a new one bp>> means that there are now two connections open when there should only bp>> be one, and failing to send a QUIT is definitely more than a pet bp>> peeve of mine. bp> bp>This is a trade-off the Navigator newsreader designers choose bp>to make. The gain is that the newsreader is very responsive, bp>it doesn't get locked up while long operations are going on. bp>The loss is the extra connections and missing QUIT commands bp>as you point out. bp> [snip] bp>Ben Polk bp>Netscape News SERVER Engineering This is silly! Why don't they just start up two connections to the remote machine, and if the user hits the stop key, it sends the rest of the first connection to a buffer somewhere (or nowhere) and reads from the other connection. There is absolutely no reason to just drop a connection without quitting. Besides, if the object is speed, opening a new connection when the user hits stop is probably not going to get more speed because the remote end has to fork off a 2mb program. If there are two connections already, the other is ready to go at any time. Also, the other probably won't use up many resources on the other end, it will just prime itself for sending articles and then get paged out. It sounds like a neat idea, but why not think for a few seconds before implementing it? chris -- insom@ac.ucr.edu Riverside - where they come for insom@math.ucr.edu the waters and stay for the air
Re: Netscape and Win/NT vs. NNTP
Author: James Brister
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
20 lines
1386 bytes
1386 bytes
As much as I don't like their behaviour, I can see Netscape's point in dropping connections--when the client is at the end of 14.4k modem, stopping the data flow mid stream is fairly important, and NNTP has no mecahanism to handle that. Unfortunately the one-process-per-client model has outlived its usefulness, and I think nnrpd is going to have to move to a long-lived, multi-client server just like innd is today. Fixing NNTP to be more useful for readers in this situation is needed too. Don't ask me when any of that's going to happen though, I have no idea. James -- James Brister brister@vix.com Internet Software Consortium inn@isc.org
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
151 lines
7260 bytes
7260 bytes
In news.software.nntp article <3242E43F.3D0C@netscape.com>, Ben Polk <bpolk@netscape.com> wrote:
:Chris,
:
:Do you have evidense of clients infrequently disconnecting
:making the overall system not work?
I don't know if Chris does, but I do.
I used to see a hundred or two hundred NNRP sessions pile up on a box
when people either disconnected from the Portmasters or in some cases
their local software chose not to properly close the TCP connection.
The gradual buildup of "dead" sessions led to the process limit of 256
being reached and then service was rudely refused.
That qualifies as "clients infrequently disconnecting making the overall
system not work", does it not? :-)
It is also easy to build a CPU contention case.
Assume that each connection disconnects and reconnects every 10 minutes.
Assume that it takes one second to start an NNRP session on an unloaded box.
Assume that there are 600 simultaneous connections.
With 600 connections restarting, evenly spaced out, over a 10 minute
period, you have one connection per second being started. If it takes you
a full second to start a new NNRP session, you are out of CPU and
into denial of service (or extremely slow, sh***y service).
You _MUST_ look at overall system performance given the case you
are arguing. Yes, I can argue that it is trivial to start a new
connection once every five seconds - as long as I am the only
user doing it. When you get several hundred, all simultaneously
exhibiting the behaviour, the problem is several hundred times
worse.
Anyways: the former problem was solved by adding KEEPALIVE's to each
NNRP session. (setsockopt(SO_KEEPALIVE)). With the current
generation of software, however, nothing will prevent the latter other
than us taking a big stick and whacking offending {users,software
authors} over the head.
:And if this was true, which
:I'm doubt, are you sure this is the clients fault? Hey, I work
:on servers, and it would be easier on me to just say that clients
:can never drop connections. But servers *must* handle this
:gracefully for cases when connections are dropped for other
:reasons. It happens all the time, and it can happen in huge
:bursts as sections of the network drop out.
_Drops_ aren't as bad as _startups_. Dropping a connection for
the sake of convenience suggests that you are opening another one
so you can actually do the operation you would have done on the
first.
Well, drops might suck if I didn't use SO_KEEPALIVE :-)
:Down below you say it's a clear cut case that it's OK to drop
:a connection downloading a 1MB image at user request, so
:are you just saying that we need to be sure to define this
:session dropping stuff in a way that doesn't hose the servers?
I think we need to re-evaluate the larger scale problem.
:> I said that it would be *better* if it *at least* queued up QUIT commands.
:
:Right. We've talked about doing this, but I'm not sure it really
:is better. I don't actually think it's any easier on our server
:software. And it's certainly not easier on the clients network
:connection. Do you actually want this?
:
:> 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.
:
:This is a little tricky. Do you limit it by IP address? What about
:multiuser machines?
It is not too tricky. I am not personally concerned by multiuser machines,
but I will point to identd just for the sake of completeness.
:> The real problem here is that the server has no way to instantly conclude
:> that the TCP connection has been discarded.
:
:If the client FINs it, the server's send should fail immediatly. If the
:client simply abandons it, you're right.
:
:> 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.
:>
:> It might be more appropriate to drop UDP connections; there is the contract
:> of reliability there.
:
:huh? I think you mean "isn't the contract of reliablility", but I've
:never
:seen or heard any talk of running NNTP over UDP, so I'm not sure how
:this
:is relevent.
It could be an alternative :-) But I prefer TCP, and I prefer it running
under some NNTP-like protocol. Easier to deal with.
:> >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.
:
:I agree with everything you say here. In fact, I think we're
:in violent agreement overall.
:
:> >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.
:
:I didn't say it was a good idea, I just said we could do it.
:And if we did we'd at least make them spoof their sending
:IP address to match the one of the session they were canceling.
:We could even give them a magic number they had to send across
:to identify the session. This could be made to work, but I
:don't think we should.
I agree with THAT... it may even gain my Bad Proposal Of The Day award :-)
:> >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.
:
:Yep. Life's rough in client land. If the limit is on the
:order of a few seconds it shouldn't be too bad. Or perhaps
:we just have to put our trust in client implementors to not
:do this too often.
... JG
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
133 lines
6232 bytes
6232 bytes
In news.software.nntp article <3241A571.28EB@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: :But when you say "It's still wrong", are you expressing an :opinion? Or observing that this behaviour violates the standard? :Can you be more specific about why you don't like it? It breaks the NNTP paradigm: you connect and fetch lots of articles. The paradigm is NOT "you connect lots of times". That should be an implicit understanding to anyone who reads 977, since there is obviously a lot of attention paid to newsreading in a session oriented manner. :The only violation of 977 I can see is the failure to send the :QUIT command in these cases. I think that what has really been :screwing servers over isn't this fairly rare termination of :connections, but a very nasty Navigator bug on NT that causes :it to go berserk and initiate and terminate lots of connections. :That's a bug, not a plot to subvert RFC 977. Still, the dropping of connections for convenience sake is... not desirable. :(FYI, I know that Navigator 3.0 is much better about the behaviour :of starting and terminating connections quickly. Try holding :the down the down-arrow in the thread pane. It scrolls rapidly :down the list of articles without trying to read them, until you :stop scrolling.) Glad't'hear it. :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. Cars must handle car crashes in as graceful a manner as possible as well. My car has seat belts and air bags. Would you like to participate in a test crash? "Needs to be able to handle" and "must handle as a routine matter" are two different things. :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. Why, that sounds like an NNTP protocol deficiency ... and I would strongly agree that it is! Still, I do not see how that constitutes an excuse to unilaterally drop connections. :Perhaps we need a way that clients can request pieces of :articles, so that they don't have to initiate operations :that will take so long. If you could break thing up into :operations that would only take a few seconds there'd be :much less need to terminate connections. Absolutely! :Another possibilty is to use TCP/IP OOB data to cancel an :operation. I'm afraid that the TCP/IP implementations of :urgent data are not reliable enough to do this. Not an option at all, in my opinion. The protocol itself should be redesigned to deal with the problem. :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. That is difficult... particularly in a multiple machine environment, even if you do pass complete information about the link. Think about what happens on a multiuser UNIX machine where a hundred people are using trn and some jackass does a "netstat" and goes on a termination rampage. :Or we could abandon NNTP as a newsreading protocol Has LOTS of possibilities :-) :and switch over to using IMAP4 as the client protocol, and :leave NNTP for replication. This has some advantages. :IMAP4 solves the problem we're discussing here. IMAP4 :addresses internationalization issues. If we did this :the news world would never be behind the mail world in :the type of messages that could be handled. This is probably the best solution. I don't know about IMAP4, but if it is sufficiently researched, maybe there is a solution down this road. :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. In the short term, this may be the only thing to do. Quite frankly: it sucks. On the other hand, there is a need. I understand Netscape's desire for a "better" solution and I do agree that there is currently no "better" solution, beyond sitting on the socket and discarding all the remaining data - which is a bandwidth penalty. However... Those of us who are supporting moderately large scale news operations are going to start taking steps to enforce "good behavior" regardless, and I would be disappointed if Netscape or any other reader did not take this into account. The resources to run news servers are not limitless, and basically readers have to take that into account. :We want to do the right thing, both for clients and :servers. And we're more than willing to discuss these :issues with anyone that's interested. Keep talking :-) ... JG
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
31 lines
1700 bytes
1700 bytes
In news.software.nntp article <3246D89B.47DB@netscape.com>, Ben Polk <bpolk@netscape.com> wrote: :Rich Salz wrote: :> :> In <3241A571.28EB@netscape.com> Ben Polk <bpolk@netscape.com> writes: :> >The only violation of 977 I can see is the failure to send the :> >QUIT command in these cases. :> :> This often means that TCP keeps the connection open for much longer :> than if the client was well-behaved and sent a QUIT command. : :That's a bad thing. Does this happen even when the client :explicitly closes the connection down? I thought that the :FIN would get sent, resulting in the server getting an error :when it tries to write. I am not sure if that is true. I believe that it _should_ be true. :I think some of the cases where the connections really hang :around for a long time result from clients simply abandoning :them. And I have seen examples of PC software doing precisely that. :-( This is not a fun game. ... JG
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
112 lines
5895 bytes
5895 bytes
In news.software.nntp article <3241FACB.7DE1@netscape.com>, Jamie Zawinski <jwz@netscape.com> wrote: :Reality is a point of view wrote: :> :> The number of lines in an article is usually a good indicator :> of its size. : :That's true, but there's not always a Lines header. NNTP clients are :not required to include a Lines header, and (as far as I know) NNTP :servers are not required to generate one. At least, it is true in :practice that a Lines header is not always present. However, if it is, it could be useful. :Besides, that doesn't address the problem of starting to read a message, :reading the first page, and then realizing that the rest isn't :interesting. For example, I often skip messages where the whole first :page is quoted material. Another example would be images: one might :start reading a message, and realize in the first few percent of an :image that it's a picture of something that you don't care to see the :rest of. So, instead, Netscape punts and does whatever is convenient for Netscape :-( That is really the heart of the matter. (Well the other contributing cause is a deficiency in NNTP). I would rather see Netscape work towards a better solution. Better solutions might be: (in order of my personal preference, which would appear to be the opposite of how "easy" each one would be) 1) Re-engineering NNTP to be more allowing of low speed connections. This means working with authoring of standards, a process that Netscape has repeatedly shown little regard for because of a lack of patience. (Yes, I understand "market pressures", but I also understand bull****). 2) Engineering an alternative to NNTP which becomes a new standard for newsreading. NNRP-II. 3) Engineering a Web server module that provides the necessary type of operations to make newsreading possible using a Web style paradigm. In all cases, these would have to be designed by agreement within the community, with well thought out standards going through the RFC process, and not just unilaterally designed by Netscape. Additionally, in order to encourage the use of such an "alternative service", I would hope that Netscape would have the foresight to write sample implementations and provide unrestricted source code. It is really in Netscape's interest to work with the community to solve the problem in a more acceptable fashion. I would be the first to encourage something like this. On the other hand... Netscape apparently already has a multithreaded NNRP server. If I had a solution that would allow me to accept an NNRP session without taking a major CPU and/or memory hit... Look. Here are the two things that kill us (or at least me) about Netscape's behavior. 1) NNRP sessions eat RAM. A fair amount of it. I can handle 150-200 NNRP sessions on a 192MB box. If each client chooses to hold open 10 sessions, I can only handle 15 users per box. That is expensive. 2) NNRP sessions take a finite amount of time to start up. Much of this is hashing the active file, etc. Since NNRP is intended as a long term session oriented protocol, this is acceptable... until someone comes along and opens a new NNRP session for each article fetched. That is worst case behavior and I am not claiming Netscape does that(!!!).. I am merely illustrating the problem. When that happens, the 50% idle CPU I am used to seeing becomes 0% idle, and connections start taking longer and longer to start as the CPU starts reducing the time slices. If Netscape's multithreaded NNRP server would do anything to address these issues, that would go a long way to solving the problem, at least in the short term... because if these two issues became nonissues, I for one would be a whole lot less concerned about rapid multiple session creation. However, I will not BUY a product... particularly if I cannot have the source code. A lot of my magic relies on being able to poke at the code in various ways. If Netscape's NNRP does anything to address these problems, maybe Netscape could see their way to providing the core NNRP server (without the other Netscape bells and whistles) in source form, free of charge, under a license just like INN's. THAT would be cool. I am enough of a realist to know it won't happen. But it could potentially solve the problem, make Netscape the good guys, and give me less of a reason to hate your product... all at once. :-) :As to buffering up a QUIT command and leaving the stream open: Ben :pointed out that this is somewhat wasteful in that it keeps the server :busy, but there's another reason it's wasteful, which is that it clogs :the user's pipe. This is a pretty big deal on 14.4 connections... It's a two sided issue. In any case, there are those of us out here who are interested in good, solid solutions - solutions that are not Netscape-centric, Netscape-specific, or Netscape-owned, but do solve the problems which are a problem for both Netscape and those of us who run large news operations. ... JG
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Wed, 25 Sep 1996 00:00
Date: Wed, 25 Sep 1996 00:00
103 lines
5571 bytes
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
Re: Netscape and Win/NT vs. NNTP
Author: Reality is a point of view
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
21 lines
1685 bytes
1685 bytes
+---- jgreco@brasil.moneng.mei.com wrote (25 Sep 1996 12:37:57 -0500):
| With 600 connections restarting, evenly spaced out, over a 10 minute
| period, you have one connection per second being started. If it takes you
| a full second to start a new NNRP session, you are out of CPU and
| into denial of service (or extremely slow, sh***y service).
+----
I've seen client writing guidelines that suggest client
disconnect on a 5-10 minute idle. It might require a 1M article
to get all 600 to pause for that long, and a few speed readers
might still save the day. Maybe an idle disconnect of 10+
minutes would be a safer guideline.
--
Gary Johnson "Rosebud . . ."
gjohnson@season.com <a href="http://www.epic.org/privacy/wiretap">Freedom?</a>
CAMPAIGN '96: Juck 'em if they can't fake a toke.
Re: Netscape and Win/NT vs. NNTP
Author: Jan D.
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
24 lines
1399 bytes
1399 bytes
In article <52bss9$70f@charity.ucr.edu>, Chris Ulrich <insom@math.ucr.edu> wrote: > This is silly! Why don't they just start up two connections to > the remote machine, and if the user hits the stop key, it sends > the rest of the first connection to a buffer somewhere (or nowhere) > and reads from the other connection. There is absolutely no > reason to just drop a connection without quitting. Besides, if [snip] Because a modem line has a limited bandwidth? If I get a 1 Mb file and hit STOP, I mean "STOP do not transfer this file over my low bandwidth". > It sounds like a neat idea, but why not think for a few seconds > before implementing it? I just did :-) Jan D.
Re: Netscape and Win/NT vs. NNTP
Author: Alan Brown
Date: Wed, 02 Oct 1996 00:00
Date: Wed, 02 Oct 1996 00:00
24 lines
1590 bytes
1590 bytes
In article <52bifq$7s2@brasil.moneng.mei.com>, Joe Greco <jgreco@brasil.moneng.mei.com> wrote: >That is difficult... particularly in a multiple machine >environment, even if you do pass complete information about >the link. Think about what happens on a multiuser UNIX machine >where a hundred people are using trn and some jackass does a >"netstat" and goes on a termination rampage. You let lusers access these commands at shell? Even worse, you don't comment out this and other crud out of inetd.conf? As a security issue. Anything not explicitly used in inetd.conf should be disabled, particularly chargen and sink AB -- One net to rule them all, one net to find them, one net to bring them all, using Unix to bind them.
Re: Netscape and Win/NT vs. NNTP
Author: Joe Greco
Date: Fri, 04 Oct 1996 00:00
Date: Fri, 04 Oct 1996 00:00
27 lines
1890 bytes
1890 bytes
In news.software.nntp article <52re3g$28l@papaioea.manawatu.gen.nz>, alan@papaioea.manawatu.gen.nz (Alan Brown) wrote: :In article <52bifq$7s2@brasil.moneng.mei.com>, :Joe Greco <jgreco@brasil.moneng.mei.com> wrote: : :>That is difficult... particularly in a multiple machine :>environment, even if you do pass complete information about :>the link. Think about what happens on a multiuser UNIX machine :>where a hundred people are using trn and some jackass does a :>"netstat" and goes on a termination rampage. : :You let lusers access these commands at shell? : :Even worse, you don't comment out this and other crud out of inetd.conf? : :As a security issue. Anything not explicitly used in inetd.conf should be :disabled, particularly chargen and sink Me, personally, hey I am not an ISP... but the situation was hypothetical anyways. Netstat allows your average luser to see the twelve bytes of information that identifies a current connection... and in an implementation such as the one suggested, that would be sufficient data to allow someone with access to netstat to go on a termination rampage. ... JG
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