{"id":14922,"date":"2025-05-28T22:40:00","date_gmt":"2025-05-28T14:40:00","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=14922"},"modified":"2025-05-29T10:15:23","modified_gmt":"2025-05-29T02:15:23","slug":"pfsense%e6%96%b0%e7%89%88%e6%9c%ac%e5%a4%a7%e5%b9%85%e5%ba%a6%e4%bc%98%e5%8c%96%e4%ba%86pppoe%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=14922","title":{"rendered":"pfSense\u65b0\u7248\u672c\u5927\u5e45\u5ea6\u63d0\u5347PPPoE\u6027\u80fd"},"content":{"rendered":"<p style=\"text-align: justify;\">Netgate\u5373\u5c06\u53d1\u5e03pfSense CE 2.8\u548cpfSense plus 25.03\u7248\u672c\uff0c\u5728\u65b0\u7248\u672c\u4e2d\uff0c\u901a\u8fc7\u5f15\u5165\u65b0\u7684<em>if_pppoe<\/em>\u9a71\u52a8\u7a0b\u5e8f\uff0c\u5927\u5e45\u5ea6\u63d0\u9ad8\u4e86PPPoE\u7684\u8fde\u63a5\u901f\u5ea6\u3002<\/p>\n<p style=\"text-align: justify;\">\u81ea2013\u5e74\u53d1\u5e03pfSense ce 2.1.0\u5e74\u4ee5\u6765\uff0cpfSense\u591a\u5e74\u6765\u4e00\u76f4\u4f9d\u8d56mpd5\u548cnetgraph\u6765\u5904\u7406PPPoE WAN\u8fde\u63a5\u3002\u867d\u7136\u8fd9\u79cd\u8bbe\u7f6e\u6709\u52a9\u4e8e\u5efa\u7acb\u4e0e PPPoE \u670d\u52a1\u7684\u8fde\u63a5\uff0c\u4f46\u73b0\u5728\u5343\u5146\u7f51\u7edc\u7684\u9700\u6c42\u66b4\u9732\u4e86\u5e95\u5c42\u67b6\u6784\u7684\u5c40\u9650\u6027\u3002\u968f\u7740\u8fd0\u8425\u5546\u63d0\u4f9b\u9ad8\u8fbe0Gbps\u7684PPPoE\u670d\u52a1\uff0cWAN\u8fde\u63a5\u7684\u6027\u80fd\u5c06\u4f1a\u975e\u5e38\u91cd\u8981\u3002\u5728\u5b98\u65b9\u7684\u8fd9\u7bc7<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.netgate.com\/blog\/optimizing-pppoe-performance-in-pfsense-software\">\u535a\u5ba2\u6587\u7ae0<\/a><\/span>\u4e2d\uff0c\u6df1\u5165\u63a2\u8ba8\u4e86 Netgraph\u8fbe\u4e0d\u5230\u8981\u6c42\u7684\u539f\u56e0\uff0c\u5e76\u5c31\u65b0\u7684<em>if_pppoe<\/em> \u9a71\u52a8\u5982\u4f55\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u4ecb\u7ecd\u4e86\u5b9e\u73b0\u671f\u671b\u7684\u6280\u672f\u7ec6\u8282\u3002<\/p>\n<h2 style=\"text-align: justify;\">mpd5<\/h2>\n<p style=\"text-align: justify;\">\u591a\u94fe\u8defPPP\u5b88\u62a4\u8fdb\u7a0b\uff08mpd5\uff09\u5229\u7528Netgraph\uff0c\u8fd9\u662f\u4e00\u4e2a\u6a21\u5757\u5316\u7684FreeBSD\u5185\u6838\u6846\u67b6\uff0c\u65e8\u5728\u7075\u6d3b\u5730\u5b9e\u73b0\u7f51\u7edc\u529f\u80fd\u3002Netgraph\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u591a\u529f\u80fd\u6027\u2014\u2014\u5b83\u652f\u6301\u6865\u63a5\u3001PPP\u3001GIF\u96a7\u9053\u3001NAT\u3001Netflow\u7b49\u5404\u79cd\u64cd\u4f5c\uff0c\u5e76\u4e14\u6240\u6709\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u53ef\u4ee5\u5728\u4efb\u610f\u914d\u7f6e\u4e2d\u8fdb\u884c\u7ec4\u5408\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u6a21\u5757\u5316\u662f\u6709\u4ee3\u4ef7\u7684\u3002Netgraph\u7684\u8bbe\u8ba1\u9700\u8981\u5bf9\u6a21\u5757\u8fde\u63a5\u8fdb\u884c\u5927\u91cf\u7684\u9a8c\u8bc1\u3001\u7ba1\u7406\u5f15\u7528\u8ba1\u6570\u5668\u4ee5\u53ca\u5904\u7406\u9501\u3002\u572820\u4e16\u7eaa90\u5e74\u4ee3\uff0cDSL\u8fde\u63a5\u7684\u901f\u5ea6\u8fbe\u5230\u6570\u5341\u5146\u6bd4\u7279\uff0c\u5e76\u4e14\u91c7\u7528\u5355\u6838CPU\uff0c\u8fd9\u79cd\u5f00\u9500\u662f\u53ef\u4ee5\u627f\u53d7\u7684\u3002\u4f46\u968f\u7740\u5149\u7ea4\u8fde\u63a5\u5c06\u541e\u5410\u91cf\u63a8\u5411\u6570\u5343\u5146\u6bd4\u7279\u7684\u8303\u56f4\uff0c\u4ee5\u53ca\u591a\u6838CPU\u6210\u4e3a\u5e38\u6001\uff0cNetgraph\u56fa\u6709\u7684\u4f4e\u6548\u7387\u6210\u4e3a\u4e86\u74f6\u9888\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5b58\u5728\u7684\u95ee\u9898<\/h2>\n<p style=\"text-align: justify;\">Netgraph\u7684\u6a21\u5757\u5316\u67b6\u6784\u867d\u7136\u7075\u6d3b\uff0c\u4f46\u5374\u727a\u7272\u4e86\u6027\u80fd\u3002\u4e3a\u4e86\u652f\u6301\u6a21\u5757\u95f4\u4efb\u610f\u7684\u8fde\u63a5\u56fe\uff0c\u6bcf\u4e2a\u6570\u636e\u5305\u90fd\u9700\u8981\u6301\u7eed\u9a8c\u8bc1\u548c\u540c\u6b65\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u5ef6\u8fdf\u5e76\u9650\u5236\u53ef\u6269\u5c55\u6027\u3002\u5728\u9ad8\u541e\u5410\u91cf\u73af\u5883\u4e2d\uff0c\u8fd9\u79cd\u5f00\u9500\u4f1a\u4e25\u91cd\u5f71\u54cd PPPoE \u7684\u6027\u80fd\uff0c\u56e0\u6b64\u663e\u7136\u9700\u8981\u4e00\u79cd\u65b0\u7684\u65b9\u6cd5\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u65b0\u7684\u9a71\u52a8<\/h2>\n<p style=\"text-align: justify;\">\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u7f3a\u70b9\uff0cNetgate\u4e3apfSense\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684<em>if_pppoe<\/em>\u9a71\u52a8\u7a0b\u5e8f\u3002\u8be5\u9a71\u52a8\u7a0b\u5e8f\u662f\u4e13\u95e8\u9488\u5bf9PPPoE\u7684\u7b80\u5316\u5b9e\u65bd\u3002\u901a\u8fc7\u7f29\u5c0f\u8303\u56f4\uff0c<em>if_pppoe<\/em> \u6d88\u9664\u4e86Netgraph \u6a21\u5757\u5316\u7684\u5f00\u9500\u548c\u5355\u7ebf\u7a0b\u7279\u6027\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u663e\u8457\u7684\u6027\u80fd\u63d0\u5347\uff0c\u5c24\u5176\u662f\u5728\u591a\u6838\u73af\u5883\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>if_pppoe\u00a0\u7684\u4e3b\u8981\u7279\u70b9<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li aria-level=\"1\">\u591a\u6838\u4f18\u5316\uff1a\u4e0eNetgraph\u4e0d\u540c\uff0c<em>if_pppoe<\/em>\u65e8\u5728\u6709\u6548\u5229\u7528\u591a\u4e2aCPU\u5185\u6838\u3002\u5b83\u4f7f\u7528\u63a5\u6536\u65b9\u7f29\u653e \uff08RSS\uff09 \u6839\u636e\u534f\u8bae\u3001\u6e90\/\u76ee\u6807\u5730\u5740\u548c\u7aef\u53e3\u53f7\u5728\u5185\u6838\u4e4b\u95f4\u5206\u914d\u6570\u636e\u5305\u3002\u8fd9\u53ef\u786e\u4fdd\u5355\u4e2aTCP\u6d41\u4fdd\u7559\u5728\u4e00\u4e2a\u6838\u5fc3\u4e0a\uff0c\u4ece\u800c\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u65e0\u5e8f\u6570\u636e\u5305\uff0c\u800c\u5176\u4ed6\u6838\u5fc3\u5219\u5904\u7406\u5e76\u53d1\u6d41\u3002<\/li>\n<li aria-level=\"1\">\u7b80\u5316\u7684\u67b6\u6784\uff1a\u901a\u8fc7\u53ea\u5173\u6ce8PPPoE\uff0cif_pppoe\u907f\u514d\u4e86\u652f\u6301\u4efb\u610f\u7f51\u7edc\u529f\u80fd\u7684\u590d\u6742\u6027\u3002\u786e\u4fdd\u66f4\u7cbe\u7b80\u3001\u66f4\u5feb\u901f\u7684\u5b9e\u65bd\u3002<\/li>\n<li aria-level=\"1\">\u5e76\u53d1\u6570\u636e\u5305\u5904\u7406\uff1a\u8be5\u9a71\u52a8\u7a0b\u5e8f\u5141\u8bb8\u8de8\u591a\u4e2aCPU\u5728\u63a5\u6536\u548c\u53d1\u9001\u65b9\u5411\u4e0a\u540c\u65f6\u5904\u7406\u6570\u636e\u5305\u3002<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u6d4b\u8bd5\u7ed3\u679c<\/h2>\n<p style=\"text-align: justify;\">\u4e3a\u4e86\u5bf9\u6bd4\u65b0\u65e7\u7248\u672c\u4e4b\u524d\u7684\u533a\u522b\uff0c\u5b98\u65b9\u8fdb\u884c\u4e86\u5bf9\u6bd4\u6d4b\u8bd5\u3002<\/p>\n<p style=\"text-align: justify;\">PPPoE\u670d\u52a1\u5668\u4f7f\u7528\u8fd0\u884cLinux\u5185\u6838\u7684Sapphire Rapids\u7cfb\u7edf\u3002<\/p>\n<p style=\"text-align: justify;\">\u88ab\u6d4b\u8bbe\u5907\uff1aNetgate 6100\uff0cL3 \u8f6c\u53d1\uff0cpf \u7981\u7528\uff0cix0\/ix1 \u94fe\u8def\u901f\u5ea6\uff1a10Gbps<\/p>\n<p style=\"text-align: justify;\">\u6d41\u91cf\u751f\u6210\u5668\uff1aSapphire Rapids\u3001Linux PPPoE \u5185\u6838\u6a21\u5f0f\u670d\u52a1\u5668<\/p>\n<p style=\"text-align: justify;\">E810 NIC1\u3001\u7aef\u53e3 0\u3001VF1\u3001\u53ef\u4fe1 VF\u3001\u5185\u6838\u547d\u540d\u7a7a\u95f4 \uff08ns1\uff09\u3001iperf3 \u5ba2\u6237\u7aef<\/p>\n<p style=\"text-align: justify;\">E810 NIC2\u3001\u7aef\u53e3 0\u3001VF 1\u3001\u53d7\u4fe1\u4efb\u7684 VF\u3001Kennel \u547d\u540d\u7a7a\u95f4 \uff08ns2\uff09\u3001iperf3 \u670d\u52a1\u5668<\/p>\n<p style=\"text-align: justify;\">\u94fe\u63a5\u901f\u5ea6\uff1a100Gbps<\/p>\n<p style=\"text-align: justify;\">\u6d4b\u8bd5\u6301\u7eed\u65f6\u95f4\uff1a60 \u79d2<\/p>\n<p style=\"text-align: justify;\">\u4e0b\u9762\u662f\u6d4b\u8bd5\u6570\u636e\u5bf9\u6bd4\uff0c\u53ef\u89c1\u63d0\u5347\u5e45\u5ea6\u975e\u5e38\u5927\u3002<\/p>\n<table style=\"height: 124px;\" width=\"698\">\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>PPPoE\u6d4b\u8bd5<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u6700\u5c0f\u4e0b\u8f7d<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u6700\u5c0f\u4e0a\u4f20<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u6700\u5927\u4e0b\u8f7d\u00a0<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u6700\u5927\u4e0a\u4f20<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>mpd5 1 \u6d41<\/strong><\/td>\n<td>2.62<\/td>\n<td>3.23<\/td>\n<td>4.56<\/td>\n<td>3.84<\/td>\n<\/tr>\n<tr>\n<td><strong>mpd5 4 \u6d41<\/strong><\/td>\n<td>5.01<\/td>\n<td>3.71<\/td>\n<td>6.66<\/td>\n<td>4.15<\/td>\n<\/tr>\n<tr>\n<td><strong>if_pppoe 1 \u6d41<\/strong><\/td>\n<td>6.18<\/td>\n<td>4.59<\/td>\n<td>6.38<\/td>\n<td>4.94<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>if_pppoe 4 \u6d41<\/strong><\/td>\n<td style=\"text-align: left;\">8.18<\/td>\n<td style=\"text-align: left;\">7.96<\/td>\n<td style=\"text-align: left;\">9.01<\/td>\n<td style=\"text-align: left;\">8.24<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5982\u4f55\u4f7f\u7528<\/h2>\n<p>\u65b0\u7248if_pppoe\u5185\u6838\u9a71\u52a8\u5e76\u975e\u9ed8\u8ba4\u9009\u9879\uff0c\u9700\u8981\u624b\u52a8\u542f\u7528\u624d\u80fd\u6b63\u5e38\u4f7f\u7528\u3002\u8f6c\u5230\u7cfb\u7edf&gt;\u9ad8\u7ea7\u9009\u9879&gt;\u7f51\u7edc\u8bbe\u7f6e\uff0c\u9009\u4e2d\u542f\u7528\uff0c\u5e76\u91cd\u542f\u9632\u706b\u5899\u540e\u624d\u751f\u6548\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/05\/PixPin_2025-05-29_10-13-08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14932\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/05\/PixPin_2025-05-29_10-13-08.png\" alt=\"\" width=\"1707\" height=\"127\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Netgate\u5373\u5c06\u53d1\u5e03pfSense CE 2.8\u548cpfSense plus 2 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=14922\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[211],"class_list":["post-14922","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-pppoe"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/14922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14922"}],"version-history":[{"count":10,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/14922\/revisions"}],"predecessor-version":[{"id":14933,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/14922\/revisions\/14933"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}