{"id":148,"date":"2018-03-12T11:20:22","date_gmt":"2018-03-12T03:20:22","guid":{"rendered":"http:\/\/www.max-shu.com\/blog\/?p=148"},"modified":"2018-03-12T11:21:24","modified_gmt":"2018-03-12T03:21:24","slug":"linux%e7%bb%84%e6%92%ad%e6%b5%8b%e8%af%95%e5%b7%a5%e5%85%b7%e5%8f%8a%e7%bd%91%e7%bb%9c-rtt-%e5%bb%b6%e6%97%b6%e6%b5%8b%e8%af%95%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"http:\/\/www.max-shu.com\/blog\/?p=148","title":{"rendered":"Linux\u7ec4\u64ad\u6d4b\u8bd5\u5de5\u5177\u53ca\u7f51\u7edc RTT \u5ef6\u65f6\u6d4b\u8bd5\u5de5\u5177"},"content":{"rendered":"<div><b>\u5b89\u88c5\uff1a<\/b><\/div>\n<div>\u62f7\u8d1dmtools\u76ee\u5f55\u5230\u4e24\u53f0\u76ee\u6807\u673a\u4e0a\u3002\u6267\u884c\uff1a<\/div>\n<div># cd mtools<\/div>\n<div># chmod +x\u00a0Linux-2.4-glibc-2.3-i686\/build.sh<\/div>\n<div>#\u00a0Linux-2.4-glibc-2.3-i686\/build.sh<\/div>\n<div>\u4f1a\u5728mtools\/Linux-2.4-glibc-2.3-i686\/\u4e0b\u9762\u751f\u6210\u4e09\u4e2a\u6587\u4ef6\uff1amsend, mdump, mpong\u3002<\/div>\n<div><\/div>\n<div><\/div>\n<div><b>\u6d4b\u8bd5\uff1a<\/b><\/div>\n<div>\u5047\u5b9ahost1\u4e3a10.24.1.24\uff0chost2\u4e3a10.24.1.22\u3002<\/div>\n<div><b>\u00a0<\/b><\/div>\n<div><b>\u7ec4\u64ad\u6d4b\u8bd5\uff08<\/b>\u53c2\u6570\u4e0d\u8981\u968f\u610f\u589e\u51cf\uff0c\u5426\u5219\u5bb9\u6613\u62a5\u9519<b>\uff09\uff1a<\/b><\/div>\n<div>\u5728host1\u4e0a\u6267\u884c\uff1a<\/div>\n<div># .\/mdump -Q 0 239.0.0.1 4000 10.24.1.24<\/div>\n<div>\u5176\u5b9e\u5c31\u662f\uff1a<br \/>\n# .\/mdump -p0 -Q0 -r4194304 239.0.0.1 4000 10.24.1.24<br \/>\n\u7b49host2\u6267\u884cmsend\u4e4b\u540e\uff0chost1\u4e0a\u4f1a\u663e\u793a\u4e00\u6761\u4e00\u6761\u63a5\u6536\u5230\u7684\u6d88\u606f\u3002<\/div>\n<div><\/div>\n<div>\u5728host2\u4e0a\u6267\u884c\uff1a<br \/>\n# .\/msend -1 239.0.0.1 4000 15 10.24.1.22<\/div>\n<div>\u5176\u5b9e\u5c31\u662f\uff1a<br \/>\n# .\/msend -b1 -m20 -n600 -p1000 -q -s2000 -S65536 239.0.0.1 4000 15 10.24.1.22<b>RTT\u7f51\u7edc\u5ef6\u65f6\u6d4b\u8bd5\uff08<span style=\"color: #ff0000;\">\u4e24\u53f0\u673a\u5668\u5fc5\u987b\u65f6\u949f\u540c\u6b65\u624d\u80fd\u6d4b\u8bd5<\/span>\uff09\uff1a<\/b><br \/>\n\u5728host1\u4e0a\u6267\u884c\uff1a<br \/>\n# .\/mpong 224.1.3.5 12000<\/p>\n<\/div>\n<div><\/div>\n<div>\u5728host2\u4e0a\u6267\u884c\uff1a<br \/>\n# .\/mpong -iv -ompong.raw 224.1.3.5 12000<\/div>\n<div><\/div>\n<div>\u5728mpong.raw\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u4f1a\u663e\u793aRTT\u503c\uff1a<\/div>\n<div>avg RTT 107.019745 us, std dev 23.163229, min RTT 76 us max RTT 705 us<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\uff1a \u62f7\u8d1dmtools\u76ee\u5f55\u5230\u4e24\u53f0\u76ee\u6807\u673a\u4e0a\u3002\u6267\u884c\uff1a # cd mtools # chmod +x\u00a0Linux- &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[9,114,111,112,113,110],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-linuxandroid","tag-linux","tag-mtools","tag-rtt","tag-112","tag-113","tag-110"],"views":4201,"_links":{"self":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":2,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":150,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/150"}],"wp:attachment":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}