all groups > iis ftp > june 2004 >
You're in the

iis ftp

group:

How to make ftp server less verbose


RE: How to make ftp server less verbose alunj NO[at]SPAM online.microsoft.com (
6/24/2004 4:19:47 PM
iis ftp:
[quoted text, click to view]

No, the response codes are all hard-coded.

What purpose would you hope to serve by removing the text? Note that there
are several messages that actually require specific textual contents
(responses to PASV, MKD, STOU, etc) - and others where the response text is
often used by clients (response to RETR, LIST, etc).

Given that many network protocols enforce a minimum packet size anyway, and
would pad short responses out to that size, what would be the reason to
remove the text?

Alun.
~~~~
How to make ftp server less verbose io
6/24/2004 8:48:20 PM
Hi fellas,

Does anyone know how to make FTP server (IIS 5.0) less talkative, i.e.
returning command codes only rather than codes plus text? Is this possible
at all?

Cheers guys, appreciate your help in advance

Re: How to make ftp server less verbose Alun Jones [MSFT]
6/25/2004 10:40:05 AM
[quoted text, click to view]

I'd be interested to see your analysis of the extra data that leads you to
suspect the response messages as being a significant portion of that.
Here's an example of the traffic required for an upload:

{Connection}
220 Microsoft FTP Service [27 bytes - 21 bytes text]
USER eric [11 bytes]
331 Password required for eric. [33 bytes - 27 bytes text]
PASS flimflam [15 bytes]
230 User eric logged in. [26 bytes - 20 bytes text]
TYPE I [8 bytes]
200 Type set to I. [20 bytes - 14 bytes text]
PORT 127,0,0,1,9,79 [21 bytes]
200 PORT command successful. [30 bytes - 24 bytes text]
{Server connects to 127.0.0.1:9*256+79}
STOR foo.txt [12 bytes]
150 Opening BINARY mode data connection for foo.txt. [54 bytes - 48 bytes
text]
{Client sends data to server}
{Client closes data connection}
226 Transfer complete. [24 bytes - 18 bytes text]
QUIT [6 bytes]
221 [6 bytes - 0 bytes text]
{Closure}

So, ignoring TCP framing and negotiation, this shows a simple transfer as
taking up 293 bytes of commands and text. If we strip all the text out of
every response there, and reduce it to the bare minimum of numbers and
spaces (assuming that the FTP client will accept that), we see that there's
172 bytes of text, and 121 bytes of absolutely essential material.

Where is the rest of your ~1400 bytes coming from? If it's from a minimum
unit size on each packet, ripping the text out will have no effect. Note
that our longest message was 54 bytes - if your minimum unit size is above
that (plus headers and other framing), there's no savings possible.

But if you think that removing the text will achieve this, why not try
writing a relatively simple proxy in front of the FTP server? If all you're
doing is uploading a simple file, you won't need MKD, so the only response
you'll need to pass on faithfully to the FTP client is the 227 response from
the PASV command - and you may be able to cut this down to "227
(127,0,0,1,9,79)".

Alun.
~~~~

Re: How to make ftp server less verbose io
6/25/2004 12:29:07 PM
Thanks for info Alun, the reason to ask in the first place is CDMA 1x price
plans in Australia where they charge on transmitted data volume basis. It
happened that we need to transmit small files (~0.5K) every hour from CDMA
modem-equipped devices to our FTP server and we found that FTP protocol
overhead was forbiddingly high being ~1400 bytes in average for each
transfer. I think we need to look for some other solution, prob. come up
with proprietary protocol.

Cheers mate

[quoted text, click to view]

How to make ftp server less verbose anonymous NO[at]SPAM discussions.microsoft.com
6/29/2004 1:54:57 PM
test
[quoted text, click to view]
Re: How to make ftp server less verbose io
6/29/2004 2:39:03 PM
Hi Alun, appreciate you taking trouble to get to that much details. I have
to admit that our tests have been of an empiric rather than analytic nature,
so the measured overhead was a combination IP, TCP and FTP overheads. That
may explain where 1400 bytes come from as well as the fact that we measure
both incoming and outgoing "bytes".

Cheers

[quoted text, click to view]

AddThis Social Bookmark Button