Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

njtech

Posts

2

Joined

Sat Mar 05, 2011 7:52 am

SFTP upload speeds & ftpConnection.TransferBufferSize

by njtech » Sat Mar 05, 2011 8:04 am

I have a Complete FTP server setup in a datacenter with 100mbps connectivity.
My dev machine is on another ISP cable modem 5-7up 20 down..

I am putting together a application that will primary upload files using SFTP
using edtFTP.

After spending a lot time on testing transfer rates, I found that different machines
vary greatly in terms transfer rates. All using the same internet connection & DU meter
to review the transfer rates.

For example a Win7 64 machine could only upload at around 500kbps (not KB thats right its a 1/2 of 1 mbps)
while a vmware virtual machine inside the same host could transfer at
5-7mbps sharing the same network card being bridged.

I have found setting the ftpConnection.TransferBufferSize fixes this issue,
and using ftpConnection.TransferBufferSize =2048 for example the host machine can now
transfer at higher rates.

My question is here is there a good method to determine the optimal TransferBufferSize built into
the DLL?? or whats the best way to handle this so I can ensure my app will utilize the proper
amount of bandwidth for my clients? I suppose I could write a method to do some speed tests but
there must be a better way?? yes?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: SFTP upload speeds & ftpConnection.TransferBufferSiz

by support2 » Sat Mar 05, 2011 9:12 am

A good question to which there is no easy answer. It is notoriously difficult to optimize transfer rates across a number of different servers and/or clients.

Did your vmware client still transfer at the higher speeds when using the TransferBufferSize of 2048?

What client are you using btw?
no avatar
User

njtech

Posts

2

Joined

Sat Mar 05, 2011 7:52 am

by njtech » Sat Mar 05, 2011 10:06 am

the client I am referring to is the EdtFTPnet, a simple VS2010 project.

Filezlla seems to transfer excellent on all machines, it must
have some smart code tweaking the window size on the fly.. ?

The vmware client transmitted fine with the default setting, which seems
strange since the virtual machine is on the host machine which is really slow,
under 1mbps until I changed the TransferbufferSize.

The setting dramatically changes the transfer rate. For example
on another machine on a FIOS connection 25/25 with the default
TransferBufferSize I was uploading at 4-8mbps not bad.. but
if I used a 1500 buffer size.. I was getting 19-21mbps. Thats a huge difference.. also
on that same machine with a buffer size of 2048 around 13mbps, 4096 around 11-12mbps

So I guess its back to have some class in my project dedicated to adjusting
the TransmitBuffer size based on some sort of speedtest..
?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Tue Mar 08, 2011 6:29 pm


Who is online

Users browsing this forum: No registered users and 22 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron