Slashdot Mirror


Guaranteed Transmission Protocols For Windows?

Michael writes "Part of our business at my work involves transferring mission critical files across a 2 mbit microwave connection, into a government-run telecommunications center with a very dodgy internal network and then finally to our own server inside the center. The computers at both ends run Windows. What sort of protocols or tools are available to me that will guarantee to get the data transferred across better than a straight Windows file system copy? Since before I started working here, they've been using FTP to upload the files, but many times the copied files are a few kilobytes smaller than the originals."

19 of 536 comments (clear)

  1. Robocopy? by wafath · · Score: 5, Insightful
    1. Re:Robocopy? by Malc · · Score: 3, Insightful

      It might be using Windows copy protocols, but it definitely is not like copy/paste. It's restartable for instance. It's way more reliable.

      We have to copy large files to our office in China. FTP always fails. Windows copy via Explorer often fails, but it is also incredibly painful to do when latency is high and one is browsing over the network. Robocopy (depending on system setup) will motor through and is very persistent when there's a connection hiccup. You definitely want restartability if you copy large files are a couple of hundred MB an hour.

      I'd say make sure to break the files up in to chunks if they're large. Also, run 2-4 robocopies in parallel if the latency is high as this will give better throughput. It can do funny things to Windows though (maybe other things wait on some network handle and seem to freeze until one of the robocopy processes moves on to the next file).

      Also, consider doing it over a Cisco VPN. It seems to add some robustness if there is packet loss. I often had trouble access servers in the US when I was living in China due to packet loss, but no such problem over a VPN (zero packet loss, but very slow instead, which is better).

  2. domyjobforme tag by EmagGeek · · Score: 2, Insightful

    I love it! Haha... that's probably one of the better tags I've seen.

    1. Re:domyjobforme tag by Anonymous Coward · · Score: 3, Insightful

      Too easily thrown around if you ask me. He's not looking for anyone to set it up, he just wants some options. Isn't that what community is about?

  3. BitTorrent by Inf0phreak · · Score: 4, Insightful

    I'd say BitTorrent -- with firewall rules or some other measure so random people can't see your microscopic swarm. It uses SHA-1 hashes of chunks, so if a torrent client says a file downloaded successfully it's pretty much guaranteed to be true.

    --
    ________
    Entranced by anime since late summer 2001 and loving it ^_^
  4. rsync should do the trick by bacchu_anjan · · Score: 5, Insightful

    hi there,

        why don't you get cygwin on both the systems and then do a rsync ?

        between your own network, you might want to use robocopy(http://en.wikipedia.org/wiki/Robocopy).

    BR,
    ~A

  5. Line endings! by sys.stdout.write · · Score: 5, Insightful

    they've been using FTP to upload the files, but many times the copied files are a few kilobytes smaller than the originals

    Twenty bucks says you're converting from Windows line endings (/n/r) to Linux line endings (/n).

    Use binary mode and you'll be fine.

  6. Re:TCP? by Anonymous Coward · · Score: 5, Insightful

    TCP has timeouts. The FTP client and server probably have timeouts. Eventually, some bit of the system will decide the operation is taking too long and give up. The FTP client is probably reporting an error, but if it's driven by a poor script no-one will know.

  7. Re:TCP? by AvitarX · · Score: 4, Insightful

    I bet it is file systems with different block sizes rounding slightly differently, and an OP that does not understand.

    --
    Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
  8. Re:TCP? by mini+me · · Score: 2, Insightful

    FTP, while in ASCII mode, can try to translate line endings. If the carriage returns were removed, in order to be UNIX compatible, the file size would have been reduced.

    Most FTP clients allow the enabling of a binary mode which prevents the conversion from happening.

  9. You're kidding, aren't you?? by ballyhoo · · Score: 5, Insightful

    You are kidding about this, aren't you?

    Let me get the facts straight:

    - you have "mission critical files", and the network you're transferring them over is so incredibly badly managed that it doesn't support reliable data transfer
    - you want a technical workaround for this brokenness.

    If this is the case, you don't have a technical problem on your hands; you have a political one.

    "Mission critical" has a meaning: it means critical to the success of the operation. I.e. without these files, your operation or someone else's operation will fail.

    If your management believes that your files are "mission critical", and you're facing a problem of this sort, you need to document the difficulties you're having, along with measurements to support your claims and then make a clear statement that as long as your network path is completely broken, you are absolving yourself of responsiblility for the correct transmission of these files.

    If your management doesn't do anything about this, then the files are not "mission critical".

    1. Re:You're kidding, aren't you?? by Dravik · · Score: 3, Insightful

      Mission critical means that you need to get it done even if someone else isn't getting their job done. Standing around in a huff and stomping your feet means that the mission critical information isn't getting moved. What he needs to do is find a way to accomplish his mission despite the difficulties, and then document the problems so they can be addressed.

      --
      The purpose of language is communication, If the idea is clear the grammar ain't important
    2. Re:You're kidding, aren't you?? by eap · · Score: 2, Insightful

      I think you missed the part about the government being involved

  10. Re:TCP? by rezalas · · Score: 2, Insightful

    With the network being as questionable as stated, I can only wonder what part of the network is causing it to be unreliable. Usually if the entire network as issues then you are probably talking about everything in the office coming back to a switch panel and a faulty switch. If only certain transfers from point to point are commonly failing then you probably have wiring issues. In either a hardware or medium case, you need to be fixing the network instead of finding workarounds. Working with the network Admin for the facility to detect the source of the issue should be a two - three hour task at most. Save yourself time in the future and spend the bulk time now to fix the real problem.

  11. Re:TCP? by SnarfQuest · · Score: 2, Insightful

    Binary verses text mode?
    Lousy windows file system screwing up on one or the other end.
    Sparse files.
    Windows "fixing" the data during transmission.
    Loss of packets, and no error checking.
    Windows.

    --
    Who would win this election: Andrew Weiner vs Andrew Weiner's weiner.
  12. SSHFS by cenc · · Score: 2, Insightful

    I use sshfs file mounts for all office document file sharing and such, not just one time transfers. SSH encryption security, with the ability to open and edit files over the network. No goofing around with samba or windows file sharing. Regardless, some sort of ssh or sftp at least.

    Not sure about getting it to work on windows, but there should be some options.

  13. Re:Any encrypted transmission protocol actually by link-error · · Score: 5, Insightful

    Wrong. FTP has a binary mode. This is probably the reason his files are missing several k at the destination. Sending a binary file in ascii mode is the ONLY TIME I've ever had a file not transfer entirely/correctly using FTP. Unless of course there is a network error/timeout, etc, but the FTP client always errored out in those cases. Using SFTP over an already secure network will only slow things down greatly.

    --
    -Unresolved symbol? Byte me!
  14. Z-Modem FTW! by Cytotoxic · · Score: 5, Insightful

    Crappy connection? Resumable transfers? Slow connections? Sounds like the good old BBS days!

    Z-modem is your answer.

  15. Re:UDP. by TheTurtlesMoves · · Score: 2, Insightful

    Well I find it nice to have a tar.bz2 file in the same order, and all of it. So you need to add "sequence" numbers and some form of ACKs in there. All you are doing is moving this function to the application rather than leaving in the stack.

    TCP does this pretty well on 99% of the internet *and* the internet is aware of TCP. Its only very "different" connections that things can make a real difference. AKA the microwave link. Though we have wrapped the link with specific hardware/software layer that lets IP work well over it in our cases.

    Also when people "roll" their own "superior" UDP transfer protocol, many don't bother to check why TCP does what it does. Flow control is *needed* with ACKs and resends --well any connection, buffers are not infinitely big. There is the 2 generals problem etc. Its not as strait forward as many think.

    --
    The Grey Goo disaster happened 3 billion years ago. This rock is covered in self replicating machines!