🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Joe St Sauver Mon, 22 Jul 1996 00:00
limiting number of incoming feed connections from a host?
#9503
Author: Joe St Sauver
Date: Mon, 22 Jul 1996 00:00
21 lines
1340 bytes
I've been noticing that some hosts (reputedly using innfeed) will spawn as
many as five incoming feed connections at a time.

Not using innfeed myself, and being interested in the more general case as
well as an innfeed-specific solution, is there any way from my end to limit
such sites to some smaller number of inbound feed connections (say to two or
three)? I noticed no such option for hosts.nntp (although it is easy to
envision another "max connect" parameter to that file, say).

If, indeed, innfeed becomes the "default" feed technology as of the next
release of inn, and many sites become prone to forking five or more feed
channels, I think it may be important to be able to limit incoming feed
connections from a given address.

Regards,

Joe St Sauver (joe@oregon.uoregon.edu)


Re: limiting number of incoming feed connections from a host?
#9534
Author: John Turner
Date: Mon, 22 Jul 1996 00:00
33 lines
1822 bytes
Joe,

	Considering that the reason those other connections are forked 
off is the get enough traffic across/to (choose all that apply) high 
latency connection, slow server, high volume, etc I would prefer to let 
Innfeed fork as many channels as required.  The feeding site can set the 
max number of connections in the innfeed.conf file.  

				BDH


Joe St Sauver (joe@decoy.uoregon.edu) wrote:
: I've been noticing that some hosts (reputedly using innfeed) will spawn as
: many as five incoming feed connections at a time.

: Not using innfeed myself, and being interested in the more general case as
: well as an innfeed-specific solution, is there any way from my end to limit
: such sites to some smaller number of inbound feed connections (say to two or
: three)? I noticed no such option for hosts.nntp (although it is easy to
: envision another "max connect" parameter to that file, say).

: If, indeed, innfeed becomes the "default" feed technology as of the next
: release of inn, and many sites become prone to forking five or more feed
: channels, I think it may be important to be able to limit incoming feed
: connections from a given address.

: Regards,

: Joe St Sauver (joe@oregon.uoregon.edu)


Re: limiting number of incoming feed connections from a host?
#9541
Author: Heiko W.Rupp
Date: Tue, 23 Jul 1996 00:00
25 lines
1705 bytes
In <4t0blu$k86@viper.txdirect.net>, John Turner wrote:
:|Joe,
:|
:|	Considering that the reason those other connections are forked 
:|off is the get enough traffic across/to (choose all that apply) high 
:|latency connection, slow server, high volume, etc I would prefer to let 
:|Innfeed fork as many channels as required.  The feeding site can set the 
:|max number of connections in the innfeed.conf file.  

Yes, but one has no chance other than limiting all incoming connections
of limiting the number of connections coming in from one site. 
The argument you gave is right, but consider that on some OS you can only
have 127 descriptors (e.g. SunOS 4.1.x without patches) - there you don't
want 5 sites coming in with 5 links each if you have still other sites
coming in and about 90 outgoing sites ... 
In 1.5 you will at least be able to tell what hosts may use streaming.

-- 
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
In a Norwegian cocktail lounge:  Ladies are requested not to have
        children in the bar.


Re: limiting number of incoming feed connections from a host?
#9542
Author: David A. Sawyer
Date: Tue, 23 Jul 1996 00:00
38 lines
2018 bytes
Joe

I know UUNET has implemented this:

mtinsc01 -> telnet news.uu.net 119
Trying 192.48.96.127...
Connected to news.uu.net.
Escape character is '^]'.
400 Too many connections
Connection closed by foreign host.

I have seen this a lot lately.  I presume it is because of the multiple
innfeed connections from each of it's sites.

Dave Sawyer - AT&T WorldNet

Joe St Sauver wrote:
> 
> I've been noticing that some hosts (reputedly using innfeed) will spawn as
> many as five incoming feed connections at a time.
> 
> Not using innfeed myself, and being interested in the more general case as
> well as an innfeed-specific solution, is there any way from my end to limit
> such sites to some smaller number of inbound feed connections (say to two or
> three)? I noticed no such option for hosts.nntp (although it is easy to
> envision another "max connect" parameter to that file, say).
> 
> If, indeed, innfeed becomes the "default" feed technology as of the next
> release of inn, and many sites become prone to forking five or more feed
> channels, I think it may be important to be able to limit incoming feed
> connections from a given address.
> 
> Regards,
> 
> Joe St Sauver (joe@oregon.uoregon.edu)

Re: limiting number of incoming feed connections from a host?
#9619
Author: Clayton O'Neill
Date: Thu, 25 Jul 1996 00:00
97 lines
5270 bytes
On 25 Jul 1996 01:38:12 GMT, Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>If the server is being fed from only one site and not using streaming
>then having sevaral NNTP feeds can improve thruput.  A leaf site is
>unlikely to fall short of innd file descriptors anyway.

True.

>But if the site is using streaming then using multiple parallel
>connections will not improve thruput.  Streaming doesn't suffer from the
>RTT latency so the receiving site will have data waiting in its input
>buffer given sufficient bandwidth.

Yes, but it will improve article transit times because of queuing delays 
associated with large binaries.

>Running multiple parallel feeds to a site may seem to increase thruput
>but it is really only taking resources from the site's other feeds.
>Your queue processes faster while their's slow down.  The server
>winds up processing the same number of articles but more of them
>came from your feed.
>
>What we are seeing is that innd tries to give a fair share to each
>incomming connection.  If a site has 6 incomming feeds and you are 1
>of them then you will get 1/6th of its resources.  This can severly
>limit thruput and backlog that queue.

This is assuming that the site is going to have problems servicing all 
of the feeds if it accepts the 5 connections that innfeed offers.  It 
will add some latency, but how much depends on how i/o and cpu 
bound the server is.


>Now consider where you split the queue and send 5 parallel NNTP
>connections instead of 1.  Now you are getting 5/10ths of its resources
>as innd figures you are 5 separate connections.  You have probably
>trippled your apparent thruput.

Are we measuring throughput in articles/second?  My observation has been 
that if the remote server isn't suffering from the additional load then
the increase in articles/second is more linear.

>But you have done so at the expense of the other feeds.  The other 5
>feeding sites will now get 1/10th the resources instead of 1/6th.
>They will start to fall behind and if they each decide to split the
>feed to keep up then you will wind up exactly where you were before.

With a feed mechanism like innfeed you are going to offer the same number of
articles per day.  The issue is that you are going to place more load on
remote server when bursts of articles are sent.  Conventional transports are
going to offer the articles one at a time and smooth the load out, whereas
innfeed will offer them simulateously, putting x times the load on the server
in that period of time, and going idle more quickly. This can cause other
news peers using transports like nntplink to start to fall behind, but only
if the server is overloaded during the burst.  assuming a constant level of
traffic innfeed should not place an more load on the remote server.

>The feed wars continue until the server no longer has enough
>file descriptors available to handle all the connections.  The server
>won't be processing any more articles than before you split the feed.

This assumes that you're splitting the feed into multiple innxmit's or 
nntplinks.  Innfeed splits the feed based on need.  If it is unable to
keep from falling behind, then it will open more connections up to the
maximum, and if a connection goes idle for more than a certain amount 
of time, it tears it down.

>The second is that potentially this becomes a denial of service attack.
>One can open a hundred NNTP feed connections to a site and lock it up.
>They don't have to actually transfer any articles.  Fortunately only
>sites in the hosts.nntp file can do this so it is unlikely to be
>intentional but ...
>
>Given that innd handles incomming feeds directly it is possible for
>it to keep counts and limit on a per site basis.  The only detail is
>in specifying a syntax in the hosts.nntp file and keeping a common
>count for hosts with more than one IP address.  How about a syntax
>of:
>	news.foo.com/5:password:!foo.*
>
>which would limit news.foo.com to 5 incomming connections?

I'd prefer to keep the colon delimited format and add another field.  

	news.foo.com:5:password:!foo.*

would be fine.  I don't think anything else parses the hosts.nntp, so 
it would be easy to switch to this format.

-- 
-------------------------------------------------------------------------
Clayton O'Neill             Business-->                   Premier One Inc
whatever@oneill.net                                   clayton@premier.net
http://www.oneill.net       <--Personal            http://www.premier.net


Re: limiting number of incoming feed connections from a host?
#9640
Author: Jerry Aguirre
Date: Thu, 25 Jul 1996 00:00
59 lines
3470 bytes
In article <4t0blu$k86@viper.txdirect.net> jturner@legend.txdirect.net (John Turner) writes:
>
>	Considering that the reason those other connections are forked 
>off is the get enough traffic across/to (choose all that apply) high 
>latency connection, slow server, high volume, etc I would prefer to let 
>Innfeed fork as many channels as required.  The feeding site can set the 
>max number of connections in the innfeed.conf file.  

If the server is being fed from only one site and not using streaming
then having sevaral NNTP feeds can improve thruput.  A leaf site is
unlikely to fall short of innd file descriptors anyway.

But if the site is using streaming then using multiple parallel
connections will not improve thruput.  Streaming doesn't suffer from the
RTT latency so the receiving site will have data waiting in its input
buffer given sufficient bandwidth.

Running multiple parallel feeds to a site may seem to increase thruput
but it is really only taking resources from the site's other feeds.
Your queue processes faster while their's slow down.  The server
winds up processing the same number of articles but more of them
came from your feed.

What we are seeing is that innd tries to give a fair share to each
incomming connection.  If a site has 6 incomming feeds and you are 1
of them then you will get 1/6th of its resources.  This can severly
limit thruput and backlog that queue.

Now consider where you split the queue and send 5 parallel NNTP
connections instead of 1.  Now you are getting 5/10ths of its resources
as innd figures you are 5 separate connections.  You have probably
trippled your apparent thruput.

But you have done so at the expense of the other feeds.  The other 5
feeding sites will now get 1/10th the resources instead of 1/6th.
They will start to fall behind and if they each decide to split the
feed to keep up then you will wind up exactly where you were before.

The feed wars continue until the server no longer has enough
file descriptors available to handle all the connections.  The server
won't be processing any more articles than before you split the feed.

The second is that potentially this becomes a denial of service attack.
One can open a hundred NNTP feed connections to a site and lock it up.
They don't have to actually transfer any articles.  Fortunately only
sites in the hosts.nntp file can do this so it is unlikely to be
intentional but ...

Given that innd handles incomming feeds directly it is possible for
it to keep counts and limit on a per site basis.  The only detail is
in specifying a syntax in the hosts.nntp file and keeping a common
count for hosts with more than one IP address.  How about a syntax
of:
	news.foo.com/5:password:!foo.*

which would limit news.foo.com to 5 incomming connections?

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