🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66236

Re: A more efficient Usenet

#66236
From: Jeffrey M. Vinocur
Date: Sat, 19 Jul 2003 14:10
195 lines
9085 bytes
In article <bf50f2.318.1@privat.goldpool.org>,
Heiko Studt  <Heiko.Studt@gmx.de> wrote:
>Hi Jeffrey M. Vinocur,
>
>On 16.07.2003 23:55:18 these lines were written down onto papyrus:
>
>> Filtering on the source side is *always* going to be more powerful
>
>No: Policies are going to be changed. If they are changed *all* Peering-Partners
>have to be contacted, all have to change the approach, all can do failures.

This is a valid point -- but not one that concerns me too much,
honestly.  Just on gut instinct...anybody else who wants to
weight in here, feel free.

(If it ends up being important, I think the best way to fix it is
to still do source-side filtering but to provide an NNTP
extension for querying the recipient about what filter is
desired.)


>No: The needed power for scoring (etc) for *every* arcticle for *every*
>peer-partner would be very much AFAIK.

I don't understand why you say this.  Several points:

- In the news server world, CPU tends to be plentiful -- the
  bottlenecks are disk and memory and bandwidth.  If the server
  can filter, it saves some of its own resources.

- The filters we're proposing may in fact be quite simple.  Keep
  in mind that many servers are already analyzing headers and
  body for their own purposes.

- The scoring is going to be done at one end or the other.  And
  in fact, a lot of the filtering constraints (e.g. checking for
  binaries) are likely to be shared among many peers, so the
  source can compute the answer once and use it to the benefit of
  many recipients.  So while it would certainly be more CPU usage
  for the source than not filtering at all, the total CPU usage
  of all the servers together would go down, and since news
  servers are cooperative anyway, this should make everyone
  happy.  And of course, it's not entirely selfless -- if the
  source can save the recipient some burden, then the recipient
  can use the CPU to filter articles that it would otherwise be
  sending the opposite direction.


>No: It's IMHO not needed. You want to have *those* Hierachies of text-only
>    (HTML wanted?) And *those* groups/hierachies with binaries of such type.

Hmm, I think if we're going to implement a major change to the
way peering links exchange articles, it needs to be at least
reasonably generalizable.


>    All other information can't be done before very efficient -- the source
>    can't find out if a posting is really multipart for sure(!) if the next
>    articles of this multipart arn't available.

I'm confused.

You wanted to add additional information to IHAVE commands so
that the receiving server would be able to filter.  I'm saying,
why not just have the source server do the filtering with that
same information.  But if the information isn't available yet,
then how can it be included in IHAVE?


>Perhaps am too text-oriented, but in my eyes Usenet should be text-only and a
>'second' Usenet (with another name) can be binary-oriented. But we shouldn't
>warm up this discussion again...

If you want text-only Usenet, then you should peer only with
people who can provide you a prefiltered feed.  Then you wouldn't
have to be concerned about it at all.


>Sure -- filtering on hierachy-base is not very hard work and can be done 
>"on the fly". Filtering based on the post have go through a complete and 
>long way for filtering. If such a script (what else do you want to use for
>filtering?) is bad written it can take seconds for one post of wasting power.

I don't find "if poorly implemented, X will not work well" to be
a convincing argument that X is a bad idea.


>> It would be much easier, and not require changing NNTP, to design
>> a simple "feed description" language.  One news admin would send
>
>Every 'simple' 'language' in this kind of meaning can't handle everything. So 
>it grows or die out, because no one 'can' use it.

...

I don't think this is true, but I don't know how to convince you
of that.

(Actually, I was thinking XML might not be a bad technology for
this purpose.  Anybody here know enough about it to comment?)


>If it grows it comes to be unhandy and wasting CPU-time.

See the above comment about "X".


>> And if some day peers are not negotiated manually over email,
>> then it would be extremely simple to add an NNTP extension for --
>> at the beginning of the connection -- querying the remote host
>> for the "feed description" desired.
>
>Yes, you're right here -- it would relativly simple -- and crazy! If every admin
>can change 'his' rules on their source-servers so easyly they don't mind if they
>need one millisecond or one second to get through the filter, as long as they
>don't have to pay for the traffic.

Keep in mind two points:

- If the filter language is sufficiently declarative rather than
  computational, it may be possible for the source server admin
  to configure restrictions on what sort of filters are
  acceptable.

- All server-server links are negotiated manually, and the
  recipient remains aware that if his link becomes too costly,
  the source server admin is free to simply drop him as a peer.

[ Interlude:  can you please fix your newsreader not to generate
  lines of 80 characters? ]


>You have to think of 10k lines of filters for 10-100 peers (at least).

I think you're thinking of letting the filters be arbitrary code.
I'm not sure that's the best idea; I really think we can
formalize a filter language that will be sufficiently powerful
but still fast.


>> >IMHO IHAVE should be as small as possible.
>> *shrug*  It should get out of hand, but I think the amount of
>
>'get out of hand'? What do you mean?

I meant "should not get out of hand" -- but if you're asking for
a definition of the term, "get out of hand" means "become
unreasonable".


>> protocol-related traffic is generally dwarfed by the quantity of
>> news being exchanged.
>
>I think it does matter: It is not only between two servers sent, but every peer
>sends one to every peer -- it will get hundreds of thousands times *for every
>article*...

By the way, this is exactly my point above; it's much more
efficient to filter on the source side than to try to give the
recipient enough information to filter in IHAVE.

But anyway, your point may be right (does anybody -- Curt? --
quantify how much bandwidth is spent on protocol vs articles?),
but your reasoning is wrong.  Yes, there will be many IHAVEs for
each article...but there will also be many times the article is
sent over the network.  Here, let's work it out:

    If there are N servers in the network, each with L links to
    other servers, each article is uniformly X bytes long, an
    IHAVE exchange is uniformly I bytes in total traffic, and 0
    <= P <= 1 is the fraction of servers that want each article
    (or must receive it in order to decide they don't want it),
    then the traffic due to articles is N * P * X, and the
    traffic due to IHAVEs is N * L * I.  Thus, as long as P * X
    is much bigger than L * I, the traffic due to IHAVEs is
    perhaps not so important.

    So, if X is 100 000, I is 100, and L is 100, then P needs to
    be at least 0.1 -- and I hope that it is!  (Because right
    now, I don't think any server can afford to receive a full
    feed, determine that it doesn't want the great majority of
    the articles, and drop them on the floor.)


>> >Latter we should use a way which can stream more than one article by IHAVE.
>> Um, what does the CHECK / TAKETHIS mechanism lack?
>
>You misunderstood the whole. It got along the idea, you didn't follow...;-)

Can you clarify?  The above doesn't make sense in English.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <bfbjgj$74g$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!cox.net!news-xfer.cox.net!news.litech.org!not-for-mail
References: <e5c11262.0305251655.239000e@posting.google.com> <bf4h5n.1ao.1@privat.goldpool.org> <bf4hk6$f8h$1@puck.litech.org> <bf50f2.318.1@privat.goldpool.org>

Show Full Headers
Complete Article Headers
Message-ID: <bfbjgj$74g$1@puck.litech.org>
Subject: Re: A more efficient Usenet
Date: Sat, 19 Jul 2003 14:10:27 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <e5c11262.0305251655.239000e@posting.google.com> <bf4h5n.1ao.1@privat.goldpool.org> <bf4hk6$f8h$1@puck.litech.org> <bf50f2.318.1@privat.goldpool.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!cox.net!news-xfer.cox.net!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 195
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1058623827 7312 66.218.0.75 (19 Jul 2003 14:10:27 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sat, 19 Jul 2003 14:10:27 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)