{"id":200,"date":"2020-09-21T12:06:28","date_gmt":"2020-09-21T04:06:28","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=200"},"modified":"2020-09-21T12:06:28","modified_gmt":"2020-09-21T04:06:28","slug":"ros%e6%b5%81%e6%8e%a7","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2020\/09\/21\/ros%e6%b5%81%e6%8e%a7\/","title":{"rendered":"ros\u6d41\u63a7"},"content":{"rendered":"\n<p>ros\u624b\u52a8\u6d41\u63a7\uff0c\u4fdd\u8bc1\u4f18\u8d28\u7684\u7f51\u7edc\u8fde\u63a5\ue003\u5982VoIP \u548cHTTP\u7b49\u4e3a\u6700\u4f18\u5148\u7ea7\ue003\u5c06P2P\u7684\u4f18\u5148\u7ea7\u8bbe\u7f6e\u4e3a\u6700\u4f4e RouterOS QOS\u64cd\u4f5c\u9996\u5148\u4f7f\u7528mangle\u6807\u8bb0\u4e0d\u540c\u7c7b\u578b\u7684\u4f20\u8f93\ue003\u7136\u540e\u628a\u5b83\u4eec\u653e\u5165\u7684queues\u505a\u4e0d\u540c\u7684\u9650\u5236\u3002\u4e0b\u9762\u7684\u4e8b\u4f8b\u662f\u5f3a\u8febP2P\u7684\u603b\u7684\u4f20\u8f93\u4e0d\u80fd\u8d85\u8fc71Mbps\ue003\u5176\u4ed6\u7684\u4f20\u8f93\u8fde\u63a5\u5219\u6269\u5927\u8fde\u63a5\u5e26\u5bbd\u548c\u4f18\u5148\u7ea7\ue004 \u00a0<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/ip firewall mangle add chain=forward &nbsp;p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/ip firewall mangle add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/ip firewall mangle add chain=forward &nbsp;packet-mark=!p2p_conn action=mark-packet new-packet-mark=other<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/queue tree add parent=Public packet-mark=p2p limit-at=1000000 &nbsp;max-limit=100000000 priority=8<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/queue tree add parent=Local packet-mark=p2p limit-at=1000000 &nbsp;max-limit=100000000 priority=8 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/queue tree add parent=Public packet-mark=other &nbsp;limit-at=1000000 &nbsp;max-limit=100000000 priority=1<\/p>\n\n\n\n<p>[admin@NAT] &gt; \/queue tree add parent=Local packet-mark=other &nbsp;limit-at=1000000 &nbsp;max-limit=100000000 priority=1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ros\u624b\u52a8\u6d41\u63a7\uff0c\u4fdd\u8bc1\u4f18\u8d28\u7684\u7f51\u7edc\u8fde\u63a5\ue003\u5982VoIP \u548cHTTP\u7b49\u4e3a\u6700\u4f18\u5148\u7ea7\ue003\u5c06P2P\u7684\u4f18\u5148\u7ea7\u8bbe\u7f6e\u4e3a\u6700\u4f4e Route [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/200","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=200"}],"version-history":[{"count":0,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}