LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2003, 12:57 AM   #1
mp3tricord
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Check out this ssh problem. I'm not crazy, I promise


Summary: scp'ing files take forever unless network traffic is created from a different terminal and then the scp transfer speeds up.

Yes it is that crazy.



Explained in more detail:

I have three computers sitting on a lan.
1. redhat 7.2 mainly used as a file server
2. redhat 9 mainly used as my desktop
3. redhat 9 soon to replace my ageing 7.2 machine (computer1)

These are connected through cat5e cabling and run by a linksys router (as my NAT).

I ssh to computer3 from computer2 in two different terminals. I begin to scp files from one of the terminals, transfering the files from computer1 to itself (computer3). The transfer is painfully slow, maybe 50-100k per second.

Then (get this).

I just type in the other terminal (just hit on the keyboard) and bam, my scp transfer speeds fly up to 4-5 megs a second. After about 1-3 minutes the transfer speed falls back to 50-100k until I type some characters in the other terminal and then the scp goes back to 4-5 megs a second.

I know this sounds odd. I did not believe it myself but I have tcplogs to prove it.

High transfer speed http://www.patnjay.org/stuff/good.tcp

Low transfer speed http://www.patnjay.org/stuff/bad.tcp
(sorry I can't post a url, I don't have 5 post yet, whatever)

(view the tcpdump logs by "/usr/sbin/tcpdump -r bad.tcp")

An excerpt from the good and bad logs are as follows:


High Speed

20:02:17.177988 guardian.ssh > 192.168.1.104.32792: P 1448:1944(496) ack 1 win 16800 <nop,nop,timestamp 8694634 9597117> (DF) [tos 0x8]
20:02:17.178337 192.168.1.104.32792 > guardian.ssh: . ack 1944 win 31856 <nop,nop,timestamp 9597117 8694634> (DF) [tos 0x8]
20:02:17.180256 guardian.ssh > 192.168.1.104.32792: . 1944:3392(1448) ack 1 win 16800 <nop,nop,timestamp 8694635 9597117> (DF) [tos 0x8]
20:02:17.180384 guardian.ssh > 192.168.1.104.32792: . 3392:4840(1448) ack 1 win 16800 <nop,nop,timestamp 8694635 9597117> (DF) [tos 0x8]
20:02:17.180395 192.168.1.104.32792 > guardian.ssh: . ack 4840 win 34752 <nop,nop,timestamp 9597117 8694635> (DF) [tos 0x8]
20:02:17.180505 guardian.ssh > 192.168.1.104.32792: . 4840:6288(1448) ack 1 win 16800 <nop,nop,timestamp 8694635 9597117> (DF) [tos 0x8]
20:02:17.180631 guardian.ssh > 192.168.1.104.32792: . 6288:7736(1448) ack 1 win 16800 <nop,nop,timestamp 8694635 9597117> (DF) [tos 0x8]
20:02:17.180640 192.168.1.104.32792 > guardian.ssh: . ack 7736 win 34752 <nop,nop,timestamp 9597117 8694635> (DF) [tos 0x8]


Low Speed

22:21:04.273065 guardian.ssh > 192.168.1.104.32792: . 1:1449(1448) ack 80 win 16800 <nop,nop,timestamp 9527405 10429826> (DF) [tos 0x8]
22:21:04.273096 192.168.1.104.32792 > guardian.ssh: . ack 1449 win 34752 <nop,nop,timestamp 10429827 9527405> (DF) [tos 0x8]
22:21:04.273184 guardian.ssh > 192.168.1.104.32792: . 1449:2897(1448) ack 80 win 16800 <nop,nop,timestamp 9527405 10429826> (DF) [tos 0x8]
22:21:04.273195 192.168.1.104.32792 > guardian.ssh: . ack 2897 win 34752 <nop,nop,timestamp 10429827 9527405> (DF) [tos 0x8]
22:21:04.273291 guardian.ssh > 192.168.1.104.32792: P 2897:4137(1240) ack 80 win 16800 <nop,nop,timestamp 9527405 10429826> (DF) [tos 0x8]
22:21:04.273303 192.168.1.104.32792 > guardian.ssh: . ack 4137 win 34752 <nop,nop,timestamp 10429827 9527405> (DF) [tos 0x8]
22:21:04.273949 guardian.ssh > 192.168.1.104.32792: . 4137:5585(1448) ack 80 win 16800 <nop,nop,timestamp 9527405 10429827> (DF) [tos 0x8]




I can tell that the ack is a lot higher in slower transfer speeds. I assume this the time the the destination server took to acknowelge the packet sent to it. But that is as far as I can go.


If anyone can help me with this. That would be great. I'm stumped.
 
Old 10-04-2003, 03:43 PM   #2
mghere
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
did you ever figure this out?

this problem is driving me nuts...and wasting tons of my time when using ssh...was gonna look for another ssh client, but seeing this post makes me wonder if this is something more endemic to the system than program...
 
Old 10-04-2003, 05:47 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
That is really bizarre. You're a little bit off about the ACKs. That is just acknowledging the TCP seqence, so it's irrelevant. It almost sounds like one of your boxes is using QoS rules or something like that and is deprioritizing traffic to IPs that don't have active connections.

QoS and traffic shaping are way over my head so I won't even begin to speculate on a fix.
 
Old 10-06-2003, 01:30 PM   #4
mp3tricord
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I did find out the solution for this problem. I'm sorry I did not post it back to this user list, my error.

Anyhow it was because my nic cards where not interfacing properly. My new rh 9.0 computer's (referred in my earlier post as 'computer 3') mother board is an nforce using the driver, nvnet.

It seems that this driver screws up being left to its own devices to do speed (10 or 100 kbit/s) negotiations. This might be due to the linksys router, I don't know. So I had to set it. I stuck this line in my modules.conf

options nvnet speed=2 optimization=1

speed=2 : Sets it at 100kbit/s
optimization=1: Does some other crap, I think it uses more cpu for some thing or another. Its in nvidia's doc file.


I hope this Helps

jason^
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to check ssh encryption strenght browny_amiga Linux - Networking 2 02-20-2006 02:54 AM
Crazy network problem - please help me!! AndrewMSConvert Linux - Networking 2 10-23-2005 02:49 AM
crazy mouse problem exigent Red Hat 0 01-15-2005 11:19 PM
ssh gone crazy please help jgruss Linux - General 3 07-31-2004 09:00 AM
something very crazy in my SSH Log!! dexter_modem Linux - Security 3 03-26-2004 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration