🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #58224

Re: A better way to post binaries

#58224
From: Curt Welch
Date: Wed, 17 Apr 2002 19:04
111 lines
7397 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> curt@kcwc.com (Curt Welch) wrote:
>
> >> I'm saying that 1MB is ridiculously small.  It dates from a time and
> >> day when disk sizes were frequently measured in terms like "40MB", and
> >> access speeds read like "2400 baud" and "9600 baud".
> >
> >I haven't been following this thread and I'm not going to re-read it to
> >figure out what's going on.  So, I don't know why you guys are debating
> >article sizes, but....
>
> We are discussing the traffic and volume for XOVER created by
> splitting binaries down to a ridiculous small size per message.

Ah, yes, that is a problem that would be improved by getting people to post
in larger sizes.  But it's also not a problem that can be fixed by posting
in sizes which are only say an order of magnatude larger (10MB).  Creating
a ZXOVER (compressed XOVER) I think would be a much simpler and practical
way to address that problem.

Ideally, binary segments should be treated differently and not show up in
XOVER -- or show up as one record which represents a large set of binarry
file segments.  But creating a standard for how to do something along those
lines is likely to very hard to do.  There will be a ton of different
opinions about how it should be done.

> Actually just 250-500 kBytes are commonly used per message.
> If we increase this to 1-2-5-10-50 Megs/part then we can save
> XOVER volume - because less messages are posted.
>
> >ATM cell sizes are smaller than most IP packets.  It's not always
> >logical to increase segmentation sizes just because you are working with
> >more data.
> >
> >I'd argue that we have too large of a range of article sizes already and
> >that making changes to allow them to be closer to the same size could
> >actually help transport issues more than hurt them.
>
> I dont understand how it could be better to transport messages with the
> same size.

The problems happen not because they are different sizes, but because the
range of sizes is so great (1000 bytes to 1000KB - 3 orders of magnatude).
My point is that things would work better if the range wasn't so great.
Making the range even larger (1K to 10MB or 100MB - 4 or 5 orders of
magnatude), would make things even worse.

The problem is that the way you design a server and optimize it's
algorithms can be quite different if it was only moving 1KB articles vs how
it would work if it was only moving 100MB articles.  But because servers
have to deal with a wide range of sizes, you end up having to write code
which is (or should be) a lot more complex to work well with all sizes.

For example, most articles get moved over streaming feeds using the
CHECK/TAKETHIS protocol.  The checks get sent ahead of time to ask the
server if it wants the article.  The problem however is that once the
server is told to send the article, it's undefined how long it will take
before the article shows up.  Once a server tells one peer to send the
article, it will normally tell other peers which offer it to try again
later.  But you never know for sure if the feed that offered you the
article will ever actaully send it.  So you have to create a time limit in
your code where you time-out the pre-commit information about the
Message-ID, and allow other peers to send you the article. If the limit it
too long, you risk never getting the articles from you other peers (they
may have given up on you because you told them to "try again" too many
times).  But if you make it too short, you risk buring up a lot of extra
bandwidth getting multiple copies of the same article sent to you.

For CHECK/TAKETHIS to work well at keeping the pipe filled, you have to
send many checks ahead of the articles.  If you have a 1 second network
latency between the servers are are trying to send 100 small articles per
second (durring a catch up period), you may need to have 200 articles
outstanding (checks sent but responses not yet received).  And the
receiving server can normally assume that if an article hasn't shown up in
a few seconds, it's not going to show up.

But when sending 1MB articles over the link, you only need 1 outstanding
check.  If the 1MB articles took 10 seconds each to send, and the software
allowed 200 articles to have outstanding checks, that means that after a
server sees the CHECK for an article, it may have to wait up to (200*10) or
33 minutes for the article to actually show up.  And that would be way too
long - all servers would have given up on ever seening the article long
before the 33 minutes passed and told other peers to go ahead and send it.
But then you end up with multiple copies of the huge articles which means
you end up wasting 2 or 3 times as much bandwidth as you should.

So, to deal with this, the sending software has to work very differently if
it's trying to send nothing but small articles (where it needs to queue and
send checks for hundreds of articles ahead of time), than working with
large articles, where it only really needs to send 1 check ahead of time.

I have not seen any feed software that actaully does this correctly.  Most
is simply hard coded to send X outstanding checks where X is a number in
the range of 25 or 50.  For small articles, the feed then doesn't move
articles as quickly as it really should, and for large articles, the delay
between the time the check is sent and the time the article is sent tends
to be way too long (10 minutes is not uncommon for Cyclone servers for
example).

Making feed software work well when it has to deal with a wide range of
other types of feed software is hard to do.  You risk loosing articles when
you error on one side, or wasting bandwidth when you error on the other.

Making the range of article sizes even larger than it already is will only
make this problem (and other similar server optimization problems)
harder/worse.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020417150401.443$B4@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!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <1017777829.201228@ok-corral.gunslinger.net> <Xns91EEA9020645Avegasedvegasedvegase@64.152.100.164> <3cbb8c69$0$71294$39de8f09@news.sol.net> <Xns91F1CC216E9C5vegasedvegasedvegase@64.152.100.164> <3cbcdb62$0$71293$39de8f09@news.sol.net> <20020416222708.535$rF@newsreader.com> <14596.h42202@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <20020417150401.443$B4@newsreader.com>
Subject: Re: A better way to post binaries
Date: Wed, 17 Apr 2002 19:04:01 +0000
From: curt@kcwc.com (Curt Welch)
References: <1017777829.201228@ok-corral.gunslinger.net> <Xns91EEA9020645Avegasedvegasedvegase@64.152.100.164> <3cbb8c69$0$71294$39de8f09@news.sol.net> <Xns91F1CC216E9C5vegasedvegasedvegase@64.152.100.164> <3cbcdb62$0$71293$39de8f09@news.sol.net> <20020416222708.535$rF@newsreader.com> <14596.h42202@archiver.winews.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com pLxTMl6zX4VX2Y2BbKmv.eMJJxKOw19R6ZXZ8K_+FdgV9P
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: 110