Linux_网络性能测试(总结)_linux性能测试与分析

2020-02-27 其他工作总结 下载本文

Linux_网络性能测试(总结)由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“linux性能测试与分析”。

Linux网络性能测试 使用 Ipref测试吞吐

1.1 安装

tar-zxvf iperf-2.0.5.tar.gz cd iperf-2.0.5./configure make && make install

1.2 测试UDP

服务器命令:iperf-s-i 1-u 客户端命令:iperf-c 170.0.0.100-i 1-t 999-b 1000000000-u-l 22-c:服务器地址-i:每次报告的间隔-t:持续测试的时间-b:带宽-u:UDP-l:UDP 有效负荷大小

各字节测试时,输入-l参数如下:

在服务端查看结果,64字节UDP小包的吞吐约是7.32 Mbits/s。

[root@localhost ~]# iperf-s-u-i 2-----------------------------Server listening on UDP port 5001 Receiving 1470 byte datagrams UDP buffer size: 208 KByte(default)-----------------------------[ 3] 10.0-12.0 sec 1.72 MBytes 7.22 Mbits/sec 0.022 ms 55728/137802(40%)[ 3] 12.0-14.0 sec 1.79 MBytes 7.49 Mbits/sec 0.016 ms 52637/137735(38%)[ 3] 14.0-16.0 sec 1.74 MBytes 7.30 Mbits/sec 0.040 ms 53247/136227(39%)[ 3] 16.0-18.0 sec 1.74 MBytes 7.32 Mbits/sec 0.071 ms 54608/137771(40%)[ 3] 18.0-20.0 sec 1.79 MBytes 7.52 Mbits/sec 0.021 ms 52133/137632(38%)[ 3] 20.0-22.0 sec 1.75 MBytes [ 3] 22.0-24.0 sec 1.74 MBytes 7.32 Mbits/sec 0.020 ms 54508/137672(40%)[ 3] 24.0-26.0 sec 1.79 MBytes 7.51 Mbits/sec 0.022 ms 52519/137838(38%)[ 3] 26.0-28.0 sec 1.72 MBytes 7.20 Mbits/sec 0.019 ms 55779/137599(41%)[ 3] 28.0-30.0 sec 1.72 MBytes 7.23 Mbits/sec 0.016 ms 55504/137640(40%)[ 3] 30.0-32.0 sec 1.77 MBytes 7.41 Mbits/sec 0.017 ms 52849/137002(39%)[ 3] 32.0-34.0 sec 1.74 MBytes 7.31 Mbits/sec 0.022 ms 54785/137842(40%)[ 3] 34.0-36.0 sec 1.74 MBytes 7.30 Mbits/sec 0.019 ms 54717/137710(40%)

7.32 Mbits/sec 0.021 ms 54418/137616(40%)2 使用http_load测试HTTP Server吞吐和并发

2.1 安装Apache服务器

1、安装并启动

yum-y install httpd service httpd start

2、在Apache服务端准备好各字节大小的页面

(页面大小:64、128、256、512、768、1024、1280、1518)cd /var/ transferred: 6400 bytes Requests per second: 10.08 [#/sec](mean)// 每秒事物处理,mean表示平均值 Time per request: 992.027 [ms](mean)// 平均事物响应时间

Time per request: 99.203 [ms](mean, acro all concurrent requests)Transfer rate: 4.44 [Kbytes/sec] received //传输为4.44字节每秒 吞吐为4.44 * 8 = 35.52 Mbit/s 3.3 其他参数

-n requests 全部请求数-c concurrency 并发数

-t timelimit 最传等待回应时间-p postfile POST数 据文件-T content-type POST Content-type-v verbosity How much troubleshooting info to print-w Print out results in HTML tables-i Use HEAD instead of GET-x attributes String to insert as table attributes-y attributes String to insert as tr attributes-z attributes String to insert as td or th attributes-C attribute-H attribute Inserted after all normal header lines.(repeatable)-A attribute http-P attribute Add Basic Proxy Authentication, the attributes are a colon separated username and paword.-X proxy:port-V-k Use HTTP KeepAlive feature-d Do not show percentiles served table.-S Do not show confidence estimators and warnings.-g filename Output collected data to gnuplot format file.-e filename Output CSV file with percentages served-h Display usage information(this meage)加入cookie, eg.'Apache=1234.(repeatable)加入http头, eg.'Accept-Encoding: gzip' 验证,分隔传递用户名及密码

代理服务器 查看ab版本

使用sendip发原地址跳变的数据包(并发)

3.1 安装

1、到http://www.daodoc.com and CWR bits Default: 0-tfe x TCP ECN bit(rfc2481)Default: 0(options are 0,1,r)-tfc x TCP CWR bit(rfc2481)Default: 0(options are 0,1,r)-tfu x TCP URG bit Default: 0, or 1 if-tu specified(options are 0,1,r)-tfa x TCP ACK bit Default: 0, or 1 if-ta specified(options are 0,1,r)-tfp x TCP PSH bit Default: 0(options are 0,1,r)-tfr x TCP RST bit Default: 0(options are 0,1,r)-tfs x TCP SYN bit Default: 1(options are 0,1,r)-tff x TCP FIN bit Default: 0(options are 0,1,r)-tw x TCP window size Default: 65535-tc x TCP checksum Default: Correct-tu x TCP urgent pointer Default: 0-tonum x TCP option as string of hex bytes(length is always correct)Default:(no options)-toeol TCP option: end of list-tonop TCP option: no op-tom x TCP option: maximum segment size-towscale x TCP option: window scale(rfc1323)-tosackok TCP option: allow selective ack(rfc2018)-tosack x TCP option: selective ack(rfc2018), format is-tots x TCP option: timestamp(rfc1323), format is tsval:tsecr l_edge1:r_edge1,l_edge2:r_edge2...

《Linux_网络性能测试(总结).docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
Linux_网络性能测试(总结)
点击下载文档
相关专题 linux性能测试与分析 性能测试 网络 linux性能测试与分析 性能测试 网络
[其他工作总结]相关推荐
    [其他工作总结]热门文章
      下载全文