This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

SFTP Windowing

0

I am troubleshooting an issue were large SFTP file transfers of > 3gb never reach speeds faster than 10mbs on a 25mbs circuit (there is no other traffic at the time of transfer). I understand the concept of how TCP windowing works. In researching the SFTP protocol I understand the SFTP does some form of its own windowing and further places restraints or limits on payload size that are much smaller than that is allowed in SSH2. As I don't have a capture yet to analyze. I am looking for advise as to what to look for?

Thank you for your time.

asked 11 Sep '14, 16:37

EdJ's gravatar image

EdJ
166610
accept rate: 0%


One Answer:

0

If you have a situation where maximum theoretical speed can't be achieved (well, it is always a little less than the theoretical maximum, of course, even in best case situations), you need to look for where the time is lost. There are a couple of causes for lost time (the list is probably not close to complete, but just to have a few):

  • The sender is not able to send the data fast enough (e.g. slow read speed on its disks)
  • The sender is slowed down by the receiver, e.g. low or even zero TCP window signaling
  • Packet loss, resulting in retransmissions which take time and reduce the throughput because the sender will throttle down to avoid further packet loss before accelerating again
  • The sender sends inefficient packet sizes, e.g. when TCP time stamps are enabled and the additional bytes force the payload to be split into multiple segments, one large segment and one small
  • delay by devices in the network path

In Wireshark, you might want to take a look at the IOGraph in the statistics menu to see if there is a pattern. Otherwise, find the packets with the largest delta times and determine why those happen.

answered 11 Sep '14, 18:34

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%