测试dpdk的时候不知道两台服务器带宽瓶颈是多少,打流量dpdk一直有丢包
测试一下带宽,按照带宽打
iperf -B 192.168.0.1 -s
Server listening on TCP port 5001
Binding to local address 192.168.0.1
TCP window size: 85.3 KByte (default)
这条命令的意思是,在192.168.0.1的这台服务器上,开启服务模式。
然后在192.168.0.2这台机器上执行如下命令:
iperf -c 192.168.0.1
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 16.0 KByte (default)
[ 3] local 192.168.0.2 port 16265 connected with 192.168.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 114 MBytes 94.8 Mbits/sec
以此类推,也可以测试出从192.168.0.1这台服务器到192.168.0.2这台服务器的网络带宽。
[ 4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 16265
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.1 sec 114 MBytes 95.2 Mbits/sec
由此,可以推断出,两台服务器之间为百兆带宽。