{"id":845,"date":"2026-01-08T23:57:59","date_gmt":"2026-01-08T15:57:59","guid":{"rendered":"https:\/\/www.ndnlab.com\/?p=845"},"modified":"2026-01-09T00:10:39","modified_gmt":"2026-01-08T16:10:39","slug":"ptcam-scalable-high-speed-name-prefix-lookup-using-tcam","status":"publish","type":"post","link":"https:\/\/www.ndnlab.com\/?p=845","title":{"rendered":"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM"},"content":{"rendered":"\n<p>SIGCOMM \u201925: ACM SIGCOMM 2025 Conference <br><strong>Conference Sponsors:<\/strong> SIGCOMM\u201825<br><a href=\"https:\/\/dl.acm.org\/doi\/10.1145\/3718958.3750531\">https:\/\/dl.acm.org\/doi\/10.1145\/3718958.3750531<\/a><\/p>\n\n\n\n<p><strong> \u4e00\u3001\u7814\u7a76\u80cc\u666f\u4e0e\u52a8\u673a\uff1a\u540d\u5b57\u67e5\u627e\u7684\u901f\u5ea6\u74f6\u9888<\/strong><br>\u5728\u4fe1\u606f\u4e2d\u5fc3\u7f51\u7edc\uff08ICN\uff09\u548c\u5185\u5bb9\u5206\u53d1\u7f51\u7edc\uff08CDN\uff09\u4e2d\uff0c\u57fa\u4e8e\u540d\u5b57\u7684\u6570\u636e\u8f6c\u53d1\u662f\u6838\u5fc3\u673a\u5236\u3002\u4e0e\u4f20\u7edf\u7684 IP \u5730\u5740\u4e0d\u540c\uff0c\u5185\u5bb9\u540d\u5b57\uff08\u5982 URL\uff09\u901a\u5e38\u662f\u5206\u5c42\u7684\u3001\u53d8\u957f\u7684\u4e14\u957f\u5ea6\u65e0\u754c\u7684\u3002\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97<strong>**\u540d\u5b57\u524d\u7f00\u67e5\u627e\uff08Name Prefix Lookup\uff09**<\/strong>\u6210\u4e3a\u9650\u5236\u7f51\u7edc\u8f6c\u53d1\u901f\u7387\u7684\u5173\u952e\u74f6\u9888\u3002<br>\u73b0\u6709\u7684\u89e3\u51b3\u65b9\u6848\u5927\u591a\u57fa\u4e8e Trie \u6811\u3001\u54c8\u5e0c\u6216 Bloom Filter\uff0c\u901a\u5e38\u8fd0\u884c\u5728 SRAM \u6216 DRAM \u4e0a\u3002\u867d\u7136 SRAM\/DRAM \u5bb9\u91cf\u5927\uff0c\u4f46\u5176\u67e5\u627e\u901f\u5ea6\u5f80\u5f80\u53d7\u9650\u4e8e\u8bbf\u5b58\u6b21\u6570\uff08Memory Access\uff09\uff0c\u96be\u4ee5\u8ffd\u8d76\u65e5\u76ca\u589e\u957f\u7684\u94fe\u8def\u901f\u7387\uff08Line Rate\uff09\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c<strong>**\u4e09\u6001\u5185\u5bb9\u5bfb\u5740\u5b58\u50a8\u5668\uff08TCAM\uff09**<\/strong> \u4ee5\u5176\u5e76\u884c\u67e5\u8be2\u80fd\u529b\u8457\u79f0\uff0c\u80fd\u591f\u5728\u4e00\u4e2a\u65f6\u949f\u5468\u671f\u5185\u5b8c\u6210\u67e5\u627e\uff0c\u662f\u5b9e\u73b0\u7ebf\u901f\u8f6c\u53d1\u7684\u7406\u60f3\u9009\u62e9\u3002\u7136\u800c\uff0cTCAM \u7684\u5bb9\u91cf\u6781\u5c0f\u4e14\u529f\u8017\u9ad8\uff0c\u96be\u4ee5\u76f4\u63a5\u5b58\u50a8\u6570\u4ee5\u5343\u4e07\u8ba1\u7684\u957f\u540d\u5b57\u524d\u7f00\u3002\u5982\u4f55\u5229\u7528\u5c0f\u5bb9\u91cf\u7684 TCAM \u5b9e\u73b0\u5927\u89c4\u6a21\u3001\u957f\u540d\u5b57\u7684\u9ad8\u901f\u67e5\u627e\uff0c\u662f\u672c\u8bba\u6587\u89e3\u51b3\u7684\u6838\u5fc3\u95ee\u9898\u3002<\/p>\n\n\n\n<p><strong>\u4e8c\u3001\u6838\u5fc3\u6311\u6218\uff1a\u5982\u4f55\u5728\u5c0f TCAM \u4e0a\u88c5\u4e0b\u6d77\u91cf\u957f\u540d\u5b57\uff1f<\/strong><br>\u5c06 TCAM \u5e94\u7528\u4e8e\u540d\u5b57\u67e5\u627e\u9762\u4e34\u4e24\u4e2a\u4e3b\u8981\u6311\u6218\uff1a<br>1. \u00a0<strong>\u6269\u5c55\u6027\uff08Scalability\uff09<\/strong>\uff1a\u540d\u5b57\u96c6\u5408\uff08FIB\uff09\u89c4\u6a21\u5de8\u5927\u4e14\u540d\u5b57\u957f\u5ea6\u65e0\u754c\uff0c\u800c TCAM \u5bb9\u91cf\u6709\u9650\uff08\u901a\u5e38\u4ec5\u51e0\u5341 Mb\uff09\u3002\u5c06\u5b8c\u6574\u7684\u53d8\u957f\u540d\u5b57\u76f4\u63a5\u5b58\u5165 TCAM \u662f\u4e0d\u53ef\u80fd\u7684\u3002<br>2. \u00a0<strong>\u7279\u5b9a\u7684\u786c\u4ef6\u7ea6\u675f<\/strong>\uff1aTCAM \u9002\u5408\u56fa\u5b9a\u5bbd\u5ea6\u7684\u5339\u914d\uff0c\u800c\u5206\u5c42\u540d\u5b57\u7ed3\u6784\u590d\u6742\uff0c\u9700\u8981\u9ad8\u6548\u7684\u7f16\u7801\u65b9\u5f0f\u624d\u80fd\u5229\u7528 TCAM \u7684\u4f4d\u5e76\u884c\u7279\u6027\u3002<\/p>\n\n\n\n<p><strong>\u4e09\u3001PtCAM \u7cfb\u7edf\u67b6\u6784\uff1a\u57fa\u4e8e Patricia Trie \u7684\u6df7\u5408\u67e5\u627e\u65b9\u6848<\/strong><br><strong>PtCAM<\/strong>\uff08Patricia-TCAM\uff09\u63d0\u51fa\u4e86\u4e00\u79cd\u521b\u65b0\u7684\u8f6f\u786c\u4ef6\u534f\u540c\u8bbe\u8ba1\uff0c\u5de7\u5999\u7ed3\u5408\u4e86 <strong>**Binary Patricia Trie**<\/strong> \u7684\u7ed3\u6784\u4f18\u52bf\u4e0e<strong>TCAM<\/strong>\u7684\u786c\u4ef6\u52a0\u901f\u80fd\u529b\u3002<br>\u5176\u6838\u5fc3\u601d\u60f3\u91c7\u7528\u201c\u5206\u800c\u6cbb\u4e4b\u201d\u7684\u7b56\u7565\uff1a<br><strong>TCAM \u4f5c\u4e3a\u5206\u7c7b\u5668\uff08Classifier\uff09<\/strong>\uff1a\u4e0d\u4ec5\u5b58\u50a8\u5b8c\u6574\u7684\u540d\u5b57\uff0c\u800c\u662f\u5b58\u50a8\u4ece\u540d\u5b57\u4e2d\u63d0\u53d6\u7684\u201c\u7d27\u51d1\u6458\u8981\u201d\uff08Compact Name\uff09\u3002\u8fd9\u4e9b\u6458\u8981\u7531 Patricia Trie \u4e0a\u7684<strong>\u5173\u952e\u533a\u5206\u4f4d\uff08Discrimination Bits\uff09<\/strong>\u7ec4\u6210\u3002<br><strong>RAM \u4f5c\u4e3a\u9a8c\u8bc1\u5668\uff08Verifier\uff09<\/strong>\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u540d\u5b57\u524d\u7f00\u548c\u8f6c\u53d1\u4fe1\u606f\u3002TCAM \u5feb\u901f\u5b9a\u4f4d\u53ef\u80fd\u7684\u5019\u9009\u6761\u76ee\uff0cRAM \u8fdb\u884c\u6700\u7ec8\u7684\u7cbe\u786e\u5339\u914d\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-4-1024x381.png\"  class=\"wp-image-848\" srcset=\"https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-4-1024x381.png 1024w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-4-300x112.png 300w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-4-768x286.png 768w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-4.png 1376w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" title=\"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM\u63d2\u56fe\" alt=\"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM\u63d2\u56fe\" \/><\/figure>\n\n\n\n<p><strong>\u5173\u952e\u6280\u672f\u70b9\uff1a<\/strong><br>1. <strong>\u7d27\u51d1\u540d\u5b57\u63d0\u53d6\uff08Compact Name Extraction\uff09<\/strong>\uff1a<br>\u5229\u7528 Binary Patricia Trie \u7684\u7279\u6027\uff0cPtCAM \u80fd\u591f\u8bc6\u522b\u51fa\u533a\u5206\u4e0d\u540c\u540d\u5b57\u7684\u201c\u5173\u952e\u4f4d\u4f4d\u7f6e\u201d\uff08Critical Bit Positions\uff09\u3002\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u540d\u5b57\uff0c\u4ec5\u9700\u63d0\u53d6\u8fd9\u4e9b\u4f4d\u7f6e\u4e0a\u7684\u6bd4\u7279\u503c\uff0c\u62fc\u63a5\u6210\u4e00\u4e2a\u5b9a\u957f\u7684\u201c\u7d27\u51d1\u540d\u5b57\u201d\u5b58\u5165 TCAM\u3002\u8fd9\u79cd\u65b9\u6cd5\u6781\u5927\u5730\u538b\u7f29\u4e86\u5b58\u50a8\u7a7a\u95f4\uff0c\u4f7f\u5f97 TCAM \u80fd\u591f\u5bb9\u7eb3\u6d77\u91cf\u540d\u5b57\u3002<br>2. \u00a0<strong>TCAM \u5185\u5b58\u5e03\u5c40\u751f\u6210<\/strong>\uff1a<br>PtCAM \u5c06\u63d0\u53d6\u7684\u5173\u952e\u4f4d\u6620\u5c04\u4e3a TCAM \u7684\u5217\u3002\u5bf9\u4e8e\u4e0d\u9700\u8981\u5339\u914d\u7684\u4f4d\uff0c\u5229\u7528 TCAM \u7684\u201cDon&#8217;t Care\u201d\u72b6\u6001\uff08\u901a\u914d\u7b26\uff09\u8fdb\u884c\u5904\u7406\uff0c\u4ece\u800c\u5b8c\u7f8e\u9002\u914d TCAM \u7684\u786c\u4ef6\u7279\u6027\u3002<\/p>\n\n\n\n<p><strong>\u56db\u3001\u5b9e\u9a8c\u8bc4\u4f30\uff1a\u903c\u8fd1\u786c\u4ef6\u6781\u9650\u7684\u67e5\u627e\u901f\u5ea6<\/strong><br>\u8bba\u6587\u539f\u578b\u7cfb\u7edf\u5728\u5546\u7528 TCAM \u8bbe\u5907\u4e0a\u8fdb\u884c\u4e86\u9a8c\u8bc1\uff0c\u5e76\u8fdb\u884c\u4e86\u5927\u89c4\u6a21\u7684\u4eff\u771f\u5b9e\u9a8c\u3002<br><strong>\u6781\u9ad8\u7684\u67e5\u627e\u541e\u5410\u91cf<\/strong>\uff1a\u5b9e\u9a8c\u7ed3\u679c\u8868\u660e\uff0cPtCAM \u7684\u67e5\u627e\u901f\u5ea6\u63a5\u8fd1 TCAM \u8bbe\u5907\u7684\u7269\u7406\u541e\u5410\u91cf\u6781\u9650\u3002\u76f8\u6bd4\u4e8e\u4f20\u7edf\u7684\u57fa\u4e8e Trie \u6216 Hash \u7684\u8f6f\u4ef6\/FPGA \u65b9\u6848\uff0cPtCAM \u5b9e\u73b0\u4e86\u6570\u91cf\u7ea7\u7684\u6027\u80fd\u63d0\u5347\u3002<br><strong>\u4f18\u5f02\u7684\u5b58\u50a8\u6548\u7387<\/strong>\uff1a\u5728\u5355\u7247 80Mbits \u7684 TCAM \u82af\u7247\u4e0a\uff0cPtCAM \u80fd\u591f\u652f\u6301\u8d85\u8fc7<strong>110 \u4e07<\/strong>\u4e2a\u73b0\u5b9e\u4e16\u754c\u7684\u4eba\u7c7b\u53ef\u8bfb\u540d\u5b57\uff08\u5982 URL\uff09\uff0c\u6216<strong>160 \u4e07<\/strong>\u4e2a\u968f\u673a\u5b57\u7b26\u540d\u5b57\u3002<br><strong>\u826f\u597d\u7684\u6269\u5c55\u6027<\/strong>\uff1a\u901a\u8fc7\u7ea7\u8054\u591a\u7247 TCAM\uff0c\u7cfb\u7edf\u53ef\u4ee5\u8f7b\u677e\u6269\u5c55\u4ee5\u652f\u6301\u66f4\u5927\u89c4\u6a21\u7684\u540d\u5b57\u8868\u3002\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-5-1024x771.png\"  class=\"wp-image-849\" srcset=\"https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-5-1024x771.png 1024w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-5-300x226.png 300w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-5-768x579.png 768w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-5.png 1382w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" title=\"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM\u63d2\u56fe1\" alt=\"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM\u63d2\u56fe1\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-7-1024x542.png\"  class=\"wp-image-851\" srcset=\"https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-7-1024x542.png 1024w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-7-300x159.png 300w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-7-768x406.png 768w, https:\/\/www.ndnlab.com\/wp-content\/uploads\/2026\/01\/image-7.png 1382w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" title=\"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM\u63d2\u56fe2\" alt=\"PtCAM: Scalable High-Speed Name Prefix Lookup using TCAM\u63d2\u56fe2\" \/><\/figure>\n\n\n\n<p><strong>\u4e94\u3001\u603b\u7ed3\u4e0e\u5c55\u671b\uff1a\u5f00\u542f\u5de5\u4e1a\u7ea7 ICN \u90e8\u7f72\u4e4b\u95e8<\/strong><br><strong>PtCAM<\/strong>\u7684\u91cd\u8981\u610f\u4e49\u5728\u4e8e\uff0c\u901a\u8fc7\u5de7\u5999\u7684\u7b97\u6cd5\u8bbe\u8ba1\uff0c\u4f7f\u5f97\u73b0\u6709\u7684\u3001\u6210\u719f\u7684\u5546\u7528 TCAM \u786c\u4ef6\uff08\u901a\u5e38\u7528\u4e8e IP \u8def\u7531\uff09\u80fd\u591f\u76f4\u63a5\u7528\u4e8e\u4e0b\u4e00\u4ee3\u4e92\u8054\u7f51\uff08ICN\/NDN\uff09\u7684\u540d\u5b57\u8def\u7531\u3002\u8fd9\u610f\u5473\u7740\u6211\u4eec\u65e0\u9700\u7b49\u5f85\u6602\u8d35\u7684\u65b0\u578b\u4e13\u7528\u786c\u4ef6\uff0c\u5373\u53ef\u5728\u73b0\u6709\u57fa\u7840\u8bbe\u65bd\u4e0a\u5b9e\u73b0\u9ad8\u6027\u80fd\u7684\u540d\u5b57\u8f6c\u53d1\u3002<br>\u8fd9\u9879\u5de5\u4f5c\u4e0d\u4ec5\u4e3a ICN \u7684\u843d\u5730\u626b\u9664\u4e86\u4e00\u5927\u6027\u80fd\u969c\u788d\uff0c\u4e5f\u4e3a\u5176\u4ed6\u9700\u8981\u9ad8\u901f\u5b57\u7b26\u4e32\u524d\u7f00\u5339\u914d\u7684\u9886\u57df\uff08\u5982 DPI\u3001\u9632\u706b\u5899\u3001\u5185\u5bb9\u611f\u77e5\u8def\u7531\uff09\u63d0\u4f9b\u4e86\u4e00\u79cd\u901a\u7528\u4e14\u9ad8\u6548\u7684\u786c\u4ef6\u52a0\u901f\u8303\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SIGCOMM \u201925: ACM SIGCOMM 2025 Conference Conference Sponsors: SIGCOMM\u201825https:\/\/dl.acm.org\/doi\/10.1145\/3718958.3750531 \u4e00\u3001\u7814\u7a76\u80cc\u666f\u4e0e\u52a8\u673a\uff1a\u540d\u5b57\u67e5\u627e\u7684\u901f\u5ea6\u74f6\u9888\u5728\u4fe1\u606f\u4e2d\u5fc3\u7f51\u7edc\uff08ICN\uff09\u548c\u5185\u5bb9\u5206\u53d1\u7f51\u7edc\uff08CDN\uff09\u4e2d\uff0c\u57fa\u4e8e\u540d\u5b57\u7684\u6570\u636e\u8f6c\u53d1\u662f\u6838\u5fc3\u673a\u5236\u3002\u4e0e\u4f20\u7edf\u7684 IP \u5730\u5740\u4e0d\u540c\uff0c\u5185\u5bb9\u540d\u5b57\uff08\u5982 URL\uff09\u901a\u5e38\u662f\u5206\u5c42\u7684\u3001\u53d8\u957f\u7684\u4e14\u957f\u5ea6\u65e0\u754c\u7684\u3002\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97**\u540d\u5b57\u524d\u7f00\u67e5\u627e\uff08Name  &hellip; <a href=\"https:\/\/www.ndnlab.com\/?p=845\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":854,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[15],"class_list":["post-845","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ndn","tag-15"],"_links":{"self":[{"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/posts\/845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=845"}],"version-history":[{"count":2,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/posts\/845\/revisions"}],"predecessor-version":[{"id":853,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/posts\/845\/revisions\/853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=\/wp\/v2\/media\/854"}],"wp:attachment":[{"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ndnlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}