{"id":1329,"date":"2022-02-07T11:03:48","date_gmt":"2022-02-07T03:03:48","guid":{"rendered":"https:\/\/dasmz.com\/?p=1329"},"modified":"2022-02-07T21:02:47","modified_gmt":"2022-02-07T13:02:47","slug":"iperf3-%e7%ae%80%e5%8d%95%e5%ae%9e%e7%94%a8%e7%9a%84%e6%b5%8b%e9%80%9f%e5%b7%a5%e5%85%b7-%e4%bd%bf%e7%94%a8%e4%bb%8b%e7%bb%8d-2022-2-7","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=1329","title":{"rendered":"iperf3 \u7b80\u5355\u5b9e\u7528\u7684\u6d4b\u901f\u5de5\u5177 \u4f7f\u7528\u4ecb\u7ecd 2022-2-7"},"content":{"rendered":"\n<p>\u5b98\u7f51\u5730\u5740 https:\/\/iperf.fr\/<br>\u4e0b\u8f7d\u5730\u5740 https:\/\/iperf.fr\/iperf-download.php<\/p>\n\n\n\n<p><strong>\u7b2c\u4e00\u7ae0\uff0c\u7b80\u4ecb<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">iPerf - The ultimate speed test tool for TCP, UDP and SCTP<\/pre>\n\n\n\n<p>\u6b63\u5982\u5176<a href=\"https:\/\/iperf.fr\/\">\u5b98\u7f51<\/a>\u63cf\u8ff0\u7684\uff0c\u5b83\u662f\u4e00\u4e2a\u652f\u6301TCP\/UDP\/SCTP\u7684\u6d4b\u901f\u5de5\u5177\uff0c\u7b80\u5355\u5b9e\u7528<\/p>\n\n\n\n<p><strong>\u7b2c\u4e8c\u7ae0\uff0c\u5b89\u88c5<\/strong><\/p>\n\n\n\n<p>\u5b98\u7f51\u6709\u5404\u5e73\u53f0\u7684\u5b89\u88c5\u4ecb\u7ecd\uff0c\u6211\u8fd9\u91cc\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b2\u4e2awindows\/Linux\/Android\/iOS\u8fd9\u56db\u4e2a\u5e38\u7528\u5e73\u53f0\u7684\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Ubuntu\/Debian\/\u6811\u8393\u6d3eRaspbian \u5b89\u88c5 \napt-get -y install iperf3\n\nCentOS\u5b89\u88c5\nyum -y install iperf3<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Windows 10\u4e0b\u8f7d\u89e3\u538b\u540e\uff0c\u53ef\u89c1\u4e24\u4e2a\u6587\u4ef6cygwin1.dll\u548ciperf3.exe\uff0c\u5728\u8be5\u76ee\u5f55\u4e0b\uff0c\u6309\u4f4fShift\uff0c\u53f3\u51fb\u9f20\u6807\uff0c\u9009\u62e9\u4ece\u6b64\u5904\u6253\u5f00powershell<\/pre>\n\n\n\n<p>\u7b2c\u4e09\u7ae0\uff0c\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u5728\u5b58\u653e\u89c6\u9891\u6587\u4ef6\u7684\u6811\u8393\u6d3e\u4e0a\uff0c\u5f00\u542f\u670d\u52a1\u7aef  \n\/usr\/bin\/iperf3 -s -p 11111\n\n\u53c2\u6570\u91ca\u4e49 -s \u53c2\u6570\u8868\u793a\u670d\u52a1\u5668\u7aef\uff0c-p \u6307\u5b9a\u4f7f\u7528\u7aef\u53e3<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u53f0\u5f0f\u673a\u7535\u8111Windows\u7684Powershell\u91cc\u9762\u5ba2\u6237\u7aef  \niperf3.exe -c 10.11.11.114 -p 11111 -t 12 -R\n\n\u53c2\u6570\u91ca\u4e49 -c \u53c2\u6570\u8868\u793a\u5ba2\u6237\u7aef\u5e76\u6307\u5b9a\u6d4b\u901f\u670d\u52a1\u5668\u5730\u5740\uff0c-p \u6307\u5b9a\u670d\u52a1\u5668\u7aef\u53e3\uff0c-t \u6307\u5b9a\u6d4b\u8bd5\u65f6\u957f\uff08\u5355\u4f4d\u79d2\uff09\uff0c-R \u8868\u793a\u4e0b\u8f7d\u6d4b\u901f\uff08\u4e0d\u52a0\u53c2\u6570\u5219\u6d4b\u8bd5\u4e0a\u4f20\u901f\u5ea6\uff09\u3002\n\n\u5982\u679c\u8981\u6d4b\u8bd5 UDP \u8fde\u63a5\uff0c\u8ffd\u52a0 -u \u53c2\u6570\u548c-b\u5e26\u5bbd\u53c2\u6570<\/pre>\n\n\n\n<p><strong>\u9644\u5f55<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u5982\u679cUbuntu\/Debian\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684\uff0c\u6216\u5176\u4ed6Linux\u53d1\u884c\u7248\u672c\uff0c\u5219\u9700\u8981\u4ece\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\n\napt update\napt remove iperf3 libiperf0\napt install libsctp1\ncd \/root\/src\nwget https:\/\/iperf.fr\/download\/ubuntu\/libiperf0_3.9-1_amd64.deb\nwget https:\/\/iperf.fr\/download\/ubuntu\/iperf3_3.9-1_amd64.deb\ndpkg -i libiperf0_3.9-1_amd64.deb iperf3_3.9-1_amd64.deb\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u7f51\u5730\u5740 https:\/\/iperf.fr\/\u4e0b\u8f7d\u5730\u5740 https:\/\/iperf.fr\/iperf-downl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/1329"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1329"}],"version-history":[{"count":7,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/1329\/revisions"}],"predecessor-version":[{"id":1340,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/1329\/revisions\/1340"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}