I use Netcat once in a while to copy files or disk images over the network. While it does the job I always felt like it was always on the slow sluggy side regardless of using ssh, no ssh, compression or no compression.
I have started testing out udpcast (http://www.udpcast.linux.lu/cmd.html) and it seems to be at least 5 times (or more) faster. Udpcast with compressed pipes are sometimes many times faster than netcat with no compressed pipes.Compression with Nc is generally slows down over my local network so I generally avoid it. Because my network is generally running at 1gbs
Here are couple examples without ssh and no compression I use
dd if=somedisk |pv|nc -l -p 9999 nc networkaddr 9999|pv >./disk.img udp-sender --full-duplex --file /dev/somedisk udp-receiver --file ./disk.img
These are some basic examples I use. Naturally I use compressed pipes too. In all cases udpcast will out perform min 5x speeds Netcat and I am wondering about why that is the case.
I am even inclined to think that Udpcast with pipes is good compliment for network file transfer.
Here udpcast with tar and untar pipe for 17.5 GiB over the network
And here is cp over Samba from Linux to Windows
Is it possible to catch the Udpcast performance with Netcat?
The reason I am asking sometimes some distro might now offer Udpcast.