全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Testing Network Performance with Iperf Anuj Sehgal J rgen Sch nw lder School of Engineering and Science Jacobs University Bremen Germany s anuj j schoenwaelder jacobs university de September 20 2010 Abstract For some of the assignments in the Advanced Networking Lab you may need to test the performance of your network connection This document explains how to use the iperf tool for performance testing 1Introduction The iperf tool is a commonly used network testing tool that can create TCP and UDP data streams and measure the throughput of a network that is carrying them iperf allows the user to set various parameters that can be used for testing a network or alternately for optimizing or tuning a network iperf has a client and server functionality and can measure the throughput between the two ends either unidirectonally or bi directionally It allows you to also test the performance of diff erent TCP congestion control algorithms by picking diff erent ones while running it in client mode Please note that when used for testing TCP capacity Iperf measures the throughput of the payload One thing to note is that Iperf uses 1024 1024 for megabytes and 1000 1000 for megabits 2Installation This document assumes that you are running an Ubuntu distribution however any Debian based distribution should also work In case you are not on a Debian based distribution please try to compile iperf from source 2 1Compiling From Source iperf can be compiled to run on various platforms including Linux MacOS and Windows To compile the tool from command line please download it from the following location 1 Once your project downloads using the terminal navigate to the folder where the fi le was downloaded Assuming you downloaded iperf version 2 0 5 issue the following commands localhost Downloads user tar xvfz iperf 2 0 5 tar gz localhost Downloads user cd iperf 2 0 5 localhost Downloads user configure localhost Downloads user make localhost Downloads user sudo make install Your iperf tool should now be installed 2 2Installing from a Repository Assuming you are on a Debian based distribution you can use apt get to install iperf using the following command sudo apt get install iperf On other distributions you may use the package manager provided to you for example on SuSe you can use yum 3Bandwidth Testing iperf can be started in client or server mode We have already setup three servers for you to use in order to perform bandwidth tests The server addresses you can use are meat eecs jacobs university de veggie eecs jacobs university de cook eecs jacobs university de For this tutorial we will use meat eecs jacobs university de as our iperf server The simplest way to run a bandwidth test from your machine to the server is as below output follows the command localhost Downloads user iperf c meat eecs jacobs university de Client connecting to meat eecs jacobs university de TCP port 5001 TCP window size 16 0 KByte default 3 local 172 16 147 164 port 45354 connected with 212 201 49 188 port 5001 ID IntervalTransferBandwidth 3 0 0 10 0 sec6 02 MBytes5 03 Mbits sec 2 You may make the bandwidth testing more complex as desired by using various command line switches to setup the iperf test In the above example c switch is used to instruct iperf to start in client mode in order to connect to meat eecs jacobs university de This test is unidirectional in case you wish to do a bi directional test you may use the d switch as shown below localhost Downloads user iperf c meat eecs jacobs university de d Server listening on TCP port 5001 TCP window size 256 KByte default Client connecting to meat eecs jacobs university de TCP port 5001 TCP window size 16 0 KByte default 5 local 172 16 147 164 port 45354 connected with 212 201 49 188 port 5001 6 local 172 16 147 164 port 5001 connected with 212 201 49 188 port 60269 ID IntervalTransferBandwidth 5 0 0 10 6 sec896 KBytes689 Kbits sec 6 0 0 13 2 sec6 06 MBytes3 86 Mbits sec One of the most handy features of iperf is to test the performance of TCP over a connection using diff erent congestion control algorithms Using the Z command line switch you can instruct iperf to use the specifi ed congestion control algorithm rather than the kernel default localhost Downloads user iperf c meat eecs jacobs university de Z reno Client connecting to meat eecs jacobs university de TCP port 5001 TCP window size 16 0 KByte default 3 local 172 16 147 164 port 45354 connected with 212 2
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 外研剑桥版三年级英语上册Unit 6 Meet my family教学设计
- 初中九年级科学 第3章3.5物体的内能复习课教学设计
- 九年级语文儒林外史名著导读教学设计
- 小学六年级道德与法治教案 飞扬美好人生-毕业季生命成长主题班会设计
- 杂多县医院招聘考试题目及答案
- 水利枢纽局招聘面试题目及答案
- 默写7 隋唐制度的变化与创新
- 专题四 中国古代的经济发展与社会生活 默写巩固
- 章末核心素养提升(知识网络构建+核心素养提升)
- 高中英语教资面试2026历年真题强化训练
- 2027广东金太阳高三11月联考数学试卷
- 黑龙江哈尔滨市第九中学2026-2027学年度高一上学期10月阶段性测试英语试卷
- 水利工程度汛方案编制指南(试行)
- GB/T 470-2026锌锭
- 2025年IPA对外汉语笔试题库及考试大纲
- 6.2+为了忘却的记念(课件)-2025-2026学年高二语文同步教学课堂(统编版选必中册)
- 小学音乐课堂中生成式AI辅助的个性化音乐鉴赏路径构建教学研究课题报告
- 2025年天津事业单位财会类笔试真题及答案
- T/CHES 54-2021取水权交易可行性报告编制导则
- 2025年全国国家版图知识竞赛题库及答案(共300题)
- 水文领域人工智能应用探索-洞察分析
评论
0/150
提交评论