zoukankan      html  css  js  c++  java
  • linux 带宽测试doc note

    #### 如何进行linux带宽测试
    5. how to test NetWidth :
    ###
    5.1 method1 to see (https://blog.csdn.net/Deronn/article/details/86682715):
    1.从github克隆包到本地
    # git clone https://github.com/sivel/speedtest-cli.git
    2.执行speedtest这个python脚本
    python speedtest.py
    ####

    5.2 method2 python test like following (#todo Suggest you use this!!!):
    安装命令:
    wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
    chmod a+x speedtest-cli
    运行命令:
    ./speedtest-cli

    ##
    5.3 method3,环境CentOS7_x86_64:(https://blog.51cto.com/13718210/2418661)
    a. 测试网络带宽常用命令(包含安装使用)
    yum -y install iperf
    b. 测试时记得关闭防火墙或者自行配置防火墙规则,为了快速测试,这里就直接关闭防火墙
    systemctl stop firewalld
    c. 安装完iperf后,在Server端执行
    #todo[root@110_152 ~] iperf -s -i 1 -f m
    -s表示server,-i表示显示时间间隔,-f表示显示格式化的单位
    打开第二台linux 作为client端,安装iperf执行:
    #todo[root@110_152 ~] iperf -c host_server_ip -i 1 -t 30 -f m
    -c表示客户端,后面接server的地址,-t代表运行的时间
    #todo [root@110_152 ~]# iperf -c 192.168.110.151 -i 1 -t 30 -f m
    ------------------------------------------------------------
    Client connecting to 192.168.110.151, TCP port 5001
    TCP window size: 0.18 MByte (default)
    ------------------------------------------------------------
    [ 3] local 192.168.110.152 port 50372 connected with 192.168.110.151 port 5001
    [ ID] Interval Transfer Bandwidth
    [ 3] 0.0- 1.0 sec 256 MBytes 2149 Mbits/sec
    [ 3] 1.0- 2.0 sec 277 MBytes 2325 Mbits/sec
    [ 3] 2.0- 3.0 sec 343 MBytes 2875 Mbits/sec
    [ 3] 3.0- 4.0 sec 394 MBytes 3308 Mbits/sec
    [ 3] 4.0- 5.0 sec 486 MBytes 4077 Mbits/sec
    #todo server 端 bandWidth:
    Server listening on TCP port 5001
    TCP window size: 0.08 MByte (default)
    ------------------------------------------------------------
    [ 4] local 192.168.110.151 port 5001 connected with 192.168.110.152 port 50372
    [ ID] Interval Transfer Bandwidth
    [ 4] 0.0- 1.0 sec 256 MBytes 2145 Mbits/sec
    [ 4] 1.0- 2.0 sec 277 MBytes 2325 Mbits/sec
    [ 4] 2.0- 3.0 sec 343 MBytes 2876 Mbits/sec
    [ 4] 3.0- 4.0 sec 397 MBytes 3330 Mbits/sec
    [ 4] 4.0- 5.0 sec 480 MBytes 4027 Mbits/sec
    [ 4] 5.0- 6.0 sec 324 MBytes 2721 Mbits/sec
    [ 4] 6.0- 7.0 sec 378 MBytes 3173 Mbits/sec
    [ 4] 7.0- 8.0 sec 292 MBytes 2447 Mbits/sec
    [ 4] 8.0- 9.0 sec 285 MBytes 2393 Mbits/sec
    [ 4] 9.0-10.0 sec 537 MBytes 4504 Mbits/sec
    [ 4] 10.0-11.0 sec 292 MBytes 2453 Mbits/sec
    [ 4] 11.0-12.0 sec 399 MBytes 3347 Mbits/sec



    ####
    6. todo we discuss email-address: 1932390299@qq.com to contact with us .
    The End ,Thanks!
    技术群:

  • 相关阅读:
    【oracle】约束之非空约束
    【oracle】操作表数据之修改和删除
    【oracle】操作表中的数据之添加
    HashMap和HashTable的比较
    java集合类-总纲
    性能测试工具篇(开源&商业)
    比较好的idea工具介绍
    根据mysql某一条记录生成对应实体类的初始化
    Spring+mybatis多数据源切换笔记
    Jmeter的Throughput和平均响应时间计算方法整理
  • 原文地址:https://www.cnblogs.com/SunshineKimi/p/12567415.html
Copyright © 2011-2022 走看看