{"id":86414,"date":"2024-01-06T17:11:33","date_gmt":"2024-01-06T09:11:33","guid":{"rendered":"http:\/\/gulass.cn\/?p=86414"},"modified":"2024-01-06T17:11:33","modified_gmt":"2024-01-06T09:11:33","slug":"dpvs-lvs","status":"publish","type":"post","link":"https:\/\/gulass.cn\/dpvs-lvs.html","title":{"rendered":"\u5f00\u6e90\u8d1f\u8f7d\u5747\u8861\u5668DPVS"},"content":{"rendered":"
\nDPVS\u662f\u57fa\u4e8eDPDK\u7684\u9ad8\u6027\u80fd\u7b2c4\u5c42\u8d1f\u8f7d\u5747\u8861\u5668\u3002\u57fa\u4e8e\u963f\u91cc\u5df4\u5df4\/ LVS\u4fee\u6539\u800c\u6765\uff0c\u51fa\u4e8e\u84dd\u800c\u80dc\u4e8e\u84dd\u3002<\/p>\n
DPDK\u5168\u79f0\u4e3a \u201cDPDK-LVS\u201d.<\/p><\/blockquote>\n
\u4e3a\u4e86\u8fbe\u5230\u9ad8\u6027\u80fd\uff0c\u4f7f\u7528\u4e86\u591a\u79cd\u4e0d\u540c\u6280\u672f<\/p>\n
\n
- \u5185\u6838\u65c1\u8def\uff08\u7528\u6237\u7a7a\u95f4\u5b9e\u73b0\uff09<\/li>\n
- \u65e0CPU\uff0c\u65e0\u5bc6\u94a5\u6570\u636e\uff08\u65e0\u9501\uff09<\/li>\n
- RX\u8f6c\u5411\u548cCPU\u7ed1\u5b9a\uff08\u907f\u514d\u4e0a\u4e0b\u6587\u5207\u6362\uff09<\/li>\n
- \u6279\u5904\u7406TX \/ RX<\/li>\n
- Zero\u590d\u5236\uff08\u907f\u514d\u6570\u636e\u5305\u590d\u5236\u548c\u7cfb\u7edf\u8c03\u7528\uff09\u3002<\/li>\n
- \u8f6e\u8be2\u66ff\u6362\u4e2d\u65ad\u3002<\/li>\n
- \u9ad8\u6027\u80fdICP\u7684\u65e0\u9501\u4fe1\u606f\u3002<\/li>\n
- \u5176\u4ed6\u6280\u672f\u7531DPDK\u52a0\u5f3a<\/li>\n<\/ul>\n
DPVS\u7684\u4e3b\u8981\u7279\u70b9\u5305\u62ec\uff1a<\/strong><\/p>\n
L4\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u5305\u62ecFNAT\uff0cDR\u6a21\u5f0f\u7b49<\/p>\n
\u4e0d\u540c\u7684\u8c03\u5ea6\u7b97\u6cd5\uff0c\u5982RR\u3001WLC\u3001WRR\u7b49<\/p>\n
\u7528\u6237\u7a7a\u95f4Lite IP\u5806\u6808\uff08IPv4\uff0c\u8def\u7531\uff0cARP\uff0cICMP \u2026\uff09\u3002<\/p>\n
SNAT\u6a21\u5f0f\uff0c\u7528\u4e8e\u4ece\u5185\u90e8\u7f51\u7edc\u8bbf\u95eeInternet\u3002<\/p>\n
\u652f\u6301KNI\uff0cVLAN\uff0c\u4e0d\u540cIDC\u73af\u5883\u7684\u7ed1\u5b9a\u3002<\/p>\n
\u5b89\u5168\u65b9\u9762\uff0c\u652f\u6301TCP syn-proxy\uff0cConn-Limit\uff0c\u9ed1\u540d\u5355\u3002<\/p>\n
QoS\uff1a\u6d41\u91cf\u63a7\u5236\uff08\u6301\u7eed\uff09<\/p>\n
DPVS\u529f\u80fd\u6a21\u5757\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n
<\/p>\n
\u5feb\u901f\u5f00\u59cb<\/strong><\/div>\n\u6d4b\u8bd5\u73af\u5883<\/strong><\/span><\/div>\n\u53ef\u4ee5\u5feb\u901f\u542f\u52a8\u7528\u4e0b\u9762\u7684\u73af\u5883\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n
Linux\u53d1\u884c\u7248\uff1aCentOS 7.2<\/p>\n
\u5185\u6838\uff1a3.10.0-327.el7.x86_64<\/p>\n
CPU\uff1aIntel\uff08R\uff09Xeon\uff08R\uff09CPU E5-2650 v3 @ 2.30GHz<\/p>\n
NIC\uff1aIntel X540<\/p>\n
\u5185\u5b58\uff1a64G\u548cNUMA\u7cfb\u7edf\u3002<\/p>\n
GCC\uff1agcc\u7248\u672c4.8.5 20150623\uff08\u7ea2\u5e3d4.8.5-4\uff09<\/p>\n
\u5982\u679cDPDK\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\uff0c\u5176\u4ed6\u73af\u5883\u4e5f\u53ef\u4ee5\uff0c\u8bf7\u67e5\u770bdpdk.org\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n
\u5b89\u88c5\u8fc7\u7a0b\u7565\uff0c\u53ef\u4ee5\u5230\u5b98\u7f51\u67e5\u770b\u8be6\u60c5\u3002<\/p>\n
\u6d4b\u8bd5 Full-NAT \u8d1f\u8f7d\u5747\u8861<\/strong><\/span><\/div>\n\u6d4b\u8bd5\u62d3\u6251\u56fe\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n
<\/p>\n
\u5728DPVS\u4e0a\u8bbe\u7f6eVIP\u548c\u672c\u5730IP\uff08\u5b8c\u5168NAT\u6a21\u5f0f\u6240\u9700\u7684LIP\uff09\u3002 \u6211\u4eec\u628a\u547d\u4ee4\u653e\u5230setup.sh\u4e2d\u3002 \u4f60\u53ef\u4ee5\u901a\u8fc7.\/ipvsadm -ln\uff0c.\/dpip addr show\u6765\u68c0\u67e5\u4e00\u4e0b\u3002<\/p>\n
<\/p>\n
\u4ece\u5ba2\u6237\u7aef\u8bbf\u95eeVIP\uff0c\u770b\u8d77\u6765\u6b63\u5e38\uff01<\/p>\n
<\/p>\n
\u6027\u80fd\u6d4b\u8bd5<\/strong><\/span><\/div>\n<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/23023.html<\/a><\/p>\n