Ping test in serial link

Calculate upload/download speed by ping

1
$ ping -f -c 10000 -s 1472 10.100.100.100

At the end of the result i get: round-trip min/avg/max/stddev = 0.174/0.219/2.078/0.020 ms
so in average it takes 0.219 ms to send 1500 bytes and receive 1500 bytes, that’s 24 kb. 24 kb / 0.219 ms = 110 Mb/s
If you want to use that to a server on the internet, you need to lower the packet size to something like 1464 (for MTU 1492), drop the -f option and lower the count so it won’t take too long to finish.

1500 TX Bytes + 1500 RX Bytes= 3000 Bytes = 3000 * 8 = 24000 bits
24000 / 0.219 = 109.589 Mb/s

It ‘s not represent full throughput. just test single link in your ethernet adapter. not parallel.