zoukankan      html  css  js  c++  java
  • How to use iperf over mininet ? -- gnuplot


    http://csie.nqu.edu.tw/smallko/sdn/iperf_mininet.htm


    [Description]

       In this lab, I will show howto use iperf to do basic performance evaluation over mininet. Also, I will usesimple shell script to get the evaluation results and then use gnuplot to drawthe graph.

    [Operations].

    1. Create one switch and two hostsenvironment.

    2. use xterm to open windows for h1 and h2

    3. Basic TCP transmission evaluation.

    3.1 Start the TCP server (-s) at h2 withport 5566 (-p). Also, monitor the results every one second (-i). Note: thedefault setting is using TCP.

    3.2 Start the TCP client (-c) at h1. Also,set the transmission duration (-t) to 15 seconds. Note: after -c, you need tospecify the server ip address.

    3.3. Results.

    results at h1. (From 0~15 seconds, theaverage throughput is 14.2 Gbps)

    results at h2. (The following figure showsthe throughput every second)

    3.4 If we want to draw the throughputgraph, we need to do the evaluation again. But this time, we need to save theresult into a file. Then do some post-processing. After that, use gnuplot todraw the graph.

    3.4.1 start the iperf server again. (use> to redirect the results to "result" file)

    3.5. do the post-processing to get the datafor plotting. (| grep sec: reserve the line containing "sec"; head-15: from beginning, get the first 15 lines(1~15 seconds); tr - " ":using " " to replace "-";  awk '{print $4, $8}: getthe 4th and 8th columns)

    The final results: the first column istime, and the second column is throughput.

    3.6 use gnuplot to draw the graph. (Installgnuplot if needed)

    start gnuplot. [plot "new_result"title "tcp flow" with linespoints"] is draw the graph using datain new_result file.

    save the graph into result.gif

    exit the gnuplot program.

    4. Basic UDP transmission evaluation.

    4.1 Start the UDP (-u) server (-s) at h2with port 5566 (-p). Also, monitor the results every one second (-i).

    4.2 Start the UDP (-u) client (-c) at h1.Also, set the transmission duration (-t) to 15 seconds. Note: after -c, youneed to specify the server ip address. Also, you can use -b to specify thesending rate.

    4.3 Results.

    4.4 use similar shell script to get thedata and draw the figure. (Please do it by yourself.)

    Dr. Chih-Heng Ke

    Department of Computer Scienceand Information Engineering, National Quemoy University, Kinmen, Taiwan

    Email: smallko@gmail.com


  • 相关阅读:
    springcloud(九):熔断器Hystrix和Feign的应用案例
    springcloud(八):熔断器Hystrix
    springcloud(七): 使用Feign调用Eureka Server客户端服务
    springcloud(六):给Eureka Server服务器端添加用户认证
    springcloud(六):Eureka提供数据的客户端连接Docker的mysql
    Live Reload
    localStorage eval script
    javascript AOP
    如何设置让SFTP的用户限制在某个目录下
    整站下载器
  • 原文地址:https://www.cnblogs.com/ztguang/p/12644959.html
Copyright © 2011-2022 走看看