* Delayed login prompt when telnet�ing over big TCP/IP network
@ 1995-10-09 4:00 Beni Ruef
1995-10-10 4:00 ` zhmte
0 siblings, 1 reply; 4+ messages in thread
From: Beni Ruef @ 1995-10-09 4:00 UTC (permalink / raw)
We=B4re part of huge, country-wide TCP/IP network with a lot of routers
connecting hundreds of LAN=B4s.
When using TCP/IP services locally on our LAN we don=B4t have any problems.
When telnet=B4ing 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=B4t
This happens under both Ultrix 4.2 and OSF/1 3.2.
Other Unices don't have this problem.
Any clues?
--
Beni Ruef Swiss Federal Veterinary Office CH-3097 Liebefeld/Switzerland
E-mail: ruef@ivi.ch FAX: +41 31 323 85 90 Phone: +41 31 323 84 96
"UNIX is the answer - what was the question ?"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Delayed login prompt when telnet�ing over big TCP/IP network
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
0 siblings, 1 reply; 4+ messages in thread
From: zhmte @ 1995-10-10 4:00 UTC (permalink / raw)
Beni Ruef (ruef@ivi.ch) wrote:
: We=B4re part of huge, country-wide TCP/IP network with a lot of routers
: connecting hundreds of LAN=B4s.
:
: When using TCP/IP services locally on our LAN we don=B4t have any problems.
:
: When telnet=B4ing 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=B4t
:
: This happens under both Ultrix 4.2 and OSF/1 3.2.
: Other Unices don't have this problem.
I'm a bit puuzzled about the finger command, but apart this, one might explain
the fact that daytime is a sevice embedded in inetd, while telnet, ftp, smtp
and http are separate server processes started from inetd. But finger?
(On my Sun, finger is a separate process as well...)
Could it be related to some authentication mechanism? Often establishing
authenticated session takes time...
Have a look at the startup times of the server processes: does it correspond
to the moment the connection is initiated or the moment it is really
established?
I suppose, process creation is not the problem, you can easily verify this
locally on the concerned machines.
hope this may give you some clues, but I still did not find a question
to your answer,
Andreas
--
___________________________________________________________________________
Andreas Meister, Union Bank of Switzerland, Lausanne, Switzerland
e-mail: Andreas.Meister@ubs.ch, zhmte@svewbl01.bussigny.lausanne.ubs.ch
phone: +41 21 702 88 23____________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Delayed login prompt when telnet�ing over big TCP/IP network
1995-10-10 4:00 ` zhmte
@ 1995-10-11 4:00 ` Jeffrey Mogul
1995-10-12 4:00 ` B. Ruef
0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Mogul @ 1995-10-11 4:00 UTC (permalink / raw)
>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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Delayed login prompt when telnet�ing over big TCP/IP network
1995-10-11 4:00 ` Jeffrey Mogul
@ 1995-10-12 4:00 ` B. Ruef
0 siblings, 0 replies; 4+ messages in thread
From: B. Ruef @ 1995-10-12 4:00 UTC (permalink / raw)
> I have a guess at what is happening: the server is trying to get
> the host name of the client.
You're 100% correct.
> If the DNS configuration on your server is wrong...
I wouldn't take any garanties for the correct configuration of
our DNS :-( but it's a fact that a great many clients accessing these
services are not covered by DNS, i.e. their names can't be reversely
resolved.
> 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, ...).
Yes. Local machines not covered by DNS don't cause any delays.
> One suggestion: I recommend configuring your http server to log
> IP addresses, not host names.
I did this and it works great. I guess you can't do something
similar for telnet(1), maybe besides disabling DNS at all.
(Not that it matters, this is sort of a firewall machine where
people are not supposed to log in from outside...)
Thanks a lot for your help!
-Beni
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-10-12 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1995-10-12 4:00 ` B. Ruef
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox