🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80744

Re: good innfeed practices

#80744
From: Curt Welch
Date: Sat, 25 Apr 2009 14:08
70 lines
5583 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Daniel Weber <dw2007@news.solani.org> writes:
> > Russ Allbery schrieb:
>
> >> Oh, yeah, separating large articles has a very significant impact.
>
> > From which size on should one consider an article as large?
>
> I split at 128KB.  64KB would probably work well too.  Something around
> that range feels right; you want to split at the point where sending a
> single article takes an appreciable amount of time.

I didn't read this thread so I'm not sure which issues "impact" is being
discussed.  But for propagation speed, there are some interesting factors
at work on Usenet...

When I was last running a peering server I would set up small article feeds
with a limit of around 10K I think.  Because Usenet is a store and forward
system, articles are not transmitted to the next peer until they are fully
received.  A 2K text article moves from peer to peer 1000 times faster than
a large 2 MB binary article simply because the article is 1000 times
smaller.  In the time the large binary article is being received from one
peer, your server can receive, and send out again, 1000 small text
articles.

On a 100 MBit interface, it takes something like .2 ms to transmit a small
text article, but 200 ms to transmit a huge binary.  With a average hop
count of maybe 20, this means the we are talking about a small text article
flooding all the fastest servers on Usenet in only a few ms.  The speed of
light propagation delay moving it around the world becomes a real factor.
Stillm, withing 100 ms or so after it's first posted, a small text article
will have flooded all the major Usenet servers.

If a small text article is being sent out the same TCP feed connection as a
large binary, even if there is no backlog, and the text article is the next
to go out, it can still be delayed by a few hundred milliseconds before
it's even offered to the peers.  For small text articles, that's a life
time.  By the time you offer it to your peer, it's already got the article
by another path.

So if the idea is to help articles move quickly to your peers, then it's
very important to separate the smallest articles into separate outgoing
feeds.  128K or 64K is not "small" by this measure.  A 64K article is still
32 times larger than a 2K text article, which means when a 2K article gets
stuck behind a 64K article, it's fallen behind in the propagation "race" by
32 hops.  The "game" is over at that point and your fast peers will have
long ago been offered, and would have already received, that article.
Moving 2K articles around the world is more like moving ping packets around
the world than it is like doing file transfers.

So if you mix large articles and small in the same feed, you aren't going
to have to send out may small articles to your fast peers because most of
them will have already been received by other paths. If you separate the
outgoing articles into multiple feed sizes, then the smaller articles don't
have the held up unreasonable amounts of time by the larger slow moving
"boats" of Usenet.  But that also means you end up using more bandwidth
when you end up sending out a lot more data to your peers - which may or
may not be a "good thing".

So to optimize for speed, I would do things like 0-10K in one feed,
10K-100K in another, and 100k+ in the last.  I tended to to this more for
internal paths between servers actually than to my external peers simply
because bandwidth was too expensive and doing too "good" job of sending out
full feeds to 20 peers can get expensive.  But I would do that type of
thing to the fastest peers that always seemed to send me more than I sent
them just to try and keep things balanced.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20090425100510.156$XL@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!feed.xsnews.nl!border-1.ams.xsnews.nl!eweka.nl!lightspeed.eweka.nl!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
References: <gsaoiq$2pm6$1@de-l.enfer-du-nord.net> <87zle66i58.fsf@windlord.stanford.edu> <gssvum$629$1@news.trigofacile.com> <gst3ot$2923$2@de-l.enfer-du-nord.net> <87iqkt6dc1.fsf@windlord.stanford.edu> <gst6ek$2j62$1@de-l.enfer-du-nord.net> <871vrhy5da.fsf@windlord.stanford.edu> <gsu96t$ugm$1@solani.org> <87fxfxjm9e.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20090425100510.156$XL@newsreader.com>
Subject: Re: good innfeed practices
Date: Sat, 25 Apr 2009 14:08:26 +0000
From: curt@kcwc.com (Curt Welch)
References: <gsaoiq$2pm6$1@de-l.enfer-du-nord.net> <87zle66i58.fsf@windlord.stanford.edu> <gssvum$629$1@news.trigofacile.com> <gst3ot$2923$2@de-l.enfer-du-nord.net> <87iqkt6dc1.fsf@windlord.stanford.edu> <gst6ek$2j62$1@de-l.enfer-du-nord.net> <871vrhy5da.fsf@windlord.stanford.edu> <gsu96t$ugm$1@solani.org> <87fxfxjm9e.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!feed.xsnews.nl!border-1.ams.xsnews.nl!eweka.nl!lightspeed.eweka.nl!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com 3DSYaa029FL27ERX2@P@ug8=a_rDcWElb./_w8/CX/7aeuN
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: 70
NNTP-Posting-Host: 31100fbe.nr5-q1.newsreader.com
X-Trace: DXC=8Z8Xa]jVUn[1GUCb@CPZ=TbgZaH`e<A[YZ?:i9<JJBS^J7E]8\ebOWRiJ;
 iV2YAoGU=fV5A@3IlHX7`MejPbSV\[
X-Complaints-To: abuse@newsreader.com