{"id":7519,"date":"2024-03-31T21:01:02","date_gmt":"2024-03-31T13:01:02","guid":{"rendered":""},"modified":"2024-03-31T21:01:02","modified_gmt":"2024-03-31T13:01:02","slug":"RSTP\uff1a\u5feb\u901f\u751f\u6210\u6811","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7519.html","title":{"rendered":"RSTP\uff1a\u5feb\u901f\u751f\u6210\u6811"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

RSTP<\/h2>\n

**rstp\uff1a**\u5feb\u901f\u751f\u6210\u6811\u534f\u8bae \uff0c\u52a0\u5feb\u4e86stp\u6536\u655b\u3002RSTP \u5220\u9664\u4e86 3 \u79cd\u7aef\u53e3\u72b6\u6001\uff0c\u65b0\u589e\u52a0\u4e86 2 \u79cd\u7aef\u53e3\u89d2\u8272\u3002<\/p>\n

RSTP\u5728STP\u4e0a\u9762\u7684\u6539\u8fdb<\/h3>\n

1\u3001\u65b0\u589e\u7aef\u53e3\u89d2\u8272<\/strong>
Alternate \u7aef\u53e3\u548c Backup \u7aef\u53e3\u3002
alternate\u7aef\u53e3\u5b66\u4e60\u5230\u5176\u4ed6\u7aef\u53e3BPDU\u62a5\u6587\u800c\u963b\u585e\u7684\u7aef\u53e3\uff0c\u4e5f\u662f\u6839\u7aef\u53e3\u7684\u5907\u4efd\u7aef\u53e3\u3002
backup\u7aef\u53e3\u5c31\u662f\u5b66\u4e60\u5230\u81ea\u5df1\u53d1\u9001\u7684BPDU\u62a5\u6587\u800c\u963b\u585e\u7aef\u53e3\u3001\u4e5f\u662f\u6307\u5b9a\u7aef\u53e3\u7684\u5907\u4efd\u7aef\u53e3\u3002
2\u3001\u7aef\u53e3\u72b6\u6001<\/strong>
alternate\u3001backup\u7aef\u53e3\u53ea\u6709discarding\u72b6\u6001\u3002\u6839\u7aef\u53e3\u3001\u6307\u5b9a\u7aef\u53e3\u90fd\u6709forwarding\u3001learning\u3001discarding\u72b6\u6001\u3002
3\u3001\u914d\u7f6eBPDU\u5904\u7406\u53d1\u751f<\/strong>
\u5728\u62d3\u6251\u7a33\u5b9a\u540e\uff0c\u65e0\u8bba\u975e\u6839\u6865\u662f\u5426\u6536\u5230\u6839\u6865\u4f20\u6765\u7684BPDU\u62a5\u6587\uff0c\u975e\u6839\u6865\u90fd\u5728hello tiemer \u89c4\u5b9a\u65f6\u95f4\u53d1\u9001\u62a5\u6587\uff0c\u5b8c\u5168\u7531\u62a5\u6587\u81ea\u4e3b\u63a7\u5236\u3002<\/p>\n

\u5982\u679c\u4e00\u4e2a\u7aef\u53e3\u8fde\u7eed 3 \u4e2a Hello Time \u65f6\u95f4\u5185\u6ca1\u6709\u6536\u5230\u4e0a\u6e38\u8bbe\u5907\u53d1\u9001\u8fc7\u6765\u7684\u914d\u7f6e BPDU\uff0c\u90a3\u4e48\u8be5\u8bbe\u5907\u8ba4\u4e3a\u4e0e\u6b64\u90bb\u5c45\u4e4b\u95f4\u7684\u534f\u5546\u5931\u8d25<\/p>\n

\u5904\u7406\u6b21\u7b49 BPDU
\u8be5\u6539\u7aef\u53e3\u7684BPDU\u4f18\u5148\u7ea7\u9ad8\u4e8e\u6536\u5230\u7684BPDU\u62a5\u6587\uff0c\u5c31\u76f4\u63a5\u4e22\u5f03\uff0c\u5e76\u901a\u544a\u81ea\u8eabRST BPDU\uff0c\u4e0a\u6e38\u8bbe\u5907\u6536\u5230 RST BPDU\u65f6\u4f1a\u8ddf\u65b0\u81ea\u5df1\u7684RST BPDU\u3002rstp\u4e0d\u5728\u4f9d\u8d56\u5b9a\u65f6\u5668\u89e3\u51b3\u62d3\u6251\u3002<\/p>\n

\u5feb\u901f\u6536\u655b<\/h4>\n

1\u3001\u8fb9\u7f18\u7aef\u53e3\uff08stp edge-port \uff09<\/strong>\uff1arstp \u65b0\u63d0\u51fa\u7684\u4e00\u79cd\u7aef\u53e3\uff0c\u8fb9\u7f18\u7aef\u53e3\u4f1a\u53d1\u9001bpdu\uff0c\u9632\u6b62\u7f51\u7edc\u4e2d\u4ea7\u751f\u73af\u8def\u95ee\u9898\u3002
1\u3001\u6536\u5230\u81ea\u5df1\u53d1\u51fa\u7684bpdu\u4f1ablock
2\u3001\u6536\u5230\u5176\u4ed6\u4ea4\u6362\u673a\u53d1\u9001\u7684bpdu\uff0c\u53c2\u4e0estp\u8ba1\u7b97\uff0c\u7834\u574fstp\u751f\u6210\u6811\uff0c\u53c8\u4f1a\u4ea7\u751f\u4e34\u65f6\u73af\u8def\u7684\u98ce\u9669\u3002
3\u3001\u67d0\u4e9b\u5382\u5bb6\u7684\u4ea4\u6362\u673a\u5982\u679c\u4e0d\u652f\u6301stp\u534f\u8bae\uff0c\u6216\u8005\u5173\u95edstp\u534f\u8bae\uff0c\u8fd9\u4e9b\u4ea4\u6362\u673a\u662f\u4e0d\u4f1a\u900f\u4f20bpdu\u7684\uff0c\u5bfc\u81f4\u73af\u8def\u3002
4\u3001\u8fb9\u7f18\u7aef\u53e3\u53d1\u9001bpdu\u80fd\u591f\u9632\u73af\uff0c\u4f46\u4e0d\u80fd\u5b9e\u73b0\u6240\u6709\u573a\u666f\u90fd\u9632\u73af<\/p>\n

    \n
  • \u96f6\u65f6\u73af\u8def\uff08\u4e24\u4e2a\u8fb9\u7f18\u63a5\u53e3\u76f8\u63a5\uff09<\/li>\n
  • \u8fb9\u7f18\u7aef\u53e3\u4e0b\u884c\u7f51\u7edc\u4ece\u5728\u4e0d\u900f\u4f20BPDU\u7684\u4ea4\u6362\u673a\uff0c\u62d3\u6251\u662f\u53c8\u662f\u73af\u8def\uff0c\u5bfc\u81f4\u73af\u8def\u3002
    \u8fb9\u7f18\u7aef\u53e3\u7684\u597d\u5904<\/strong>
    1\u3001\u5feb\u901f\u8fdb\u5165\u8f6c\u53d1\u72b6\u6001\uff0cdhcp\u83b7\u53d6\u7684ip\u7684\u4e3b\u673a\u80fd\u591f\u66f4\u5feb\u7684\u63a5\u5165\u7f51\u7edc\u3002
    2\u3001\u8fb9\u7f18\u7aef\u53e3\u7684up\u548cdown\u4e0d\u4f1a\u5bfc\u81f4\u4ea4\u6362\u673a\u53d1\u9001tcn\u6216\u8005tc bpdu \uff0c\u589e\u5f3astp\u7f51\u7edc\u7684\u7a33\u5b9a
    3\u3001\u8fb9\u7f18\u7aef\u53e3\u901a\u5e38\u7528\u4e8e\u8fde\u63a53\u5c42\u7ec8\u7aef\u8bbe\u5907\u6216\u8005\u8def\u7531\u5668\uff0c\u9632\u706b\u5899\u3001\u7ec8\u7aef\u7b49\u8def\u7531\u5668\u8bbe\u5907\u3002<\/li>\n<\/ul>\n

    2\u3001\u6839\u7aef\u53e3\u5feb\u901f\u5207\u6362\u673a\u5236<\/strong>
    \u5f53\u6839\u7aef\u53e3\u5931\u6548\uff0c\u90a3\u4e48alternate\u7aef\u53e3\u5c31\u4f1a\u7acb\u5373\u6210\u4e3a\u6839\u7aef\u53e3\uff0c\u8fdb\u5165forwarding\u72b6\u6001\u3002<\/p>\n

    3\u3001P\/A\u673a\u5236<\/strong>
    p\/a\u5728\u70b9\u5230\u70b9\u5168\u53cc\u5de5\u7684\u94fe\u8def\u4e0a\u8ba9DP\u548cRP\u7aef\u53e3\u8fdb\u5165\u5230\u8f6c\u53d1\u72b6\u6001\uff0c\u540c\u65f6\u4e5f\u4e0d\u4f1a\u4ea7\u751f\u4e34\u65f6\u73af\u8def\u3002
    P\/A\u673a\u5236\u4f7f\u7528\u7684\u524d\u63d0
    1\u3001DP\u7aef\u53e3\u5904\u4e8ediscarding
    2\u3001\u70b9\u5230\u70b9\u5168\u53cc\u5de5\u94fe\u8def\u3002
    3\u3001dp\u7aef\u53e3\u5bf9\u7aef\u662frp\u7aef\u53e3
    P\/A\u8fc7\u7a0b
    dp\u7aef\u53e3\u5904\u4e8ediscarding\u72b6\u6001\u65f6\uff0c\u53d1\u9001\uff08p=1.a=1\uff09bpdu
    rp\u6536\u5230dp\u7684\uff08p=1\uff0ca=1\uff09\u7684bpdu\u540e\uff0c\u4f1a\u8fdb\u884c\u540c\u6b65\u4f4d\u7f6e\u3002
    \u540c\u6b65\u4f4d\u7f6e\uff1adiscarding\u6389\u6240\u6709\u7684\u975e\u8fb9\u7f18\u7aef\u53e3
    \u8fb9\u7f18\u7aef\u53e3\uff0cap\u7aef\u53e3\u7531\u4e8e\u4e0d\u4f1a\u5f15\u4eba\u989d\u5916\u73af\u8def\uff0c\u9ed8\u8ba4\u5df2\u7ecf\u540c\u6b65\u4f4d\u7f6e\u3002
    \u540c\u6b65\u4f4d\u7f6e\u5b8c\u6210\u4e4b\u540e\uff0crp\u53d1\u9001\uff08p=0 a=1 bpdu\uff09\u5e76\u5c06\u7aef\u53e3\u7f6e\u4e8e\u8f6c\u53d1\u72b6\u6001
    \u4e0a\u6e38dp\u6536\u5230rp\u7684\uff08p=0 a=1\uff09bpdu\u540e\uff0c\u8ba4\u4e3a\u4e0b\u6e38\u7684rp\u5df2\u7ecf\u5904\u4e8e\u65e0\u73af\u62d3\u6251\u5e76\u8f6c\u53d1\u72b6\u6001\uff0c\u4e8e\u662f\u81ea\u5df1\u7684\u7aef\u53e3\u72b6\u6001\u7acb\u5373\u5230\u8f6c\u53d1\u72b6\u6001\u3002
    \u4e00\u65e6 P\/A \u534f\u5546\u4e0d\u6210\u529f\uff0c\u6307\u5b9a\u7aef\u53e3\u7684\u9009\u62e9\u5c31\u9700\u8981\u7b49\u5f85\u4e24\u4e2a Forward Delay\uff0c\u534f\u5546\u8fc7\u7a0b\u4e0e STP \u4e00\u6837\u3002<\/p>\n

    4\u3001RSTP\u7684\u62d3\u6251\u53d8\u5316\u673a\u5236<\/strong>
    \u5728 RSTP \u4e2d\u68c0\u6d4b\u62d3\u6251\u662f\u5426\u53d1\u751f\u53d8\u5316\u53ea\u6709\u4e00\u4e2a\u6807\u51c6\uff1a\u4e00\u4e2a\u975e\u8fb9\u7f18\u7aef\u53e3\u8fc1\u79fb\u5230 Forwarding \u72b6\u6001\u3002
    \u4e00\u65e6\u68c0\u6d4b\u5230\u62d3\u6251\u53d1\u751f\u53d8\u5316\uff0c\u5c06\u8fdb\u884c\u5982\u4e0b\u5904\u7406\uff1a
    1\u3001<\/code>\u4e3a\u672c\u4ea4\u6362\u7684\u6240\u6709\u975e\u8fb9\u7f18\u6307\u5b9a\u7aef\u53e3\u542f\u52a8\u4e00\u4e2a TC While Timer\uff0c\uff0c\u65f6\u95f4\u4e3ahello time\u76842\u500d\uff0c\u6e05\u7a7a\u72b6\u6001\u53d1\u751f\u53d8\u5316\u7684\u7aef\u53e3\u4e0a\u5b66\u4e60\u5230\u7684 MAC \u5730\u5740\u3002\u7531\u8fd9\u4e9b\u7aef\u53e3\u5411\u5916\u53d1\u9001 RST BPDU\uff0c\u5176\u4e2d TC \u7f6e\u4f4d
    2\u3001<\/code>\u6536\u5230TC BPDU \u7684\u4ea4\u6362\u673a\u6e05\u7a7a\u6240\u6709\u7aef\u53e3\u7684mac\u5730\u5740\uff0c\u9664\u4e86\u8fb9\u7f18\u7aef\u53e3\u548c\u6536\u5230 STP BPDU\u7684\u4ea4\u6362\u673a\u7684\u7aef\u53e3\u3002\uff08\u6b63\u5411\u4ece\u8fd9\u4e2a\u63a5\u53e3\u5b66\u4e60\u5230mac\u5730\u5740\uff0c\u53cd\u5411\u4ece\u8fd9\u4e2a\u63a5\u53e3\u7684\u540e\u9762\u5220\u9664mac\u5730\u5740\uff09
    3\u3001<\/code>\u5e76\u7ee7\u7eed\u9632\u6d2a tc bpdu\uff0c\u5b9e\u73b0\u5168\u7f51mac\u5730\u5740\u8868\u7684\u66f4\u65b0\u3002<\/p>\n

    RSTP\u7684BPDU\u62a5\u6587<\/h4>\n

    RSTP\u76f8\u6bd4STP\u6765\u8bf4\uff0cSTP\u6709\u4e24\u79cd\u7c7b\u578b\u7684\u62a5\u6587\u683c\u5f0f\uff1a\u914d\u7f6eBPDU\u548cTCN BPDU\u3002\u800cRSTP\u53ea\u6709RST BPDU\u4e00\u79cd\uff0c\u4e0eSTP\u7684\u683c\u5f0f\u57fa\u672c\u4e00\u81f4\uff0c\u6700\u5927\u7684\u53d8\u5316\u5728\u4e8eBPDU flags\u5b57\u6bb5\u505a\u51fa\u6539\u53d8\uff0c\u5728STP\u7684FLAG\u6807\u8bb0\u4e2d\u53ea\u7528\u4e86TCA\u548cTC\uff0c\u800cRSTP\u4e2d\u539f\u5148\u7a7a\u4f59\u76846\u4f4d\u5168\u90e8\u6709\u4e86\u65b0\u7684\u5b9a\u4e49\u3002<\/p>\n

    \u4ee5\u4e0b\u4e3aSTP\u62a5\u6587
    \"RSTP\uff1a\u5feb\u901f\u751f\u6210\u6811
    \u4ee5\u4e0b\u4e3aRSTP\u62a5\u6587
    \"RSTP\uff1a\u5feb\u901f\u751f\u6210\u6811<\/p>\n

    BPDU\u62a5\u6587<\/h4>\n

    \"RSTP\uff1a\u5feb\u901f\u751f\u6210\u6811<\/p>\n

    \u5b57\u6bb5\t                \u4f5c\u7528\nTCA\t             \u4fdd\u7559\u4f46\u65e0\u7528\uff0c\u56e0\u4e3a\u5728RSTP\u4e2d\u5e76\u6ca1\u6709TCN BPDU\uff0c\u53d6\u503c\u6c38\u8fdc\u4e3a0\nAgreement\t     PA\u673a\u5236\u4e2d\u7684\u540c\u610f\u4f4d\nForwarding\t     Forwarding\u6807\u5fd7\u4f4d\uff0c\u8868\u793a\u7aef\u53e3\u5904Forwarding\u72b6\u6001\nLearning\t     Learning\u6807\u5fd7\u4f4d\uff0c\u8868\u793a\u7aef\u53e3\u5904\u4e8eLearning\u72b6\u6001\nPort role\t     \u89d2\u8272\u4f4d2bit\u7ec4\u6210 ,\u6709\u56db\u79cd\u7ec4\u5408\u300200 \uff1a\u672a\u5b9a\u4e49\uff1b01\uff1aAP\/BP \u66ff\u4ee3\u7aef\u53e3\/\u5907\u4efd\u7aef\u53e3\uff1b10\uff1aRP\u6839\u7aef\u53e3\uff1b11\uff1aDP\u6307\u5b9a\u7aef\u53e3\nProposal\t     PA\u673a\u5236\u4e2d\u7684\u63d0\u8bae\u4f4d\nTC\t             RSTP\u4e2d\u7684\u62d3\u6251\u6539\u53d8\u901a\u77e5\n<\/code><\/pre>\n

    \u5b98\u65b9\u6587\u6863
    \u4f18\u79c0\u6587\u7ae0<\/p>\n","protected":false},"excerpt":{"rendered":"RSTP\uff1a\u5feb\u901f\u751f\u6210\u6811RSTP**rstp\uff1a**\u5feb\u901f\u751f\u6210\u6811\u534f\u8bae\uff0c\u52a0\u5feb\u4e86stp\u6536\u655b","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7519"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7519"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7519\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}