Article View: news.software.nntp
Article #53598Re: rate-limiting peers
From: Curt Welch
Date: Wed, 01 Aug 2001 23:16
Date: Wed, 01 Aug 2001 23:16
39 lines
3272 bytes
3272 bytes
"Eric A. Hall" <ehall@ehsco.com> wrote: > TCP rate-limiting, either by restricting rwin, or by stretching the ACKs > so that the delay is artificially high. There are different ramifications > for those two approaches, in particular wrt feed type. Ugh, don't strech the ACKs. You just run the risk that the sender will waste bandwidth re-transmitting and force them to hold the old packets in their buffers wasting memory. Just ack it and tell them you don't want more with the rwin. But hey, why are you talking TCP protocol hacks anyway? This stuff would normally just be done at the application level and at that level, all you have to do is stop reading. The TCP/IP stack takes care of the rest. It is a flow-controled protocol. > Probably easier to implement delay timers on a per-peer basis, since you > will probably only have direct access to rwin, and you may have trouble > changing the rwin on a per-peer basis if you only have a single listener. > But yeah, it would be nice to have sliders for "use x bandwidth" on a > per-peer basis, combined with a weighted scheme for changing the usage > based on external conditions. I have bandwidth limiting on a per-peer level (across multiple NNTP connections) already in my server. It's easy to do since all the connections are serviced by a single processes. You just calculate the bandwidth and when it gets too high, you stop reading. You re-check every second until the bandwidth drops below the requied level and then read again. Makes for dead flat MRTG graphs. I can set bandwidth limits for both incoming feeds and outgoing feeds. And I've just added an intersting little hack to limit my outgoing feed to a peer based on a multiple of what they send me. So I can limit my outgoing data to any peer to be 2x what they send me for example. I also have min and max values associated with that system as well so I'll always be willing to send them somehing even if they aren't sending me anything etc. Fun stuff... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20010801191648.707$F3@newsreader.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<3B6735C3.FF59F476@ehsco.com> <20010801012336.182$ie@newsreader.com> <3B68204E.47CDD90A@ehsco.com>Show Full Headers
Complete Article Headers
Message-ID: <20010801191648.707$F3@newsreader.com>
Subject: Re: rate-limiting peers
Date: Wed, 01 Aug 2001 23:16:48 +0000
From: curt@kcwc.com (Curt Welch)
References: <3B6735C3.FF59F476@ehsco.com> <20010801012336.182$ie@newsreader.com> <3B68204E.47CDD90A@ehsco.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com i3tA+i_cnVvV@MYel1Ol/cv,,VZf@@0dmZY43YiMVnVk4
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 38