Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh / scp == slow, http / ftp / etc == ok!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cantao
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 166

PostPosted: Mon Jun 06, 2005 8:22 pm    Post subject: ssh / scp == slow, http / ftp / etc == ok! Reply with quote

Hi!

After lots of digging in the forums and hours of unsuccesful experiments, there we go:

I work part of the time from home, using an ADSL line to connect to 3 different servers. The connection is made through ssh. My servers are Gentoo, and the other two are Suse and Mandrake.

I can make downloads, watch movies, etc, etc, etc at a very reasonable speedy (about 75 kb/s). But when using ssh the connection is choppy, and scp gives me about 14 kb/s. Eventually 25 kb/s, but most of the time less than 20 kb/s. I am discarding:

1. IPV6 problems
2. ISP problems (checked)
3. Hardware
4. Hacked systems

The interest thing is that I'm having this bad performance since the last week.

Any hints?

Thanks a lot, Cantão!
Back to top
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Mon Jun 06, 2005 9:33 pm    Post subject: Re: ssh / scp == slow, http / ftp / etc == ok! Reply with quote

cantao wrote:

1. IPV6 problems
2. ISP problems (checked)
3. Hardware

What have you already checked? ICMP packages? CPU load?

scp is due to encryption slower than any simple HTTP or even FTP connection.
_________________
-- erol
Back to top
View user's profile Send private message
cantao
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 166

PostPosted: Mon Jun 06, 2005 9:38 pm    Post subject: Reply with quote

Hi Ekutay!

Hum... I don't know exactly what ICMP packages have to do with that (networks are not my speciality :)), but until last week I could do scp copies around 65 kb/s, very close to usual http / ftp downloads.

Thanks a lot, Cantão!
Back to top
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Mon Jun 06, 2005 10:15 pm    Post subject: Reply with quote

When I have network trouble, I usually run tcpdump and look for ICMP packages. Noroutetohost or noroutetonetwork, network congestion or timeouts are announced with ICMP.
Code:
tcpdump -s0 -i eth0 icmp
You should probably set src and/or dst too. To inspect the packages later with ethereal use the -w outfile switch. Don't know whether this help you out, but you've asked for hints. :)
_________________
-- erol
Back to top
View user's profile Send private message
cantao
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 166

PostPosted: Tue Jun 07, 2005 12:01 am    Post subject: tcpdump & ethereal Reply with quote

Hi Ekutay!

Yes, I tried both tcpdump and ethereal, just didn't know what to look for :oops: . Concerning your first reply, I tried again at night. The transfer rate with scp raised to 45 kb/s average, with 50 kb/s peak. Of course late in the night network usage drops, but interestingly enough, I get more or less the same download (http / ftp) speeds as during the day.

Quite strange :?:

Anyway, thanks again for your help! Gonna try the tcpdump stuff with ICMP.

Cheers, Cantão!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum