Thread View: news.software.nntp
14 messages
14 total messages
Started by Otmar Lendl
Thu, 22 Jan 1998 00:00
Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Otmar Lendl
Date: Thu, 22 Jan 1998 00:00
Date: Thu, 22 Jan 1998 00:00
21 lines
1443 bytes
1443 bytes
According to my logs, my newsserver occasionally gets hit by several connection attempts per second from a single host. These connections are very short and often don't even send a single article. As NNTP is supposed to be a stateful protocoll, this kind of usage pattern causes serious load problems on the server. Blocking the offending hosts and waiting for the culprit to call and ask what's up, seems to suggest that under certain conditions the latest Netscape spawn from hell can issue such rapid-fire connections. (Something about marking articles using the key-repeat feature, dunno exactly what ...) Is anybody else experiencing this ? If yes, how are you dealing with it ? /ol -- / Otmar Lendl (lendl@Austria.EU.net) | Phone: +43 1 89933-0 (-533 fax) \ \ EUnet tech staff | Diefenbachgasse 35 A-1150 Wien /
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Chris Dent
Date: Thu, 22 Jan 1998 00:00
Date: Thu, 22 Jan 1998 00:00
47 lines
2594 bytes
2594 bytes
In article <slrn6cfauu.188.t.fenk@ripley.westfalen.de>,
Thorsten Fenk <t.fenk@gmx.net> wrote:
>In <6a82j9$573$1@news.Austria.EU.net> Otmar Lendl wrote:
>>According to my logs, my newsserver occasionally gets hit by several
>>connection attempts per second from a single host.
>>(...)
>>Is anybody else experiencing this ? If yes, how are you dealing with it ?
>
>If you use INN , set the "LIKE_PULLERS" in config.data to "no".
I have this same problem, and I was under the impression that
LIKE_PULLERS only happens after a certain number of articles have been
pulled down in one nnrpd connection:
nnrpd/article.c:
#if defined (DONT_LIKE_PULLERS)
/* If the client has pulled in more than 100 articles, then there's a
good chance it's a sucking feed. So we slow down a bit the feeding
of articles after that point. */
The problem being discussed here is that netscape 4.x is making multiple
connections as a result of someone hopping on the next button very fast.
I've sniffed this happenning and what appears to be happenning is that
netscape opens the connection and then immediately drops it as soon as
the next button is hit again. Nothing is sent to the server, no
ARTICLE command, no quit, nothing. Just the socket is opened. On the
server end it sits waiting patiently for awhile.
Multiple nnrpd processes are started and no articles are pulled down
so my guess in that DONT_LIKE_PULLERS will make little difference
here. Someone tell me I'm wrong. Please?
The suggested solution of limiting the number of connections from one
host would probably work well, except in the case where you have a
large server with lots of users using trn or other similar readers.
You don't want to limit those connections (from those well behaved
readers).
Anyone have any other ideas other than to bitch at Netscape?
--
Chris Dent........SysAdmin
...........Kiva Networking
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Dale Ghent
Date: Thu, 22 Jan 1998 00:00
Date: Thu, 22 Jan 1998 00:00
27 lines
1732 bytes
1732 bytes
Otmar Lendl wrote:
>
> According to my logs, my newsserver occasionally gets hit by several
> connection attempts per second from a single host.
> These connections are very short and often don't even send a single
> article. As NNTP is supposed to be a stateful protocoll, this
> kind of usage pattern causes serious load problems on the server.
>
> Blocking the offending hosts and waiting for the culprit to call
> and ask what's up, seems to suggest that under certain conditions
> the latest Netscape spawn from hell can issue such rapid-fire
> connections. (Something about marking articles using the key-repeat
> feature, dunno exactly what ...)
This is a common thing with Netscape 4.x. There is a patch out there
that allows you to specify the max number of nnrp connects from a host
in nnrp.access, but, alas, I dont have it on me.
-Dale G.
--
Dale Ghent daleg @ digex.net
NetworkNews Administrator DIGEX, Inc.
http://www.digex.net Beltsville, MD
I speak for myself
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Timothy Miller
Date: Thu, 22 Jan 1998 00:00
Date: Thu, 22 Jan 1998 00:00
28 lines
1545 bytes
1545 bytes
t.fenk@gmx.net (Thorsten Fenk) writes:
> In <6a82j9$573$1@news.Austria.EU.net> Otmar Lendl wrote:
> >According to my logs, my newsserver occasionally gets hit by several
> >connection attempts per second from a single host.
> If you use INN , set the "LIKE_PULLERS" in config.data to "no".
Better yet the -H -T and -X set of flags to innd that throttle
just this sort of behaviour:
"""
-H -T -X
The ``-H'', ``-T'', and ``-X'' flags control the number
of connects per minute allowed. This code is meant to
protect your server from newsreader clients that make
too many connects per minute to your server. You
should probably not use it unless you are having a
problem.
"""
And they're runtime-settable.
--
Cerebus <tmill06@ibm.net>
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Thorsten Fenk
Date: Thu, 22 Jan 1998 00:00
Date: Thu, 22 Jan 1998 00:00
21 lines
1411 bytes
1411 bytes
In <6a82j9$573$1@news.Austria.EU.net> Otmar Lendl wrote: >According to my logs, my newsserver occasionally gets hit by several >connection attempts per second from a single host. >(...) >Is anybody else experiencing this ? If yes, how are you dealing with it ? If you use INN , set the "LIKE_PULLERS" in config.data to "no". There's a Linux Program, "newsflash", which shows the same behaviour to Newsservers. regards Thorsten -- * Gubefgra Fpuhoreg wrote: >ich suche SMTP-Server welche die IP-adresse nicht mitloggen. *net-anuse*mail Lutz Donnerhacke, Thorsten Schubert de.comp.security
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Timothy Miller
Date: Fri, 23 Jan 1998 00:00
Date: Fri, 23 Jan 1998 00:00
14 lines
1008 bytes
1008 bytes
Thomas Neumann <tom@smart.ruhr.de> writes: > Do those flags only affect reader connections, or might they as well > limit the ability of NNTP peers to connect (which would be > undesireable)? All, I believe. But you can put the peers in hosts.nntp.nolimit to provide an exception. -- Cerebus <tmill06@ibm.net>
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Otmar Lendl
Date: Fri, 23 Jan 1998 00:00
Date: Fri, 23 Jan 1998 00:00
40 lines
2091 bytes
2091 bytes
Timothy Miller <tmill06@ibm.net> wrote: >t.fenk@gmx.net (Thorsten Fenk) writes: > >> In <6a82j9$573$1@news.Austria.EU.net> Otmar Lendl wrote: >> >According to my logs, my newsserver occasionally gets hit by several >> >connection attempts per second from a single host. > >> If you use INN , set the "LIKE_PULLERS" in config.data to "no". > As others have noted, that won't help as the client doesn't even grab one article per connection. I don't mind pullers who download whole groups as long as they do it within one single NNTP-session. > Better yet the -H -T and -X set of flags to innd that throttle >just this sort of behaviour: That would be a good idea, but I'm running nnrpd from inetd and not from innd. This way I get much faster reader connect times. I've read that the newer innd version have a much improved main loop which can accept reader connection fast even under high streaming NNTP load. Is that correct ? hmm ... Is there a inetd replacement which does connect-rate limits ? Perhaps per client-IP ? We use ucspi-tcpserver as a inetd replacement on a different machine, but it doesn't seem to support rate-limits either ... Maybe I hack it in there some day ... /ol -- / Otmar Lendl (lendl@Austria.EU.net) | Phone: +43 1 89933-0 (-533 fax) \ \ EUnet tech staff | Diefenbachgasse 35 A-1150 Wien /
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Thomas Neumann
Date: Fri, 23 Jan 1998 00:00
Date: Fri, 23 Jan 1998 00:00
25 lines
1514 bytes
1514 bytes
Timothy Miller <tmill06@ibm.net> writes: > Better yet the -H -T and -X set of flags to innd that throttle > just this sort of behaviour: > > """ > -H -T -X > The ``-H'', ``-T'', and ``-X'' flags control the number > of connects per minute allowed. This code is meant to > protect your server from newsreader clients that make > too many connects per minute to your server. You > should probably not use it unless you are having a > problem. > """ Do those flags only affect reader connections, or might they as well limit the ability of NNTP peers to connect (which would be undesireable)? Then again, a streaming NNTP peer should not connect that often anyway... -t
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Otmar Lendl
Date: Fri, 23 Jan 1998 00:00
Date: Fri, 23 Jan 1998 00:00
30 lines
1874 bytes
1874 bytes
Mark Nordberg <mpn@nortel.net> wrote: >Otmar Lendl (lendl+usenet@eddie.ping.at) wrote: >: Is anybody else experiencing this ? If yes, how are you dealing with it ? > >I can tell you exactly what causes it. It is pretty easy to reproduce. Open >up the netscape news reader. I talked to another customer today, there is another program which shows the same behaviour, alabeit while making at least some sense. SBnews (http://smbaker.simplenet.com/sbnews/sbnews.html) can decode binaries from the alt.binaries.* groups, while doing some sophisticated filtering. One of these filters is duplicate-detection based on the file-name. As the file-name is in the "begin 644 <name>" line sbnews needs to start the download in order to know the name. If it finds that this article is in fact a duplicate it simply closes the connection and opens a fresh one. AFAIK there is no "abort article transfer" functionality built into NNTP, thus this is effectivly the only way to abort an article transfer. It's a damn kludge. /ol -- / Otmar Lendl (lendl@Austria.EU.net) | Phone: +43 1 89933-0 (-533 fax) \ \ EUnet tech staff | Diefenbachgasse 35 A-1150 Wien /
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Mark Nordberg
Date: Fri, 23 Jan 1998 00:00
Date: Fri, 23 Jan 1998 00:00
24 lines
1958 bytes
1958 bytes
Otmar Lendl (lendl+usenet@eddie.ping.at) wrote:
: Is anybody else experiencing this ? If yes, how are you dealing with it ?
I can tell you exactly what causes it. It is pretty easy to reproduce. Open
up the netscape news reader. Go to the interface where you can add new groups
and it starts to download the active file and fill in all the entries for
number of articles. If you interrupt this process and pick a news group to
subscribe to, it will restart the process of going and finding all the newsgroups from the top. Do this three or four times and each time opens up a
connection to the server. I run nntpcache so I just let the nntpcache
servers get hammered. They usually survive if I have syslogging of nntpcache
off.....Otherwise syslog eats the machine alive.
--mpn
--
Mark Nordberg | *Nortel's Information Network
mpn@nortel.net (business) | *Unix System Administration
mpn@mindspring.com (personal) |-------------------------------------------\
-------------------------------/So yes, the answer is "don't do that, then".\
-Linus Torvalds
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Chris Dent
Date: Sun, 25 Jan 1998 00:00
Date: Sun, 25 Jan 1998 00:00
32 lines
1826 bytes
1826 bytes
In article <wk1zy0b0s4.fsf@ibm.net>, Timothy Miller <tmill06@ibm.net> wrote: >> In <6a82j9$573$1@news.Austria.EU.net> Otmar Lendl wrote: >> >According to my logs, my newsserver occasionally gets hit by several >> >connection attempts per second from a single host. [snip] > Better yet the -H -T and -X set of flags to innd that throttle >just this sort of behaviour: > >""" > -H -T -X > The ``-H'', ``-T'', and ``-X'' flags control the number > of connects per minute allowed. This code is meant to > protect your server from newsreader clients that make > too many connects per minute to your server. You > should probably not use it unless you are having a > problem. >""" > > And they're runtime-settable. I'm experimenting with this and it appears to have some affect but I'm having a hard time finding the right combination of numbers for the switches. Is anyone using this that is willing to cough up what numbers have been best for them? Thanks. -- Chris Dent........SysAdmin ...........Kiva Networking
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: John T. Stapleton
Date: Sat, 31 Jan 1998 00:00
Date: Sat, 31 Jan 1998 00:00
29 lines
2037 bytes
2037 bytes
In article <6agar9$q6f$1@kold.kiva.net>, Chris Dent <cdent@kold.kiva.net> wrote: >In article <wk1zy0b0s4.fsf@ibm.net>, Timothy Miller <tmill06@ibm.net> wrote: >>> In <6a82j9$573$1@news.Austria.EU.net> Otmar Lendl wrote: >>> >According to my logs, my newsserver occasionally gets hit by several >>> >connection attempts per second from a single host. >[snip] >> Better yet the -H -T and -X set of flags to innd that throttle >>just this sort of behaviour: > >I'm experimenting with this and it appears to have some affect but I'm >having a hard time finding the right combination of numbers for the >switches. Is anyone using this that is willing to cough up what >numbers have been best for them? It probably depends on how busy your server is. When I wrote the code, it was for a server which might have 100 to 140 readers at any one moment during the busy time of the day. I use H 3 T 60 X 60. Since then, I've found that my server is puny compared to what some ISPs have. I found out about one that can have a bit more than 500 readers at any one moment. My suggestion was to try H 2 T 128 X 15. That allows for a total of 512 connects per minute, but limits any one host to 8 connects per minute (2 per 15 seconds). Stapes
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Timothy Miller
Date: Sat, 31 Jan 1998 00:00
Date: Sat, 31 Jan 1998 00:00
13 lines
1110 bytes
1110 bytes
stapes@ryn.mro.dec.com (John T. Stapleton) writes: > Since then, I've found that my server is puny compared to what some > ISPs have. I found out about one that can have a bit more than 500 > readers at any one moment. 700+ here. But that's on a DNews box running a bit sluggishly. -- Cerebus <tmill06@ibm.net>
Re: Multiple NNTP connection with Netscape Communicator 4.04 ?
Author: Chris Dent
Date: Tue, 03 Feb 1998 00:00
Date: Tue, 03 Feb 1998 00:00
39 lines
2470 bytes
2470 bytes
In article <6b0kd6$hgq$1@ryn.mro.dec.com>, John T. Stapleton <stapes@ryn.mro.dec.com> wrote: >In article <6agar9$q6f$1@kold.kiva.net>, >Chris Dent <cdent@kold.kiva.net> wrote: >>In article <wk1zy0b0s4.fsf@ibm.net>, Timothy Miller <tmill06@ibm.net> wrote: >>> Better yet the -H -T and -X set of flags to innd that throttle >>>just this sort of behaviour: >> >>I'm experimenting with this and it appears to have some affect but I'm >>having a hard time finding the right combination of numbers for the >>switches. Is anyone using this that is willing to cough up what >>numbers have been best for them? > >It probably depends on how busy your server is. When I wrote the code, >it was for a server which might have 100 to 140 readers at any one >moment during the busy time of the day. I use H 3 T 60 X 60. Ooooph. Now you are making my server feel especially puny. I reckon I do about 15 maximum concurrent readers. However for whatever reason they are especially good at bouncing on the next button in netscape (or whatever). We have a new server that is decked out with some nice stuff in order to deal with future capacity plans but right now we are significantly overpowered. What I've found interesting is that because we are so responsive (while not getting the netscape slam) when a netscape slam starts, with no limits in place, the server will very happily start up a large number of nnrpds in a very very short amount of time and only after it thinks about it for a bit does it realize it has screwed itself and jump the load from less than 1 to over 30. Thanks for the info, it will help. I'm going to try 3, 60, 60 and see how that goes. -- Chris Dent........SysAdmin ...........Kiva Networking
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