🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16383

Checking ihave/check response speed on a server

#16383
From: Ragnar Lonn
Date: Thu, 27 Mar 1997 00:00
57 lines
2949 bytes
Hello,

I've written a small program that connects to a server's NNTP port
and issues a bunch of IHAVE or CHECK commands with fabricated
message-ids I'm pretty sure won't exist. It keeps track of how
much time is spent sending these commands, waiting for a (or
several) response/s, and how much time is spent getting the
response/s, then it quits without sending any articles.

I made this program to see how fast my newspeers responded to these 
commands as I have backlogs to some of them and I suspected the feeding 
didn't go well because they were slow in doing history lookups.

The only problem is that when I run my program, results show that
even my slowest peers seem able to do about 10 lookups per second
(and I have huge backlogs against these peers). So now I'm wondering
if there's something I didn't think about when writing this program.
What it does is the following:

1. Connect to a server
2. Send 50 CHECK commands in rapid succession (one write for
    (each line sent). 
3. Start a timer
4. Read and count response lines received until a total of
   50 lines have been received.
5. Stop the timer.
6. Calculate and display time averages etc.

Now, I thought step #2 might take enough time to foil the results
by having the responses buffer up before step #2 is finished but
that can't be it because when I timed step #2 it took about 6ms
to complete (on my side, the packets didn't reach their destination
in that time of course) and that was a very short time compared to
the several seconds needed to complete the whole operation.

I know this simple scheme is susceptible to RTT lag - it was very
obvious when I tried my program on local machines or machines to
which there are very few router hops (=good response times). But
I think that can be taken care of with some adjustments and more
CHECK's to average out things better.

Anyhow, can anyone see anything inherently wrong in this scheme,
or something I didn't think about?  I do also, by the way, get
almost ridiculously high values for CHECK-responses per second
when connecting to our local newsfeed machine which is an Ultra-
sparc running Diablo. It would be cool if it could actually do
700-800 history lookups per second with a dozen active feeds
but I'm somewhat suspicious of the results my program gives
me right now :-)

Regards,

  /Ragnar, Algonet


Technical Details
Message-ID: <5hep9k$8a@epimetheus.algonet.se>
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!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5hep9k$8a@epimetheus.algonet.se>
Subject: Checking ihave/check response speed on a server
Date: Thu, 27 Mar 1997 00:00:00 +0000
From: Ragnar Lonn <prl@algonet.se>
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!not-for-mail
X-Deja-AN: 228836292
Organization: Algonet
Newsgroups: news.software.nntp
NNTP-Posting-User: b93c87732e2a5b74093c87732e2a5b740