LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-08-2004, 12:48 AM   #1
anmsg
LQ Newbie
 
Registered: Oct 2004
Posts: 12

Rep: Reputation: 0
binary ftp trouble


I posted it sometime back but couldn't get any help. May be somebody can help me now.

Here is the problem:

My ftp server is giving lot of trouble to all our clients since last 2 months but in a very inconsistent way. They get "CRC" error trying to uncompress the compressed files. The clients get exactly same size of the compressed file but they just can't uncompress it.

Here is what we have tried:

[1] We made sure that our clients issue "binary" command before they pull over the files,

[2] We tried with ftp clients like "ncftp", "wsftp" and "our good old normal ftp" but no success,

[3] We also tried all kind of compressions i.e. "gzip", '"compress", "zip", "bzip2" but no success.

[4] We tested and figured out that "uuencode" seems to work for these binary files but since it also increases the file size, our clients really hate that.

[5] Looks like the trouble happens with only big files (50Mb or more after compression). We tried with smaller compressed test cases but they all work (binary or ascii). That's what I call it inconsistency,

[6] This is strange: Gzipped files ftpd over to a linux box, give trouble on "gunzip" but when moved over to a windows machine, can successfully be uncompressed using "winzip". Since not all of my clients have windows machine, I can't ask them do the same..

[7] I know I could try with sftp/scp but the office legal system is not ready to give login access to outside clients. Hence that is possibly ruled out..

I was told that at times, this happens because of the extra checks that the ISP can put over the data. I am not sure what could be those to ask our ISP. They straight away put blame on us that we are doing something wrong. It was all working ok for 1 year. We are very sure, we haven't changed anything in our office setup in last 1 year.

Please help and plenty of thanks..
 
Old 10-08-2004, 09:43 AM   #2
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
Re: binary ftp trouble

this sounds quite quirky and possibly network related. The first thing I would do is start checking checksums or file hashes. use md5sum to generate a (unique) checksum on your file, then transfer. when you get the error, use md5sum on the other end and compare. if the checksums are the same, you're files are binary (i.e. bit-by-bit) identical.

maybe there is data being lost and this is being padded out with null/zero/random data?

that's what I'd be checking, since it eliminates the network from the equation.

HTH

ps - the md5 checksum won't give you truly (i.e. mathematically) unique responses. I think you could expect a collision (i.e. different inputs giving same output) once every billion years or something like that. it's small enough not to worry about, but not identically zero.
 
Old 10-14-2004, 11:51 PM   #3
anmsg
LQ Newbie
 
Registered: Oct 2004
Posts: 12

Original Poster
Rep: Reputation: 0
We did "md5 checksum" and it gives identical results. This, I actually expected because of the point [6] that I have raised in my posting.

It is very inconsistent since the same file to same client can sometime be received ok and at times not although everytime the file byte size is exactly same at his end!

We have also noticed quite a delays in login prompt to appear while doing ftp (This I have posted in separate thread). I am not sure if two are related. Additionally our clients tell me that they get intermittant hickups (stalls) after every 10-15 minutes for 20-30 seconds when they are connected to our ftp site. So, this is sure that the problem does not arise with 10-20Mb file. But we deal with like 400Mb files
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set binary mode as default in FTP ??? montylee Linux - Newbie 2 03-30-2009 08:05 AM
FTP Trouble. boardinglaxplr Debian 2 10-01-2004 09:34 PM
Trouble with FTP RaistlnMjr Linux - Newbie 15 10-13-2002 11:30 PM
perl NET::FTP binary mode lackluster Programming 5 07-18-2002 06:30 PM
Cannot ftp large binary files to SuSE 7.1 box dxterra Linux - Networking 2 03-06-2001 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration