android下netperf测试网卡网速能力

http://blog.csdn.net/kangear/article/details/42532315

terminal1:
$ sudo netserver -4 -L 0.0.0.0
Starting netserver with host '0.0.0.0' port '9991' and family AF_INET


terminal2:
$ sudo netperf -H 192.168.2.106 -l 60 -t TCP_STREAM
MIGRATED TCP Connect/Request/Response TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.2.103 (192.168.2.103) port 0 AF_INET : demo
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate         
bytes  Bytes  bytes    bytes   secs.    per sec   

16384  87380  64       64      60.00      20.86   
16384  87380 


Android WiFi(AP6330-SDIO)
-----------------------------------------------------------------------------------------------------
shell@android:/ # netperf -H 192.168.2.101 -l 60 -t TCP_STREAM
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.2.101 (192.168.2.101) port 0 AF_INET
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  


 87380 524288 524288    60.16      23.89   
shell@android:/ # 
------------------------------------------------------------------------------------------------------


Android Eth(RTL8152B-USB)
------------------------------------------------------------------------------------------------------
shell@android:/ # netperf -H 192.168.2.101 -l 60 -t TCP_STREAM                 
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.2.101 (192.168.2.101) port 0 AF_INET
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  


 87380 524288 524288    60.06      94.13   
shell@android:/ # 
------------------------------------------------------------------------------------------------------


Ubuntu Eth(RTL8152B-USB)
------------------------------------------------------------------------------------------------------
$ netperf -H 192.168.2.101 -l 60 -t TCP_STREAM 
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.2.101 (192.168.2.101) port 0 AF_INET : demo
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  


 87380  16384  16384    60.18      94.19   

-------------------------------------------------------------------------------------------------------


Ubuntu Eth(RTL818x)
------------------------------------------------------------------------------------------------------
$ netperf -H 192.168.2.101 -l 60 -t TCP_STREAM 
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.2.101 (192.168.2.101) port 0 AF_INET : demo
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  


 87380  16384  16384    60.22      94.18   

-------------------------------------------------------------------------------------------------------

你可能感兴趣的:(android下netperf测试网卡网速能力)