Solved

slow network connection.

Posted on 2001-06-13
5
194 Views
Last Modified: 2013-12-16
My problem is that all network services are slow connecting to my RH7 Linux box.  (Telnet, ftp, email, etc.)  For example, when I try to telnet to the box, it takes anywhere from 30 - 90 seconds to get the login prompt.  Once I am logged in, the session proceeds normally.  The box is also running qmail, and all attempts to send/receive email through it are slow.  I have read some other posts, and get the general feeling that it might be a DNS problem.  I do not run my own DNS server, I use my isp's.  I have an always-on connection to the internet.  Any suggestions would be greatly appreciated.

M.B.
0
Comment
Question by:mattbrice
  • 2
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6189489
That is most likely a DNS lookup issue. The various servers are attempting to do a reverse lookup on the client's IP and the DNS request has to time out before the server can proceed. For nodes on your local LAN you can fix most of the problems by creating hosts file records for each of the nodes. Obviously you could set up a local DNS that contains data for you local LAN and forwards all other requests to your ISP, but that would be overkill if you only have a few nodes.
0
 

Author Comment

by:mattbrice
ID: 6196518
jlevie,

Thanks for the comment!  Although I had tried adding client records in my hosts file previously, it did not seem to help.  But after your comment, I tinkered with the file and discovered that I was not putting the records in the file correctly.  This has definitely made a speed increase in my connection times.  

But I have a few other clarifying questions that maybe someone can answer.  I run mainly Win NT 4/Win 2000 clients ( approx 10 nodes )with the linux box being the file/email server.  My questions are: are there some settings in the windows machines that I can adjust that will decrease the wait-to-connect time?  

For some reason, the Win 2000 machines seem to connect much faster than the Win NT 4.0 boxes; is there a known reason for this? Or is it just my imagination?

I run qmail as the email server, and the time it takes to check email is now less, but still not as fast as I think it should be.  Are there any other settings in Linux that may speed this up? Or am I just an impatient person?

Again, thanks for the prompt response.

MB
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6197019
What kind of time delay on the NT4 boxes are we talking about? And is the delay seen on all protocols (TELNET, FTP, SMTP, POP/IMAP)?

One sure-fire way to find out where the delay is is to run a "tcpdump -n" on the Linux system and then attempt one of the things that is slow from an NT system. You need to do this when there is no other activity on the network, i.e., no one logged in on any of the systems in your local LAN. If you even a little about network protocols the answer is usually immediately evident from the tcpdump output. If you don't understand what you are seeing I'll be glad to look at the trace and tell you what's happening. You can either post the part containing the delay here or email it to jim@entrophy-free.net.
0
 
LVL 1

Expert Comment

by:auther_bin
ID: 6199379
 Jlevie is right, that problem is just come from DNS. When you telnet to the box, the telnet daemon process first want to get your IP's daemon name, usually, it send PTR querry to dns server. The time you wait just because the DNS need more time to trans data. What ever the box get your IP's daemon name or not, it will logdown all the telnet connect message in logfile with your daemon name.
  but it's really a easy way to settle it:

1. Make sure that your box have correct setup with DNS server daemon program: named(bind 9.0)
2. Add your host name and IP address in file:" /etc/hosts" like:
       192.168.1.1         Myname
3. If you need to run DNS server on your machine, then you'd better add an item to the PTR file. About details, you can look for DNS configrations on net.
4. If you need not to run the DNS server then just kill DNS daemon service: "killall named", and the change the resolve file: "/etc/resolv.conf" delete all the nameserver lines.

I think it must work more fast, if not tell me :)

Good Luck
0
 

Author Comment

by:mattbrice
ID: 6225200
Thanks for all the input.  I have the system working at a much more acceptable pace now.  Unfortunately, I have been re-assigned to another few tasks and will be unable to delve into these annoyances until later. Since the problem is mostly solved, I don't know when I will be able to get back to this.

Thanks again,

MB
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question