> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/cloud-networking/cloud-networking-faq/when-should-i-consider-using-a-layer-3-network-over-a-layer-2-network.md).

# 何时应该考虑使用三层网络而不是二层网络？

选择使用三层还是二层软件定义网络（SDN）取决于您组织的具体需求和要求。然而，有几个原因可能会促使您考虑使用三层 SDN 网络而非二层 SDN 网络：

1. 支持高级路由协议：三层网络支持 OSPF 和 BGP 等高级路由协议，提供更大的灵活性和对网络路由的控制。这在服务提供商和大型企业网络中尤为重要，因为路由策略可能复杂且不断变化。
2. 改进的网络分段：三层网络提供更好的网络分段，通过隔离不同类型的流量来帮助提高安全性。这对于处理敏感数据或有严格网络分段合规要求的组织尤为重要。
3. 更大的网络流量控制：三层网络对网络流量提供更大的控制，使得实施流量工程和服务质量（QoS）策略更加容易。这有助于提高性能和减少延迟，对于在线游戏和云计算等延迟敏感的应用尤为重要。
4. 增强的可扩展性：三层网络具有良好的可扩展性，能够支持大量网络设备和终端接入。这使它们非常适合需要高可扩展性和灵活性的大型服务提供商和企业网络。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/cn/cloud-networking/cloud-networking-faq/when-should-i-consider-using-a-layer-3-network-over-a-layer-2-network.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
