netperf 测试容器到节点网络
2017-04-27 22:32:34
213青年
  • 访问次数: 2
  • 注册日期: 2017-04-27
  • 最后登录: 2017-04-27

测试UDP-STREAM

测试方法在节点建立一个容器作为测试client段,节点作为server测试netperf

/usr/local/bin/netperf -t UDP_STREAM  -H 192.168.0.110

[root@18425481d328 sbin]# /usr/local/bin/netperf -t UDP_STREAM  -H 192.168.0.110
MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.110 () port 0 AF_INET
send_data: data send error: Network is unreachable (errno 101)

netperf: send_omni: send_data failed: Network is unreachable

其余数据正常测试

[root@18425481d328 sbin]# /usr/local/bin/netperf -H 192.168.0.110 -l 60  
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.110 () port 0 AF_INET
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  

 87380  16384  16384    60.00    18346.32   
[root@18425481d328 sbin]# /usr/local/bin/netperf -t TCP_RR -H 192.168.0.110             
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.110 () port 0 AF_INET : first burst 0
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate         
bytes  Bytes  bytes    bytes   secs.    per sec   

16384  87380  1        1       10.00    81527.46   
16384  87380
[root@18425481d328 sbin]# /usr/local/bin/netperf -t UDP_RR -H 192.168.0.110
MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.110 () port 0 AF_INET : first burst 0
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate         
bytes  Bytes  bytes    bytes   secs.    per sec   

212992 212992 1        1       10.00    92547.27   
212992 212992
[root@18425481d328 sbin]# /usr/local/bin/netperf -t TCP_CRR -H 192.168.0.110
MIGRATED TCP Connect/Request/Response TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.110 () port 0 AF_INET
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate         
bytes  Bytes  bytes    bytes   secs.    per sec   

16384  87380  1        1       10.00    3127.91   
16384  87380




213青年 最后编辑, 2017-04-27 22:34:38