# IPv6

**IPv6**（[互联网协议](https://www.edgepedia.org/zh/internet-protocol)第六版）是互联网协议的最新版本。互联网协议是负责在互联网上寻址和路由数据包的网络层协议，IPv6 的设计目的是取代 IPv4。其标志性特征是 128 位地址空间，而 IPv4 只有 32 位；当前核心规范为 2017 年 7 月发布的 RFC 8200，它废止了 1998 年的规范 RFC 2460<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。寻址规范另见 RFC 4291《IP 第六版寻址架构》<sup>[2](https://www.rfc-editor.org/info/rfc4291/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 地址长度 | 每个数据包首部中的源地址和目的地址均为 128 位<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup> |
| 地址空间 | 共有 \( 2^{128} \) 个可能地址，旨在取代 IPv4 有限的 32 位空间<sup>[5](https://www.tomshardware.com/networking/ipv6-usage-reaches-historic-50-percent-across-google-services-matching-ipv4-increased-usage-eases-pressure-on-the-ipv4-address-market-as-new-protocol-designed-in-1998-finally-hits-its-stride)</sup> |
| 核心规范 | RFC 8200，2017 年 7 月，废止 1998 年 12 月的 RFC 2460<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup> |
| 地址类型 | 单播、组播和任播；任播用于将数据包投递给一组节点中的任意一个<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup><sup> • </sup><sup>[2](https://www.rfc-editor.org/info/rfc4291/)</sup> |
| 选项机制 | 可选的互联网层信息承载于 IPv6 首部与上层首部之间的扩展首部中<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup> |
| 采用率（2026 年） | 谷歌测量到，2026 年 3 月 28 日首次有 50% 的用户通过 IPv6 访问其服务；APNIC 测得全球 IPv6 支持率约为 42%<sup>[6](https://blog.apnic.net/2026/04/28/google-hits-50-ipv6/?trk=article-ssr-frontend-pulse_little-text-block)</sup><sup> • </sup><sup>[5](https://www.tomshardware.com/networking/ipv6-usage-reaches-historic-50-percent-across-google-services-matching-ipv4-increased-usage-eases-pressure-on-the-ipv4-address-market-as-new-protocol-designed-in-1998-finally-hits-its-stride)</sup> |
| 政府政策 | 美国 OMB 备忘录 M-21-07（2020 年 11 月 19 日）指示联邦机构仅使用 IPv6 交付服务并运营网络<sup>[8](https://www.whitehouse.gov/wp-content/uploads/2020/11/M-21-07.pdf)</sup> |

## 起源与设计目标

该协议源自[互联网工程任务组](https://www.edgepedia.org/zh/internet-engineering-task-force)（Internet Engineering Task Force）的“IPng”（下一代 IP）工作。RFC 1752 于 1995 年 1 月由哈佛大学（Harvard University）的斯科特·布拉德纳（Scott Bradner）和 USC/信息科学研究所（USC/Information Sciences Institute）的艾莉森·曼金（Allison Mankin）发布，记录了对下一代协议的建议及其应满足的要求，包括将数据包认证作为一项基本必需功能<sup>[3](https://www.rfc-editor.org/info/rfc1752/)</sup>。第一份完整规范 RFC 2460 于 1998 年 12 月问世<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。

RFC 8200 列出了塑造该设计的、相对 IPv4 的各项变更。首部格式简化删除或可选化了一些 IPv4 首部字段，以降低数据包处理的常见情形开销并限制首部带宽。修订后的选项编码允许更高效的转发、对选项长度更宽松的限制，以及未来选项更大的灵活性。流标签能力让发送方可以标记数据包序列，使网络将其视为单一流。认证、数据完整性和可选数据机密性扩展从一开始就已规定<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。

## 数据包格式与扩展首部

每个 IPv6 数据包都以一个固定首部开始，其中包含 128 位源地址和 128 位目的地址等字段<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。可选的互联网层信息不像 IPv4 那样塞入该首部，而是编码在独立的扩展首部中，置于 IPv6 首部与上层首部之间；每个扩展首部由取自 IANA IP 协议号注册表的独特“下一首部”值标识，两个协议版本使用同一套编号<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。

当数据包携带多个扩展首部时，RFC 8200 建议的顺序为：IPv6 首部、逐跳选项、目的选项、路由、分片、认证（RFC 4302）、[封装安全载荷](https://www.edgepedia.org/zh/encapsulating-security-payload)（RFC 4303）、再次目的选项，然后是 TCP 等上层首部<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。在目的地，根据“下一首部”字段进行解复用，调用处理第一个扩展首部的模块；若无扩展首部，则调用处理上层首部的模块<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。

分片与 IPv4 在一个结构方面有所不同：分片首部由源节点使用，且仅由源节点在必须分片数据包时使用。RFC 7112 和 RFC 8200 第 4.5 节要求防火墙和目的节点丢弃不包含完整 IPv6 首部链（包括传输层首部）的首个分片，否则无状态过滤可能被绕过<sup>[4](https://www.rfc-editor.org/rfc/rfc9099.html)</sup>。

## 寻址架构

RFC 4291 于 2006 年 2 月由罗伯特·欣登（Robert Hinden，当时在诺基亚（Nokia）任职）和史蒂夫·迪林（Steve Deering，当时在思科系统（Cisco Systems）任职）发布，定义了 IPv6 寻址模型、地址的文本表示，以及单播、任播和组播地址的定义；它废止了 RFC 3513<sup>[2](https://www.rfc-editor.org/info/rfc4291/)</sup>。任播寻址相对 IPv4 实践而言是新的，它将数据包发送给一组节点中的任意一个成员<sup>[1](https://www.rfc-editor.org/info/rfc8200/)</sup>。该文档还弃用了“IPv4 兼容 IPv6 地址”形式，指示 IANA 保留 0000::/96 地址块而不重新分配<sup>[2](https://www.rfc-editor.org/info/rfc4291/)</sup>。

## 与 IPv4 的运营差异

运营 IPv6 网络涉及的差异不止于更长的地址。所有第二层交互都使用[邻居发现协议](https://www.edgepedia.org/zh/neighbor-discovery-protocol)（Neighbor Discovery Protocol，NDP，RFC 4861），而非 IPv4 使用的[地址解析协议](https://www.edgepedia.org/zh/address-resolution-protocol)<sup>[4](https://www.rfc-editor.org/rfc/rfc9099.html)</sup>。IPv6 没有定义网络地址端口转换（NAPT）；RFC 6296 规定了 NPTv6，即一对一的网络前缀转换，它不提供 NAPT 那样的端口复用<sup>[4](https://www.rfc-editor.org/rfc/rfc9099.html)</sup>。由于 IPv6 全局地址具有全局作用域，不同于 RFC 1918 的 IPv4 私有地址空间，使用站点到站点 VPN 的站点即使 VPN 不可用，也可能直接通过互联网通信，因此未加密流量可能被暴露或注入<sup>[4](https://www.rfc-editor.org/rfc/rfc9099.html)</sup>。

面向运营者的安全指南汇集于 RFC 9099（2021 年 8 月），该文档分析了企业、服务提供商和受管住宅网络中的运营安全问题，并提出了技术和程序上的缓解措施，包括针对尚未纯 IPv6 的网络中所用过渡机制的缓解措施<sup>[4](https://www.rfc-editor.org/rfc/rfc9099.html)</sup>。分片仍是一个活跃的关注点：一项 2023 年的测量研究依据 RFC 5722 和 RFC 9099 的分片处理要求评估了各操作系统，结论是 IPv6 分片仍可被视为一种威胁，相关安全问题需要更多努力<sup>[12](https://arxiv.org/abs/2309.03525)</sup>。RFC 6980 通过更新 RFC 4861 来应对一个特定攻击向量，禁止在除“证书路径通告”之外的所有邻居发现消息中使用分片首部，以反制分片 NDP 攻击<sup>[4](https://www.rfc-editor.org/rfc/rfc9099.html)</sup>。

## 采用情况

部署多年来进展缓慢，但在某些指标上已过半。谷歌的跟踪图表衡量通过 IPv6 访问谷歌旗下搜索、Gmail 和 YouTube 等服务的用户比例，该图表显示，2026 年 3 月 28 日，通过 IPv6 连接的全球用户比例曾短暂达到 50%，这是该测量中的首次<sup>[5](https://www.tomshardware.com/networking/ipv6-usage-reaches-historic-50-percent-across-google-services-matching-ipv4-increased-usage-eases-pressure-on-the-ipv4-address-market-as-new-protocol-designed-in-1998-finally-hits-its-stride)</sup>。APNIC 实验室自 2012 年起通过[谷歌广告](https://www.edgepedia.org/zh/google-ads)投放的带脚本在线广告每日测量 IPv6 能力，截至 2026 年 4 月记录到全球 IPv6 支持率约为 42%<sup>[6](https://blog.apnic.net/2026/04/28/google-hits-50-ipv6/?trk=article-ssr-frontend-pulse_little-text-block)</sup><sup> • </sup><sup>[9](https://blog.apnic.net/2025/11/14/how-we-measure-ipv6/)</sup>。两个数字不同，是因为它们测量的是不同人群和行为：APNIC 基于广告的测试区分能够获取纯 IPv6 网页对象的主机与在双栈获取中偏好 IPv6 的主机，后者由“快乐眼球”机制（Happy Eyeballs，RFC 8305）决定<sup>[9](https://blog.apnic.net/2025/11/14/how-we-measure-ipv6/)</sup>。

采用率因经济体而差异悬殊。各经济体比率以法国、印度和沙特阿拉伯最高，而非洲大陆大部分地区、[东欧](https://www.edgepedia.org/zh/eastern-europe)和[西亚](https://www.edgepedia.org/zh/western-asia)仍然较低<sup>[9](https://blog.apnic.net/2025/11/14/how-we-measure-ipv6/)</sup>。2026 年的行业报道称法国采用率达 85%，并指出美国首次超过 50%<sup>[7](https://www.techradar.com/pro/why-it-teams-must-bridge-the-growing-gap-in-ipv6-monitoring)</sup>。谷歌的一项研究发现，原生 IPv6 延迟与 IPv4 相当，消除了部署的一个历史性反对理由<sup>[10](https://research.google/pubs/evaluating-ipv6-adoption-in-the-internet/)</sup>。

政府政策加速了过渡。OMB 备忘录 M-21-07（2020 年 11 月 19 日）传达了在美国联邦信息系统全面完成 IPv6 部署的要求，并阐明战略意图：联邦政府应仅使用 IPv6 交付信息服务、运营网络并访问他人服务，取代了此前无限期双栈运行的预期，因为后者维护起来过于复杂<sup>[8](https://www.whitehouse.gov/wp-content/uploads/2020/11/M-21-07.pdf)</sup>。

## IPv6 互联网的规模与测量

不断增长的已部署基础本身如今已成为测量对象。一项 2026 年覆盖 73 个国家和地区的全球规模研究识别出超过 2.819 亿个活跃 IPv6 网络外围设备，其中，印度、中国和美国的数量较 2021 年报告的 5200 万个增长了 371.2%（2.45 亿个），并得出结论：尽管采用率激增，关键安全挑战依然存在，且深植于其结构之中<sup>[11](https://arxiv.org/abs/2604.19487)</sup>。更早关于活跃 IPv6 地址的研究发现，早在 2015 年就有一个大型内容分发网络每天处理来自数亿客户端地址的 500 亿次 IPv6 请求<sup>[13](https://arxiv.org/abs/1506.08134)</sup>。

## References

1. [RFC 8200: Internet Protocol, Version 6 (IPv6) Specification, RFC Editor](https://www.rfc-editor.org/info/rfc8200/)
2. [RFC 4291: IP Version 6 Addressing Architecture, RFC Editor](https://www.rfc-editor.org/info/rfc4291/)
3. [RFC 1752: The Recommendation for the IP Next Generation Protocol, RFC Editor](https://www.rfc-editor.org/info/rfc1752/)
4. [RFC 9099: Operational Security Considerations for IPv6 Networks, RFC Editor](https://www.rfc-editor.org/rfc/rfc9099.html)
5. [IPv6 usage reaches historic 50% across Google services, Tom's Hardware](https://www.tomshardware.com/networking/ipv6-usage-reaches-historic-50-percent-across-google-services-matching-ipv4-increased-usage-eases-pressure-on-the-ipv4-address-market-as-new-protocol-designed-in-1998-finally-hits-its-stride)
6. [Google hits 50% IPv6, APNIC Blog](https://blog.apnic.net/2026/04/28/google-hits-50-ipv6/?trk=article-ssr-frontend-pulse_little-text-block)
7. [Why IT teams must bridge the growing gap in IPv6 monitoring, TechRadar Pro](https://www.techradar.com/pro/why-it-teams-must-bridge-the-growing-gap-in-ipv6-monitoring)
8. [OMB Memorandum M-21-07, Executive Office of the President](https://www.whitehouse.gov/wp-content/uploads/2020/11/M-21-07.pdf)
9. [How we measure: IPv6, APNIC Blog](https://blog.apnic.net/2025/11/14/how-we-measure-ipv6/)
10. [Evaluating IPv6 Adoption in the Internet, Google Research](https://research.google/pubs/evaluating-ipv6-adoption-in-the-internet/)
11. [Revisiting and Expanding the IPv6 Network Periphery: Global-Scale Measurement and Security Analysis, arXiv](https://arxiv.org/abs/2604.19487)
12. [A New Model for Testing IPv6 Fragment Handling, arXiv](https://arxiv.org/abs/2309.03525)
13. [Temporal and Spatial Classification of Active IPv6 Addresses, arXiv](https://arxiv.org/abs/1506.08134)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Routing and addressing › IP protocol versions, variants, and options

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/ipv6

English original: https://www.edgepedia.org/ipv6
