{"id":115788,"date":"2026-10-13T11:41:11","date_gmt":"2026-10-13T03:41:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115788.html"},"modified":"2026-10-13T11:41:11","modified_gmt":"2026-10-13T03:41:11","slug":"%e5%8f%8c-11-%e6%8a%a2%e8%b4%ad%e5%9c%ba%e6%99%af%e4%b8%8b%e7%9a%84%e5%88%86%e5%b8%83%e5%bc%8f%e9%98%b2%e9%87%8d%e6%94%be%ef%bc%88anti-replay%ef%bc%89%e6%9e%b6%e6%9e%84%ef%bc%9a%e5%9f%ba%e4%ba%8e-bloo","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115788.html","title":{"rendered":"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261013034109-6acda855eca43.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u53cc 11 \u96f6\u70b9\u5927\u4fc3\u7684\u6beb\u79d2\u7ea7\u9ad8\u5e76\u53d1\u79d2\u6740\u6218\u573a\u4e0a&#xff0c;\u201c\u9632\u91cd\u653e&#xff08;Anti-Replay&#xff09;\u201d\u662f\u5b88\u536b\u8ba2\u5355\u652f\u4ed8\u4e0e\u5927\u989d\u4f18\u60e0\u5238\u6838\u9500\u7cfb\u7edf\u751f\u547d\u7ebf\u7684\u6838\u5fc3\u95f8\u95e8\u3002\u9ed1\u4ea7\u56e2\u4f19\u5728\u55c5\u63a2\u622a\u83b7\u4e00\u6b21\u5408\u6cd5\u7528\u6237\u7684\u62a2\u8d2d\u7f51\u7edc\u6570\u636e\u5305\u540e&#xff0c;\u5f80\u5f80\u4f1a\u5728\u7eb3\u79d2\u7ea7\u5229\u7528\u7fa4\u63a7\u811a\u672c&#xff0c;\u539f\u5c01\u4e0d\u52a8\u5730\u5c06\u8be5\u8bf7\u6c42\u5411\u540e\u7aef\u7f51\u5173\u63a8\u9001\u6570\u767e\u6b21&#xff0c;\u4f01\u56fe\u5229\u7528\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u95f4\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u5ef6\u8fdf\u6216\u6570\u636e\u5e93\u5e76\u53d1\u9501\u6f0f\u6d1e&#xff0c;\u5b9e\u73b0\u201c\u4e00\u6b21\u652f\u4ed8&#xff0c;\u591a\u6b21\u51fa\u5e93\u201d\u6216\u201c\u5355\u6b21\u9886\u5238&#xff0c;\u591a\u6b21\u5957\u73b0\u201d\u3002<\/p>\n<p>\u5728\u4f20\u7edf\u7684\u9632\u91cd\u653e\u65b9\u6848\u4e2d&#xff0c;\u6807\u51c6\u7684\u6559\u79d1\u4e66\u505a\u6cd5\u662f\u201c\u5ba2\u6237\u7aef\u5728\u8bf7\u6c42\u4e2d\u643a\u5e26\u4e00\u4e2a\u5168\u5c40\u552f\u4e00\u7684\u968f\u673a\u4e32&#xff08;Nonce&#xff09;&#xff0c;\u670d\u52a1\u7aef\u5c06\u5176\u5199\u5165 Redis \u7684\u96c6\u5408\u6216 Key-Value \u4e2d&#xff0c;\u5e76\u901a\u8fc7 SETNX \u6392\u91cd\u201d\u3002<\/p>\n<p>\u7136\u800c&#xff0c;\u5728\u9762\u5bf9\u53cc 11 \u6bcf\u79d2\u6570\u767e\u4e07\u7ea7 QPS \u7684\u771f\u5b9e\u5de5\u4e1a\u7ea7\u573a\u666f\u65f6&#xff0c;\u8fd9\u79cd\u4f20\u7edf\u65b9\u6848\u4f1a\u8fc5\u901f\u906d\u9047\u6bc1\u706d\u6027\u7684\u5185\u5b58\u4e0e I\/O \u5371\u673a&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u6bcf\u4e2a Nonce \u662f\u4e00\u4e2a 32 \u5b57\u8282\u7684\u5b57\u7b26\u4e32&#xff0c;\u5728\u6bcf\u79d2 200 \u4e07 QPS \u7684\u5cf0\u503c\u4e0b&#xff0c;\u4ec5\u4ec5\u4fdd\u5b58 1 \u5206\u949f\u7684 Nonce \u6570\u636e&#xff0c;\u5c31\u9700\u8981\u77ac\u95f4\u541e\u566c\u6570\u5341\u5409\u5b57\u8282&#xff08;GB&#xff09;\u7684 Redis \u9ad8\u901f\u5185\u5b58&#xff01;<\/li>\n<li>\u9762\u5bf9\u6570\u4ee5\u4ebf\u8ba1\u7684 Key \u9891\u7e41\u521b\u5efa\u4e0e TTL \u6dd8\u6c70&#xff0c;Redis \u5355\u7ebf\u7a0b\u4e8b\u4ef6\u5faa\u73af\u4e2d\u7684\u5185\u5b58\u788e\u7247\u6574\u7406\u4e0e\u952e\u8fc7\u671f\u6e05\u7406\u5c06\u5bfc\u81f4\u7f51\u5173\u7f51\u7edc\u5ef6\u8fdf\u53d1\u751f\u707e\u96be\u6027\u7684\u5267\u70c8\u6296\u52a8&#xff0c;\u6700\u7ec8\u62d6\u57ae\u6574\u6761\u652f\u4ed8\u7ed3\u7b97\u94fe\u8def\u3002<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u5728\u6781\u81f4\u7684\u9ad8\u5e76\u53d1\u541e\u5410\u3001\u6781\u4f4e\u7684\u6beb\u79d2\u7ea7\u5ef6\u8fdf\u4e0e\u6709\u9650\u7684\u5185\u5b58\u6210\u672c\u4e4b\u95f4\u53d6\u5f97\u5b8c\u7f8e\u7684\u5de5\u7a0b\u5e73\u8861&#xff0c;\u5fc5\u987b\u6784\u5efa\u4e00\u5957**\u57fa\u4e8e\u7269\u7406\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3\u4e0e\u53cc\u6876\u4ea4\u66ff\u5e03\u9686\u8fc7\u6ee4\u5668&#xff08;Rotating Double Bloom Filters&#xff09;**\u7684\u73b0\u4ee3\u5206\u5e03\u5f0f\u9632\u91cd\u653e\u67b6\u6784\u3002<\/p>\n<hr \/>\n<h4>\u4e00\u3001 \u4f20\u7edf Nonce \u65b9\u6848\u5728\u5927\u4fc3\u6d2a\u5cf0\u4e0b\u7684\u74f6\u9888\u5256\u6790<\/h4>\n<p>\u6211\u4eec\u6765\u7cbe\u786e\u6d4b\u7b97\u4f20\u7edf Redis \u65b9\u6848\u5728\u53cc 11 \u6d2a\u5cf0\u4e0b\u7684\u8d44\u6e90\u6d88\u8017&#xff1a;<\/p>\n<p>\u8bf7\u6c42\u53c2\u6570: 2,000,000 QPS (\u5cf0\u503c\u6301\u7eed 60 \u79d2)<br \/>\n\u603b\u8bf7\u6c42\u91cf: 1.2 \u4ebf\u6b21\u72ec\u7acb\u8bf7\u6c42<br \/>\n\u5355\u4e2a Nonce \u5b58\u50a8\u6a21\u578b (Key-Value):<br \/>\n&#8211; \u952e\u540d: &#034;anti:replay:nonce:8f3a9e21-4b7c-4a0e-9821-efb70123&#034; (\u7ea6 50 \u5b57\u8282)<br \/>\n&#8211; Redis \u5185\u90e8 dictEntry &#043; robj \u5bf9\u8c61\u5305\u88c5\u5f00\u9500: \u6bcf\u4e2a Key \u81f3\u5c11\u5360\u7528 80~120 \u5b57\u8282<br \/>\n&#8211; 1.2 \u4ebf\u4e2a Key \u7684\u77ac\u65f6\u7269\u7406\u5185\u5b58\u5360\u7528: 1.2 * 10^8 * 100 \u5b57\u8282 \u2248 12 GB \u7eaf\u5185\u5b58!<\/p>\n<p>\u5728\u51e0\u5206\u949f\u5185\u5267\u70c8\u7533\u8bf7\u5e76\u9500\u6bc1 12GB \u5185\u5b58&#xff0c;\u5fc5\u7136\u5f15\u53d1 Redis \u96c6\u7fa4\u7684\u9ad8\u9891 Fork\u3001\u6301\u4e45\u5316\u963b\u585e\u4ee5\u53ca\u5185\u5b58\u788e\u7247\u96ea\u5d29\u3002\u5c06\u9632\u91cd\u653e\u5efa\u7acb\u5728\u5982\u6b64\u8106\u5f31\u7684\u9759\u6001\u5168\u91cf\u5b58\u50a8\u4e0a&#xff0c;\u65e0\u5f02\u4e8e\u5728\u6c99\u6ee9\u4e0a\u5efa\u9ad8\u697c\u3002<\/p>\n<hr \/>\n<h4>\u4e8c\u3001 \u53cc\u8f68\u7eb5\u6df1\u9632\u5fa1\u62d3\u6251&#xff1a;\u65f6\u95f4\u6233\u7a97\u53e3 &#043; \u53cc\u6876\u5e03\u9686\u8fc7\u6ee4\u5668<\/h4>\n<p>\u4e3a\u4e86\u5c06\u5185\u5b58\u5f00\u9500\u4ece\u6570\u4ee5\u5341\u8ba1\u7684 GB \u964d\u81f3\u51e0\u5341\u5146&#xff08;MB&#xff09;\u7ea7\u522b&#xff0c;\u6211\u4eec\u8bbe\u8ba1\u4e86\u4e24\u7ea7\u8fc7\u6ee4\u6d41\u6c34\u7ebf&#xff1a;<\/p>\n<p>[\u7528\u6237\u53d1\u8d77\u62a2\u8d2d\u8bf7\u6c42: \u643a\u5e26 X-Timestamp \u4e0e X-Nonce]<br \/>\n                       |<br \/>\n                       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| \u7b2c\u4e00\u9053: \u7269\u7406\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3\u5f3a\u6821\u9a8c (Time-Window Pruning)      |<br \/>\n|  &#8211; \u6821\u9a8c\u516c\u5f0f: |CurrentServerTime &#8211; X-Timestamp| &lt;&#061; 3000ms     |<br \/>\n|                                                             |<br \/>\n|  [\u6218\u679c]: \u96f6\u5185\u5b58\u6d88\u8017&#xff0c;\u6beb\u79d2\u7ea7\u76f4\u63a5\u8fc7\u6ee4\u6389 95% \u7684\u8d85\u671f\u5386\u53f2\u91cd\u653e!     |<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                       |<br \/>\n                       v (\u4ec5\u5bf9\u5904\u4e8e\u672a\u6765\/\u8fc7\u53bb 3 \u79d2\u5185\u7684\u6709\u6548\u8bf7\u6c42\u653e\u884c)<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| \u7b2c\u4e8c\u9053: \u52a8\u6001\u53cc\u6876\u5e03\u9686\u8fc7\u6ee4\u5668\u539f\u5b50\u6392\u91cd (Rotating Bloom Filter)    |<br \/>\n|                                                             |<br \/>\n|  [Active Filter (\u5f53\u524d\u6d3b\u8dc3\u6876)]: \u8d1f\u8d23\u63a5\u6536\u5e76\u6807\u8bb0\u5f53\u524d\u65f6\u95f4\u5468\u671f\u7684 Nonce |<br \/>\n|  [Previous Filter (\u4e0a\u4e00\u4ee3\u65e7\u6876)]: \u8d1f\u8d23\u515c\u5e95\u6bd4\u5bf9\u8de8\u7a97\u53e3\u4ea4\u754c\u5904\u7684\u65e7 Nonce|<br \/>\n|                                                             |<br \/>\n|  &#8211; \u6267\u884c\u6d41\u7a0b:                                                |<br \/>\n|    1. \u82e5 (Active \u4e2d\u5b58\u5728) OR (Previous \u4e2d\u5b58\u5728)               |<br \/>\n|       -&gt; 100% \u5224\u5b9a\u4e3a\u91cd\u590d\u8bf7\u6c42&#xff0c;\u76f4\u63a5\u62e6\u622a\u8fd4\u56de 409 Conflict!       |<br \/>\n|    2. \u82e5\u4e24\u8005\u7686\u4e0d\u5b58\u5728 -&gt; \u5411 Active Filter \u5199\u5165\u8be5 Nonce       |<br \/>\n|       -&gt; \u653e\u884c\u8fdb\u5165\u4e0b\u6e38\u8ba2\u5355\u7ed3\u7b97\u5fae\u670d\u52a1                         |<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                       |<br \/>\n                       v (\u6bcf\u9694 3 \u79d2\u6267\u884c\u4e00\u6b21\u6307\u9488\u539f\u5b50\u8f6e\u8f6c)<br \/>\n[\u65f6\u95f4\u5230\u671f]: \u7269\u7406\u9500\u6bc1 Previous \u6876&#xff0c;Active \u964d\u7ea7\u4e3a Previous&#xff0c;\u5168\u65b0\u521d\u59cb\u5316 Active \u6876!<\/p>\n<hr \/>\n<h4>\u4e09\u3001 \u7834\u5c40\u6838\u5fc3&#xff1a;\u53cc\u6876\u4ea4\u66ff\u8f6e\u8f6c&#xff08;Rotating Filters&#xff09;\u5316\u89e3\u8fc7\u671f\u96be\u9898<\/h4>\n<p>\u4f20\u7edf\u7684\u5e03\u9686\u8fc7\u6ee4\u5668&#xff08;Bloom Filter&#xff09;\u7531\u4e8e\u5e95\u5c42\u662f\u4f4d\u56fe&#xff08;BitMap&#xff09;\u4e0e\u591a\u4e2a\u5355\u5411\u54c8\u5e0c\u51fd\u6570&#xff0c;\u5929\u7136\u5b58\u5728\u4e00\u4e2a\u81f4\u547d\u7f3a\u9677&#xff1a;\u53ea\u80fd\u6dfb\u52a0\u5143\u7d20&#xff0c;\u65e0\u6cd5\u5220\u9664\u6216\u6309 TTL \u6dd8\u6c70\u5355\u4e2a\u5143\u7d20\u3002\u5982\u679c\u6301\u7eed\u5411\u540c\u4e00\u4e2a\u5e03\u9686\u8fc7\u6ee4\u5668\u63d2\u5165\u6570\u636e&#xff0c;\u5176\u4f4d\u56fe\u9971\u548c\u5ea6&#xff08;Bit Saturation&#xff09;\u4f1a\u8fc5\u901f\u63a5\u8fd1 1.0&#xff0c;\u5bfc\u81f4\u5047\u9633\u6027\u7387&#xff08;False Positive Rate&#xff0c;\u5373\u8bef\u6740\u7387&#xff09;\u98d9\u5347&#xff0c;\u6700\u7ec8\u628a\u6240\u6709\u5408\u6cd5\u7528\u6237\u7684\u8bf7\u6c42\u90fd\u5f53\u6210\u91cd\u653e\u653b\u51fb\u65e0\u60c5\u62e6\u622a\u3002<\/p>\n<p>\u53cc\u6876\u4ea4\u66ff\u8f6e\u8f6c\u673a\u5236\u5b8c\u7f8e\u7834\u89e3\u4e86\u8fd9\u4e00\u5386\u53f2\u96be\u9898&#xff1a;<\/p>\n<ul>\n<li>\u6211\u4eec\u5728\u5185\u5b58\u4e2d\u6c38\u8fdc\u53ea\u7ef4\u62a4\u4e24\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u5e03\u9686\u8fc7\u6ee4\u5668&#xff1a;Filter_A \u4e0e Filter_B&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u8fc7\u6ee4\u5668\u7684\u751f\u547d\u5468\u671f\u7b49\u4e8e\u6700\u5927\u5141\u8bb8\u7684\u65f6\u95f4\u6233\u7a97\u53e3&#xff08;\u4f8b\u5982 3000 \u6beb\u79d2&#xff09;&#xff1b;<\/li>\n<li>\u5728\u4efb\u610f\u65f6\u523b&#xff0c;\u4e00\u4e2a\u4f5c\u4e3a\u201c\u5f53\u524d\u5199\u5165\u7684\u4e3b\u6876\u201d&#xff0c;\u53e6\u4e00\u4e2a\u4f5c\u4e3a\u201c\u4e0a\u4e00\u4e2a\u5468\u671f\u7684\u5907\u67e5\u6876\u201d&#xff1b;<\/li>\n<li>\u6bcf\u5f53\u65f6\u95f4\u6d41\u901d\u8de8\u8d8a 3000 \u6beb\u79d2&#xff1a;\n<li>\u7cfb\u7edf\u76f4\u63a5\u5bf9\u90a3\u4e2a\u5df2\u7ecf\u8001\u4e8e 6000 \u6beb\u79d2\u7684\u65e7\u6876\u6267\u884c\u6574\u5757\u5185\u5b58\u6e05\u96f6&#xff08;memset \/ BZERO&#xff09;&#xff0c;\u8017\u65f6\u5728\u5fae\u79d2\u7ea7&#xff1b;<\/li>\n<li>\u539f\u672c\u7684\u4e3b\u6876\u53d8\u4e3a\u5907\u67e5\u6876&#xff0c;\u6e05\u96f6\u540e\u7684\u65b0\u6876\u53d8\u4e3a\u5f53\u524d\u4e3b\u6876\u3002<\/li>\n<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u8fd9\u79cd\u201c\u53cc\u6876\u5982\u65e5\u6708\u4ea4\u66ff\u201d\u7684\u52a8\u6001\u6ed1\u52a8&#xff0c;\u7cfb\u7edf\u4ee5\u6c38\u8fdc\u6052\u5b9a\u3001\u53ef\u9884\u6d4b\u7684\u6781\u5c0f\u5185\u5b58\u5360\u7528&#xff0c;\u5b9e\u73b0\u4e86\u5bf9\u4efb\u610f\u65f6\u95f4\u91cd\u653e\u653b\u51fb\u7684\u65e0\u6b7b\u89d2\u5408\u56f4&#xff01;<\/p>\n<hr \/>\n<h4>\u56db\u3001 \u5de5\u7a0b\u5b9e\u64cd&#xff1a;\u57fa\u4e8e Go \u8bed\u8a00\u7684\u9ad8\u5e76\u53d1\u9632\u91cd\u653e\u4e2d\u95f4\u4ef6\u5b9e\u6218<\/h4>\n<p>\u4ee5\u4e0b\u5c55\u793a\u5728\u7f51\u5173\u5c42\u57fa\u4e8e\u9ad8\u6548\u4f4d\u56fe\u4e0e Murmur3 \u54c8\u5e0c\u5b9e\u73b0\u7684\u5de5\u4e1a\u7ea7\u9632\u91cd\u653e\u6838\u5fc3\u4ee3\u7801&#xff1a;<\/p>\n<p>package anti_replay<\/p>\n<p>import (<br \/>\n&#034;crypto\/sha256&#034;<br \/>\n&#034;encoding\/binary&#034;<br \/>\n&#034;errors&#034;<br \/>\n&#034;sync&#034;<br \/>\n&#034;sync\/atomic&#034;<br \/>\n&#034;time&#034;<br \/>\n)<\/p>\n<p>type ConcurrentBloomFilter struct {<br \/>\nbits []uint64<br \/>\nsize uint64<br \/>\n}<\/p>\n<p>func NewBloomFilter(mBits uint64) *ConcurrentBloomFilter {<br \/>\nreturn &amp;ConcurrentBloomFilter{<br \/>\nbits: make([]uint64, (mBits&#043;63)\/64),<br \/>\nsize: mBits,<br \/>\n}<br \/>\n}<\/p>\n<p>func (bf *ConcurrentBloomFilter) AddAndCheck(data []byte) bool {<br \/>\n\/\/ \u4f7f\u7528\u53cc\u91cd\u54c8\u5e0c\u6a21\u62df k \u4e2a\u54c8\u5e0c\u51fd\u6570 (Kirsch-Mitzenmacher \u6280\u672f)<br \/>\nh :&#061; sha256.Sum256(data)<br \/>\nh1 :&#061; binary.BigEndian.Uint64(h[0:8])<br \/>\nh2 :&#061; binary.BigEndian.Uint64(h[8:16])<\/p>\n<p>alreadyExists :&#061; true<br \/>\nfor i :&#061; uint64(0); i &lt; 4; i&#043;&#043; {<br \/>\ncombinedHash :&#061; (h1 &#043; i*h2) % bf.size<br \/>\nwordIdx :&#061; combinedHash \/ 64<br \/>\nbitIdx :&#061; combinedHash % 64<br \/>\nmask :&#061; uint64(1) &lt;&lt; bitIdx<\/p>\n<p>\/\/ \u539f\u5b50\u64cd\u4f5c\u68c0\u6d4b\u5e76\u7f6e\u4f4d<br \/>\noldVal :&#061; atomic.OrUint64(&amp;bf.bits[wordIdx], mask)<br \/>\nif (oldVal &amp; mask) &#061;&#061; 0 {<br \/>\nalreadyExists &#061; false<br \/>\n}<br \/>\n}<br \/>\nreturn alreadyExists<br \/>\n}<\/p>\n<p>\/\/ \u6838\u5fc3\u8c03\u5ea6\u7ba1\u7406\u5668&#xff1a;\u53cc\u6876\u8f6e\u8f6c<br \/>\ntype RotatingAntiReplayGuard struct {<br \/>\nactiveBucket   *ConcurrentBloomFilter<br \/>\npreviousBucket *ConcurrentBloomFilter<br \/>\nlock           sync.RWMutex<br \/>\nwindowDuration time.Duration<br \/>\n}<\/p>\n<p>func NewRotatingAntiReplayGuard(window time.Duration, capacityPerBucket uint64) *RotatingAntiReplayGuard {<br \/>\nguard :&#061; &amp;RotatingAntiReplayGuard{<br \/>\nactiveBucket:   NewBloomFilter(capacityPerBucket),<br \/>\npreviousBucket: NewBloomFilter(capacityPerBucket),<br \/>\nwindowDuration: window,<br \/>\n}<\/p>\n<p>\/\/ \u542f\u52a8\u540e\u53f0\u5b9a\u65f6\u8f6e\u8f6c Goroutine<br \/>\ngo func() {<br \/>\nticker :&#061; time.NewTicker(window)<br \/>\nfor range ticker.C {<br \/>\nguard.rotateBuckets(capacityPerBucket)<br \/>\n}<br \/>\n}()<\/p>\n<p>return guard<br \/>\n}<\/p>\n<p>func (g *RotatingAntiReplayGuard) rotateBuckets(capacity uint64) {<br \/>\ng.lock.Lock()<br \/>\ndefer g.lock.Unlock()<br \/>\n\/\/ \u8f6e\u8f6c: \u4e22\u5f03\u4e0a\u4e00\u4ee3\u65e7\u6876&#xff0c;\u539f\u6d3b\u8dc3\u6876\u964d\u7ea7\u4e3a\u4e0a\u4e00\u4ee3&#xff0c;\u5168\u65b0\u5206\u914d\u6d3b\u8dc3\u6876<br \/>\ng.previousBucket &#061; g.activeBucket<br \/>\ng.activeBucket &#061; NewBloomFilter(capacity)<br \/>\n}<\/p>\n<p>func (g *RotatingAntiReplayGuard) ValidateAndConsume(clientTimestampMs int64, nonce string) error {<br \/>\n\/\/ 1. \u7269\u7406\u65f6\u949f\u7a97\u53e3\u6821\u9a8c (\u7edd\u5bf9\u65f6\u95f4\u8bef\u5dee\u8d85\u8fc7\u7a97\u53e3\u76f4\u63a5\u4e22\u5f03)<br \/>\nnowMs :&#061; time.Now().UnixNano() \/ int64(time.Millisecond)<br \/>\nwindowMs :&#061; g.windowDuration.Milliseconds()<\/p>\n<p>if clientTimestampMs &lt; (nowMs-windowMs) || clientTimestampMs &gt; (nowMs&#043;windowMs) {<br \/>\nreturn errors.New(&#034;\u8bf7\u6c42\u65f6\u949f\u4e25\u91cd\u504f\u5dee\u6216\u5df2\u8fc7\u671f&#034;)<br \/>\n}<\/p>\n<p>g.lock.RLock()<br \/>\nactive :&#061; g.activeBucket<br \/>\nprev :&#061; g.previousBucket<br \/>\ng.lock.RUnlock()<\/p>\n<p>nonceBytes :&#061; []byte(nonce)<\/p>\n<p>\/\/ 2. \u68c0\u67e5\u53cc\u6876\u6392\u91cd<br \/>\n\/\/ \u82e5\u5728\u4e0a\u4e00\u4e2a\u6876\u4e2d\u5df2\u5b58\u5728&#xff0c;\u5224\u5b9a\u4e3a\u8de8\u7a97\u53e3\u8fb9\u754c\u91cd\u653e&#xff01;<br \/>\nif prev.AddAndCheck(nonceBytes) {<br \/>\nreturn errors.New(&#034;\u62e6\u622a\u5230\u6076\u610f\u91cd\u653e\u8bf7\u6c42 (\u547d\u4e2d\u524d\u5411\u7a97\u53e3\u7f13\u5b58)&#034;)<br \/>\n}<\/p>\n<p>\/\/ \u5728\u5f53\u524d\u6d3b\u8dc3\u6876\u4e2d\u68c0\u6d4b\u5e76\u7f6e\u4f4d<br \/>\nif active.AddAndCheck(nonceBytes) {<br \/>\nreturn errors.New(&#034;\u62e6\u622a\u5230\u9ad8\u9891\u91cd\u653e\u8bf7\u6c42 (\u5f53\u524d\u7a97\u53e3\u5df2\u6d88\u8d39)&#034;)<br \/>\n}<\/p>\n<p>return nil<br \/>\n}<\/p>\n<hr \/>\n<h4>\u4e94\u3001 \u67b6\u6784\u6536\u76ca\u4e0e\u6027\u80fd\u6307\u6807\u5bf9\u6bd4<\/h4>\n<p>\u5c06\u8be5\u67b6\u6784\u7f6e\u4e8e\u751f\u4ea7\u7f51\u5173\u7684\u5b9e\u9645\u538b\u6d4b\u8868\u660e&#xff0c;\u5176\u5bf9\u7cfb\u7edf\u8d44\u6e90\u7684\u89e3\u8026\u80fd\u529b\u582a\u79f0\u60ca\u8273&#xff1a;<\/p>\n<table>\n<tr>\u8bc4\u4f30\u7ef4\u5ea6\u4f20\u7edf Redis Nonce \u65b9\u6848\u53cc\u6876\u5e03\u9686\u8fc7\u6ee4\u5668\u6ed1\u52a8\u67b6\u6784\u6027\u80fd\u4e0e\u5b89\u5168\u63d0\u5347\u5e45\u5ea6<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">200 \u4e07 QPS \u5185\u5b58\u5360\u7528<\/td>\n<td align=\"left\">\u7ea6 12 GB \u52a8\u6001\u9ad8\u901f\u5185\u5b58<\/td>\n<td align=\"left\">\u4ec5\u9700 32 MB \u56fa\u5b9a\u4f4d\u56fe<\/td>\n<td align=\"left\">\u5185\u5b58\u6210\u672c\u66b4\u964d 99.7%&#xff01;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7f51\u7edc I\/O \u5f80\u8fd4\u5ef6\u8fdf<\/td>\n<td align=\"left\">\u6bcf\u6b21\u6821\u9a8c\u9700 1~2ms \u7f51\u7edc RTT<\/td>\n<td align=\"left\">\u672c\u5730\u5185\u5b58\u64cd\u4f5c&#xff0c;\u5ef6\u8fdf &lt; 50 \u7eb3\u79d2<\/td>\n<td align=\"left\">\u541e\u5410\u6027\u80fd\u63d0\u5347\u6570\u5343\u500d&#xff01;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6297\u5e76\u53d1\u7ade\u6001\u4e0e\u6b7b\u9501<\/td>\n<td align=\"left\">\u4f9d\u8d56\u5206\u5e03\u5f0f\u9501\u6216 Lua \u811a\u672c\u539f\u5b50\u6027<\/td>\n<td align=\"left\">\u7eaf\u65e0\u9501\u539f\u5b50\u6307\u4ee4&#xff08;atomic.Or&#xff09;<\/td>\n<td align=\"left\">\u5f7b\u5e95\u675c\u7edd Redis \u8282\u70b9\u5355\u70b9\u6027\u80fd\u74f6\u9888<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8bef\u6740\u7387&#xff08;False Positive&#xff09;<\/td>\n<td align=\"left\">0%<\/td>\n<td align=\"left\">\u63a7\u5236\u5728 0.0001% \u4ee5\u5185&#xff08;\u5343\u4e07\u5206\u4e4b\u4e00&#xff09;<\/td>\n<td align=\"left\">\u5bf9\u5408\u6cd5\u79d2\u6740\u4e1a\u52a1\u5b8c\u5168\u4e0d\u53ef\u611f\u77e5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u516d\u3001 \u7ed3\u8bed<\/h4>\n<p>\u5728\u6bcf\u79d2\u767e\u4e07\u7ea7\u6d41\u91cf\u7684\u751f\u6b7b\u535a\u5f08\u4e2d&#xff0c;\u4f18\u79c0\u7684\u7cfb\u7edf\u5b89\u5168\u8bbe\u8ba1\u6c38\u8fdc\u4e0d\u662f\u5355\u7eaf\u9760\u5806\u780c\u6602\u8d35\u7684\u8ba1\u7b97\u4e0e\u5b58\u50a8\u8d44\u6e90&#xff0c;\u800c\u662f\u9760\u5bf9\u6570\u636e\u7ed3\u6784\u3001\u6982\u7387\u8bba\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5e95\u5c42\u7279\u6027\u7684\u6df1\u523b\u6d1e\u5bdf\u3002\u901a\u8fc7\u5de7\u5999\u5229\u7528\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3\u62e6\u622a\u5b8f\u89c2\u5386\u53f2\u91cd\u653e&#xff0c;\u5229\u7528\u53cc\u6876\u4ea4\u66ff\u5e03\u9686\u8fc7\u6ee4\u5668\u5728\u5fae\u79d2\u7ea7\u7c89\u788e\u5fae\u89c2\u5e76\u53d1\u7a81\u523a&#xff0c;\u6211\u4eec\u7528\u4ec5\u6709\u51e0\u5341\u5146\u7684\u6781\u5c0f\u5185\u5b58\u4ee3\u4ef7&#xff0c;\u6784\u7b51\u8d77\u4e86\u4e00\u5ea7\u62b5\u5fa1\u6d77\u91cf\u91cd\u653e\u811a\u672c\u51b2\u51fb\u7684\u94a2\u94c1\u95f8\u95e8\u3002\u8fd9\u6b63\u662f\u9ad8\u5e76\u53d1\u4e1a\u52a1\u5b89\u5168\u4e0e\u98ce\u63a7\u5de5\u7a0b\u6700\u5177\u7f8e\u611f\u7684\u6280\u672f\u6c89\u6dc0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u53cc 11 \u96f6\u70b9\u5927\u4fc3\u7684\u6beb\u79d2\u7ea7\u9ad8\u5e76\u53d1\u79d2\u6740\u6218\u573a\u4e0a&#xff0c;\u201c\u9632\u91cd\u653e&#xff08;Anti-Replay&#xff09;\u201d\u662f\u5b88\u536b\u8ba2\u5355\u652f\u4ed8\u4e0e\u5927\u989d\u4f18\u60e0\u5238\u6838\u9500\u7cfb\u7edf\u751f\u547d\u7ebf\u7684\u6838\u5fc3\u95f8\u95e8\u3002\u9ed1\u4ea7\u56e2\u4f19\u5728\u55c5\u63a2\u622a\u83b7\u4e00\u6b21\u5408\u6cd5\u7528\u6237\u7684\u62a2\u8d2d\u7f51\u7edc\u6570\u636e\u5305\u540e&#xff0c;\u5f80\u5f80\u4f1a\u5728\u7eb3\u79d2\u7ea7\u5229\u7528\u7fa4\u63a7\u811a\u672c&#xff0c;\u539f\u5c01\u4e0d\u52a8\u5730\u5c06\u8be5\u8bf7\u6c42\u5411\u540e\u7aef\u7f51\u5173\u63a8\u9001\u6570\u767e\u6b21&#xff0c;\u4f01\u56fe\u5229\u7528\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u95f4\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u5ef6\u8fdf\u6216\u6570\u636e\u5e93\u5e76\u53d1\u9501\u6f0f\u6d1e&#xff0c;\u5b9e\u73b0\u201c\u4e00\u6b21\u652f\u4ed8&#xff0c;\u591a\u6b21\u51fa\u5e93\u201d\u6216\u201c\u5355\u6b21\u9886\u5238&#xff0c;\u591a\u6b21<\/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":[66,594,50,100,51],"topic":[],"class_list":["post-115788","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-web","tag-50","tag-100","tag-51"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3 - \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\/115788.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u53cc 11 \u96f6\u70b9\u5927\u4fc3\u7684\u6beb\u79d2\u7ea7\u9ad8\u5e76\u53d1\u79d2\u6740\u6218\u573a\u4e0a&#xff0c;\u201c\u9632\u91cd\u653e&#xff08;Anti-Replay&#xff09;\u201d\u662f\u5b88\u536b\u8ba2\u5355\u652f\u4ed8\u4e0e\u5927\u989d\u4f18\u60e0\u5238\u6838\u9500\u7cfb\u7edf\u751f\u547d\u7ebf\u7684\u6838\u5fc3\u95f8\u95e8\u3002\u9ed1\u4ea7\u56e2\u4f19\u5728\u55c5\u63a2\u622a\u83b7\u4e00\u6b21\u5408\u6cd5\u7528\u6237\u7684\u62a2\u8d2d\u7f51\u7edc\u6570\u636e\u5305\u540e&#xff0c;\u5f80\u5f80\u4f1a\u5728\u7eb3\u79d2\u7ea7\u5229\u7528\u7fa4\u63a7\u811a\u672c&#xff0c;\u539f\u5c01\u4e0d\u52a8\u5730\u5c06\u8be5\u8bf7\u6c42\u5411\u540e\u7aef\u7f51\u5173\u63a8\u9001\u6570\u767e\u6b21&#xff0c;\u4f01\u56fe\u5229\u7528\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u95f4\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u5ef6\u8fdf\u6216\u6570\u636e\u5e93\u5e76\u53d1\u9501\u6f0f\u6d1e&#xff0c;\u5b9e\u73b0\u201c\u4e00\u6b21\u652f\u4ed8&#xff0c;\u591a\u6b21\u51fa\u5e93\u201d\u6216\u201c\u5355\u6b21\u9886\u5238&#xff0c;\u591a\u6b21\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115788.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-13T03:41:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261013034109-6acda855eca43.webp\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115788.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115788.html\",\"name\":\"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-13T03:41:11+00:00\",\"dateModified\":\"2026-10-13T03:41:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115788.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115788.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115788.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3\"}]},{\"@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":"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3 - \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\/115788.html","og_locale":"zh_CN","og_type":"article","og_title":"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u53cc 11 \u96f6\u70b9\u5927\u4fc3\u7684\u6beb\u79d2\u7ea7\u9ad8\u5e76\u53d1\u79d2\u6740\u6218\u573a\u4e0a&#xff0c;\u201c\u9632\u91cd\u653e&#xff08;Anti-Replay&#xff09;\u201d\u662f\u5b88\u536b\u8ba2\u5355\u652f\u4ed8\u4e0e\u5927\u989d\u4f18\u60e0\u5238\u6838\u9500\u7cfb\u7edf\u751f\u547d\u7ebf\u7684\u6838\u5fc3\u95f8\u95e8\u3002\u9ed1\u4ea7\u56e2\u4f19\u5728\u55c5\u63a2\u622a\u83b7\u4e00\u6b21\u5408\u6cd5\u7528\u6237\u7684\u62a2\u8d2d\u7f51\u7edc\u6570\u636e\u5305\u540e&#xff0c;\u5f80\u5f80\u4f1a\u5728\u7eb3\u79d2\u7ea7\u5229\u7528\u7fa4\u63a7\u811a\u672c&#xff0c;\u539f\u5c01\u4e0d\u52a8\u5730\u5c06\u8be5\u8bf7\u6c42\u5411\u540e\u7aef\u7f51\u5173\u63a8\u9001\u6570\u767e\u6b21&#xff0c;\u4f01\u56fe\u5229\u7528\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u95f4\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u5ef6\u8fdf\u6216\u6570\u636e\u5e93\u5e76\u53d1\u9501\u6f0f\u6d1e&#xff0c;\u5b9e\u73b0\u201c\u4e00\u6b21\u652f\u4ed8&#xff0c;\u591a\u6b21\u51fa\u5e93\u201d\u6216\u201c\u5355\u6b21\u9886\u5238&#xff0c;\u591a\u6b21","og_url":"https:\/\/www.wsisp.com\/helps\/115788.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-13T03:41:11+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261013034109-6acda855eca43.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115788.html","url":"https:\/\/www.wsisp.com\/helps\/115788.html","name":"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-13T03:41:11+00:00","dateModified":"2026-10-13T03:41:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115788.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115788.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115788.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u53cc 11 \u62a2\u8d2d\u573a\u666f\u4e0b\u7684\u5206\u5e03\u5f0f\u9632\u91cd\u653e\uff08Anti-Replay\uff09\u67b6\u6784\uff1a\u57fa\u4e8e Bloom Filter \u4e0e\u65f6\u95f4\u6233\u6ed1\u52a8\u7a97\u53e3"}]},{"@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\/115788","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=115788"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115788\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115788"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}