8

I'll often transfer items to and from my laptop on my local network using scp. Often, it seems, I'll see the transfer rate start out right (2.0MB/s), then slowly diminish until the transfer completely stalls. This seems to be fairly reproducible on larger files. Is there a network problem or a way for me to better configure SSH on my laptop? My desktop doesn't seem to have these problems when transferring files to remote servers, so I assume that my laptop's WiFi connection may be to blame.

Both computers are running an Ubuntu 12.04 derivative.

2

I had seen issues like this with my network. It helps to get a wifi analyzer that shows channel usage (for example, kismit or wavemon). Turns out that the automatic channel settings weren't working well. I explicitly set the channel in the wifi router and it helped quite a bit.

  • Would it explain the difference between my laptop and my deskop? Won't they use the same channel and experience the same level of terrible transfer rate? – Naftuli Kay Aug 29 '13 at 0:34
  • @TKKocheran is your desktop also connected wirelessly? Is it perhaps closer to the router? – terdon Aug 29 '13 at 11:20
  • Nope, they're both sitting next to each other and it doesn't seem to relate to location. I've had my laptop behave similarly on other networks too. – Naftuli Kay Aug 30 '13 at 0:20
0

Are you using a VPN? Sounds like an MTU issue. If you are running over a VPN or PPPOE the MTU is reduced to compensate for the overhead of the VPN or PPPOE layer. Longer packets are dropped and soon an endless amount of re-tries happens. To test if this is the issue set the MTU on the interface to something small, like 800. If that solves the problem, increase the MTU by 100 (max 1500) until you narrow down the maximum size.

  • Nope, no VPN :( – Naftuli Kay Aug 29 '13 at 0:33
  • Try setting MTU anyway. It could be some other device in the middle. – TomOnTime Aug 29 '13 at 2:09
  • This doesn't look like an MTU issue: the scp connection would stall after a few packets. – Gilles Aug 29 '13 at 21:25
0

No, I believe scp is just slower then other ways by default. It was barely 10MB/s on a direct cable connection between two laptops (1000Mbps). One possible bottleneck can be also a CPU which needs to encrypt data. Mine was at 50% (half a core on a quadcore CPU)

http://intermediatesql.com/linux/scrap-the-scp-how-to-copy-data-fast-using-pigz-and-nc/

  • encryption / decription should not be a problem.....nowadays it is done in hardware and there would be similar problems downloading files from internet if enc / dec was a problem – Luca Di Liello Aug 10 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.