# Istio

**Istio** 是一个开源服务网格，它作为基础设施层，让应用无需修改代码即可获得零信任安全、可观测性和高级流量管理能力。该项目由 Google、IBM 和 Lyft 于 2016 年共同创立，2017 年 5 月正式发布，现为[云原生计算基金会](https://www.edgepedia.org/zh/cloud-native-computing-foundation)（CNCF）的毕业项目，与 [Kubernetes](https://www.edgepedia.org/zh/kubernetes) 和 [Prometheus](https://www.edgepedia.org/zh/prometheus-software) 并列。<sup>[1](https://cloud.google.com/blog/products/open-source/submitting-istio-project-to-the-cncf)</sup><sup> • </sup><sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 2016 年由 Google、IBM 和 Lyft 的团队开始开发；v0.1 于 2017 年 5 月发布，具备由边车驱动的流量控制、可观测性和策略能力<sup>[1](https://cloud.google.com/blog/products/open-source/submitting-istio-project-to-the-cncf)</sup> |
| 治理 | 云原生计算基金会的毕业项目<sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup> |
| 数据平面（边车模式） | 扩展版 Envoy 代理（C++），以边车形式部署在每个工作负载旁，代理所有入站和出站流量<sup>[3](https://istio.io/latest/docs/ops/deployment/architecture/)</sup> |
| 控制平面 | Istiod，提供服务发现、将路由规则转换为 Envoy 配置，并充当 mTLS 的证书颁发机构<sup>[3](https://istio.io/latest/docs/ops/deployment/architecture/)</sup> |
| 环境模式 | 无边车的数据平面，使用每节点一个的 Rust 代理（ztunnel）实现 L4 安全，并可选用 Envoy 航点代理实现 L7 策略<sup>[4](https://istio.io/latest/docs/ambient/overview/)</sup> |
| 实测开销 | 在 2,000 RPS 下中位延迟增加约 15 毫秒，边车代理消耗 50–150 MB 内存<sup>[5](https://www.hokstadconsulting.com/blog/latency-benchmarks-istio-linkerd-consul)</sup> |
| 适用范围 | 运行在 Kubernetes 或虚拟机上的服务，跨多云、混合云或本地部署，均可加入同一网格<sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup> |

## 目的

服务网格将网络相关的关注点从应用代码中卸载到专门的基础设施层。每个服务不必自行实现重试逻辑、分布式追踪和双向 TLS，网格通过代理透明地处理这些事项。<sup>[6](https://hizidan.com/blog/service-mesh-comparison-istio-vs-linkerd-vs-consul)</sup> Istio 为云原生和分布式系统提供这一层能力，支持 mTLS 加密、策略管理、访问控制、金丝雀部署、A/B 测试、负载均衡、故障恢复和流量遥测。<sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup>

## 架构

Istio 服务网格在逻辑上分为数据平面和控制平面。<sup>[3](https://istio.io/latest/docs/ops/deployment/architecture/)</sup>

**边车模式。** 数据平面由 Envoy 代理组成，以边车形式部署在每个服务实例旁。Envoy 是一个用 C++ 编写的高性能代理，最初由 Lyft 创建并于 2016 年开源，是 Istio 中唯一接触数据平面流量的组件。<sup>[3](https://istio.io/latest/docs/ops/deployment/architecture/)</sup><sup> • </sup><sup>[7](https://www.usenix.org/sites/default/files/conference/protected-files/srecon19emea_slides_harabi.pdf)</sup> 边车提供动态服务发现、负载均衡、TLS 终止、HTTP/2 和 gRPC 代理、熔断、健康检查、基于百分比流量切分的分阶段发布、[故障注入](https://www.edgepedia.org/zh/fault-injection)以及丰富的指标。由于代理运行在应用旁边，Istio 的能力可以添加到现有部署中，无需重新架构或重写代码。<sup>[3](https://istio.io/latest/docs/ops/deployment/architecture/)</sup>

控制平面 Istiod 将高层路由规则转换为 Envoy 专用配置，并在运行时传播给边车。它将平台特定的服务发现（Kubernetes、虚拟机及其他环境）抽象为标准格式，同时充当证书颁发机构，签发证书以支持数据平面中安全的双向 TLS 通信。<sup>[3](https://istio.io/latest/docs/ops/deployment/architecture/)</sup>

**环境模式。** 环境模式于 2022 年作为一种无边车数据平面公布，取消了每 Pod 一个的代理。其基础是 ztunnel（[零信任](https://www.edgepedia.org/zh/zero-trust)隧道），一个用 Rust 编写的专用每节点代理，处理 L3 和 L4 功能：mTLS、认证、L4 授权和遥测，通过名为 HBONE 的基于 HTTP CONNECT 的隧道协议传输。Ztunnel 不终止也不解析工作负载的 HTTP 流量。在其之上，运维人员可以选择部署航点代理——即 Envoy 的部署实例——以获得 L7 流量管理、L7 授权和 VirtualService 路由。两层可以按命名空间逐步采用，边车模式和环境模式的工作负载可以在同一网格内互操作。<sup>[4](https://istio.io/latest/docs/ambient/overview/)</sup><sup> • </sup><sup>[8](https://istio.io/latest/blog/2022/ambient-security/)</sup>

## 安全

Istio 的安全模型建立在工作负载身份、双向 TLS 和策略控制之上。<sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup> 默认情况下，Istio 同时接受 mTLS 和非 mTLS 流量，这种行为称为宽容模式；运维人员可以通过要求 mTLS 的 `PeerAuthentication` 或 `AuthorizationPolicy` 规则选择严格模式。建立 mTLS 连接时，会验证对端证书并检查对端身份是否在同一信任域内。<sup>[9](https://istio.io/latest/docs/ops/deployment/security-model/)</sup>

两种数据平面模式对安全边界的划分不同。在边车模式中，代理与应用程序 Pod 运行在同一信任边界内，因此被攻陷的应用可以篡改代理，包括窃取私钥材料。在环境模式中，各组件运行在应用 Pod 之外，Istio 团队称这一变化改善了安全边界。<sup>[8](https://istio.io/latest/blog/2022/ambient-security/)</sup><sup> • </sup><sup>[9](https://istio.io/latest/docs/ops/deployment/security-model/)</sup>

## 性能与资源成本

网格的代价是每个被代理请求上的延迟和资源开销，而 Istio 的 Envoy 边车相对较重。在一组基准测试中，Istio 在每秒 2,000 个请求下增加了 15 毫秒的中位延迟，代理消耗 50–150 MB 内存，而 Linkerd 基于 Rust 的 linkerd2-proxy 仅增加 6 毫秒，使用 10–18 MB。<sup>[5](https://www.hokstadconsulting.com/blog/latency-benchmarks-istio-linkerd-consul)</sup> 一项 2025 年 IEEE 会议研究在 Kubernetes 上部署 Online Boutique 应用，在低、中、高负载下测得 Istio 的平均延迟为 135 毫秒，Linkerd 为 104 毫秒，Linkerd 还表现出更低的 CPU 和内存消耗以及高负载下更强的稳定性，而 Istio 则出现高消耗峰值和内部故障。该研究同时得出结论：在需要高级可观测性和控制功能时，Istio 仍然有用。<sup>[10](https://ieeexplore.ieee.org/abstract/document/11340184)</sup>

Linkerd 团队 2021 年的一项基准测试重复了 2019 年 Kinvolk 的研究，在 20、200 和 2,000 RPS 下每档运行六次、每次 10 分钟，发现 Linkerd 远快于 Istio，数据平面内存和 CPU 消耗低一个数量级，且在超过原研究三倍以上的吞吐量下结果依然成立。该测试框架报告的是与其环境相关的相对数值，而非绝对评分。<sup>[11](https://linkerd.io/2021/05/27/linkerd-vs-istio-benchmarks/)</sup> 学术工作在 mTLS 下比较 Istio、Istio Ambient、Linkerd 和 Cilium，同样发现延迟和内存方面存在显著性能差异，根源在于边车与无边车架构的不同。<sup>[12](https://arxiv.org/abs/2411.02267)</sup>

## 与其他网格的比较

Istio、Linkerd 和 [HashiCorp](https://www.edgepedia.org/zh/hashicorp) Consul Connect 是最常被比较的 Kubernetes 服务网格，它们针对不同目标进行优化。<sup>[5](https://www.hokstadconsulting.com/blog/latency-benchmarks-istio-linkerd-consul)</sup>

- **Istio** 使用 Envoy（C++）边车，具备完整的 L7 策略、mTLS 和流量管理；它是三者中功能最丰富的，但也是资源消耗最大的。<sup>[13](https://techprephq.com/question/devops/networking/compare-istio-linkerd-consul-connect-cilium-service-mesh-across-proxy)</sup>
- **Linkerd** 使用自有的 Rust 微代理，占用极小，通过 tproxy 保留源 IP，注重简洁性，以 L4 处理为主。<sup>[13](https://techprephq.com/question/devops/networking/compare-istio-linkerd-consul-connect-cilium-service-mesh-across-proxy)</sup>
- **Consul Connect** 与 HashiCorp Consul 的服务注册表集成，以边车或透明代理模式使用 Envoy，并与 Vault、Nomad 等 HashiCorp 工具集成，但在较重负载下延迟会退化；在 1,200 RPS 时其 P50 延迟达到 55.5 毫秒、P99 为 125.5 毫秒，而 Istio 为 18.5 毫秒和 45.5 毫秒。<sup>[5](https://www.hokstadconsulting.com/blog/latency-benchmarks-istio-linkerd-consul)</sup><sup> • </sup><sup>[13](https://techprephq.com/question/devops/networking/compare-istio-linkerd-consul-connect-cilium-service-mesh-across-proxy)</sup>
- **Cilium Service Mesh** 是 eBPF 原生的，L3/L4 无需边车，仅在 L7 使用 Envoy。<sup>[13](https://techprephq.com/question/devops/networking/compare-istio-linkerd-consul-connect-cilium-service-mesh-across-proxy)</sup>

常见的比较方式是在功能广度与灵活性（Istio）和简洁性与更低运维负担（Linkerd）之间权衡，Consul 则定位为混合基础设施集成。<sup>[14](https://kubernetes.ae/istio-vs-linkerd/)</sup><sup> • </sup><sup>[15](https://dasroot.net/posts/2025/12/service-mesh-comparison-istio-linkerd-consul-connect/)</sup> Istio 的环境模式用每节点 ztunnel 和可选航点取代每 Pod 边车，缩小了其历史上相对 Linkerd 小边车的开销差距。<sup>[14](https://kubernetes.ae/istio-vs-linkerd/)</sup>

## 流量管理与可观测性

所有数据平面流量都通过 Envoy 代理，因此运维人员可以在不修改服务的情况下引导和控制网格中的流量。VirtualService 配置请求如何在网格内路由到某个服务，建立在 Istio 提供的连接性和服务发现之上。<sup>[16](https://istio.io/latest/docs/concepts/traffic-management/)</sup> 在可观测性方面，Istio 在网格内生成遥测数据，并与包括 Grafana 和 Prometheus 在内的应用性能监控系统集成。<sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup>

## 采用考量

由于网格的选择影响集群中的每个服务，其延迟、资源消耗和运维负担会在各工作负载上成倍放大。<sup>[17](https://www.algoroq.io/compare-tech/istio-vs-linkerd/)</sup> Istio 可以独立安装，也可以通过提供基于 Istio 发行版的商业厂商获得托管支持，并且可以通过 [WebAssembly](https://www.edgepedia.org/zh/webassembly) 插件扩展自定义流量功能和第三方策略系统。<sup>[2](https://istio.io/docs/concepts/what-is-istio/)</sup>

## References

1. [Submitting Istio project to the CNCF, Google Cloud Blog](https://cloud.google.com/blog/products/open-source/submitting-istio-project-to-the-cncf)
2. [The Istio service mesh, istio.io](https://istio.io/docs/concepts/what-is-istio/)
3. [Istio / Architecture, istio.io](https://istio.io/latest/docs/ops/deployment/architecture/)
4. [Istio / Ambient Mode Overview, istio.io](https://istio.io/latest/docs/ambient/overview/)
5. [Latency Benchmarks: Istio, Linkerd, Consul, Hokstad Consulting](https://www.hokstadconsulting.com/blog/latency-benchmarks-istio-linkerd-consul)
6. [Service Mesh Comparison: Istio vs Linkerd vs Consul, HiZidan](https://hizidan.com/blog/service-mesh-comparison-istio-vs-linkerd-vs-consul)
7. [History of Istio, USENIX SREcon19 EMEA slides](https://www.usenix.org/sites/default/files/conference/protected-files/srecon19emea_slides_harabi.pdf)
8. [Ambient Mode Security Deep Dive, Istio blog (2022)](https://istio.io/latest/blog/2022/ambient-security/)
9. [Istio / Security Model, istio.io](https://istio.io/latest/docs/ops/deployment/security-model/)
10. [Comparative Evaluation of Linkerd and Istio Service Meshes in a Microservices Architecture Application, IEEE C3 2025](https://ieeexplore.ieee.org/abstract/document/11340184)
11. [Benchmarking Linkerd and Istio, Linkerd blog (2021)](https://linkerd.io/2021/05/27/linkerd-vs-istio-benchmarks/)
12. [Technical Report: Performance Comparison of Service Mesh Frameworks: the MTLS Test Case, arXiv:2411.02267](https://arxiv.org/abs/2411.02267)
13. [Compare Istio, Linkerd, Consul Connect, and Cilium Service Mesh, TechPrep](https://techprephq.com/question/devops/networking/compare-istio-linkerd-consul-connect-cilium-service-mesh-across-proxy)
14. [Istio vs Linkerd (2026): Which Service Mesh to Pick, NomadX](https://kubernetes.ae/istio-vs-linkerd/)
15. [Service Mesh Comparison: Istio vs Linkerd vs Consul Connect, Dasroot](https://dasroot.net/posts/2025/12/service-mesh-comparison-istio-linkerd-consul-connect/)
16. [Istio / Traffic Management, istio.io](https://istio.io/latest/docs/concepts/traffic-management/)
17. [Istio vs Linkerd: Kubernetes Service Mesh Comparison, Algoroq](https://www.algoroq.io/compare-tech/istio-vs-linkerd/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Cloud, virtualization, and containers

Copyright 2026 Edgepedia

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

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

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