{"id":8275,"date":"2020-07-18T20:51:57","date_gmt":"2020-07-18T12:51:57","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8275"},"modified":"2022-05-20T14:00:16","modified_gmt":"2022-05-20T06:00:16","slug":"iperf3","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iperf3","title":{"rendered":"iperf3\u547d\u4ee4 – \u8fdb\u884c\u7f51\u7edc\u541e\u5410\u91cf\u6d4b\u8bd5"},"content":{"rendered":"\n

iperf3\u662f\u4e00\u6b3e\u8fdb\u884c\u7f51\u7edc\u541e\u5410\u91cf\u6d4b\u8bd5\u7684\u5de5\u5177\u547d\u4ee4\uff0c\u7531\u7f8e\u56fd\u4f0a\u5229\u8bfa\u65af\u5927\u5b66\u7814\u53d1\u548c\u7ef4\u62a4\u3002\u5728\u5efa\u7acb\u597d\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u540e\uff0ciperf3\u53ef\u4ee5\u6d4b\u8bd5TCP\u548cUDP\u7684\u541e\u5410\u91cf\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>iperf3 [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-p<\/td>\u670d\u52a1\u7aef\u76d1\u542c\u7aef\u53e3\uff08\u9ed8\u8ba4\uff1a5201\uff09<\/td><\/tr>
-s<\/td>\u542f\u52a8\u670d\u52a1\u7aef\u76d1\u542c<\/td><\/tr>
-f<\/td>\u683c\u5f0f\u5316\u5e26\u5bbd\u8f93\u51fa\uff1aKbits, Mbits, Kbytes, Mbytes<\/td><\/tr>
-i<\/td>\u4ee5\u79d2\u4e3a\u5355\u4f4d\u5468\u671f\u6027\u8f93\u51fa\u5e26\u5bbd\u62a5\u544a<\/td><\/tr>
-F<\/td>\u4f20\u8f93\u6216\u63a5\u6536\u7279\u5b9a\u7684\u6587\u4ef6<\/td><\/tr>
-B<\/td>\u7ed1\u5b9a\u7279\u5b9a\u7684\u63a5\u53e3<\/td><\/tr>
-d<\/td>\u663e\u793a\u8c03\u8bd5\u8f93\u51fa\u4fe1\u606f<\/td><\/tr>
-J<\/td>\u4ee5JSON\u683c\u5f0f\u8f93\u51fa<\/td><\/tr>
-V<\/td>\u663e\u793a\u66f4\u591a\u8be6\u7ec6\u7684\u8f93\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5f00\u542f\u670d\u52a1\u5668\u76d1\u542c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iperf3 -s<\/strong>\r\n-----------------------------------------------------------\r\nServer listening on 5201\r\n-----------------------------------------------------------\r<\/pre>\n\n\n\n

\u5f00\u542f\u670d\u52a1\u7aef\u76d1\u542c\u5e76\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u76d1\u542c\u7aef\u53e3\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iperf3 -s -p 6688<\/strong>\r\n-----------------------------------------------------------\r\nServer listening on 6688\r\n-----------------------------------------------------------\r<\/pre>\n\n\n\n

\u542f\u52a8\u8c03\u8bd5\u6a21\u5f0f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iperf3 -s -d<\/strong>\r\n-----------------------------------------------------------\r\nServer listening on 5201\r\n-----------------------------------------------------------\r<\/pre>\n\n\n\n

\u542f\u670d\u52a1\u5668\u76d1\u542c\u5e76\u663e\u793a\u66f4\u591a\u8be6\u7ec6\u7684\u8f93\u51fa\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iperf3 -s -V<\/strong>\r\niperf 3.5\r\nLinux linuxcool.com 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64\r\n-----------------------------------------------------------\r\nServer listening on 5201\r\n-----------------------------------------------------------<\/pre>\n","protected":false},"excerpt":{"rendered":"

iperf3\u662f\u4e00\u6b3e\u8fdb\u884c\u7f51\u7edc\u541e\u5410\u91cf\u6d4b\u8bd5\u7684\u5de5\u5177\u547d\u4ee4\uff0c\u7531\u7f8e\u56fd\u4f0a\u5229\u8bfa\u65af\u5927\u5b66\u7814\u53d1\u548c\u7ef4\u62a4\u3002\u5728\u5efa\u7acb\u597d\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u540e\uff0cipe […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8275"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8275"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8275\/revisions"}],"predecessor-version":[{"id":9869,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8275\/revisions\/9869"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}