8 points · by RiderOfGiraffes · 16y ago · 9 comments
I have two machines separated by a network connection that only supports UDP. The network is heavily loaded, but I can put a few packets per second on it, perhaps up to 10. I need to reliably copy a file from one machine to the other.
I don't have RDP (who does!) and I don't want (or need) to replicate all of TCP.
Any suggestions?
Google should yield many results and more info.
If the connection is mostly reliable (just slow) you shouldn't have to chew up a lot of wasted packets with error-correction data.
Send lots of packets, bit the first bit of each packet is an error corrected byte of the file to be transmitted. Then if a packet gets lost I simply make up a random one and let the error correction deal with it.
If I use 2 bit correction then I can lose two packets and still have uncorrupted transmission.
Hmm.
I still need to know how many packets I expect, how big the file is, and some sort of checksum to ensure that I haven't error "corrected" to the wrong value anywhere. It seems very complex compared with just a simple re-try of packets that haven't arrived. Advantage is that it's forward only, but that doesn't help much since I do have a two-way connection.
I'll think about that though, because although it's non-obvious, I can see that it does potentially have advantages.
Not necessarily in this specific case, though.
It looks like I'll implement something similar to FSP - there doesn't seem to be anything like what I need "off-the-shelf"
Much appreciation to those who replied - I've learned a lot that may be useful.
KDX is also UDP based for file transfers, but I don't know if it's OSS or not.