{"id":1746,"date":"2023-08-09T10:37:00","date_gmt":"2023-08-09T02:37:00","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=1746"},"modified":"2023-08-23T08:59:21","modified_gmt":"2023-08-23T00:59:21","slug":"%e7%bd%91%e7%bb%9c%e6%b5%8b%e8%af%95-iperf3","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2023\/08\/09\/%e7%bd%91%e7%bb%9c%e6%b5%8b%e8%af%95-iperf3\/","title":{"rendered":"\u7f51\u7edc\u6d4b\u8bd5 iperf3"},"content":{"rendered":"\n<p>\u7f51\u4e0a\u7684\u5728\u7ebf\u5bbd\u5e26\u6d4b\u8bd5\u5e38\u56e0\u4e3a\u7f51\u7edc\u73af\u5883\u7684\u53d8\u52a8\u4e0d\u592a\u51c6\u786e\u3002<\/p>\n\n\n\n<p><strong>\u4ecb\u7ecd<\/strong><br>Iperf3 \u662f\u4e00\u4e2a\u7f51\u7edc\u6027\u80fd\u6d4b\u8bd5\u5de5\u5177\u3002Iperf\u53ef\u4ee5\u6d4b\u8bd5\u6700\u5927TCP\u548cUDP\u5e26\u5bbd\u6027\u80fd\uff0c\u5177\u6709\u591a\u79cd\u53c2\u6570\u548cUDP\u7279\u6027\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\uff0c\u53ef\u4ee5\u62a5\u544a\u5e26\u5bbd\u3001\u5ef6\u8fdf\u6296\u52a8\u548c\u6570\u636e\u5305\u4e22\u5931.\u5bf9\u4e8e\u6bcf\u4e2a\u6d4b\u8bd5\uff0c\u5b83\u90fd\u4f1a\u62a5\u544a\u5e26\u5bbd\uff0c\u4e22\u5305\u548c\u5176\u4ed6\u53c2\u6570\uff0c\u53ef\u5728Windows\u3001Mac OS X\u3001Linux\u3001FreeBSD\u7b49\u5404\u79cd\u5e73\u53f0\u4f7f\u7528\uff0c\u662f\u4e00\u4e2a\u7b80\u5355\u53c8\u5b9e\u7528\u7684\u5c0f\u5de5\u5177\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    Iperf3\u4e5f\u662fC\/S(\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u7aef)\u67b6\u6784\u6a21\u5f0f\uff0c\u5728\u4f7f\u7528iperf3\u6d4b\u8bd5\u65f6\uff0c\u8981\u540c\u65f6\u5728server\u7aef\u4e0eclient\u7aef\u90fd\u5404\u6267\u884c\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8ba9\u5b83\u4eec\u4e92\u76f8\u4f20\u9001\u62a5\u6587\u8fdb\u884c\u6d4b\u8bd5\u3002\n\n    iperf3.0\u4e4b\u524d\u7684\u7248\u672c\u53ea\u80fd\u7528\u6765\u6d4b\u8bd5\u5343\u5146\u901f\u7387\uff0c\u4f46\u662f\u4e07\u5146\u7f51\u7edc\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528iperf3\u6d4b\u8bd5\u3002<\/code><\/pre>\n\n\n\n<p>\u4e0b\u8f7d<br>iperf\u4e0b\u8f7d\u94fe\u63a5<\/p>\n\n\n\n<p><strong>\u5b89\u88c5<\/strong><br>\u5728CentOS 7\u4e0a\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5373\u53ef\u5b89\u88c5\uff1a<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">yum install iperf3<\/h6>\n\n\n\n<p>\u5728ubuntu \u4e0a\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5b89\u88c5:<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">apt-get install iperf3<\/h6>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u6d4b\u8bd5\uff1a<\/strong><\/p>\n\n\n\n<p>\u7528<strong>iperf3 -h<\/strong>\u6765\u67e5\u770b\u4e2d\u6587\u5e2e\u52a9<\/p>\n\n\n\n<p>\u670d\u52a1\u5668\u7aef\u76f4\u63a5\u8fd0\u884c<\/p>\n\n\n\n<p>iperf3 -s<\/p>\n\n\n\n<p>\u7136\u540e\u5ba2\u6237\u7aef\u6309\u4e0d\u540c\u53c2\u6570\u6765\u6d4b\u8bd5\uff0c\u5982\u8bbe\u7f6e\u591a\u4e2a\u5e76\u884c\u6570\u636e\u6d41-P<\/p>\n\n\n\n<p>iperf3 -c serverIP -P streams<\/p>\n\n\n\n<p>\u4f8b\uff1aiperf3 -c 192.168.1.1 -P 3<\/p>\n\n\n\n<p>\u8fd0\u884ciperf3\u5728\u5ba2\u6237\u7aef\uff0c\u53cd\u5411\u6d4b\u8bd5\uff08\u670d\u52a1\u5668\u7aef\u53d1\u9001\u6570\u636e\u5230\u5ba2\u6237\u7aef\uff09iperf3 -c serverIP -R<\/p>\n\n\n\n<p>\u4f8b\uff1aiperf3 -c 192.168.1.1 -R<\/p>\n\n\n\n<p>\u8fd0\u884ciperf3\u5728\u5ba2\u6237\u7aef\uff0c\u4f7f\u7528UDP\u534f\u8bae\uff0c\u5e76\u8bbe\u7f6e\u4f7f\u7528\u7684\u6d4b\u8bd5\u5e26\u5bbd<\/p>\n\n\n\n<p>iperf3 -c serverIP -b 1000M -t 60 -d<\/p>\n\n\n\n<p>-c \u4e3a\u5ba2\u6237\u7aef\u8fd0\u884c\u5e76\u8981\u6307\u5b9a\u670d\u52a1\u7aef\u7684IP\u5730\u5740<\/p>\n\n\n\n<p>-b \u8868\u793a\u4f7f\u7528\u7684\u6d4b\u8bd5\u5e26\u5bbd<\/p>\n\n\n\n<p>-t \u8868\u793a\u4ee5\u65f6\u95f4\u4e3a\u6d4b\u8bd5\u7ed3\u675f\u6761\u4ef6\u8fdb\u884c\u6d4b\u8bd5\uff0c\u9ed8\u8ba4\u4e3a 10 \u79d2;<\/p>\n\n\n\n<p>-d \u6253\u5370\u51fa\u66f4\u8be6\u7ec6\u7684debug\u8c03\u8bd5\u4fe1\u606f<\/p>\n\n\n\n<p>\u4f8b\uff1aiperf3 -c 192.168.1.1 -b 1000M -t 60 -d<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u53c2\u8003https:\/\/blog.csdn.net\/hhd1988\/article\/details\/123918481<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u4e0a\u7684\u5728\u7ebf\u5bbd\u5e26\u6d4b\u8bd5\u5e38\u56e0\u4e3a\u7f51\u7edc\u73af\u5883\u7684\u53d8\u52a8\u4e0d\u592a\u51c6\u786e\u3002 \u4ecb\u7ecdIperf3 \u662f\u4e00\u4e2a\u7f51\u7edc\u6027\u80fd\u6d4b\u8bd5\u5de5\u5177\u3002Iperf\u53ef\u4ee5\u6d4b\u8bd5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1746","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1746"}],"version-history":[{"count":1,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1746\/revisions"}],"predecessor-version":[{"id":1765,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1746\/revisions\/1765"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1746"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}