How Fast is TCP/IP on K70 under uClinux? Print

 

As a very rough estimate for the TCP performance of K70 running uClinux, here is the output of the ftpget and the ftpput commands transferring a file between K70 and a host in a local network:

~ # busybox time ftpget 172.17.0.212 test.dat pub/test.dat
real 0m 1.61s
user 0m 0.00s
sys  0m 1.60s
~ # busybox time ftpput 172.17.0.212 pub/test1.dat test.dat
real 0m 2.09s
user 0m 0.00s
sys  0m 2.08s
~ # ls -l test.dat
-rw-r--r--    1 root     root       9605408 Jan  1 00:00 test.dat
~ #

Processing the above results, we get the following TCP performance figures: 9605408/1.61 = 5966 KB/sec for ftpget and 9605408/2.09 = 4596 KB/sec for ftpput.

As an estimate of the UDP performance, here is the output of the cp command transferring the same file from an NFS-host to the K70:

~ # mount -o nolock 172.17.0.212:/opt/tmp /mnt
~ # busybox time cp /mnt/test.dat /
real 0m 1.76s
user 0m 0.01s
sys  0m 1.65s
~ #

Processing the above results, we get the following UDP performance figure: 9605408/1.76 = 5458 KB/sec.

The test was run on Emcraft Systems' K70 system-on-module (SOM) connected to a 100Mb Ethernet hub. The SOM provides an Ethernet 10/100Mb interface using an on-module Ethernet PHY.