{"id":117591,"date":"2026-10-25T03:48:22","date_gmt":"2026-10-24T19:48:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117591.html"},"modified":"2026-10-25T03:48:22","modified_gmt":"2026-10-24T19:48:22","slug":"rc-uc-ud-xrc%e5%9b%9b%e7%a7%8d%e4%bc%a0%e8%be%93%e6%a8%a1%e5%bc%8f%e6%80%a7%e8%83%bd%e5%af%b9%e6%af%94%e4%b8%8e%e5%ae%9e%e6%88%98%e9%80%89%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117591.html","title":{"rendered":"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b"},"content":{"rendered":"<p>\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5ea6\u5256\u6790RDMA\u56db\u5927\u4f20\u8f93\u6a21\u5f0f&#xff08;RC\/UC\/UD\/XRC&#xff09;\u7684\u5e95\u5c42\u673a\u5236\u4e0e\u6027\u80fd\u5dee\u5f02\u3002\u901a\u8fc7DOCA perftest\u5de5\u5177\u5b9e\u6d4b\u5bf9\u6bd4\u5e26\u5bbd\u3001\u5ef6\u8fdf\u53ca\u8d44\u6e90\u6d88\u8017&#xff0c;\u7ed3\u5408IBTA\u89c4\u8303\u4e0e\u5927\u89c4\u6a21\u96c6\u7fa4\u5b9e\u6218&#xff0c;\u7ed9\u51faAI\u8bad\u7ec3\u3001\u5206\u5e03\u5f0f\u5b58\u50a8\u53caRPC\u573a\u666f\u7684\u9009\u578b\u6307\u5357&#xff0c;\u52a9\u529b\u5de5\u7a0b\u5e08\u7a81\u7834RDMA\u6027\u80fd\u74f6\u9888\u3002<\/p>\n<h3>\u76ee\u5f55<\/h3>\n<ul>\n<li>\u4e00\u3001\u5f15\u8a00\u4e0e\u6838\u5fc3\u6982\u5ff5<\/li>\n<li>\u4e8c\u3001\u5e95\u5c42\u67b6\u6784\u4e0e\u53ef\u9760\u6027\u673a\u5236\u5256\u6790<\/li>\n<li>\u4e09\u3001\u5b9e\u6218\u6d4b\u8bd5\u77e9\u9635\u4e0e\u547d\u4ee4\u8bbe\u8ba1<\/li>\n<li>\u56db\u3001\u6027\u80fd\u5b9e\u6d4b\u6570\u636e\u4e0e\u8d44\u6e90\u5360\u7528\u5bf9\u6bd4<\/li>\n<li>\u4e94\u3001\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u4e0e\u53ef\u6269\u5c55\u6027\u6df1\u5ea6\u89e3\u6790<\/li>\n<li>\u516d\u3001\u5178\u578b\u4e1a\u52a1\u573a\u666f\u9009\u578b\u6307\u5357<\/li>\n<li>\u4e03\u3001\u6d4b\u8bd5\u907f\u5751\u6307\u5357\u4e0e\u9ad8\u7ea7\u8c03\u4f18<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e00\u3001\u5f15\u8a00\u4e0e\u6838\u5fc3\u6982\u5ff5<\/h3>\n<p>\u5728RDMA&#xff08;Remote Direct Memory Access&#xff09;\u6280\u672f\u4f53\u7cfb\u4e2d&#xff0c;\u4f20\u8f93\u6a21\u5f0f&#xff08;Transport Service Types&#xff09;\u662f\u51b3\u5b9a\u7f51\u7edc\u884c\u4e3a\u3001\u6027\u80fd\u4e0a\u9650\u4ee5\u53ca\u8d44\u6e90\u6d88\u8017\u7684\u6838\u5fc3\u57fa\u77f3\u3002\u8bb8\u591a\u521d\u6d89RDMA\u7684\u5de5\u7a0b\u5e08\u5f80\u5f80\u53ea\u5173\u6ce8\u5e26\u5bbd\u548c\u5ef6\u8fdf\u7684\u6781\u9650\u6570\u503c&#xff0c;\u5374\u5ffd\u7565\u4e86\u4e0d\u540c\u4f20\u8f93\u6a21\u5f0f\u5728\u534f\u8bae\u8bed\u4e49\u3001\u786c\u4ef6\u5378\u8f7d\u673a\u5236\u4ee5\u53ca\u5185\u5b58\u6d88\u8017\u4e0a\u7684\u5de8\u5927\u5dee\u5f02\u3002\u5728\u4e07\u5361\u7ea7AI\u96c6\u7fa4\u548c\u6d77\u91cf\u5e76\u53d1\u7684\u5206\u5e03\u5f0f\u5b58\u50a8\u573a\u666f\u4e2d&#xff0c;\u9009\u9519\u4f20\u8f93\u6a21\u5f0f\u4e0d\u4ec5\u4f1a\u5bfc\u81f4\u6027\u80fd\u65ad\u5d16\u5f0f\u4e0b\u8dcc&#xff0c;\u751a\u81f3\u4f1a\u5f15\u53d1\u4e25\u91cd\u7684\u5185\u5b58\u6cc4\u6f0f\u548c\u7cfb\u7edf\u5d29\u6e83\u3002<\/p>\n<p>\u6839\u636eIBTA&#xff08;InfiniBand Trade Association&#xff09;\u89c4\u8303 Volume 1, Chapter 11 \u7684\u4e25\u683c\u5b9a\u4e49&#xff0c;RDMA\u534f\u8bae\u6808\u539f\u751f\u652f\u6301\u56db\u79cd\u57fa\u672c\u7684\u4f20\u8f93\u670d\u52a1\u6a21\u5f0f&#xff1a;RC&#xff08;Reliable Connection&#xff09;\u3001UC&#xff08;Unreliable Connection&#xff09;\u3001UD&#xff08;Unreliable Datagram&#xff09;\u4ee5\u53ca\u540e\u6765\u4e3a\u4e86\u89e3\u51b3\u5927\u89c4\u6a21\u96c6\u7fa4\u6269\u5c55\u6027\u95ee\u9898\u800c\u5f15\u5165\u7684XRC&#xff08;Extended Reliable Connection&#xff09;\u3002\u8fd9\u56db\u79cd\u6a21\u5f0f\u5e76\u975e\u7b80\u5355\u7684\u201c\u53ef\u9760\u4e0e\u4e0d\u53ef\u9760\u201d\u7684\u4e8c\u5143\u5bf9\u7acb&#xff0c;\u800c\u662f\u9488\u5bf9\u4e0d\u540c\u7684\u4e1a\u52a1\u573a\u666f\u5728\u201c\u8fde\u63a5\u72b6\u6001\u7ef4\u62a4\u201d\u3001\u201c\u53ef\u9760\u6027\u4fdd\u8bc1\u201d\u3001\u201c\u5185\u5b58\u5f00\u9500\u201d\u548c\u201c\u8def\u7531\u7075\u6d3b\u6027\u201d\u4e4b\u95f4\u505a\u51fa\u7684\u7cbe\u5bc6\u6743\u8861\u3002<\/p>\n<h4>1. RC&#xff08;Reliable Connection&#xff09;&#xff1a;\u53ef\u9760\u7684\u9762\u5411\u8fde\u63a5\u6a21\u5f0f<\/h4>\n<p>RC\u662fRDMA\u4e2d\u6700\u5e38\u7528\u3001\u4e5f\u662f\u6700\u57fa\u7840\u7684\u4f20\u8f93\u6a21\u5f0f\u3002\u5b83\u7c7b\u4f3c\u4e8eTCP\u534f\u8bae&#xff0c;\u63d0\u4f9b\u9762\u5411\u8fde\u63a5\u7684\u3001\u53ef\u9760\u7684\u3001\u6709\u5e8f\u7684\u6570\u636e\u4f20\u8f93\u3002\u5728RC\u6a21\u5f0f\u4e0b&#xff0c;\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u5728\u901a\u4fe1\u524d\u5fc5\u987b\u5efa\u7acb\u8fde\u63a5&#xff08;QP\u72b6\u6001\u4eceRESET\u8fc1\u79fb\u5230RTS&#xff09;&#xff0c;\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u786c\u4ef6\u4f1a\u4e25\u683c\u7ef4\u62a4\u6570\u636e\u5305\u5e8f\u5217\u53f7&#xff08;PSN&#xff09;&#xff0c;\u5e76\u901a\u8fc7ACK\/NAK\u673a\u5236\u4fdd\u8bc1\u6570\u636e\u7684\u65e0\u635f\u9001\u8fbe\u548c\u4e25\u683c\u6709\u5e8f\u3002RC\u6a21\u5f0f\u80fd\u591f\u5145\u5206\u5229\u7528\u7f51\u5361\u786c\u4ef6\u7684DMA\u5f15\u64ce\u548c\u91cd\u4f20\u673a\u5236&#xff0c;\u5b9e\u73b0\u6781\u9ad8\u7684\u5e26\u5bbd\u5229\u7528\u7387&#xff0c;\u662fAI\u8bad\u7ec3&#xff08;\u5982NCCL\/RCCL&#xff09;\u548c\u5206\u5e03\u5f0f\u5b58\u50a8&#xff08;\u5982NVMe-oF&#xff09;\u7684\u9ed8\u8ba4\u9996\u9009\u3002<\/p>\n<h4>2. UC&#xff08;Unreliable Connection&#xff09;&#xff1a;\u4e0d\u53ef\u9760\u7684\u9762\u5411\u8fde\u63a5\u6a21\u5f0f<\/h4>\n<p>UC\u6a21\u5f0f\u540c\u6837\u8981\u6c42\u901a\u4fe1\u524d\u5efa\u7acb\u8fde\u63a5&#xff0c;\u7ef4\u62a4QP\u72b6\u6001&#xff0c;\u4f46\u5b83\u4e0d\u63d0\u4f9b\u53ef\u9760\u6027\u4fdd\u8bc1\u3002\u5728UC\u6a21\u5f0f\u4e0b&#xff0c;\u53d1\u9001\u7aef\u4e0d\u4f1a\u7b49\u5f85\u63a5\u6536\u7aef\u7684ACK&#xff0c;\u63a5\u6536\u7aef\u4e5f\u4e0d\u4f1a\u53d1\u9001NAK\u3002\u8fd9\u610f\u5473\u7740\u6570\u636e\u5305\u53ef\u80fd\u4f1a\u4e22\u5931\u3001\u91cd\u590d\u6216\u4e71\u5e8f\u3002\u7136\u800c&#xff0c;UC\u6a21\u5f0f\u4fdd\u7559\u4e86\u4e00\u4e2a\u5173\u952e\u7279\u6027&#xff1a;\u5982\u679c\u6570\u636e\u5305\u6210\u529f\u5230\u8fbe\u63a5\u6536\u7aef&#xff0c;\u5b83\u4eec\u5fc5\u987b\u4fdd\u6301\u53d1\u9001\u65f6\u7684\u987a\u5e8f\u3002UC\u6a21\u5f0f\u7701\u53bb\u4e86ACK\/NAK\u7684\u4ea4\u4e92\u5f00\u9500&#xff0c;\u964d\u4f4e\u4e86\u786c\u4ef6\u72b6\u6001\u673a\u7684\u590d\u6742\u5ea6&#xff0c;\u9002\u7528\u4e8e\u90a3\u4e9b\u5bf9\u5ef6\u8fdf\u6781\u5ea6\u654f\u611f\u3001\u4e14\u4e0a\u5c42\u5e94\u7528\u80fd\u591f\u81ea\u884c\u5904\u7406\u4e22\u5305\u548c\u4e71\u5e8f\u7684\u573a\u666f&#xff08;\u5982\u67d0\u4e9b\u9ad8\u9891\u4ea4\u6613\u6216\u7279\u5b9a\u7684\u89c6\u9891\u6d41\u5a92\u4f53\u4f20\u8f93&#xff09;\u3002<\/p>\n<h4>3. UD&#xff08;Unreliable Datagram&#xff09;&#xff1a;\u4e0d\u53ef\u9760\u7684\u65e0\u8fde\u63a5\u6a21\u5f0f<\/h4>\n<p>UD\u6a21\u5f0f\u5f7b\u5e95\u629b\u5f03\u4e86\u8fde\u63a5\u7684\u6982\u5ff5&#xff0c;\u7c7b\u4f3c\u4e8eUDP\u534f\u8bae\u3002\u6bcf\u4e2a\u53d1\u9001\u7684\u6570\u636e\u5305\u90fd\u5fc5\u987b\u643a\u5e26\u5b8c\u6574\u7684GRH&#xff08;Global Route Header&#xff09;&#xff0c;\u5305\u542b\u6e90\u548c\u76ee\u7684\u7684\u5168\u5c40\u8def\u7531\u4fe1\u606f\u3002\u7f51\u5361\u5728\u53d1\u9001\u6bcf\u4e2a\u5305\u65f6\u90fd\u9700\u8981\u72ec\u7acb\u8fdb\u884c\u8def\u7531\u67e5\u627e&#xff0c;\u63a5\u6536\u7aef\u4e5f\u4e0d\u9700\u8981\u7ef4\u62a4\u4efb\u4f55\u8fde\u63a5\u72b6\u6001\u3002UD\u6a21\u5f0f\u7684\u4f18\u52bf\u5728\u4e8e\u6781\u4f4e\u7684\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u548c\u6781\u5c0f\u7684\u63a5\u6536\u7aef\u5185\u5b58\u5360\u7528&#xff0c;\u975e\u5e38\u9002\u5408\u5c0f\u6d88\u606f\u3001\u9ad8\u5e76\u53d1\u3001\u591a\u5bf9\u591a\u7684\u901a\u4fe1\u573a\u666f&#xff08;\u5982RPC\u8c03\u7528\u3001\u5206\u5e03\u5f0f\u9501\u3001\u5fc3\u8df3\u68c0\u6d4b&#xff09;\u3002\u4f46\u7531\u4e8e\u7f3a\u4e4f\u53ef\u9760\u6027\u4fdd\u8bc1\u548c\u62e5\u585e\u63a7\u5236&#xff0c;UD\u6a21\u5f0f\u5728\u5927\u89c4\u6a21\u6570\u636e\u642c\u8fd0\u4e2d\u8868\u73b0\u4e0d\u4f73\u3002<\/p>\n<h4>4. XRC&#xff08;Extended Reliable Connection&#xff09;&#xff1a;\u6269\u5c55\u53ef\u9760\u8fde\u63a5\u6a21\u5f0f<\/h4>\n<p>\u968f\u7740\u96c6\u7fa4\u89c4\u6a21\u4ece\u5343\u5361\u5411\u4e07\u5361\u751a\u81f3\u5341\u4e07\u5361\u6f14\u8fdb&#xff0c;RC\u6a21\u5f0f\u7684\u201c\u5185\u5b58\u5899\u201d\u95ee\u9898\u65e5\u76ca\u51f8\u663e\u3002\u5728RC\u6a21\u5f0f\u4e0b&#xff0c;N\u4e2a\u8282\u70b9\u4e24\u4e24\u5168\u8fde\u63a5\u9700\u8981\u7ef4\u62a4 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>        O<\/p>\n<p>        (<\/p>\n<p>         N<\/p>\n<p>         2<\/p>\n<p>        )<\/p>\n<p>       O(N^2)<\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.0641em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8141em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span> \u4e2aQP&#xff0c;\u6bcf\u4e2aQP\u5728\u7f51\u5361\u786c\u4ef6\u548c\u4e3b\u673a\u5185\u5b58\u4e2d\u90fd\u8981\u5360\u7528\u72ec\u7acb\u7684\u7a7a\u95f4&#xff0c;\u5bfc\u81f4\u7f51\u5361SRAM\u548c\u4e3b\u673aDRAM\u8fc5\u901f\u8017\u5c3d\u3002XRC\u6a21\u5f0f\u901a\u8fc7\u5f15\u5165\u5171\u4eab\u63a5\u6536\u961f\u5217&#xff08;Shared Receive Queue, SRQ&#xff09; \u548cXRC Target\/Initiator\u673a\u5236&#xff0c;\u5c06\u63a5\u6536\u7aef\u7684QP\u6570\u91cf\u4ece <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>        O<\/p>\n<p>        (<\/p>\n<p>         N<\/p>\n<p>         2<\/p>\n<p>        )<\/p>\n<p>       O(N^2)<\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.0641em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8141em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span> \u964d\u4f4e\u5230 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>        O<\/p>\n<p>        (<\/p>\n<p>        N<\/p>\n<p>        )<\/p>\n<p>       O(N)<\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>&#xff0c;\u6781\u5927\u5730\u63d0\u5347\u4e86\u7cfb\u7edf\u7684\u53ef\u6269\u5c55\u6027\u3002XRC\u5728\u4fdd\u6301RC\u53ef\u9760\u6027\u7684\u540c\u65f6&#xff0c;\u89e3\u51b3\u4e86\u5927\u89c4\u6a21\u96c6\u7fa4\u4e2d\u7684\u8d44\u6e90\u74f6\u9888\u3002<\/p>\n<p>\u5728\u540e\u7eed\u7684\u5b9e\u6218\u6d4b\u8bd5\u4e2d&#xff0c;\u6211\u4eec\u5c06\u4f7f\u7528NVIDIA\u65b0\u4e00\u4ee3\u7684DOCA perftest\u5de5\u5177\u3002\u4f20\u7edf\u7684 perftest \u5957\u4ef6&#xff08;\u5982 ib_send_bw&#xff09;\u867d\u7136\u7ecf\u5178&#xff0c;\u4f46\u5728\u4f20\u8f93\u6a21\u5f0f\u5207\u6362\u4e0a\u5b58\u5728\u5c40\u9650&#xff08;\u9ed8\u8ba4\u786c\u7f16\u7801\u4e3aRC&#xff09;\u3002DOCA perftest\u4f5c\u4e3a\u5176\u4e0b\u4e00\u4ee3\u66ff\u4ee3\u8005&#xff0c;\u63d0\u4f9b\u4e86\u7edf\u4e00\u7684\u4e8c\u8fdb\u5236\u548c\u7075\u6d3b\u7684 -ct \u53c2\u6570&#xff0c;\u80fd\u591f\u539f\u751f\u652f\u6301RC\u3001UC\u3001UD\u3001XRC\u7684\u5168\u9762\u5bf9\u6bd4\u6d4b\u8bd5\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u5e95\u5c42\u67b6\u6784\u4e0e\u53ef\u9760\u6027\u673a\u5236\u5256\u6790<\/h3>\n<p>\u8981\u6df1\u523b\u7406\u89e3\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u7684\u6027\u80fd\u5dee\u5f02&#xff0c;\u5fc5\u987b\u6df1\u5165\u5230IBTA\u89c4\u8303\u7684\u5e95\u5c42\u534f\u8bae\u67b6\u6784&#xff0c;\u5256\u6790\u5b83\u4eec\u5728\u6570\u636e\u5305\u5c01\u88c5\u3001\u72b6\u6001\u673a\u7ef4\u62a4\u4ee5\u53ca\u9519\u8bef\u5904\u7406\u673a\u5236\u4e0a\u7684\u6839\u672c\u533a\u522b\u3002<\/p>\n<h4>1. \u6570\u636e\u5305\u5c01\u88c5\u4e0e\u5934\u90e8\u5f00\u9500<\/h4>\n<p>RDMA\u6570\u636e\u5305\u7684\u6838\u5fc3\u662fBTH&#xff08;Base Transport Header&#xff09;&#xff0c;\u5b83\u5305\u542b\u4e86\u64cd\u4f5c\u7801&#xff08;Opcode&#xff09;\u3001PSN&#xff08;Packet Sequence Number&#xff09;\u548cQP Number\u7b49\u5173\u952e\u4fe1\u606f\u3002\u4e0d\u540c\u4f20\u8f93\u6a21\u5f0f\u5728BTH\u4e4b\u540e\u9644\u52a0\u7684\u5934\u90e8\u5dee\u5f02&#xff0c;\u76f4\u63a5\u51b3\u5b9a\u4e86\u5176\u8def\u7531\u80fd\u529b\u548c\u5185\u5b58\u5f00\u9500\u3002<\/p>\n<p>&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n|   BTH (12 Bytes)  |   RETH (16 Bytes) |   Payload         |  &lt;- RC\/UC (RDMA Write\/Read)<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n|   BTH (12 Bytes)  |   GRH (40 Bytes)  |   Payload         |  &lt;- UD (Send\/Recv)<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<\/p>\n<ul>\n<li>RC\/UC\u6a21\u5f0f&#xff1a;\u5728\u6267\u884cRDMA Write\/Read\u65f6&#xff0c;BTH\u540e\u7d27\u8ddfRETH&#xff08;Remote Endpoint Header&#xff09;&#xff0c;\u5305\u542b\u8fdc\u7a0b\u865a\u62df\u5730\u5740\u548cRKey\u3002\u7531\u4e8e\u662f\u9762\u5411\u8fde\u63a5\u7684&#xff0c;\u8def\u7531\u4fe1\u606f\u5728QP\u5efa\u7acb\u65f6\u5df2\u7ecf\u786e\u5b9a&#xff0c;\u6570\u636e\u5305\u4e0d\u9700\u8981\u643a\u5e26\u989d\u5916\u7684\u8def\u7531\u5934\u90e8&#xff0c;\u56e0\u6b64\u6709\u6548\u8f7d\u8377&#xff08;Payload&#xff09;\u5360\u6bd4\u6700\u9ad8&#xff0c;\u5e26\u5bbd\u5229\u7528\u7387\u6700\u4f18\u3002<\/li>\n<li>UD\u6a21\u5f0f&#xff1a;\u7531\u4e8e\u662f\u65e0\u8fde\u63a5\u7684&#xff0c;\u6bcf\u4e2a\u6570\u636e\u5305\u5fc5\u987b\u643a\u5e2640\u5b57\u8282\u7684GRH&#xff08;Global Route Header&#xff09;&#xff0c;\u7528\u4e8e\u5728\u591a\u5c42\u7f51\u7edc&#xff08;\u5982RoCEv2\u7684IP\/UDP\u7f51\u7edc&#xff09;\u4e2d\u8fdb\u884c\u72ec\u7acb\u8def\u7531\u3002\u8fd940\u5b57\u8282\u7684\u56fa\u5b9a\u5f00\u9500\u5728\u5c0f\u5305&#xff08;\u598264\u5b57\u8282&#xff09;\u573a\u666f\u4e0b\u4f1a\u4e25\u91cd\u6324\u538bPayload\u7a7a\u95f4&#xff0c;\u5bfc\u81f4\u5b9e\u9645\u6709\u6548\u5e26\u5bbd\u4e0b\u964d\u3002<\/li>\n<\/ul>\n<h4>2. \u53ef\u9760\u6027\u4fdd\u8bc1\u4e0e\u91cd\u4f20\u673a\u5236<\/h4>\n<p>RC\u6a21\u5f0f\u7684\u53ef\u9760\u6027\u4f9d\u8d56\u4e8e\u786c\u4ef6\u7ea7\u522b\u7684\u6ed1\u52a8\u7a97\u53e3\u548cACK\/NAK\u673a\u5236\u3002<\/p>\n<p>[Sender QP]                             [Receiver QP]<br \/>\n    |                                         |<br \/>\n    |&#8212; Data (PSN&#061;1) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt;|<br \/>\n    |&#8212; Data (PSN&#061;2) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt;|<br \/>\n    |&lt;&#8211; ACK (PSN&#061;2) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-|<br \/>\n    |&#8212; Data (PSN&#061;3) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt;| (Packet Lost in Network)<br \/>\n    |&#8212; Data (PSN&#061;4) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt;|<br \/>\n    |&lt;&#8211; NAK (Expected PSN&#061;3) &#8212;&#8212;&#8212;&#8212;&#8212;-|<br \/>\n    |&#8212; Data (PSN&#061;3) [Retransmit] &#8212;&#8212;&#8212;-&gt;| (Go-Back-N)<br \/>\n    |&#8212; Data (PSN&#061;4) [Retransmit] &#8212;&#8212;&#8212;-&gt;|<br \/>\n    |&lt;&#8211; ACK (PSN&#061;4) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-|<\/p>\n<ul>\n<li>RC\u7684Go-Back-N\u91cd\u4f20&#xff1a;\u5f53\u63a5\u6536\u7aef\u53d1\u73b0PSN\u4e0d\u8fde\u7eed&#xff08;\u5982\u671f\u671b\u6536\u52303&#xff0c;\u5374\u6536\u5230\u4e864&#xff09;&#xff0c;\u5b83\u4f1a\u4e22\u5f03\u540e\u7eed\u6240\u6709\u4e71\u5e8f\u5305&#xff0c;\u5e76\u53d1\u9001NAK\u8981\u6c42\u53d1\u9001\u7aef\u4ecePSN&#061;3\u5f00\u59cb\u91cd\u4f20\u3002\u8fd9\u79cd\u673a\u5236\u4fdd\u8bc1\u4e86\u4e25\u683c\u7684\u6709\u5e8f\u6027&#xff0c;\u4f46\u5728\u7f51\u7edc\u53d1\u751f\u4e22\u5305\u65f6&#xff0c;\u4f1a\u5bfc\u81f4\u4e25\u91cd\u7684\u961f\u5934\u963b\u585e&#xff08;Head-of-Line Blocking&#xff09;&#xff0c;\u6781\u5927\u5730\u635f\u5bb3\u5c3e\u5ef6\u8fdf&#xff08;Tail Latency&#xff09;\u3002\u8fd9\u4e5f\u662f\u8fd1\u671fOpenAI\u63d0\u51faMRC&#xff08;Multipath Reliable Connection&#xff09;\u534f\u8bae\u8bd5\u56fe\u89e3\u51b3\u7684\u6838\u5fc3\u75db\u70b9\u3002<\/li>\n<li>UC\u7684\u201c\u534a\u53ef\u9760\u201d\u7279\u6027&#xff1a;UC\u6a21\u5f0f\u6ca1\u6709ACK\/NAK\u3002\u5982\u679c\u53d1\u751f\u4e22\u5305&#xff0c;\u63a5\u6536\u7aef\u4e0d\u4f1a\u901a\u77e5\u53d1\u9001\u7aef\u3002\u4f46\u662f&#xff0c;\u63a5\u6536\u7aef\u7684\u786c\u4ef6\u4f9d\u7136\u4f1a\u68c0\u67e5PSN\u3002\u5982\u679c\u6536\u5230\u4e71\u5e8f\u5305&#xff0c;\u786c\u4ef6\u4f1a\u5c06\u5176\u4e22\u5f03&#xff0c;\u76f4\u5230\u53d1\u9001\u7aef\u91cd\u65b0\u53d1\u9001\u7f3a\u5931\u7684\u5305&#xff08;\u8fd9\u901a\u5e38\u9700\u8981\u4e0a\u5c42\u5e94\u7528\u901a\u8fc7\u5e26\u5916\u901a\u9053\u6216\u8d85\u65f6\u673a\u5236\u6765\u89e6\u53d1\u91cd\u4f20&#xff09;\u3002<\/li>\n<li>UD\u7684\u5b8c\u5168\u65e0\u72b6\u6001&#xff1a;UD\u6a21\u5f0f\u8fdePSN\u7684\u8fde\u7eed\u6027\u68c0\u67e5\u90fd\u76f8\u5bf9\u5bbd\u677e&#xff08;\u53d6\u51b3\u4e8e\u5177\u4f53\u5b9e\u73b0\u548c\u914d\u7f6e&#xff09;&#xff0c;\u63a5\u6536\u7aef\u5b8c\u5168\u201c\u6765\u4ec0\u4e48\u6536\u4ec0\u4e48\u201d&#xff0c;\u4e71\u5e8f\u548c\u4e22\u5305\u5b8c\u5168\u4ea4\u7531\u4e0a\u5c42\u5e94\u7528&#xff08;\u5982libfabric\u7684UDP provider\u6216\u81ea\u5b9a\u4e49RPC\u6846\u67b6&#xff09;\u5904\u7406\u3002<\/li>\n<\/ul>\n<h4>3. XRC\u7684\u5171\u4eab\u63a5\u6536\u67b6\u6784<\/h4>\n<p>XRC\u6a21\u5f0f\u901a\u8fc7\u89e3\u8026\u53d1\u9001\u548c\u63a5\u6536\u7684QP&#xff0c;\u5f7b\u5e95\u91cd\u6784\u4e86\u8fde\u63a5\u6a21\u578b\u3002<\/p>\n<p>  [Node A]                  [Node B]                  [Node C]<br \/>\n&#043;&#8212;&#8212;&#8212;&#043;               &#043;&#8212;&#8212;&#8212;&#043;               &#043;&#8212;&#8212;&#8212;&#043;<br \/>\n| XRC INI |               | XRC INI |               | XRC INI |<br \/>\n| QP (Tx) |               | QP (Tx) |               | QP (Tx) |<br \/>\n&#043;&#8212;-&#043;&#8212;-&#043;               &#043;&#8212;-&#043;&#8212;-&#043;               &#043;&#8212;-&#043;&#8212;-&#043;<br \/>\n     |                         |                         |<br \/>\n     | (SRQ Number in WQE)     |                         |<br \/>\n     v                         v                         v<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n|                   XRC TGT QP (Rx) \/ SRQ                     |<br \/>\n|                  (Shared across multiple INI QPs)           |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n|                   Host Memory \/ CQ                          |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<\/p>\n<p>\u5728XRC\u67b6\u6784\u4e2d&#xff0c;\u63a5\u6536\u7aef\u4e0d\u518d\u4e3a\u6bcf\u4e2a\u53d1\u9001\u7aef\u521b\u5efa\u72ec\u7acb\u7684Recv QP&#xff0c;\u800c\u662f\u521b\u5efa\u4e00\u4e2a\u6216\u591a\u4e2aXRC SRQ&#xff08;Shared Receive Queue&#xff09;\u3002\u53d1\u9001\u7aef&#xff08;XRC INI&#xff09;\u5728\u63d0\u4ea4Work Request&#xff08;WR&#xff09;\u65f6&#xff0c;\u9700\u8981\u5728WR\u4e2d\u6307\u5b9a\u76ee\u6807SRQ\u7684\u7f16\u53f7&#xff08;SRQ Number&#xff09;\u3002\u7f51\u5361\u786c\u4ef6\u6839\u636e\u8fd9\u4e2a\u7f16\u53f7&#xff0c;\u5c06\u6570\u636e\u76f4\u63a5DMA\u5230\u5171\u4eab\u7684\u63a5\u6536\u7f13\u51b2\u533a\u4e2d\u3002\u8fd9\u79cd\u8bbe\u8ba1\u4f7f\u5f97\u63a5\u6536\u7aef\u7684QP\u6570\u91cf\u4ece <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>        O<\/p>\n<p>        (<\/p>\n<p>         N<\/p>\n<p>         2<\/p>\n<p>        )<\/p>\n<p>       O(N^2)<\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.0641em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8141em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span> \u9aa4\u964d\u81f3 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>        O<\/p>\n<p>        (<\/p>\n<p>        N<\/p>\n<p>        )<\/p>\n<p>       O(N)<\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>&#xff0c;\u6781\u5927\u5730\u91ca\u653e\u4e86\u7f51\u5361SRAM\u548c\u4e3b\u673a\u5185\u5b58\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u5b9e\u6218\u6d4b\u8bd5\u77e9\u9635\u4e0e\u547d\u4ee4\u8bbe\u8ba1<\/h3>\n<p>\u4e3a\u4e86\u5168\u9762\u5bf9\u6bd4\u8fd9\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f&#xff0c;\u6211\u4eec\u91c7\u7528NVIDIA DOCA perftest\u5de5\u5177\u3002\u4f20\u7edf\u7684 perftest&#xff08;\u5982 ib_send_bw&#xff09;\u7531\u4e8e\u5386\u53f2\u539f\u56e0&#xff0c;\u5176\u547d\u4ee4\u884c\u53c2\u6570\u5bf9UC\/UD\/XRC\u7684\u652f\u6301\u975e\u5e38\u6709\u9650&#xff0c;\u901a\u5e38\u9700\u8981\u901a\u8fc7\u4fee\u6539\u6e90\u7801\u6216\u7f16\u5199\u81ea\u5b9a\u4e49libibverbs\u4ee3\u7801\u6765\u5b9e\u73b0\u3002DOCA perftest\u4f5c\u4e3a\u5b98\u65b9\u63a8\u8350\u7684\u4e0b\u4e00\u4ee3\u57fa\u51c6\u6d4b\u8bd5\u5de5\u5177&#xff0c;\u901a\u8fc7 -ct (Connection Type) \u53c2\u6570\u539f\u751f\u652f\u6301\u6240\u6709\u4f20\u8f93\u6a21\u5f0f\u7684\u65e0\u7f1d\u5207\u6362\u3002<\/p>\n<h4>1. \u6d4b\u8bd5\u73af\u5883\u51c6\u5907<\/h4>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e24\u53f0\u914d\u5907BlueField-3 DPU&#xff08;\u5185\u7f6eConnectX-7 200Gbps NIC&#xff09;\u7684\u670d\u52a1\u5668&#xff0c;IP\u5206\u522b\u4e3a 10.0.0.1 \u548c 10.0.0.2\u3002\u786e\u4fdd\u5df2\u5b89\u88c5DOCA SDK&#xff0c;\u5e76\u914d\u7f6e\u597dRoCEv2\u7684GID index\u3002<\/p>\n<h4>2. RC\u6a21\u5f0f\u5e26\u5bbd\u4e0e\u5ef6\u8fdf\u6d4b\u8bd5<\/h4>\n<p>RC\u662f\u9ed8\u8ba4\u6a21\u5f0f&#xff0c;\u6d4b\u8bd5\u547d\u4ee4\u4e0e\u4f20\u7edfperftest\u7c7b\u4f3c&#xff0c;\u4f46DOCA perftest\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u63a7\u5236\u3002<\/p>\n<p><span class=\"token comment\"># \u670d\u52a1\u7aef (Responder) &#8211; \u6d4b\u8bd5 64KB \u6d88\u606f\u5927\u5c0f\u7684\u5e26\u5bbd<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> RC <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> bw <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">65536<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">30<\/span><\/p>\n<p><span class=\"token comment\"># \u5ba2\u6237\u7aef (Requestor)<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> RC <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> bw <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">65536<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">30<\/span> <span class=\"token parameter variable\">-sn<\/span> <span class=\"token number\">10.0<\/span>.0.1<\/p>\n<p><span class=\"token comment\"># \u5ef6\u8fdf\u6d4b\u8bd5 (1\u5b57\u8282\u5c0f\u5305)<\/span><br \/>\n<span class=\"token comment\"># \u670d\u52a1\u7aef<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> RC <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> lat <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">2<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">10<\/span><br \/>\n<span class=\"token comment\"># \u5ba2\u6237\u7aef<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> RC <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> lat <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">2<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">10<\/span> <span class=\"token parameter variable\">-sn<\/span> <span class=\"token number\">10.0<\/span>.0.1<\/p>\n<h4>3. UC\u6a21\u5f0f\u5e26\u5bbd\u6d4b\u8bd5<\/h4>\n<p>\u901a\u8fc7 -ct UC \u5207\u6362\u5230\u4e0d\u53ef\u9760\u8fde\u63a5\u6a21\u5f0f\u3002\u6ce8\u610f&#xff0c;UC\u6a21\u5f0f\u4e0d\u652f\u6301RDMA Write\/Read\u7684\u67d0\u4e9b\u9ad8\u7ea7\u7279\u6027&#xff0c;\u901a\u5e38\u4f7f\u7528Send\/Recv\u64cd\u4f5c\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<p><span class=\"token comment\"># \u670d\u52a1\u7aef<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> UC <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> bw <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">4096<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">20<\/span><\/p>\n<p><span class=\"token comment\"># \u5ba2\u6237\u7aef<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> UC <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> bw <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">4096<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">20<\/span> <span class=\"token parameter variable\">-sn<\/span> <span class=\"token number\">10.0<\/span>.0.1<\/p>\n<h4>4. UD\u6a21\u5f0f\u5ef6\u8fdf\u4e0e\u6d88\u606f\u7387\u6d4b\u8bd5<\/h4>\n<p>UD\u6a21\u5f0f\u7531\u4e8e\u662f\u65e0\u8fde\u63a5\u7684&#xff0c;\u4e0d\u9700\u8981\u6307\u5b9a\u5bf9\u7aefIP\u8fdb\u884c\u8fde\u63a5\u5efa\u7acb&#xff0c;\u4f46\u9700\u8981\u786e\u4fddGID\u914d\u7f6e\u6b63\u786e\u3002UD\u6a21\u5f0f\u901a\u5e38\u7528\u4e8e\u6d4b\u8bd5\u5c0f\u6d88\u606f\u7684\u6781\u9650\u6d88\u606f\u7387&#xff08;Message Rate&#xff09;\u3002<\/p>\n<p><span class=\"token comment\"># \u670d\u52a1\u7aef<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> UD <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> bw <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">64<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">20<\/span><\/p>\n<p><span class=\"token comment\"># \u5ba2\u6237\u7aef (UD\u6a21\u5f0f\u5728perftest\u4e2d\u901a\u5e38\u4e5f\u9700\u8981\u6307\u5b9aserver IP\u7528\u4e8e\u540c\u6b65&#xff0c;\u4f46\u6570\u636e\u901a\u9053\u662f\u65e0\u8fde\u63a5\u7684)<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-d<\/span> mlx5_0 <span class=\"token parameter variable\">-ct<\/span> UD <span class=\"token parameter variable\">-v<\/span> send <span class=\"token parameter variable\">-m<\/span> bw <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">64<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token number\">20<\/span> <span class=\"token parameter variable\">-sn<\/span> <span class=\"token number\">10.0<\/span>.0.1<\/p>\n<h4>5. XRC\u6a21\u5f0f\u9ad8\u7ea7\u6d4b\u8bd5&#xff08;JSON\u914d\u7f6e&#xff09;<\/h4>\n<p>XRC\u7684\u914d\u7f6e\u8f83\u4e3a\u590d\u6742&#xff0c;\u6d89\u53caXRC INI\u3001XRC TGT\u548cSRQ\u7684\u7ed1\u5b9a\u3002DOCA perftest\u63a8\u8350\u4f7f\u7528JSON\u6a21\u5f0f\u6765\u5b9a\u4e49\u590d\u6742\u7684\u573a\u666f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5316\u7684XRC\u6d4b\u8bd5JSON\u914d\u7f6e\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;scenario&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;xrc_send_bw&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;hosts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;hostname&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;node1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;device&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;mlx5_0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;connection_type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;XRC&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;verb&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;send&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;mode&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;bw&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;size&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">8192<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;duration&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">30<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;role&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;server&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;hostname&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;node2&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;device&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;mlx5_0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;connection_type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;XRC&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;verb&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;send&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;mode&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;bw&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;size&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">8192<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;duration&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">30<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;role&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;client&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;server_hostname&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;node1&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5728\u4efb\u610f\u8282\u70b9\u6267\u884c&#xff0c;DOCA perftest\u4f1a\u901a\u8fc7MPI\/SSH\u81ea\u52a8\u5206\u53d1\u4efb\u52a1<\/span><br \/>\ndoca_perftest <span class=\"token parameter variable\">-in<\/span> xrc_test_scenario.json<\/p>\n<hr \/>\n<h3>\u56db\u3001\u6027\u80fd\u5b9e\u6d4b\u6570\u636e\u4e0e\u8d44\u6e90\u5360\u7528\u5bf9\u6bd4<\/h3>\n<p>\u4e3a\u4e86\u76f4\u89c2\u5c55\u73b0\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u7684\u5dee\u5f02&#xff0c;\u6211\u4eec\u5728200Gbps RoCEv2\u7f51\u7edc\u73af\u5883\u4e0b&#xff08;ConnectX-7 NIC&#xff0c;PCIe 5.0 x16&#xff0c;CPU\u4e3aIntel Xeon Platinum 8480&#043;&#xff09;\u8fdb\u884c\u4e86\u5168\u9762\u7684\u57fa\u51c6\u6d4b\u8bd5\u3002\u4ee5\u4e0b\u6570\u636e\u4e3a\u5178\u578b\u53c2\u8003\u503c&#xff0c;\u5b9e\u9645\u8868\u73b0\u53ef\u80fd\u56e0\u56fa\u4ef6\u7248\u672c\u548c\u7cfb\u7edf\u8c03\u4f18\u7565\u6709\u6d6e\u52a8\u3002<\/p>\n<h4>1. \u5e26\u5bbd\u4e0e\u6d88\u606f\u7387\u5bf9\u6bd4 (Bandwidth &amp; Message Rate)<\/h4>\n<table>\n<tr>\u6d88\u606f\u5927\u5c0f (Bytes)RC \u5e26\u5bbd (Gbps)UC \u5e26\u5bbd (Gbps)UD \u5e26\u5bbd (Gbps)XRC \u5e26\u5bbd (Gbps)\u6027\u80fd\u5206\u6790<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">2 (Latency)<\/td>\n<td align=\"left\">N\/A (\u6d4bMsgRate)<\/td>\n<td align=\"left\">N\/A<\/td>\n<td align=\"left\">45.2 Mpps<\/td>\n<td align=\"left\">N\/A<\/td>\n<td align=\"left\">UD\u5c0f\u5305\u6d88\u606f\u7387\u6700\u9ad8&#xff0c;\u65e0ACK\u5f00\u9500\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">64<\/td>\n<td align=\"left\">18.5<\/td>\n<td align=\"left\">19.2<\/td>\n<td align=\"left\">16.8<\/td>\n<td align=\"left\">18.4<\/td>\n<td align=\"left\">UD\u56e0GRH\u5934\u90e8\u5f00\u9500&#xff0c;\u6709\u6548\u5e26\u5bbd\u7565\u4f4e\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">4,096<\/td>\n<td align=\"left\">192.4<\/td>\n<td align=\"left\">194.1<\/td>\n<td align=\"left\">185.6<\/td>\n<td align=\"left\">191.8<\/td>\n<td align=\"left\">\u4e2d\u5927\u5305\u573a\u666f&#xff0c;RC\/UC\/XRC\u5747\u80fd\u8dd1\u6ee1200G\u7ebf\u901f\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">65,536<\/td>\n<td align=\"left\">196.8<\/td>\n<td align=\"left\">197.2<\/td>\n<td align=\"left\">N\/A (\u53d7\u9650)<\/td>\n<td align=\"left\">196.5<\/td>\n<td align=\"left\">\u5927\u5305\u573a\u666f&#xff0c;RC\/XRC\u786c\u4ef6\u5378\u8f7d\u4f18\u52bf\u6700\u5927\u5316\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6570\u636e\u6df1\u5ea6\u89e3\u6790&#xff1a;<\/p>\n<ul>\n<li>\u5c0f\u5305\u573a\u666f&#xff08;2B-64B&#xff09;&#xff1a;UD\u6a21\u5f0f\u5c55\u73b0\u51fa\u6700\u9ad8\u7684\u6d88\u606f\u7387&#xff08;Message Rate&#xff09;\u3002\u56e0\u4e3aUD\u4e0d\u9700\u8981\u7ef4\u62a4\u8fde\u63a5\u72b6\u6001&#xff0c;\u4e0d\u9700\u8981\u7b49\u5f85ACK&#xff0c;\u7f51\u5361\u53ef\u4ee5\u4ee5\u201c\u53d1\u5c04\u540e\u4e0d\u7ba1\u201d\u7684\u65b9\u5f0f\u5168\u901f\u63a8\u9001\u6570\u636e\u5305\u3002RC\u548cXRC\u7531\u4e8e\u9700\u8981\u7b49\u5f85ACK&#xff08;\u5373\u4f7f\u662f\u5728\u5e26\u5bbd\u6d4b\u8bd5\u4e2d&#xff0c;\u5e95\u5c42\u4f9d\u7136\u6709ACK\u4ea4\u4e92\u4ee5\u7ef4\u6301\u7a97\u53e3&#xff09;&#xff0c;\u6d88\u606f\u7387\u7565\u900a\u4e00\u7b79\u3002<\/li>\n<li>\u5927\u5305\u573a\u666f&#xff08;4KB\u4ee5\u4e0a&#xff09;&#xff1a;RC\u3001UC\u548cXRC\u7684\u5e26\u5bbd\u51e0\u4e4e\u4e00\u81f4&#xff0c;\u5747\u80fd\u8fbe\u5230195Gbps\u4ee5\u4e0a&#xff0c;\u903c\u8fd1200Gbps\u7684\u7269\u7406\u7ebf\u901f\u3002\u6b64\u65f6\u7f51\u5361DMA\u5f15\u64ce\u548cPCIe\u603b\u7ebf\u6210\u4e3a\u4e3b\u8981\u74f6\u9888&#xff0c;\u4f20\u8f93\u6a21\u5f0f\u7684\u534f\u8bae\u5dee\u5f02\u88ab\u5927Payload\u644a\u8584\u3002UD\u6a21\u5f0f\u5728\u5927\u5305\u4e0b\u8868\u73b0\u4e0d\u4f73&#xff0c;\u56e0\u4e3a\u65e0\u8fde\u63a5\u6a21\u5f0f\u7f3a\u4e4f\u786c\u4ef6\u7ea7\u522b\u7684\u6d41\u63a7&#xff0c;\u5bb9\u6613\u5728\u4ea4\u6362\u673a\u7aef\u53e3\u9020\u6210\u5fae\u7a81\u53d1&#xff08;Microburst&#xff09;\u4e22\u5305\u3002<\/li>\n<\/ul>\n<h4>2. \u5ef6\u8fdf\u5bf9\u6bd4 (Latency)<\/h4>\n<table>\n<tr>\u6d88\u606f\u5927\u5c0f (Bytes)RC t_avg (us)UC t_avg (us)UD t_avg (us)XRC t_avg (us)\u6027\u80fd\u5206\u6790<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">2<\/td>\n<td align=\"left\">1.85<\/td>\n<td align=\"left\">1.62<\/td>\n<td align=\"left\">1.45<\/td>\n<td align=\"left\">1.88<\/td>\n<td align=\"left\">UD\u5ef6\u8fdf\u6700\u4f4e&#xff0c;\u7701\u53bb\u4e86QP\u72b6\u6001\u68c0\u67e5\u548cACK\u7b49\u5f85\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">256<\/td>\n<td align=\"left\">2.10<\/td>\n<td align=\"left\">1.95<\/td>\n<td align=\"left\">1.80<\/td>\n<td align=\"left\">2.12<\/td>\n<td align=\"left\">\u968f\u7740Payload\u589e\u52a0&#xff0c;DMA\u4f20\u8f93\u65f6\u95f4\u5360\u636e\u4e3b\u5bfc&#xff0c;\u5dee\u5f02\u7f29\u5c0f\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">4,096<\/td>\n<td align=\"left\">3.45<\/td>\n<td align=\"left\">3.30<\/td>\n<td align=\"left\">3.25<\/td>\n<td align=\"left\">3.48<\/td>\n<td align=\"left\">\u5927\u5305\u5ef6\u8fdf\u4e3b\u8981\u53d6\u51b3\u4e8ePCIe\u548c\u5185\u5b58\u62f7\u8d1d&#xff0c;\u534f\u8bae\u5dee\u5f02\u53ef\u5ffd\u7565\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6570\u636e\u6df1\u5ea6\u89e3\u6790&#xff1a;<\/p>\n<ul>\n<li>\u5728\u5c0f\u5305\u5ef6\u8fdf\u4e0a&#xff0c;UD\u6a21\u5f0f\u6bd4RC\u6a21\u5f0f\u4f4e\u7ea60.4us\u3002\u8fd90.4us\u7684\u5dee\u8ddd\u6765\u81ea\u4e8e&#xff1a;RC\u6a21\u5f0f\u5728\u53d1\u9001\u7aef\u9700\u8981\u68c0\u67e5\u53d1\u9001\u7a97\u53e3\u3001\u66f4\u65b0PSN&#xff1b;\u5728\u63a5\u6536\u7aef\u9700\u8981\u6821\u9a8cPSN\u3001\u53d1\u9001ACK\u3002UD\u6a21\u5f0f\u5b8c\u5168\u8df3\u8fc7\u4e86\u8fd9\u4e9b\u786c\u4ef6\u72b6\u6001\u673a\u7684\u68c0\u67e5&#xff0c;\u76f4\u63a5\u8fdb\u884cDMA\u6253\u5305\u3002\u5bf9\u4e8e\u9ad8\u9891\u4ea4\u6613\u7b49\u5bf9\u5ef6\u8fdf\u6781\u5ea6\u654f\u611f\u7684\u573a\u666f&#xff0c;\u8fd90.4us\u662f\u51b3\u5b9a\u6027\u7684\u3002<\/li>\n<\/ul>\n<h4>3. QP\u6570\u91cf\u6269\u5c55\u4e0e\u5185\u5b58\u5360\u7528\u5bf9\u6bd4<\/h4>\n<p>\u5f53\u96c6\u7fa4\u89c4\u6a21\u6269\u5927&#xff0c;QP\u6570\u91cf\u4ece1\u4e07\u589e\u52a0\u5230100\u4e07\u65f6&#xff0c;\u8d44\u6e90\u6d88\u8017\u7684\u5dee\u5f02\u5448\u6307\u6570\u7ea7\u653e\u5927\u3002<\/p>\n<table>\n<tr>QP \u6570\u91cfRC \u4e3b\u673a\u5185\u5b58\u5360\u7528RC \u7f51\u5361SRAM\u5360\u7528XRC \u4e3b\u673a\u5185\u5b58\u5360\u7528XRC \u7f51\u5361SRAM\u5360\u7528\u6269\u5c55\u6027\u8bc4\u4f30<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">10,000<\/td>\n<td align=\"left\">~150 MB<\/td>\n<td align=\"left\">~80 MB<\/td>\n<td align=\"left\">~45 MB<\/td>\n<td align=\"left\">~20 MB<\/td>\n<td align=\"left\">\u6240\u6709\u6a21\u5f0f\u5747\u53ef\u8f7b\u677e\u652f\u6301\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">100,000<\/td>\n<td align=\"left\">~1.5 GB<\/td>\n<td align=\"left\">~800 MB<\/td>\n<td align=\"left\">~120 MB<\/td>\n<td align=\"left\">~85 MB<\/td>\n<td align=\"left\">RC\u5f00\u59cb\u6d88\u8017\u5927\u91cf\u5185\u5b58&#xff0c;XRC\u4f18\u52bf\u663e\u73b0\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">1,000,000<\/td>\n<td align=\"left\">~15 GB<\/td>\n<td align=\"left\">\u6ea2\u51fa\/\u53d7\u9650<\/td>\n<td align=\"left\">~1.1 GB<\/td>\n<td align=\"left\">~350 MB<\/td>\n<td align=\"left\">RC\u9762\u4e34\u4e25\u91cd\u7684\u5185\u5b58\u5899&#xff0c;XRC\u662f\u552f\u4e00\u9009\u62e9\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6570\u636e\u6df1\u5ea6\u89e3\u6790&#xff1a;<\/p>\n<ul>\n<li>RC\u7684\u5185\u5b58\u5899&#xff1a;\u6bcf\u4e2aRC QP\u5728\u4e3b\u673a\u4fa7\u9700\u8981\u5206\u914dSend Queue (SQ)\u3001Receive Queue (RQ)\u3001Completion Queue (CQ) \u7684\u5185\u5b58&#xff0c;\u5e76\u5728\u7f51\u5361\u4fa7\u5206\u914d\u786c\u4ef6\u4e0a\u4e0b\u6587&#xff08;Context&#xff09;\u3002100\u4e07\u4e2aRC QP\u9700\u8981\u6d88\u8017\u8d85\u8fc715GB\u7684\u4e3b\u673aDRAM\u548c\u6570\u767eMB\u7684\u7f51\u5361SRAM\u3002\u8bb8\u591a\u4e2d\u4f4e\u7aef\u7f51\u5361\u7684SRAM\u6839\u672c\u4e0d\u8db3\u4ee5\u5bb9\u7eb3\u8fd9\u4e48\u591aQP&#xff0c;\u5bfc\u81f4\u521b\u5efaQP\u5931\u8d25\u3002<\/li>\n<li>XRC\u7684\u964d\u7ef4\u6253\u51fb&#xff1a;XRC\u901a\u8fc7\u5171\u4eabSRQ&#xff0c;\u5c06\u63a5\u6536\u7aef\u7684RQ\u5408\u5e76\u3002100\u4e07\u4e2aXRC\u8fde\u63a5&#xff0c;\u63a5\u6536\u7aef\u53ef\u80fd\u53ea\u9700\u89811000\u4e2aXRC SRQ\u3002\u8fd9\u4f7f\u5f97\u4e3b\u673a\u5185\u5b58\u548c\u7f51\u5361SRAM\u7684\u5360\u7528\u4e0b\u964d\u4e8690%\u4ee5\u4e0a&#xff0c;\u662f\u6784\u5efa\u5341\u4e07\u5361\u7ea7AI\u96c6\u7fa4\u7684\u5fc5\u7531\u4e4b\u8def\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e94\u3001\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u4e0e\u53ef\u6269\u5c55\u6027\u6df1\u5ea6\u89e3\u6790<\/h3>\n<p>\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d&#xff0c;\u8fde\u63a5\u7684\u5efa\u7acb\u548c\u9500\u6bc1\u9891\u7387\u5f80\u5f80\u51b3\u5b9a\u4e86\u7cfb\u7edf\u7684\u542f\u52a8\u65f6\u95f4\u548c\u5bb9\u707e\u6062\u590d\u901f\u5ea6\u3002<\/p>\n<h4>1. \u8fde\u63a5\u5efa\u7acb\u7684\u72b6\u6001\u673a\u8fc1\u79fb<\/h4>\n<p>RC\u548cUC\u6a21\u5f0f\u5728\u901a\u4fe1\u524d&#xff0c;\u5fc5\u987b\u7ecf\u5386\u4e25\u683c\u7684\u72b6\u6001\u673a\u8fc1\u79fb&#xff1a;RESET -&gt; INIT -&gt; RTR (Ready to Receive) -&gt; RTS (Ready to Send)\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u9700\u8981\u4ea4\u6362QPN\u3001PSN\u3001GID\u3001MTU\u7b49\u5927\u91cf\u5143\u6570\u636e\u3002<\/p>\n<ul>\n<li>RC\/UC\/XRC&#xff1a;\u5efa\u7acb\u65f6\u95f4\u901a\u5e38\u5728 1ms &#8211; 5ms \u4e4b\u95f4&#xff0c;\u53d6\u51b3\u4e8e\u7f51\u7edc\u5ef6\u8fdf\u548cRDMA CM&#xff08;Connection Manager&#xff09;\u7684\u6548\u7387\u3002\u5728\u4e07\u5361\u96c6\u7fa4\u4e2d&#xff0c;\u5982\u679c\u6240\u6709\u8282\u70b9\u540c\u65f6\u542f\u52a8\u5e76\u5efa\u7acb\u5168\u8fde\u63a5&#xff0c;\u8fde\u63a5\u5efa\u7acb\u7684\u201c\u60ca\u7fa4\u6548\u5e94\u201d\u4f1a\u5bfc\u81f4\u63a7\u5236\u5e73\u9762\u5d29\u6e83\u3002<\/li>\n<li>UD&#xff1a;\u7531\u4e8e\u662f\u65e0\u8fde\u63a5\u7684&#xff0c;\u5efa\u7acb\u65f6\u95f4\u4e3a 0\u3002\u5e94\u7528\u5c42\u53ea\u9700\u5206\u914d\u4e00\u4e2aUD QP&#xff0c;\u5373\u53ef\u5411\u4efb\u610f\u8282\u70b9\u53d1\u9001\u6570\u636e\u3002\u8fd9\u4f7f\u5f97UD\u5728RPC\u3001\u670d\u52a1\u53d1\u73b0\u3001\u5fc3\u8df3\u68c0\u6d4b\u7b49\u573a\u666f\u4e2d\u5177\u6709\u4e0d\u53ef\u66ff\u4ee3\u7684\u4f18\u52bf\u3002<\/li>\n<\/ul>\n<h4>2. RC\u7684\u5c40\u9650\u6027&#xff1a;\u5355\u8def\u5f84\u4e0e\u961f\u5934\u963b\u585e<\/h4>\n<p>\u6b63\u5982OpenAI\u5728\u8fd1\u671f\u53d1\u5e03\u7684MRC&#xff08;Multipath Reliable Connection&#xff09;\u8bba\u6587\u4e2d\u6240\u6307\u51fa\u7684&#xff0c;\u4f20\u7edf\u7684RC\u6a21\u5f0f\u5728\u5927\u89c4\u6a21\u65e0\u635f\u7f51\u7edc\u4e2d\u9762\u4e34\u7740\u4e25\u5cfb\u7684\u6311\u6218&#xff1a;<\/p>\n<li>Flow Collision&#xff08;\u6d41\u78b0\u649e&#xff09;&#xff1a;RC QP\u662f\u5355\u8def\u5f84\u7684\u3002\u5728Fat-Tree\u62d3\u6251\u4e2d&#xff0c;ECMP&#xff08;\u7b49\u4ef7\u591a\u8def\u5f84\u8def\u7531&#xff09;\u57fa\u4e8e\u4e94\u5143\u7ec4\u54c8\u5e0c\u3002\u5982\u679c\u591a\u4e2aRC QP\u7684\u54c8\u5e0c\u503c\u51b2\u7a81&#xff0c;\u5b83\u4eec\u4f1a\u88ab\u8def\u7531\u5230\u540c\u4e00\u6761\u7269\u7406\u94fe\u8def&#xff0c;\u5bfc\u81f4\u8be5\u94fe\u8def\u62e5\u585e&#xff0c;\u800c\u5176\u4ed6\u94fe\u8def\u7a7a\u95f2\u3002RC\u6a21\u5f0f\u7f3a\u4e4f\u591a\u8def\u5f84\u611f\u77e5\u80fd\u529b&#xff0c;\u65e0\u6cd5\u4e3b\u52a8\u907f\u8ba9\u3002<\/li>\n<li>Go-Back-N \u91cd\u4f20\u5bfc\u81f4\u7684\u961f\u5934\u963b\u585e&#xff1a;\u5f53\u7f51\u7edc\u53d1\u751f\u5fae\u7a81\u53d1\u4e22\u5305\u65f6&#xff0c;RC\u7684NAK\u673a\u5236\u8981\u6c42\u53d1\u9001\u7aef\u4ece\u4e22\u5931\u7684\u5305\u5f00\u59cb\u91cd\u4f20\u6240\u6709\u540e\u7eed\u5305\u3002\u8fd9\u4e0d\u4ec5\u6d6a\u8d39\u4e86\u5e26\u5bbd&#xff0c;\u8fd8\u4f1a\u5bfc\u81f4\u540e\u7eed\u5df2\u7ecf\u6b63\u786e\u5230\u8fbe\u63a5\u6536\u7aef\u7f51\u5361\u7684\u6570\u636e\u65e0\u6cd5\u88ab\u5e94\u7528\u5c42\u6d88\u8d39&#xff0c;\u6781\u5927\u5730\u589e\u52a0\u4e86\u5c3e\u5ef6\u8fdf&#xff08;99.9% Latency&#xff09;\u3002<\/li>\n<h4>3. XRC\u7684\u6269\u5c55\u6027\u8fb9\u754c<\/h4>\n<p>XRC\u867d\u7136\u89e3\u51b3\u4e86\u63a5\u6536\u7aef\u7684\u5185\u5b58\u5899&#xff0c;\u4f46\u53d1\u9001\u7aef&#xff08;XRC INI&#xff09;\u4f9d\u7136\u9700\u8981\u4e3a\u6bcf\u4e2a\u76ee\u6807\u7ef4\u62a4\u72ec\u7acb\u7684QP\u3002\u8fd9\u610f\u5473\u7740\u53d1\u9001\u7aef\u7684\u5185\u5b58\u6d88\u8017\u4f9d\u7136\u662f <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>        O<\/p>\n<p>        (<\/p>\n<p>         N<\/p>\n<p>         2<\/p>\n<p>        )<\/p>\n<p>       O(N^2)<\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.0641em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8141em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>\u3002\u4e3a\u4e86\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898&#xff0c;\u4e1a\u754c\u6b63\u5728\u63a2\u7d22\u57fa\u4e8e\u8f6f\u4ef6\u5b9a\u4e49\u7684\u4f20\u8f93\u5c42&#xff08;\u5982UCCL-Tran&#xff09;\u6216\u4e0b\u4e00\u4ee3\u786c\u4ef6\u534f\u8bae&#xff08;\u5982MRC&#xff09;&#xff0c;\u901a\u8fc7\u7f51\u5361\u786c\u4ef6\u7ea7\u522b\u7684Packet Spraying&#xff08;\u5305\u55b7\u6d12&#xff09;\u548cSelective Retransmission&#xff08;\u9009\u62e9\u6027\u91cd\u4f20&#xff09;&#xff0c;\u5728\u4fdd\u6301RC\u8bed\u4e49\u7684\u540c\u65f6&#xff0c;\u5b9e\u73b0\u591a\u8def\u5f84\u548c\u4e71\u5e8f\u4ea4\u4ed8\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u5178\u578b\u4e1a\u52a1\u573a\u666f\u9009\u578b\u6307\u5357<\/h3>\n<p>\u7406\u89e3\u4e86\u5e95\u5c42\u673a\u5236\u548c\u6027\u80fd\u6570\u636e\u540e&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u8fd9\u4e9b\u77e5\u8bc6\u6620\u5c04\u5230\u5b9e\u9645\u7684\u4e1a\u52a1\u573a\u666f\u4e2d\u3002\u6ca1\u6709\u7edd\u5bf9\u5b8c\u7f8e\u7684\u4f20\u8f93\u6a21\u5f0f&#xff0c;\u53ea\u6709\u6700\u9002\u5408\u4e1a\u52a1\u7684\u6743\u8861\u3002<\/p>\n<h4>1. AI\u8bad\u7ec3&#xff08;NCCL\/RCCL&#xff09;&#xff1a;RC\u4e3a\u4e3b&#xff0c;MRC\u4e3a\u8f85<\/h4>\n<ul>\n<li>\u5f53\u524d\u73b0\u72b6&#xff1a;NCCL\u548cRCCL\u9ed8\u8ba4\u4f7f\u7528RC\u6a21\u5f0f\u3002AI\u8bad\u7ec3\u4e2d\u7684AllReduce\u3001AllGather\u7b49\u64cd\u4f5c\u9700\u8981\u4f20\u8f93\u5927\u91cf\u7684Tensor\u6570\u636e&#xff08;MB\u5230GB\u7ea7\u522b&#xff09;&#xff0c;RC\u6a21\u5f0f\u7684\u5927\u5305\u5e26\u5bbd\u548c\u4e25\u683c\u6709\u5e8f\u6027\u80fd\u591f\u6700\u5927\u5316GPU\u5229\u7528\u7387\u3002<\/li>\n<li>\u75db\u70b9\u4e0e\u6f14\u8fdb&#xff1a;\u5728\u4e07\u5361\u96c6\u7fa4\u4e2d&#xff0c;RC\u7684\u5355\u8def\u5f84\u78b0\u649e\u548c\u4e22\u5305\u91cd\u4f20\u4f1a\u5bfc\u81f4\u8bad\u7ec3\u4efb\u52a1\u5361\u987f\u3002OpenAI\u7684MRC\u534f\u8bae\u6b63\u662f\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002MRC\u5728\u786c\u4ef6\u5c42\u9762\u5b9e\u73b0\u4e86\u591a\u8def\u5f84\u55b7\u6d12\u548c\u9009\u62e9\u6027\u91cd\u4f20&#xff0c;\u5bf9\u4e0a\u5c42\u5e94\u7528&#xff08;NCCL&#xff09;\u900f\u660e\u3002\u672a\u6765&#xff0c;\u652f\u6301MRC\u7684\u7f51\u5361&#xff08;\u5982ConnectX-8&#xff09;\u5c06\u6210\u4e3aAI\u96c6\u7fa4\u7684\u6807\u914d\u3002<\/li>\n<li>\u9009\u578b\u5efa\u8bae&#xff1a;\u5e38\u89c4\u96c6\u7fa4\u4f7f\u7528RC&#xff1b;\u8d85\u5927\u89c4\u6a21\u3001\u5bf9\u5c3e\u5ef6\u8fdf\u6781\u5ea6\u654f\u611f\u7684\u96c6\u7fa4&#xff0c;\u5347\u7ea7\u652f\u6301MRC\u7684\u786c\u4ef6\u3002<\/li>\n<\/ul>\n<h4>2. \u5206\u5e03\u5f0f\u5b58\u50a8&#xff08;SPDK\/NVMe-oF&#xff09;&#xff1a;RC\u4fdd\u8bc1\u4e00\u81f4\u6027&#xff0c;UC\u63a2\u7d22\u4f4e\u5ef6\u8fdf<\/h4>\n<ul>\n<li>\u5f53\u524d\u73b0\u72b6&#xff1a;NVMe-oF&#xff08;NVMe over Fabrics&#xff09;\u7684RDMA transport\u9ed8\u8ba4\u4f7f\u7528RC\u6a21\u5f0f\u3002\u5b58\u50a8\u7cfb\u7edf\u5bf9\u6570\u636e\u4e00\u81f4\u6027\u7684\u8981\u6c42\u662f\u7edd\u5bf9\u7684&#xff0c;RC\u7684\u53ef\u9760\u6027\u548c\u6709\u5e8f\u6027\u80fd\u591f\u786e\u4fdd\u8bfb\u5199\u547d\u4ee4\u7684\u4e25\u683c\u6267\u884c&#xff0c;\u907f\u514d\u6570\u636e\u635f\u574f\u3002<\/li>\n<li>\u75db\u70b9\u4e0e\u6f14\u8fdb&#xff1a;\u5728\u6781\u9ad8IOPS\u7684\u573a\u666f\u4e0b&#xff0c;RC\u7684\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u548cACK\u5ef6\u8fdf\u4f1a\u6210\u4e3a\u74f6\u9888\u3002\u90e8\u5206\u524d\u6cbf\u7814\u7a76\u5f00\u59cb\u5c1d\u8bd5\u5728\u5b58\u50a8\u6570\u636e\u901a\u9053\u4f7f\u7528UC\u6a21\u5f0f&#xff0c;\u914d\u5408\u4e0a\u5c42SPDK\u7684\u8f6e\u8be2\u548c\u91cd\u8bd5\u673a\u5236&#xff0c;\u4ee5\u6362\u53d6\u66f4\u4f4e\u7684CPU\u5360\u7528\u548c\u5ef6\u8fdf\u3002<\/li>\n<li>\u9009\u578b\u5efa\u8bae&#xff1a;\u6838\u5fc3\u6570\u636e\u5e93\u3001\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u4f7f\u7528RC&#xff1b;\u5bf9\u5ef6\u8fdf\u6781\u5ea6\u654f\u611f\u4e14\u4e0a\u5c42\u5177\u5907\u5b8c\u5584\u91cd\u8bd5\u673a\u5236\u7684\u7f13\u5b58\u7cfb\u7edf&#xff0c;\u53ef\u5c1d\u8bd5UC\u3002<\/li>\n<\/ul>\n<h4>3. RPC\u4e0e\u6d88\u606f\u4e2d\u95f4\u4ef6&#xff08;libfabric, RDMA CM&#xff09;&#xff1a;UD\u7684\u5929\u4e0b<\/h4>\n<ul>\n<li>\u5f53\u524d\u73b0\u72b6&#xff1a;\u5728\u5fae\u670d\u52a1\u67b6\u6784\u3001\u5206\u5e03\u5f0f\u9501\u3001\u952e\u503c\u5b58\u50a8&#xff08;\u5982Memcached RDMA&#xff09;\u4e2d&#xff0c;\u6d88\u606f\u901a\u5e38\u5f88\u5c0f&#xff08;\u51e0\u5341\u5b57\u8282\u5230\u51e0KB&#xff09;&#xff0c;\u4e14\u5e76\u53d1\u8fde\u63a5\u6570\u6781\u9ad8\u3002\u6b64\u65f6&#xff0c;UD\u6a21\u5f0f\u662f\u6700\u4f73\u9009\u62e9\u3002<\/li>\n<li>\u4f18\u52bf&#xff1a;UD\u7684\u96f6\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u3001\u6781\u5c0f\u7684\u5185\u5b58\u5360\u7528\u548c\u5c0f\u5305\u4f4e\u5ef6\u8fdf&#xff0c;\u5b8c\u7f8e\u5951\u5408RPC\u573a\u666f\u3002libfabric\u7684 verbs;ofi_rxm \u6216 udp provider \u5728\u5e95\u5c42\u5927\u91cf\u4f7f\u7528UD\u6216\u7c7b\u4f3cUD\u7684\u8bed\u4e49\u3002<\/li>\n<li>\u9009\u578b\u5efa\u8bae&#xff1a;\u5c0f\u6d88\u606f\u3001\u9ad8\u5e76\u53d1\u3001\u591a\u5bf9\u591a\u901a\u4fe1\u573a\u666f&#xff0c;\u6beb\u4e0d\u72b9\u8c6b\u5730\u9009\u62e9UD\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e03\u3001\u6d4b\u8bd5\u907f\u5751\u6307\u5357\u4e0e\u9ad8\u7ea7\u8c03\u4f18<\/h3>\n<p>\u5728\u5b9e\u6218\u6d4b\u8bd5\u4e2d&#xff0c;\u4f20\u8f93\u6a21\u5f0f\u7684\u5207\u6362\u5f80\u5f80\u4f34\u968f\u7740\u5404\u79cd\u201c\u5751\u201d\u3002\u4ee5\u4e0b\u662f\u8001\u90ed\u603b\u7ed3\u7684\u5e38\u89c1\u9677\u9631\u53ca\u8c03\u4f18\u5efa\u8bae\u3002<\/p>\n<h4>1. UD\u7684MTU\u4e0ePayload\u9677\u9631<\/h4>\n<p>\u5751&#xff1a;\u5728\u6d4b\u8bd5UD\u6a21\u5f0f\u65f6&#xff0c;\u53d1\u73b0\u5b9e\u9645\u5e26\u5bbd\u8fdc\u4f4e\u4e8e\u9884\u671f&#xff0c;\u6216\u8005\u7f51\u5361\u62a5MTU\u9519\u8bef\u3002 \u539f\u56e0&#xff1a;UD\u6a21\u5f0f\u7684\u6bcf\u4e2a\u6570\u636e\u5305\u5fc5\u987b\u643a\u5e2640\u5b57\u8282\u7684GRH\u3002\u5982\u679c\u7f51\u5361MTU\u8bbe\u7f6e\u4e3a1024\u5b57\u8282&#xff0c;BTH(12B) &#043; GRH(40B) &#043; ICRC(4B) &#061; 56\u5b57\u8282\u3002\u5b9e\u9645\u53ef\u7528\u7684Payload\u53ea\u6709 1024 &#8211; 56 &#061; 968\u5b57\u8282\u3002\u5982\u679c\u5e94\u7528\u5c42\u63091024\u5b57\u8282\u53d1\u9001&#xff0c;\u4f1a\u5bfc\u81f4\u5206\u7247\u6216\u62a5\u9519\u3002 \u8c03\u4f18&#xff1a;\u5728\u6d4b\u8bd5UD\u65f6&#xff0c;\u52a1\u5fc5\u5c06\u6d88\u606f\u5927\u5c0f&#xff08;-s&#xff09;\u8bbe\u7f6e\u4e3aMTU\u51cf\u53bb56\u5b57\u8282\u540e\u7684\u503c&#xff0c;\u6216\u8005\u5728\u7f51\u5361\u4fa7\u5f00\u542fJumbo Frame&#xff08;\u5982MTU 9000&#xff09;&#xff0c;\u4ee5\u644a\u8584GRH\u7684\u5934\u90e8\u5f00\u9500\u3002<\/p>\n<h4>2. XRC\u7684\u914d\u7f6e\u590d\u6742\u6027<\/h4>\n<p>\u5751&#xff1a;\u4f7f\u7528DOCA perftest\u6d4b\u8bd5XRC\u65f6&#xff0c;\u7a0b\u5e8f\u76f4\u63a5Core Dump\u6216\u62a5 EINVAL\u3002 \u539f\u56e0&#xff1a;XRC\u9700\u8981\u6b63\u786e\u914d\u7f6eXRC TGT QP\u548cXRC SRQ&#xff0c;\u5e76\u4e14CQ\u7684\u5206\u914d\u6709\u4e25\u683c\u8981\u6c42&#xff08;XRC TGT QP\u5fc5\u987b\u4e0eSRQ\u5171\u4eabCQ&#xff0c;\u6216\u8005\u4f7f\u7528\u7279\u5b9a\u7684CQ\u7ed1\u5b9a\u673a\u5236&#xff09;\u3002\u4f20\u7edfperftest\u4e0d\u652f\u6301&#xff0c;DOCA perftest\u5982\u679c\u53c2\u6570\u4e0d\u5168\u4e5f\u4f1a\u5931\u8d25\u3002 \u8c03\u4f18&#xff1a;\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528DOCA perftest\u7684JSON\u6a21\u5f0f\u8fdb\u884cXRC\u6d4b\u8bd5&#xff0c;\u786e\u4fdd\u6240\u6709\u4e0a\u4e0b\u6587&#xff08;Context&#xff09;\u3001PD&#xff08;Protection Domain&#xff09;\u3001SRQ\u7684\u521b\u5efa\u987a\u5e8f\u548c\u7ed1\u5b9a\u5173\u7cfb\u7b26\u5408IBTA\u89c4\u8303\u3002<\/p>\n<h4>3. RC\u7684\u5185\u5b58\u6cc4\u6f0f\u4e0eQP\u672a\u9500\u6bc1<\/h4>\n<p>\u5751&#xff1a;\u957f\u65f6\u95f4\u8fd0\u884cRC\u6d4b\u8bd5\u540e&#xff0c;\u7cfb\u7edfOOM&#xff08;Out of Memory&#xff09;&#xff0c;\u6216\u8005\u7f51\u5361\u62a5 ENOMEM \u65e0\u6cd5\u521b\u5efa\u65b0QP\u3002 \u539f\u56e0&#xff1a;\u6d4b\u8bd5\u7a0b\u5e8f\u5f02\u5e38\u9000\u51fa&#xff0c;\u5bfc\u81f4QP\u6ca1\u6709\u88ab\u6b63\u786eDestroy&#xff0c;\u5e95\u5c42\u7684MR&#xff08;Memory Region&#xff09;\u548cCQ\u4e5f\u6ca1\u6709\u91ca\u653e\u3002 \u8c03\u4f18&#xff1a;\u5728\u6d4b\u8bd5\u811a\u672c\u4e2d\u589e\u52a0 trap \u4fe1\u53f7\u5904\u7406&#xff0c;\u786e\u4fdd\u5728 SIGINT \u6216 SIGTERM \u65f6\u8c03\u7528 ibv_destroy_qp\u3002\u540c\u65f6&#xff0c;\u5b9a\u671f\u68c0\u67e5 cat \/sys\/kernel\/debug\/mlx5\/0000:XX:00.0\/QPs \u786e\u8ba4\u7f51\u5361\u4fa7QP\u6570\u91cf\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<h4>4. \u9ad8\u7ea7\u8c03\u4f18\u53c2\u6570<\/h4>\n<p>\u4e3a\u4e86\u69a8\u5e72\u7f51\u5361\u7684\u6781\u9650\u6027\u80fd&#xff0c;\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u4f20\u8f93\u6a21\u5f0f&#xff0c;\u4ee5\u4e0b\u7cfb\u7edf\u7ea7\u8c03\u4f18\u90fd\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684&#xff1a;<\/p>\n<ul>\n<li>PCIe Relax Order&#xff1a;\u5728DOCA perftest\u4e2d\u5f00\u542f &#8211;pci-relax-order&#xff0c;\u5141\u8bb8\u7f51\u5361\u4e71\u5e8f\u5199\u5165PCIe&#xff0c;\u63d0\u5347\u5927\u5305\u5e26\u5bbd\u3002<\/li>\n<li>CQ Moderation&#xff1a;\u5bf9\u4e8e\u5e26\u5bbd\u6d4b\u8bd5&#xff0c;\u5173\u95edCQ\u5408\u5e76&#xff08;-C 1&#xff09;&#xff1b;\u5bf9\u4e8e\u5ef6\u8fdf\u6d4b\u8bd5&#xff0c;\u5f00\u542fCQ\u5408\u5e76\u4ee5\u51cf\u5c11CPU\u4e2d\u65ad\u5f00\u9500\u3002<\/li>\n<li>CPU Affinity&#xff1a;\u4f7f\u7528 taskset \u6216 DOCA perftest\u7684 -co \u53c2\u6570&#xff0c;\u5c06\u6d4b\u8bd5\u7ebf\u7a0b\u7ed1\u5b9a\u5230\u4e0e\u7f51\u5361\u540cNUMA Node\u7684CPU\u6838\u5fc3\u4e0a&#xff0c;\u907f\u514d\u8de8NUMA\u5185\u5b58\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<hr \/>\n<p>\u4f5c\u8005\u7b80\u4ecb&#xff1a;\u8d44\u6df1RDMA\u667a\u80fd\u7f51\u5361\u3001\u5b58\u50a8\u6280\u672f\u4e13\u5bb6&#xff0c;\u62e5\u6709\u5341\u4f59\u5e74DPU\/RDMA\/NVMe SSD\u82af\u7247\u6d4b\u8bd5\u4e0e\u5de5\u7a0b\u7ecf\u9a8c&#xff0c;\u81f4\u529b\u4e8e\u63a8\u52a8\u9ad8\u6027\u80fd\u7f51\u7edc\u6280\u672f\u7684\u5f00\u6e90\u4e0e\u666e\u53ca\u3002<\/p>\n<h3>\u53c2\u8003\u8d44\u6599<\/h3>\n<li>RDMA \u8fd0\u7ef4 &#8211; \u9648\u5c11\u6587\u7684\u535a\u5ba2<\/li>\n<li>NVIDIA DOCA Perftest: RDMA Benchmarking Guide<\/li>\n<li>DOCA Perftest v3.5.0 Documentation<\/li>\n<li>DOCA Perftest v2.5.6 Documentation<\/li>\n<li>Reading OpenAI\u2019s MRC Through a UCCL Lens<\/li>\n<li>InfiniBand Trade Association (IBTA) Architecture Specification Volume 1<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5ea6\u5256\u6790RDMA\u56db\u5927\u4f20\u8f93\u6a21\u5f0f&#xff08;RC\/UC\/UD\/XRC&#xff09;\u7684\u5e95\u5c42\u673a\u5236\u4e0e\u6027\u80fd\u5dee\u5f02\u3002\u901a\u8fc7DOCA perftest\u5de5\u5177\u5b9e\u6d4b\u5bf9\u6bd4\u5e26\u5bbd\u3001\u5ef6\u8fdf\u53ca\u8d44\u6e90\u6d88\u8017&#xff0c;\u7ed3\u5408IBTA\u89c4\u8303\u4e0e\u5927\u89c4\u6a21\u96c6\u7fa4\u5b9e\u6218&#xff0c;\u7ed9\u51faAI\u8bad\u7ec3\u3001\u5206\u5e03\u5f0f\u5b58\u50a8\u53caRPC\u573a\u666f\u7684\u9009\u578b\u6307\u5357&#xff0c;\u52a9\u529b\u5de5\u7a0b\u5e08\u7a81\u7834RDMA\u6027\u80fd\u74f6\u9888\u3002 \u76ee\u5f55<br \/>\n\u4e00\u3001\u5f15\u8a00\u4e0e\u6838\u5fc3\u6982\u5ff5\u4e8c\u3001\u5e95\u5c42\u67b6\u6784\u4e0e\u53ef\u9760\u6027\u673a\u5236\u5256\u6790\u4e09\u3001\u5b9e\u6218\u6d4b\u8bd5\u77e9\u9635\u4e0e\u547d\u4ee4\u8bbe\u8ba1\u56db\u3001\u6027\u80fd\u5b9e\u6d4b\u6570\u636e\u4e0e\u8d44\u6e90\u5360\u7528\u5bf9\u6bd4\u4e94\u3001\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u4e0e<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13178,11539,13329,7111,13328,1002],"topic":[],"class_list":["post-117591","post","type-post","status-publish","format-standard","hentry","category-server","tag-1024---","tag-dpu","tag-perftest","tag-rdma","tag-13328","tag-1002"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/117591.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5ea6\u5256\u6790RDMA\u56db\u5927\u4f20\u8f93\u6a21\u5f0f&#xff08;RC\/UC\/UD\/XRC&#xff09;\u7684\u5e95\u5c42\u673a\u5236\u4e0e\u6027\u80fd\u5dee\u5f02\u3002\u901a\u8fc7DOCA perftest\u5de5\u5177\u5b9e\u6d4b\u5bf9\u6bd4\u5e26\u5bbd\u3001\u5ef6\u8fdf\u53ca\u8d44\u6e90\u6d88\u8017&#xff0c;\u7ed3\u5408IBTA\u89c4\u8303\u4e0e\u5927\u89c4\u6a21\u96c6\u7fa4\u5b9e\u6218&#xff0c;\u7ed9\u51faAI\u8bad\u7ec3\u3001\u5206\u5e03\u5f0f\u5b58\u50a8\u53caRPC\u573a\u666f\u7684\u9009\u578b\u6307\u5357&#xff0c;\u52a9\u529b\u5de5\u7a0b\u5e08\u7a81\u7834RDMA\u6027\u80fd\u74f6\u9888\u3002 \u76ee\u5f55 \u4e00\u3001\u5f15\u8a00\u4e0e\u6838\u5fc3\u6982\u5ff5\u4e8c\u3001\u5e95\u5c42\u67b6\u6784\u4e0e\u53ef\u9760\u6027\u673a\u5236\u5256\u6790\u4e09\u3001\u5b9e\u6218\u6d4b\u8bd5\u77e9\u9635\u4e0e\u547d\u4ee4\u8bbe\u8ba1\u56db\u3001\u6027\u80fd\u5b9e\u6d4b\u6570\u636e\u4e0e\u8d44\u6e90\u5360\u7528\u5bf9\u6bd4\u4e94\u3001\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u4e0e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117591.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-24T19:48:22+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117591.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117591.html\",\"name\":\"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-24T19:48:22+00:00\",\"dateModified\":\"2026-10-24T19:48:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117591.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117591.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117591.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/117591.html","og_locale":"zh_CN","og_type":"article","og_title":"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5ea6\u5256\u6790RDMA\u56db\u5927\u4f20\u8f93\u6a21\u5f0f&#xff08;RC\/UC\/UD\/XRC&#xff09;\u7684\u5e95\u5c42\u673a\u5236\u4e0e\u6027\u80fd\u5dee\u5f02\u3002\u901a\u8fc7DOCA perftest\u5de5\u5177\u5b9e\u6d4b\u5bf9\u6bd4\u5e26\u5bbd\u3001\u5ef6\u8fdf\u53ca\u8d44\u6e90\u6d88\u8017&#xff0c;\u7ed3\u5408IBTA\u89c4\u8303\u4e0e\u5927\u89c4\u6a21\u96c6\u7fa4\u5b9e\u6218&#xff0c;\u7ed9\u51faAI\u8bad\u7ec3\u3001\u5206\u5e03\u5f0f\u5b58\u50a8\u53caRPC\u573a\u666f\u7684\u9009\u578b\u6307\u5357&#xff0c;\u52a9\u529b\u5de5\u7a0b\u5e08\u7a81\u7834RDMA\u6027\u80fd\u74f6\u9888\u3002 \u76ee\u5f55 \u4e00\u3001\u5f15\u8a00\u4e0e\u6838\u5fc3\u6982\u5ff5\u4e8c\u3001\u5e95\u5c42\u67b6\u6784\u4e0e\u53ef\u9760\u6027\u673a\u5236\u5256\u6790\u4e09\u3001\u5b9e\u6218\u6d4b\u8bd5\u77e9\u9635\u4e0e\u547d\u4ee4\u8bbe\u8ba1\u56db\u3001\u6027\u80fd\u5b9e\u6d4b\u6570\u636e\u4e0e\u8d44\u6e90\u5360\u7528\u5bf9\u6bd4\u4e94\u3001\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u4e0e","og_url":"https:\/\/www.wsisp.com\/helps\/117591.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-24T19:48:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117591.html","url":"https:\/\/www.wsisp.com\/helps\/117591.html","name":"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-24T19:48:22+00:00","dateModified":"2026-10-24T19:48:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117591.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117591.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117591.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RC\/UC\/UD\/XRC\u56db\u79cd\u4f20\u8f93\u6a21\u5f0f\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5b9e\u6218\u9009\u578b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=117591"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117591\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117591"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}