• 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


  • 相关阅读:
    flume未解之谜
    flume source,sinks类型官方翻译
    flume-event类
    flume课件(连)
    source监控端口,telnet写入此端口。sinks指定目录,文件以默认时间滚动生成
    linux命令拾遗
    nginx内置变量
    nginx.conf
    hive事物开启
    hiveHA
  • 原文地址:https://www.cnblogs.com/ztguang/p/12644959.html
Copyright © 2020-2023  润新知