• FEP: iperf3


    #----------------------------------------------------------------------------------------
    测试 docker matrix, 获得 CPU, MEMORY, 网络性能的 统计信息
    #----------------------------------------------------------------------------------------
    ### docker: 5x5 matrix
    # (in Host)
    #-- log-stats-cpu-memory-5x5.txt 记录本轮实验 整个过程的 CPU, MEMORY 统计信息
    cd /mnt/vm_img/fep-irp-nougat/
    ./stats-cpu-memory.sh > log-stats-cpu-memory-5x5.txt
    
    #-- log_iperf3_25.txt 记录 ./fep-irp-auto-run-vbox-and-docker.sh, ./waf --run 启动的时间点
    cd /mnt/vm_img/fep-irp-nougat/
    /bin/rm log_iperf3_25.txt
    echo "==================================" >> log_iperf3_25.txt
    date +%H:%M:%S >> log_iperf3_25.txt
    echo "./fep-irp-auto-run-vbox-and-docker.sh create" >> log_iperf3_25.txt
    echo "==================================" >> log_iperf3_25.txt
    ./fep-irp-auto-run-vbox-and-docker.sh create 25 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    cd /mnt/vm_img/fep-irp-nougat/
    echo "==================================" >> log_iperf3_25.txt
    date +%H:%M:%S >> log_iperf3_25.txt
    echo "./waf --run scratch/fep-manet --vis &" >> log_iperf3_25.txt
    echo "==================================" >> log_iperf3_25.txt
    cd /opt/tools/network_simulators/ns3/ns-allinone-3.25/ns-3.25
    ./waf --run scratch/fep-manet-25-0 --vis &
    
    # (in docker-1)
    docker attach docker_1
    
    echo "==================================" >> log_iperf3_ser_25.txt
    date +%H:%M:%S >> log_iperf3_ser_25.txt
    echo "iperf3 -s -i 2" >> log_iperf3_ser_25.txt
    echo "==================================" >> log_iperf3_ser_25.txt
    iperf3 -s -i 2 >> log_iperf3_ser_25.txt
    
    # (in docker-25)
    docker attach docker_25
    
    echo "==================================" >> log_iperf3_cli_25.txt
    date +%H:%M:%S >> log_iperf3_cli_25.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 200K" >> log_iperf3_cli_25.txt
    echo "==================================" >> log_iperf3_cli_25.txt
    iperf3 -c 112.26.1.1 -i 2 -n 200K >> log_iperf3_cli_25.txt
    
    echo "==================================" >> log_iperf3_cli_25.txt
    date +%H:%M:%S >> log_iperf3_cli_25.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 400K" >> log_iperf3_cli_25.txt
    echo "==================================" >> log_iperf3_cli_25.txt
    iperf3 -c 112.26.1.1 -i 2 -n 400K >> log_iperf3_cli_25.txt
    
    echo "==================================" >> log_iperf3_cli_25.txt
    date +%H:%M:%S >> log_iperf3_cli_25.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 600K" >> log_iperf3_cli_25.txt
    echo "==================================" >> log_iperf3_cli_25.txt
    iperf3 -c 112.26.1.1 -i 2 -n 600K >> log_iperf3_cli_25.txt
    
    echo "==================================" >> log_iperf3_cli_25.txt
    date +%H:%M:%S >> log_iperf3_cli_25.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 800K" >> log_iperf3_cli_25.txt
    echo "==================================" >> log_iperf3_cli_25.txt
    iperf3 -c 112.26.1.1 -i 2 -n 800K >> log_iperf3_cli_25.txt
    
    echo "==================================" >> log_iperf3_cli_25.txt
    date +%H:%M:%S >> log_iperf3_cli_25.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 1000K" >> log_iperf3_cli_25.txt
    echo "==================================" >> log_iperf3_cli_25.txt
    iperf3 -c 112.26.1.1 -i 2 -n 1000K >> log_iperf3_cli_25.txt
    
    # (in Host)
    ./fep-irp-auto-run-vbox-and-docker.sh destroy 25 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    #---------------------------------------------------------
    ### docker: 10x10 matrix
    # (in Host)
    #-- log-stats-cpu-memory-10x10.txt 记录本轮实验 整个过程的 CPU, MEMORY 统计信息
    cd /mnt/vm_img/fep-irp-nougat/
    ./stats-cpu-memory.sh > log-stats-cpu-memory-10x10.txt
    
    #-- log_iperf3_100.txt 记录 ./fep-irp-auto-run-vbox-and-docker.sh, ./waf --run 启动的时间点
    cd /mnt/vm_img/fep-irp-nougat/
    /bin/rm log_iperf3_100.txt
    echo "==================================" >> log_iperf3_100.txt
    date +%H:%M:%S >> log_iperf3_100.txt
    echo "./fep-irp-auto-run-vbox-and-docker.sh create" >> log_iperf3_100.txt
    echo "==================================" >> log_iperf3_100.txt
    ./fep-irp-auto-run-vbox-and-docker.sh create 100 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    cd /mnt/vm_img/fep-irp-nougat/
    echo "==================================" >> log_iperf3_100.txt
    date +%H:%M:%S >> log_iperf3_100.txt
    echo "./waf --run scratch/fep-manet --vis &" >> log_iperf3_100.txt
    echo "==================================" >> log_iperf3_100.txt
    cd /opt/tools/network_simulators/ns3/ns-allinone-3.25/ns-3.25
    ./waf --run scratch/fep-manet-100-0 --vis &
    
    # (in docker-1)
    docker attach docker_1
    
    echo "==================================" >> log_iperf3_ser_100.txt
    date +%H:%M:%S >> log_iperf3_ser_100.txt
    echo "iperf3 -s -i 2" >> log_iperf3_ser_100.txt
    echo "==================================" >> log_iperf3_ser_100.txt
    iperf3 -s -i 2 >> log_iperf3_ser_100.txt
    
    # (in docker-100)
    docker attach docker_100
    
    echo "==================================" >> log_iperf3_cli_100.txt
    date +%H:%M:%S >> log_iperf3_cli_100.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 200K" >> log_iperf3_cli_100.txt
    echo "==================================" >> log_iperf3_cli_100.txt
    iperf3 -c 112.26.1.1 -i 2 -n 200K >> log_iperf3_cli_100.txt
    
    echo "==================================" >> log_iperf3_cli_100.txt
    date +%H:%M:%S >> log_iperf3_cli_100.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 400K" >> log_iperf3_cli_100.txt
    echo "==================================" >> log_iperf3_cli_100.txt
    iperf3 -c 112.26.1.1 -i 2 -n 400K >> log_iperf3_cli_100.txt
    
    echo "==================================" >> log_iperf3_cli_100.txt
    date +%H:%M:%S >> log_iperf3_cli_100.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 600K" >> log_iperf3_cli_100.txt
    echo "==================================" >> log_iperf3_cli_100.txt
    iperf3 -c 112.26.1.1 -i 2 -n 600K >> log_iperf3_cli_100.txt
    
    echo "==================================" >> log_iperf3_cli_100.txt
    date +%H:%M:%S >> log_iperf3_cli_100.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 800K" >> log_iperf3_cli_100.txt
    echo "==================================" >> log_iperf3_cli_100.txt
    iperf3 -c 112.26.1.1 -i 2 -n 800K >> log_iperf3_cli_100.txt
    
    echo "==================================" >> log_iperf3_cli_100.txt
    date +%H:%M:%S >> log_iperf3_cli_100.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 1000K" >> log_iperf3_cli_100.txt
    echo "==================================" >> log_iperf3_cli_100.txt
    iperf3 -c 112.26.1.1 -i 2 -n 1000K >> log_iperf3_cli_100.txt
    
    # (in Host)
    ./fep-irp-auto-run-vbox-and-docker.sh destroy 100 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    #---------------------------------------------------------
    ### docker: 15x15 matrix
    # (in Host)
    #-- log-stats-cpu-memory-15x15.txt 记录本轮实验 整个过程的 CPU, MEMORY 统计信息
    cd /mnt/vm_img/fep-irp-nougat/
    ./stats-cpu-memory.sh > log-stats-cpu-memory-15x15.txt
    
    #-- log_iperf3_225.txt 记录 ./fep-irp-auto-run-vbox-and-docker.sh, ./waf --run 启动的时间点
    cd /mnt/vm_img/fep-irp-nougat/
    /bin/rm log_iperf3_225.txt
    echo "==================================" >> log_iperf3_225.txt
    date +%H:%M:%S >> log_iperf3_225.txt
    echo "./fep-irp-auto-run-vbox-and-docker.sh create" >> log_iperf3_225.txt
    echo "==================================" >> log_iperf3_225.txt
    ./fep-irp-auto-run-vbox-and-docker.sh create 225 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    cd /mnt/vm_img/fep-irp-nougat/
    echo "==================================" >> log_iperf3_225.txt
    date +%H:%M:%S >> log_iperf3_225.txt
    echo "./waf --run scratch/fep-manet --vis &" >> log_iperf3_225.txt
    echo "==================================" >> log_iperf3_225.txt
    cd /opt/tools/network_simulators/ns3/ns-allinone-3.25/ns-3.25
    ./waf --run scratch/fep-manet-225-0 --vis &
    
    # (in docker-1)
    docker attach docker_1
    
    echo "==================================" >> log_iperf3_ser_225.txt
    date +%H:%M:%S >> log_iperf3_ser_225.txt
    echo "iperf3 -s -i 2" >> log_iperf3_ser_225.txt
    echo "==================================" >> log_iperf3_ser_225.txt
    iperf3 -s -i 2 >> log_iperf3_ser_225.txt
    
    # (in docker-225)
    docker attach docker_225
    
    echo "==================================" >> log_iperf3_cli_225.txt
    date +%H:%M:%S >> log_iperf3_cli_225.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 200K" >> log_iperf3_cli_225.txt
    echo "==================================" >> log_iperf3_cli_225.txt
    iperf3 -c 112.26.1.1 -i 2 -n 200K >> log_iperf3_cli_225.txt
    
    echo "==================================" >> log_iperf3_cli_225.txt
    date +%H:%M:%S >> log_iperf3_cli_225.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 400K" >> log_iperf3_cli_225.txt
    echo "==================================" >> log_iperf3_cli_225.txt
    iperf3 -c 112.26.1.1 -i 2 -n 400K >> log_iperf3_cli_225.txt
    
    echo "==================================" >> log_iperf3_cli_225.txt
    date +%H:%M:%S >> log_iperf3_cli_225.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 600K" >> log_iperf3_cli_225.txt
    echo "==================================" >> log_iperf3_cli_225.txt
    iperf3 -c 112.26.1.1 -i 2 -n 600K >> log_iperf3_cli_225.txt
    
    echo "==================================" >> log_iperf3_cli_225.txt
    date +%H:%M:%S >> log_iperf3_cli_225.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 800K" >> log_iperf3_cli_225.txt
    echo "==================================" >> log_iperf3_cli_225.txt
    iperf3 -c 112.26.1.1 -i 2 -n 800K >> log_iperf3_cli_225.txt
    
    echo "==================================" >> log_iperf3_cli_225.txt
    date +%H:%M:%S >> log_iperf3_cli_225.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 1000K" >> log_iperf3_cli_225.txt
    echo "==================================" >> log_iperf3_cli_225.txt
    iperf3 -c 112.26.1.1 -i 2 -n 1000K >> log_iperf3_cli_225.txt
    
    # (in Host)
    ./fep-irp-auto-run-vbox-and-docker.sh destroy 225 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    #---------------------------------------------------------
    ### docker: 20x20 matrix
    # (in Host)
    #-- log-stats-cpu-memory-20x20.txt 记录本轮实验 整个过程的 CPU, MEMORY 统计信息
    cd /mnt/vm_img/fep-irp-nougat/
    ./stats-cpu-memory.sh > log-stats-cpu-memory-20x20.txt
    
    #-- log_iperf3_400.txt 记录 ./fep-irp-auto-run-vbox-and-docker.sh, ./waf --run 启动的时间点
    cd /mnt/vm_img/fep-irp-nougat/
    /bin/rm log_iperf3_400.txt
    echo "==================================" >> log_iperf3_400.txt
    date +%H:%M:%S >> log_iperf3_400.txt
    echo "./fep-irp-auto-run-vbox-and-docker.sh create" >> log_iperf3_400.txt
    echo "==================================" >> log_iperf3_400.txt
    ./fep-irp-auto-run-vbox-and-docker.sh create 400 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    cd /mnt/vm_img/fep-irp-nougat/
    echo "==================================" >> log_iperf3_400.txt
    date +%H:%M:%S >> log_iperf3_400.txt
    echo "./waf --run scratch/fep-manet --vis &" >> log_iperf3_400.txt
    echo "==================================" >> log_iperf3_400.txt
    cd /opt/tools/network_simulators/ns3/ns-allinone-3.25/ns-3.25
    ./waf --run scratch/fep-manet-400-0 --vis &
    
    # (in docker-1)
    docker attach docker_1
    
    echo "==================================" >> log_iperf3_ser_400.txt
    date +%H:%M:%S >> log_iperf3_ser_400.txt
    echo "iperf3 -s -i 2" >> log_iperf3_ser_400.txt
    echo "==================================" >> log_iperf3_ser_400.txt
    iperf3 -s -i 2 >> log_iperf3_ser_400.txt
    
    # (in docker-400)
    docker attach docker_400
    
    echo "==================================" >> log_iperf3_cli_400.txt
    date +%H:%M:%S >> log_iperf3_cli_400.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 200K" >> log_iperf3_cli_400.txt
    echo "==================================" >> log_iperf3_cli_400.txt
    iperf3 -c 112.26.1.1 -i 2 -n 200K >> log_iperf3_cli_400.txt
    
    echo "==================================" >> log_iperf3_cli_400.txt
    date +%H:%M:%S >> log_iperf3_cli_400.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 400K" >> log_iperf3_cli_400.txt
    echo "==================================" >> log_iperf3_cli_400.txt
    iperf3 -c 112.26.1.1 -i 2 -n 400K >> log_iperf3_cli_400.txt
    
    echo "==================================" >> log_iperf3_cli_400.txt
    date +%H:%M:%S >> log_iperf3_cli_400.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 600K" >> log_iperf3_cli_400.txt
    echo "==================================" >> log_iperf3_cli_400.txt
    iperf3 -c 112.26.1.1 -i 2 -n 600K >> log_iperf3_cli_400.txt
    
    echo "==================================" >> log_iperf3_cli_400.txt
    date +%H:%M:%S >> log_iperf3_cli_400.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 800K" >> log_iperf3_cli_400.txt
    echo "==================================" >> log_iperf3_cli_400.txt
    iperf3 -c 112.26.1.1 -i 2 -n 800K >> log_iperf3_cli_400.txt
    
    echo "==================================" >> log_iperf3_cli_400.txt
    date +%H:%M:%S >> log_iperf3_cli_400.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 1000K" >> log_iperf3_cli_400.txt
    echo "==================================" >> log_iperf3_cli_400.txt
    iperf3 -c 112.26.1.1 -i 2 -n 1000K >> log_iperf3_cli_400.txt
    
    # (in Host)
    ./fep-irp-auto-run-vbox-and-docker.sh destroy 400 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    #---------------------------------------------------------
    ### docker: 25x25 matrix
    # (in Host)
    #-- log-stats-cpu-memory-25x25.txt 记录本轮实验 整个过程的 CPU, MEMORY 统计信息
    cd /mnt/vm_img/fep-irp-nougat/
    ./stats-cpu-memory.sh > log-stats-cpu-memory-25x25.txt
    
    #-- log_iperf3_625.txt 记录 ./fep-irp-auto-run-vbox-and-docker.sh, ./waf --run 启动的时间点
    cd /mnt/vm_img/fep-irp-nougat/
    /bin/rm log_iperf3_625.txt
    echo "==================================" >> log_iperf3_625.txt
    date +%H:%M:%S >> log_iperf3_625.txt
    echo "./fep-irp-auto-run-vbox-and-docker.sh create" >> log_iperf3_625.txt
    echo "==================================" >> log_iperf3_625.txt
    ./fep-irp-auto-run-vbox-and-docker.sh create 625 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    
    cd /mnt/vm_img/fep-irp-nougat/
    echo "==================================" >> log_iperf3_625.txt
    date +%H:%M:%S >> log_iperf3_625.txt
    echo "./waf --run scratch/fep-manet --vis &" >> log_iperf3_625.txt
    echo "==================================" >> log_iperf3_625.txt
    cd /opt/tools/network_simulators/ns3/ns-allinone-3.25/ns-3.25
    ./waf --run scratch/fep-manet-625-0 --vis &
    
    # (in docker-1)
    docker attach docker_1
    
    echo "==================================" >> log_iperf3_ser_625.txt
    date +%H:%M:%S >> log_iperf3_ser_625.txt
    echo "iperf3 -s -i 2" >> log_iperf3_ser_625.txt
    echo "==================================" >> log_iperf3_ser_625.txt
    iperf3 -s -i 2 >> log_iperf3_ser_625.txt
    
    # (in docker-625)
    docker attach docker_625
    
    echo "==================================" >> log_iperf3_cli_625.txt
    date +%H:%M:%S >> log_iperf3_cli_625.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 200K" >> log_iperf3_cli_625.txt
    echo "==================================" >> log_iperf3_cli_625.txt
    iperf3 -c 112.26.1.1 -i 2 -n 200K >> log_iperf3_cli_625.txt
    
    echo "==================================" >> log_iperf3_cli_625.txt
    date +%H:%M:%S >> log_iperf3_cli_625.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 400K" >> log_iperf3_cli_625.txt
    echo "==================================" >> log_iperf3_cli_625.txt
    iperf3 -c 112.26.1.1 -i 2 -n 400K >> log_iperf3_cli_625.txt
    
    echo "==================================" >> log_iperf3_cli_625.txt
    date +%H:%M:%S >> log_iperf3_cli_625.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 600K" >> log_iperf3_cli_625.txt
    echo "==================================" >> log_iperf3_cli_625.txt
    iperf3 -c 112.26.1.1 -i 2 -n 600K >> log_iperf3_cli_625.txt
    
    echo "==================================" >> log_iperf3_cli_625.txt
    date +%H:%M:%S >> log_iperf3_cli_625.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 800K" >> log_iperf3_cli_625.txt
    echo "==================================" >> log_iperf3_cli_625.txt
    iperf3 -c 112.26.1.1 -i 2 -n 800K >> log_iperf3_cli_625.txt
    
    echo "==================================" >> log_iperf3_cli_625.txt
    date +%H:%M:%S >> log_iperf3_cli_625.txt
    echo "iperf3 -c 112.26.1.1 -i 2 -n 1000K" >> log_iperf3_cli_625.txt
    echo "==================================" >> log_iperf3_cli_625.txt
    iperf3 -c 112.26.1.1 -i 2 -n 1000K >> log_iperf3_cli_625.txt
    
    # (in Host)
    ./fep-irp-auto-run-vbox-and-docker.sh destroy 625 0 centos-fep-irp lineage-irp- /mnt/vm_img/fep-irp-nougat
    #----------------------------------------------------------------------------------------
    


  • 相关阅读:
    Android Studio轻松上手指南(1)
    在MyEclipse下创建Java Web项目 入门(图文并茂)经典教程
    opencv提取截获图像(总结摘来)
    10.正则表达式匹配
    遍历 Map 的方式
    09.回文数
    08.字符串转换位整数
    07.整数反转
    06. Z字型变换
    05. 求最长回文子串
  • 原文地址:https://www.cnblogs.com/ztguang/p/12644769.html
Copyright © 2020-2023  润新知