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


  • 相关阅读:
    Screengrab,火狐插件,把页面存成图片
    织梦内容管理系统 4_0_1 的rand()优化
    Linux下第一个C程序
    用C#的控制台程序监控apache网站是否正常
    Python入门 —— 04字符串解析
    Python入门 —— 01简介
    Python入门 —— 02基础语法
    Python入门 —— 2048实战(字符界面和图形界面)
    Python入门 —— 05时间日期处理小结
    用Python代码实现微信跳一跳作弊器
  • 原文地址:https://www.cnblogs.com/ztguang/p/12644959.html
Copyright © 2011-2022 走看看