dd utility just quits -- attempting to test same network speeds.

I was not sure if I should have posted in this thread or start a new one... related == https://forums.freebsd.org/threads/how-to-use-dd-correctly.93207/

I'm trying to figure out why I'm not getting my full 1gib network speed between machines on my home network. I have two machines with freeBSD 14.1. I'm following this article about using nc and dd to test a transmission. === http://www.unibia.com/unibianet/freebsd/network-speed-test-freebsd

So I set the server to listen with nc -l 12345 | wc -c and laptop client to send with dd if=/dev/zero bs=1048576 count=1024 | nc -N X.X.X.X 12345 as per the article and the dd on the client just quits after a while with no output... just back to prompt. I see if I shrink the blocksize from 1 MB to a 1 KB it doesn't die. The Server is a 6th gen machine and the Client is a junk laptop I got used for cheap.... just to play with FBSD on... but it runs fine. Dual boots windows 10 (or 11) and I swapped the HDD with an SSD.

Any guidance on what could be going on?


PS... yes I am putting the correct IP address in place of the X.X.X.X. It works with small blocksize.
 
there are text/binary and block reason why it fails with nc as a sink. As VladiBG mentioned, use iperf instead. You won't pull out as much hair.

Also, using nc and dd for measuring network bandwidth is haphazard because your mind wants to consider the test as a single exclusive non-blocking operation, but in reality there will be stuff going on behind the scenes that will screw with your metrics.
 
Back
Top