iperf测试局域网网速(集群IO网速)

    科技2025-07-07  16

    因为需要估算集群中的节点数量,所以首先需要知道集群节点之间的IO带宽

    # apt install iperf firewalld

    # firewall-cmd --state

    # systemctl stop firewalld.service(这个是客户端需要)

     

    端局域网域名输入的命令客户端Desktop 服务端Laptopiperf -s

     

    Desktop运行结果:

    (Python3.6) appleyuchi@Desktop:~$ iperf -c Laptop ------------------------------------------------------------ Client connecting to Laptop, TCP port 5001 TCP window size:  238 KByte (default) ------------------------------------------------------------ [  3] local 192.168.0.102 port 42184 connected with 192.168.0.103 port 5001 [ ID] Interval       Transfer     Bandwidth [  3]  0.0-10.1 sec  81.2 MBytes  67.8 Mbits/sec  

     

    Laptop运行结果:

    (Python3.6) appleyuchi@Laptop:~$ iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size:  128 KByte (default) ------------------------------------------------------------ [  4] local 192.168.0.103 port 5001 connected with 192.168.0.102 port 42184 [ ID] Interval       Transfer     Bandwidth [  4]  0.0-10.2 sec  81.2 MBytes  66.6 Mbits/sec

    Processed: 0.009, SQL: 8