{"rsdb":{"rid":"2834","subhead":"","postdate":"0","aid":"1224","fid":"56","uid":"1","topic":"1","content":"

\u8bf4\u660e\uff1alvs\u7684\u914d\u7f6e\u6a21\u5f0f\u6709ipvsadm+keepalived\u3001  ipvsadm+heartbeat+ldirectord\u3001ipvsadm+piranha<\/p>

\u4e09\u79cd\u5de5\u4f5c\u6a21\u5f0f<\/span>

1\u3001NAT<\/p>

\u4f18\u70b9\uff1a<\/strong>\u96c6\u7fa4\u4e2d\u7684\u7269\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u652f\u6301TCP\/IP\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7269\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u5206\u914dInternet\u7684\u4fdd\u7559\u79c1\u6709\u5730\u5740\uff0c\u53ea\u6709\u8d1f\u8f7d\u5747\u8861\u5668\u9700\u8981\u4e00\u4e2a\u5408\u6cd5\u7684IP\u5730\u5740\u3002
\u7f3a\u70b9\uff1a<\/strong>\u6269\u5c55\u6027\u6709\u9650\u3002\u5f53\u670d\u52a1\u5668\u8282\u70b9\uff08\u666e\u901aPC\u670d\u52a1\u5668\uff09\u6570\u636e\u589e\u957f\u523020\u4e2a\u6216\u66f4\u591a\u65f6,\u8d1f\u8f7d\u5747\u8861\u5668\u5c06\u6210\u4e3a\u6574\u4e2a\u7cfb\u7edf\u7684\u74f6\u9888\uff0c\u56e0\u4e3a\u6240\u6709\u7684\u8bf7\u6c42\u5305\u548c\u5e94\u7b54\u5305\u90fd\u9700\u8981\u7ecf\u8fc7\u8d1f\u8f7d\u5747\u8861\u5668\u518d\u751f\u3002<\/span>\u5047 \u4f7fTCP\u5305\u7684\u5e73\u5747\u957f\u5ea6\u662f536\u5b57\u8282\u7684\u8bdd\uff0c\u5e73\u5747\u5305\u518d\u751f\u5ef6\u8fdf\u65f6\u95f4\u5927\u7ea6\u4e3a60us\uff08\u5728Pentium\u5904\u7406\u5668\u4e0a\u8ba1\u7b97\u7684\uff0c\u91c7\u7528\u66f4\u5feb\u7684\u5904\u7406\u5668\u5c06\u4f7f\u5f97\u8fd9\u4e2a\u5ef6\u8fdf\u65f6\u95f4\u53d8 \u77ed\uff09\uff0c\u8d1f\u8f7d\u5747\u8861\u5668\u7684\u6700\u5927\u5bb9\u8bb8\u80fd\u529b\u4e3a8.93M\/s\uff0c\u5047\u5b9a\u6bcf\u53f0\u7269\u7406\u670d\u52a1\u5668\u7684\u5e73\u53f0\u5bb9\u8bb8\u80fd\u529b\u4e3a400K\/s\u6765\u8ba1\u7b97\uff0c\u8d1f\u8d23\u5747\u8861\u5668\u80fd\u4e3a22\u53f0\u7269\u7406\u670d\u52a1\u5668\u8ba1\u7b97\u3002<\/p>

\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong>\u5373 \u4f7f\u662f\u662f\u8d1f\u8f7d\u5747\u8861\u5668\u6210\u4e3a\u6574\u4e2a\u7cfb\u7edf\u7684\u74f6\u9888\uff0c\u5982\u679c\u662f\u8fd9\u6837\u4e5f\u6709\u4e24\u79cd\u65b9\u6cd5\u6765\u89e3\u51b3\u5b83\u3002\u4e00\u79cd\u662f\u6df7\u5408\u5904\u7406\uff0c\u53e6\u4e00\u79cd\u662f\u91c7\u7528Virtual Server via IP tunneling\u6216Virtual Server via direct routing\u3002\u5982\u679c\u91c7\u7528\u6df7\u5408\u5904\u7406\u7684\u65b9\u6cd5\uff0c\u5c06\u9700\u8981\u8bb8\u591a\u540c\u5c5e\u5355\u4e00\u7684RR DNS\u57df\u3002\u4f60\u91c7\u7528Virtual Server via IP tunneling\u6216Virtual Server via direct routing\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u53ef\u6269\u5c55\u6027\u3002\u4e5f\u53ef\u4ee5\u5d4c\u5957\u4f7f\u7528\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u5728\u6700\u524d\u7aef\u7684\u662fVS-Tunneling\u6216VS-Drouting\u7684\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u7136\u540e\u540e\u9762 \u91c7\u7528VS-NAT\u7684\u8d1f\u8f7d\u5747\u8861\u5668\u3002<\/p>

2\u3001Virtual server via IP tunneling\uff08VS-TUN\uff09<\/p>

\u6211\u4eec\u53d1\u73b0\uff0c\u8bb8\u591aInternet\u670d\u52a1\uff08\u4f8b\u5982WEB\u670d\u52a1\u5668\uff09\u7684\u8bf7\u6c42\u5305\u5f88\u77ed\u5c0f\uff0c\u800c\u5e94\u7b54\u5305\u901a\u5e38\u5f88\u5927\u3002<\/span><\/p>

\u4f18\u70b9\uff1a<\/strong>\u8d1f \u8f7d\u5747\u8861\u5668\u53ea\u8d1f\u8d23\u5c06\u8bf7\u6c42\u5305\u5206\u53d1\u7ed9\u7269\u7406\u670d\u52a1\u5668\uff0c\u800c\u7269\u7406\u670d\u52a1\u5668\u5c06\u5e94\u7b54\u5305\u76f4\u63a5\u53d1\u7ed9\u7528\u6237\u3002\u6240\u4ee5\uff0c\u8d1f\u8f7d\u5747\u8861\u5668\u80fd\u5904\u7406\u5f88\u5de8\u5927\u7684\u8bf7\u6c42\u91cf\uff0c\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4e00\u53f0\u8d1f\u8f7d\u5747\u8861\u80fd\u4e3a\u8d85\u8fc7 100\u53f0\u7684\u7269\u7406\u670d\u52a1\u5668\u670d\u52a1\uff0c\u8d1f\u8f7d\u5747\u8861\u5668\u4e0d\u518d\u662f\u7cfb\u7edf\u7684\u74f6\u9888\u3002\u4f7f\u7528VS-TUN\u65b9\u5f0f\uff0c\u5982\u679c\u4f60\u7684\u8d1f\u8f7d\u5747\u8861\u5668\u62e5\u6709100M\u7684\u5168\u53cc\u5de5\u7f51\u5361\u7684\u8bdd\uff0c\u5c31\u80fd\u4f7f\u5f97\u6574\u4e2a Virtual Server\u80fd\u8fbe\u52301G\u7684\u541e\u5410\u91cf\u3002<\/p>

\u4e0d\u8db3\uff1a<\/strong>\u4f46\u662f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u6240\u6709\u7684\u670d\u52a1\u5668\u652f\u6301\u201dIP Tunneling\u201d(IP Encapsulation)\u534f\u8bae\uff0c\u6211\u4ec5\u5728Linux\u7cfb\u7edf\u4e0a\u5b9e\u73b0\u4e86\u8fd9\u4e2a\uff0c\u5982\u679c\u4f60\u80fd\u8ba9\u5176\u5b83\u64cd\u4f5c\u7cfb\u7edf\u652f\u6301\uff0c\u8fd8\u5728\u63a2\u7d22\u4e4b\u4e2d\u3002<\/p>

3\u3001Virtual Server via Direct Routing\uff08VS-DR\uff09<\/p>

\u4f18\u70b9\uff1a<\/strong>\u548c VS\uff0dTUN\u4e00\u6837\uff0c\u8d1f\u8f7d\u5747\u8861\u5668\u4e5f\u53ea\u662f\u5206\u53d1\u8bf7\u6c42\uff0c\u5e94\u7b54\u5305\u901a\u8fc7\u5355\u72ec\u7684\u8def\u7531\u65b9\u6cd5\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002\u4e0eVS-TUN\u76f8\u6bd4\uff0cVS-DR\u8fd9\u79cd\u5b9e\u73b0\u65b9\u5f0f\u4e0d\u9700\u8981\u96a7\u9053\u7ed3\u6784\uff0c\u56e0\u6b64 \u53ef\u4ee5\u4f7f\u7528\u5927\u591a\u6570\u64cd\u4f5c\u7cfb\u7edf\u505a\u4e3a\u7269\u7406\u670d\u52a1\u5668\uff0c\u5176\u4e2d\u5305\u62ec\uff1aLinux \uff1bSolaris \uff1bFreeBSD \uff1bNT4.0\u65e0\u9700\u6253\u8865\u4e01\uff1bIRIX 6.5\uff1bHPUX11\u7b49\u3002<\/p>

\u4e0d\u8db3\uff1a<\/strong>\u8981\u6c42\u8d1f\u8f7d\u5747\u8861\u5668\u7684\u7f51\u5361\u5fc5\u987b\u4e0e\u7269\u7406\u7f51\u5361\u5728\u4e00\u4e2a\u7269\u7406\u6bb5\u4e0a\u3002<\/p><\/p>","orderid":"0","title":"lvs\u4e09\u79cd\u5de5\u4f5c\u6a21\u5f0f\u4f18\u7f3a\u70b9\u5206\u6790","smalltitle":"","mid":"0","fname":"\u7f51\u7edc\u7f16\u7a0b","special_id":"0","bak_id":"0","info":"0","hits":"1778","pages":"1","comments":"0","posttime":"2012-08-26 14:03:50","list":"1345961030","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"lvs<\/A> \u5de5\u4f5c<\/A> \u6a21\u5f0f<\/A> \u7f3a\u70b9<\/A> \u5206\u6790<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"112.90.197.63","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"\u8bf4\u660e\uff1alvs\u7684\u914d\u7f6e\u6a21\u5f0f\u6709ipvsadm+keepalived\u3001 ipvsadm+heartbeat+ldirectord\u3001ipvsadm+piranha\u4e09\u79cd\u5de5\u4f5c\u6a21\u5f0f1\u3001NAT\u4f18\u70b9\uff1a\u96c6\u7fa4\u4e2d\u7684\u7269\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u652f\u6301TCP\/IP\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7269\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u5206\u914dInternet\u7684\u4fdd\u7559\u79c1\u6709\u5730\u5740\uff0c\u53ea\u6709\u8d1f\u8f7d\u5747\u8861\u5668\u9700\u8981\u4e00\u4e2a\u5408\u6cd5\u7684IP\u5730\u5740\u3002\u7f3a\u70b9\uff1a\u6269..","lastview":"1487791224","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"|2","htmlname":"","city_id":"0"},"page":"1"}