Article View: news.software.nntp
Article #9619Re: limiting number of incoming feed connections from a host?
From: Clayton O'Neill
Date: Thu, 25 Jul 1996 00:00
Date: Thu, 25 Jul 1996 00:00
97 lines
5270 bytes
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
Technical Details
Message-ID:
<slrn4vdnc4.mns.coneill@premier1.premier.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<4t0999$an7@pith.uoregon.edu> <4t0blu$k86@viper.txdirect.net> <4t6j64$83j@olivea.ATC.Olivetti.Com>Show Full Headers
Complete Article Headers
Message-ID: <slrn4vdnc4.mns.coneill@premier1.premier.net> Subject: Re: limiting number of incoming feed connections from a host? Date: Thu, 25 Jul 1996 00:00:00 +0000 From: coneill@premier1.premier.net (Clayton O'Neill) References: <4t0999$an7@pith.uoregon.edu> <4t0blu$k86@viper.txdirect.net> <4t6j64$83j@olivea.ATC.Olivetti.Com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 170005080 Organization: Premier One Newsgroups: news.software.nntp