# BitTorrent 术语表

**BitTorrent** 是一种点对点文件分发协议，下载者在其中也可以上传；其词汇来自三个地方：[布拉姆·科恩](https://www.edgepedia.org/zh/bram-cohen)的原始协议规范、扩展该协议的 [BitTorrent](https://www.edgepedia.org/zh/bittorrent) 增强提案（BEP），以及 tracker 社区的行话。本术语表按相互关联的章节定义这些术语，从基本对象（种子文件、群、做种者）到数据完整性、节点发现、传输机制和社区规则。BEP 索引本身为协议的扩展规范编号：DHT 协议（BEP 5）、元数据交换（BEP 9）、扩展协议（BEP 10）、节点交换（BEP 11）、UDP Tracker 协议（BEP 15）、私有种子（BEP 27）以及 uTorrent 传输协议（BEP 29）等。<sup>[1](https://www.bittorrent.org/beps/bep_0000.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 种子文件 | 以 .torrent 结尾的元信息文件，描述共享文件，可能包含 tracker 信息，供客户端和 tracker 管理下载<sup>[2](https://www.cse.chalmers.se/~tsigas/Courses/DCDSeminar/Files/BitTorrent.pdf)</sup> |
| 群 | 正在下载和分享某一个特定文件的所有节点集合；下载者称为下载者，完整分享者称为做种者<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup> |
| 分块哈希 | v1 用存储在 .torrent 文件中的 SHA-1 哈希验证每个分块；v2（BEP 52）改用 SHA-256，Merkle 树叶节点为 16 kiB<sup>[4](https://ar5iv.labs.arxiv.org/html/cs/0609026)</sup><sup> • </sup><sup>[5](https://blog.libtorrent.org/2020/09/bittorrent-v2/)</sup> |
| 节点发现 | Tracker 通告、Mainline DHT（BEP 5）和节点交换（BEP 11）提供节点列表；磁力链接可以在三者均未预先配置的情况下引导下载<sup>[6](https://www.bittorrent.org/beps/bep_0009.html)</sup> |
| 一报还一报 | 客户端向少量互惠节点上传（原始规范中为四个），每 10 秒重新评估，每 30 秒轮换一个乐观解阻塞<sup>[7](https://sources.debian.org/data/main/b/bittorrent/3.4.2-10/www-doc/protocol.html)</sup><sup> • </sup><sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup> |
| 私有种子 | BEP 27 私有种子不向 DHT 通告，也不通过 PEX 分享；只进行 tracker 通告<sup>[8](https://mintlify.wiki/webtorrent/webtorrent/advanced/bep-support)</sup> |
| 分享率 | 上传数据除以下载数据；大多数私有 tracker 封禁或阻止分享率不佳的用户，并要求最低分享率为 0.5 至 1.0<sup>[9](https://torrentfreak.com/bittorrent-jargon)</sup> |

## 核心概念：种子文件、群、做种者和下载者

**种子文件**（元信息文件，以 .torrent 结尾）描述所共享文件的元数据，并在指定时描述 tracker，以便客户端和 tracker 管理下载。<sup>[2](https://www.cse.chalmers.se/~tsigas/Courses/DCDSeminar/Files/BitTorrent.pdf)</sup> 它不是内容本身，而是加入一次分发的配方。一个种子构成一个由节点组成的覆盖网络；使用 tracker 时，它存储有关活跃节点的信息。<sup>[10](https://repository.hkust.edu.hk/ir/bitstream/1783.1-6529/1/SurveyofBitTorrent.pdf)</sup>

**群**是正在下载和分享某一个特定文件的所有节点的集合。下载过程中的节点称为**下载者**，而分享完整副本的节点称为**做种者**。<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup> 做种者指持有文件完整副本、留在种子中向其他节点提供该文件的客户端，而下载者则是尚未完成下载的客户端。<sup>[10](https://repository.hkust.edu.hk/ir/bitstream/1783.1-6529/1/SurveyofBitTorrent.pdf)</sup> 文件被分割成块，每个文件大约一千块，下载者通过以类似一报还一报的方式上传和下载这些块来进行交换。<sup>[11](https://www.csd.uoc.gr/~hy558/papers/bittorrent.pdf)</sup>

**磁力链接**用一个以哈希命名内容的 URI 取代种子文件。元数据交换扩展（BEP 9）允许客户端加入群并完成下载，而无需先下载 .torrent 文件，办法是从节点获取元数据。<sup>[6](https://www.bittorrent.org/beps/bep_0009.html)</sup> v1 磁力格式为 `magnet:?xt=urn:btih:<info-hash>&dn=<name>&tr=<tracker-url>&x.pe=<peer-address>`，其中 info-hash 标识种子，可选参数给出显示名称、tracker URL 和直接节点地址。<sup>[6](https://www.bittorrent.org/beps/bep_0009.html)</sup>

## 数据结构与完整性术语

使用 BitTorrent 传输的文件被分割成**分块**，每个分块又分割成**区块**。区块是网络上的传输单元，但协议只对已传输的分块进行核算，因此区块只有在其整个分块组装完成后才有用。<sup>[12](https://www.eurecom.fr/en/publication/1933/download/ce-urvogu-051109.pdf)</sup> 在 v1 中，.torrent 文件包含元信息，包括分块大小和每个分块的 SHA-1 哈希值；完成的分块会对照其哈希进行校验，这就是数据通过密码学方式验证、而非信任发送它的节点的方式。<sup>[4](https://ar5iv.labs.arxiv.org/html/cs/0609026)</sup>

**BitTorrent v2**（BEP 52）将分块哈希函数改为 SHA-256，使哈希为 32 字节而非 20 字节，这是继 Google 宣布 SHA-1 碰撞之后做出的改变。<sup>[5](https://blog.libtorrent.org/2020/09/bittorrent-v2/)</sup> v2 还对分块使用 Merkle 哈希树，其叶节点无论分块大小始终为 16 kiB（即区块大小）。由于该树单独验证每个区块，损坏的数据可以立即被发现，且只需重新下载 16 kiB，而不是整个分块。<sup>[5](https://blog.libtorrent.org/2020/09/bittorrent-v2/)</sup> Merkle 树格式还使 v2 信息字典更小，从而减少添加磁力链接时的启动延迟。<sup>[5](https://blog.libtorrent.org/2020/09/bittorrent-v2/)</sup>

**混合种子**可以同时参与 v1 和 v2 群，服务相同的文件，并携带两个 info-hash，一个 SHA-1，一个 SHA-256；v2 支持通过新的 PEX 标志转发给其他节点。<sup>[5](https://blog.libtorrent.org/2020/09/bittorrent-v2/)</sup> v2 磁力前缀为 `urn:btmh:`，用于多重哈希格式的完整 SHA-256 info-hash，磁力链接可以同时携带 btih 和 btmh 哈希以保持向后兼容。<sup>[5](https://blog.libtorrent.org/2020/09/bittorrent-v2/)</sup> 2023 年之后的维护仍在继续：libtorrent 2.0.13 将混合种子改为使用 v2 哈希而非 smart_ban。<sup>[13](https://github.com/arvidn/libtorrent/releases/tag/v2.0.13)</sup>

## 节点发现：tracker、DHT、PEX 和磁力链接

**Tracker** 是节点用来相互发现的中央目录。<sup>[4](https://ar5iv.labs.arxiv.org/html/cs/0609026)</sup> 它通过提供在线节点列表来协调群；节点在加入群时向 tracker **通告**自己的存在，并在会话期间定期通告以确认自己仍在线。<sup>[14](https://essay.utwente.nl/fileshare/file/109760/Master%20thesis%20-%20Steven%20Monteiro%20%28April%2012%20version%29.pdf)</sup> 就客户端而言，通告是指连接 tracker 以更新自身状态并从中获取信息（包括更新的节点列表）的行为。<sup>[15](https://documentation.help/uTorrent/Glossary.html)</sup>

**DHT**（分布式哈希表，BEP 5）消除了对 tracker 的需求。Tracker 是 BitTorrent 生态系统中的单点故障，通常受到法律行动的威胁，因此开发者设计了一种无 tracker 机制，让用户无需联系 tracker 即可获知节点的 IP 地址。<sup>[16](http://www.it.uc3m.es/~azcorra/papers/2011_Measuring_BitTorrent_ecosystems.pdf)</sup> 在 Mainline DHT 中，键是 infohash，即种子元数据的密码学哈希，用作种子的标识符，值是节点列表；客户端迭代查询 DHT 节点，以找到负责给定 infohash 的节点。<sup>[14](https://essay.utwente.nl/fileshare/file/109760/Master%20thesis%20-%20Steven%20Monteiro%20%28April%2012%20version%29.pdf)</sup> 这种去中心化架构消除了与集中式 tracker 相关的单点故障，并增强了 BitTorrent 在 tracker 离线时的韧性。<sup>[14](https://essay.utwente.nl/fileshare/file/109760/Master%20thesis%20-%20Steven%20Monteiro%20%28April%2012%20version%29.pdf)</sup> 当磁力链接中未指定 tracker 时，客户端应使用 DHT 获取节点。<sup>[6](https://www.bittorrent.org/beps/bep_0009.html)</sup>

**PEX**（节点交换，BEP 11）是一种流言协议：当节点支持 PEX 时，它用其所有邻居的 IP 地址列表响应 PEX 请求，让节点通过少量查询了解许多群参与者。<sup>[16](http://www.it.uc3m.es/~azcorra/papers/2011_Measuring_BitTorrent_ecosystems.pdf)</sup>

## 传输机制与客户端行为

**阻塞**是节点暂时拒绝向邻居上传。<sup>[17](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/infocom06.pdf)</sup> 在原始协议中，普通客户端一次最多解阻塞四个下载者。<sup>[7](https://sources.debian.org/data/main/b/bittorrent/3.4.2-10/www-doc/protocol.html)</sup> 该策略让节点最多向 4 个节点上传，同时如果它是做种者，则持续寻找 4 个最佳下载者（按达到的速率），如果它是下载者，则寻找 4 个最佳上传者。<sup>[18](https://www.cl.cam.ac.uk/research/srg/netos/events/pam2004/papers/148.pdf)</sup> 后来的研究描述了同一机制的一些变体：节点有 4 到 7 个上传槽位，以约 10 秒一轮重新评估解阻塞，<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup> 一篇测量论文报告任意时刻最多有 5 个邻居连接被解阻塞，每 10 秒重新评估一次。<sup>[17](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/infocom06.pdf)</sup> 解阻塞槽位的数量通常要么是一个小常数（如 4），要么是上传带宽的函数，一项分析将一报还一报的解阻塞视为对上传容量的拍卖。<sup>[19](https://dl.acm.org/doi/pdf/10.1145/1402946.1402987)</sup>

**乐观解阻塞**给新来者一个立足点。根据原始规范，一次解阻塞一个节点，无论它上传得多快（感兴趣的节点计入四个允许的下载者），并且乐观解阻塞的节点每 30 秒切换一次；新到达的连接成为下一个乐观解阻塞节点的机会是轮换中任何其他节点的三倍。<sup>[7](https://sources.debian.org/data/main/b/bittorrent/3.4.2-10/www-doc/protocol.html)</sup> 后来的描述与这一节奏相符：每 30 秒，即每 3 次常规解阻塞操作，下载者和做种者都随机选择一个被阻塞的邻居上传，<sup>[16](http://www.it.uc3m.es/~azcorra/papers/2011_Measuring_BitTorrent_ecosystems.pdf)</sup> 并且每三轮以轮询方式解阻塞一个随机感兴趣的节点，给新节点获得其第一批分块的机会。<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup> 做种者有自己的变体：自主流客户端 4.0.0 版起，做种者在连续三轮中分散进行若干随机解阻塞，以减少搭便车行为。<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup>

**最稀有优先**决定下载者请求什么。被解阻塞时，下载者应用最稀有优先策略，请求其邻居中可用性最低的分块。<sup>[16](http://www.it.uc3m.es/~azcorra/papers/2011_Measuring_BitTorrent_ecosystems.pdf)</sup>

**可用性**和**群健康度**描述一个群能否完成。可用性是群中已连接部分所分布的种子内容完整副本的数量；没有做种者且可用性低于 1.0 的群很可能无法完成传输完整的种子内容。<sup>[15](https://documentation.help/uTorrent/Glossary.html)</sup> 群健康度是群中文件完整副本的比率，表示为持有文件副本的节点数占总节点数的百分比。<sup>[20](https://medianet.cs.kent.edu/surveys/IAD06S-P2PArchitectures-chibuike/P2P%20App.%20Survey%20Paper.htm)</sup>

**终局模式**是完成冲刺。当下载者只缺少数几个区块时，它同时向多个节点请求相同的区块，终局模式期间使用 CANCEL 消息在重复区块先到达时取消 REQUEST 消息。<sup>[12](https://www.eurecom.fr/en/publication/1933/download/ce-urvogu-051109.pdf)</sup>

**搭便车**是只下载而不上传作为回报。基于速率的一报还一报并不能完全有效地防止不公平：当高带宽节点存在时，低带宽节点从网络下载的可以多于它们上传的。<sup>[21](https://dl.acm.org/doi/10.1145/1071690.1064273)</sup> 上述做种者侧的随机解阻塞是一种对策。<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup>

## 数字一览

若干数量在协议及其测量中反复出现。加入的节点会收到一份潜在邻居节点列表，通常为 50 个，从种子中所有活跃节点的集合中随机选出，然后联系其中约 20 到 40 个。<sup>[10](https://repository.hkust.edu.hk/ir/bitstream/1783.1-6529/1/SurveyofBitTorrent.pdf)</sup> 上传槽位数为 4 到 7，<sup>[3](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)</sup> 以 10 秒为周期重新评估，乐观解阻塞每 30 秒轮换一次。<sup>[7](https://sources.debian.org/data/main/b/bittorrent/3.4.2-10/www-doc/protocol.html)</sup>

消息大小固定且很小。Choke、unchoke、interested 和 not-interested 消息为 5 字节；HAVE 消息为 9 字节；REQUEST 和 CANCEL 为 17 字节；默认区块大小为 16 kiB<sup>14</sup> 时，PIECE 消息为 16 kiB<sup>14</sup> + 13 字节。<sup>[12](https://www.eurecom.fr/en/publication/1933/download/ce-urvogu-051109.pdf)</sup> 握手消息是节点向远程节点发起连接时交换的第一条消息，4 字节的 keep-alive 消息可防止连接超时。<sup>[12](https://www.eurecom.fr/en/publication/1933/download/ce-urvogu-051109.pdf)</sup>

一项 2003 至 2004 年的测量研究记录了 2003 年 10 月 27 日至 2004 年 1 月 16 日期间 4,387 个种子上的 845,014 个会话；最大的种子为 10.95 GB，平均种子大小为 760.12 MB，中位数为 651.77 MB。<sup>[22](https://www.comp.nus.edu.sg/~bleong/p2pft/related/bellissimo04exploring.pdf)</sup> 平均会话时长为 13.25 小时，中位数为 8.46 小时，最长会话持续 35 天。<sup>[22](https://www.comp.nus.edu.sg/~bleong/p2pft/related/bellissimo04exploring.pdf)</sup>

## 社区与 tracker 行话

**私有 tracker** 施加的注册要求差异很大，它们可能监控用户以确保其按 tracker 规则的定义做出足够贡献。<sup>[14](https://essay.utwente.nl/fileshare/file/109760/Master%20thesis%20-%20Steven%20Monteiro%20%28April%2012%20version%29.pdf)</sup> 从技术上讲，私有种子（BEP 27）被标记为不向 DHT 通告、也不通过 PEX 分享；只进行 tracker 通告，这就是为什么私有种子即使在启用了 DHT 和 PEX 的客户端上也留在其 tracker 社区内。<sup>[8](https://mintlify.wiki/webtorrent/webtorrent/advanced/bep-support)</sup>

**分享率**是你上传的数据除以你下载的数据。比率高于 1.00 表示发送的数据多于接收的数据，这被认为是可取的；由于大多数私有 tracker 监控用户的分享率，糟糕的分享率可能导致被封禁或阻止。<sup>[9](https://torrentfreak.com/bittorrent-jargon)</sup> 大多数私有 tracker 要求最低分享率为 0.5 至 1.0 以保持账户良好状态，其中 1.0 意味着你上传的量恰好等于你下载的量。<sup>[23](https://magnetz.eu/wiki/advanced/ratios-and-private-trackers.html)</sup>

**下完就跑**发生在用户获取种子后，在满足 tracker 的做种规则（例如 72 小时或该种子上 1.0 的分享率）之前就停止做种；积累太多这类行为会先导致警告，然后导致账户暂停。<sup>[23](https://magnetz.eu/wiki/advanced/ratios-and-private-trackers.html)</sup> 与之相对的做法是**补种**，即作为做种者重新加入一个没有做种者的群。<sup>[15](https://documentation.help/uTorrent/Glossary.html)</sup>

## References

1. [BitTorrent Enhancement Proposals index (BEP 0000), bittorrent.org](https://www.bittorrent.org/beps/bep_0000.html)
2. [BitTorrent (Chalmers course notes on metainfo files)](https://www.cse.chalmers.se/~tsigas/Courses/DCDSeminar/Files/BitTorrent.pdf)
3. [Modeling and Analysis of Bandwidth-Inhomogeneous Swarms in BitTorrent, P2P 2009](https://www.cs.kent.edu/~javed/class-FP2P10S/papers-2010/p08-p2p2009.pdf)
4. [Rarest First and Choke Algorithms Are Enough, arXiv cs/0609026](https://ar5iv.labs.arxiv.org/html/cs/0609026)
5. [BitTorrent v2, libtorrent blog (Arvid Norberg)](https://blog.libtorrent.org/2020/09/bittorrent-v2/)
6. [BEP 9: Extension for Peers to Send Metadata Files, bittorrent.org](https://www.bittorrent.org/beps/bep_0009.html)
7. [BitTorrent: Protocol Specification (Bram Cohen's original protocol doc)](https://sources.debian.org/data/main/b/bittorrent/3.4.2-10/www-doc/protocol.html)
8. [WebTorrent BEP support matrix](https://mintlify.wiki/webtorrent/webtorrent/advanced/bep-support)
9. [BitTorrent Jargon, TorrentFreak](https://torrentfreak.com/bittorrent-jargon)
10. [A Survey of BitTorrent, HKUST Repository](https://repository.hkust.edu.hk/ir/bitstream/1783.1-6529/1/SurveyofBitTorrent.pdf)
11. [Pouwelse et al., BitTorrent measurement paper, IPTPS](https://www.csd.uoc.gr/~hy558/papers/bittorrent.pdf)
12. [Understanding BitTorrent: An Experimental Perspective, EURECOM](https://www.eurecom.fr/en/publication/1933/download/ce-urvogu-051109.pdf)
13. [libtorrent v2.0.13 release notes, GitHub](https://github.com/arvidn/libtorrent/releases/tag/v2.0.13)
14. [Revisiting the BitTorrent Ecosystem, University of Twente thesis](https://essay.utwente.nl/fileshare/file/109760/Master%20thesis%20-%20Steven%20Monteiro%20%28April%2012%20version%29.pdf)
15. [Glossary, µTorrent User Manual Documentation](https://documentation.help/uTorrent/Glossary.html)
16. [Measuring BitTorrent Ecosystem: Techniques, Tips, UC3M](http://www.it.uc3m.es/~azcorra/papers/2011_Measuring_BitTorrent_ecosystems.pdf)
17. [Analyzing and Improving a BitTorrent Network's Performance Mechanisms, INFOCOM 2006, Microsoft Research](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/infocom06.pdf)
18. [Months in a Torrent's Lifetime, PAM 2004](https://www.cl.cam.ac.uk/research/srg/netos/events/pam2004/papers/148.pdf)
19. [BitTorrent is an Auction: Analyzing and Improving BitTorrent's Incentives, ACM](https://dl.acm.org/doi/pdf/10.1145/1402946.1402987)
20. [A Tutorial on BitTorrent, Freenet and Gnutella Protocols](https://medianet.cs.kent.edu/surveys/IAD06S-P2PArchitectures-chibuike/P2P%20App.%20Survey%20Paper.htm)
21. [Some observations on BitTorrent performance, ACM SIGMETRICS Performance Evaluation Review](https://dl.acm.org/doi/10.1145/1071690.1064273)
22. [Exploring the Use of BitTorrent (measurement study)](https://www.comp.nus.edu.sg/~bleong/p2pft/related/bellissimo04exploring.pdf)
23. [Ratios & Private Trackers, Magnetz Wiki](https://magnetz.eu/wiki/advanced/ratios-and-private-trackers.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › 网络基础与架构 › 互联网协议套件

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/glossary-of-bittorrent-terms

English original: https://www.edgepedia.org/glossary-of-bittorrent-terms
