So I needed a handy, low overhead way to test bandwidth between myself and a remote server. SCP was handy and was able to give me a relative thumbs up or down, but the overhead distorted the figures. dd and netcat to the rescue.
Open socket on machine “A”
while [ True ]; do nc -v -l 2222 > ddTest; done
Push a file from machine “B” to machine “A”
dd if=/dev/zero bs=50M count=1 | nc <ip of machine A> 2222
This is a personal website. Unless otherwise stated, the content and opinions expressed here are my own and not those of my employer.