Article View: alt.free.newsservers
Article #33930Re: Hammering - what's reasonable? (Ping: Mr. Horwath)
From: Rith
Date: Fri, 13 Jun 2003 11:52
Date: Fri, 13 Jun 2003 11:52
113 lines
7950 bytes
7950 bytes
Mike Pfaiffer <mike@digitalcivilization..ca> wrote in news:tkLFa.171751$ro6.4982073@news2.calgary.shaw.ca: <<snip>> > > My ISP behaves badly. The program I use to connect can handle > multiple > connections. My ISP has different servers in different cities and they > all behave badly (random disconnects and hangs on their end) I have > retries set for five seconds and reconnects set for five seconds. At > one point I had the retries set for two minutes and it took all night > to download a couple of small videos. > > The only complaints are from my ISP. Since most programs (I > think) > restart entire segments (as opposed to parts) when they fail, my ISP > whines about my downloading too much. Since four or five half hour > videos per night isn't really excessive I counter with the ISP must be > failing to transfer a significant number of segments without problems. > In spite of the difference in speed, I find the parts I get from > Biggulp often finish downloading faster than those from my ISP. The > lesson here (and I'm sure Mike would agree) is hammer as much as you > need to because the software is designed to handle it. Unless there is > a policy stating otherwise it shouldn't be a problem. > > Later > Mike If your ISP has horrible servers and fails to transfer segments, that's definitely an issue, and you are right to look to other/fills servers. Further, if the segments are actually present on the ISP's server(s) but repeatedly fail to transfer, I have little sympathy for their complaints. That said... if the server in question does not behave erratically, and transfers most articles as it is supposed to, you only make matters worse for everyone concerned (from the admin paying the bandwidth bill, to every user on the server) to hammer it every five seconds. "The software" is not the issue. Most well written, multi-threaded software can easily handle more concurrent connections than the bandwidth can support. The issue arises from the bandwidth required to deny those hammering login attempts. In the specific instance of biggulp (thank Mike!), the server does an excellent job with retention and successfully transferring requested articles. It is slow, and often full (it's one of the VERY few deliberately free, open, no-account-needed nntp servers taht carries binaries in the world), but it behaves itself. Every time you attempt to connect to biggulp, here's a sketch of what happens: 1) You send a packet asking to connect 2) Biggulp accepts the connection request and tells you so (whether or not the server is full, we're talking about the TCP stream connect, not a full login sequence) 3) You send several packets containing whatever command you had for the server (XOVER, LIST, group alt.free.newsservers, newgroups, etc) 4) Biggulp says, "sorry, all full now, try again later" (I kinda paraphrased that Mike), and closes the connection. Now, what have you accomplished: nothing. You still aren't logged in, and you didn't get any data from the server. However, you did send data to biggulp, and make biggulp reply, using up some of it's precious bandwidth (remember that "slow" thing?). Likely, you're thinking, "big deal, not much to transmit". However, considering that users from around the world are trying constantly to connect, (let's not even start on what that does to upstream and router traffic) and biggulp is almost always full... try a couple hundred or thousand folks sending a few packets back and forth every 5 seconds? That's more traffic than a cable connection can handle at once. And that's just the OVERHEAD of rejecting extra users. That all cuts directly into how much bandwidth is there to transmit (which cuts into how many users could get a decent amount of bandwidth at once and therefore how many users the server can handle at once...) And if it takes 40 seconds for a slot to open, and you and a few hundred other people all hit the server 8 times (40/5) apiece, that definitely hurts the server, and you, and the other users. Now, the half-stated truth: if you are retrying every 30 or 60 seconds, and some dirty bastard is retrying every 5, then it's possible that the opening would come up between your retries, the bastard would get it, and by your next retry, there would be no open slot again. At this point, this boils down to a case of doing what is best for all concerned (yeah, that whole public good thing). Retry at 30 or 60 seconds or something similar, and give Mike's server a break. Helps everyone in the end. If that isn't convincing (you dirty bastard) consider this: if either Mike's server connection (because of dirty bastards like you) or your ISP's upstream gets clogged, the first request could get delayed slightly and if the second came only 5 seconds later, it could get sent at the same time. Trying to open too many connections at once CAN get you banned from Mike's or other servers, so it comes back to doing yourself a favor. In reality, Mike is far kinder than I am... he is providing a truly gracious service to complete strangers for free, at cost to himself. Someone like that may be too nice to ban you for hammering. I'm not, other admins I know and have worked with aren't. I'd ban your happy ass for an hour the first time you sent two connection tries within the same 29 second (in case it was right on the 30 second retry) period, and step it up to a day, a week, a month, and then permanent bans after that. Yes I would post that fact, although word would get around even if I didn't, but the fact is, retrying too often just hurts everyone. Also, if you leave your software set to retry too often, and then use it to connect elsewhere for fills, you can wind up with a ban there because you didn't think to change the retry rate. Note to Mike Horwath: If you want to edit this up and put it somewhere on your site in conjunction with a request for a reasonable retry time, that's fine with me. I officially cede all legal right of authorship and copyright to you. -Rith
Technical Details
Message-ID:
<Xns939948719BC71Rith3141@216.65.98.9>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!elnk-pas-nf2!newsfeed.earthlink.net!news.astraweb.com!news-small.astraweb.com!news-out.spamkiller.net!local!corp-news.newsgroups.com!not-for-mailReferences:
<4aieevoefrfrf9835vl8l98vfu5t0ee3km@4ax.com> <3ee750ba$0$1396$a1866201@newsreader.visi.com> <spleevopvq7gcvpqkkn2uuq8tp2uttgt8m@4ax.com> <tkLFa.171751$ro6.4982073@news2.calgary.shaw.ca>Show Full Headers
Complete Article Headers
Message-ID: <Xns939948719BC71Rith3141@216.65.98.9> Subject: Re: Hammering - what's reasonable? (Ping: Mr. Horwath) Date: Fri, 13 Jun 2003 11:52:21 +0000 From: Rith <no@spam.thanks> References: <4aieevoefrfrf9835vl8l98vfu5t0ee3km@4ax.com> <3ee750ba$0$1396$a1866201@newsreader.visi.com> <spleevopvq7gcvpqkkn2uuq8tp2uttgt8m@4ax.com> <tkLFa.171751$ro6.4982073@news2.calgary.shaw.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!elnk-pas-nf2!newsfeed.earthlink.net!news.astraweb.com!news-small.astraweb.com!news-out.spamkiller.net!local!corp-news.newsgroups.com!not-for-mail Newsgroups: alt.free.newsservers User-Agent: Xnews/5.04.25 NNTP-Posting-Host: corp-news Lines: 113 X-Comments: This message was posted through Newsfeeds.com X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS) Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups.