Lag in terminal

I have putty ssh client connected to my Linux machine. I’m experiencing lag while working with terminal. For example if I type ls command it might take 1 second when command will appear on the screen. Command response usually comes without lag. What is strategy for finding this problem?