Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mogul@pa.dec.com (Jeffrey Mogul)
Subject: Re: Delayed login prompt when telnet�ing over big TCP/IP network
Date: 1995/10/11	[thread overview]
Message-ID: <45f66l$rj@usenet.pa.dec.com> (raw)
In-Reply-To: 1995Oct10.090717.3211@zh014.ubs.ubs.ch

>Beni Ruef (ruef@ivi.ch) wrote:
>: We're part of huge, country-wide TCP/IP network with a lot of routers
>: connecting hundreds of LAN's.
>: 
>: When using TCP/IP services locally on our LAN we don't have any problems.
>: 
>: When telnet'ing from outside to our _DEC_ machines _some_ TCP/IP services
>: get massively delayed, not the SYN but the following data, i.e.
>: "Connected to ..., Escape sequence: ^]" comes immediately but the login
>: prompt itself is delayed (60 seconds on Ultrix, 80 seconds on OSF/1).
>: 
>: This is dependent on the service resp. port number used:
>: - telnet, ftp, smtp, http get delayed
>: - daytime & finger don't
>: 
>: This happens under both Ultrix 4.2 and OSF/1 3.2.
>: Other Unices don't have this problem.

I have a guess at what is happening: the server is trying to get
the host name of the client.  It has the client's IP address (from
the getsockname() system call) but has to use the DNS system to
do an inverse lookup.

If the DNS configuration on your server is wrong (or perhaps if
something is wrong with your local name servers), this reverse-lookup
step might fail.  I would not be surprised if it took 60 seconds
for this to happen.

One sure sign of this would be that commands such as "last" show,
once a login succeeds, the system does not know the client's host
name.  (Also look at your http daemon logs.)  But it's possible
that your server is configured to try more than one name server, and it
fails on the first one and succeeds on the second (or third, ...).

One suggestion: I recommend configuring your http server to log
IP addresses, not host names.  Even when the DNS is working just
fine, the cost of translating an address to a host name requires
so much work that it can really slow down the server.  If the DNS
is working badly, the result is even worse.  If you really want
host names, translate them when reading the log, just for the log
entries that are "interesting".

-Jeff



  reply	other threads:[~1995-10-11  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-10-09  4:00 Delayed login prompt when telnet�ing over big TCP/IP network Beni Ruef
1995-10-10  4:00 ` zhmte
1995-10-11  4:00   ` Jeffrey Mogul [this message]
1995-10-12  4:00     ` B. Ruef
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox