# When should I consider using a Layer-3 network over a Layer-2 network?

Whether to use a Layer-3 or Layer-2 Software-Defined Networking (SDN) network depends on the specific needs and requirements of your organization. However, there are several reasons why you may want to consider using a Layer-3 SDN network over a Layer-2 SDN network:

1. Support for advanced routing protocols: Layer-3 networks support advanced routing protocols such as OSPF and BGP, providing greater flexibility and control over network routing. This is particularly important for service provider and large-scale enterprise networks, where routing policies can be complex and constantly changing.
2. Improved network segmentation: Layer-3 networks offer better network segmentation, helping to improve security by isolating different types of traffic. This is especially relevant for organizations that handle sensitive data or have compliance requirements around strict network segmentation.
3. Greater control over network traffic: Layer-3 networks provide greater control over network traffic, making it easier to implement traffic engineering and Quality of Service (QoS) policies. This helps improve performance and reduce latency, which matters for latency-sensitive applications such as online gaming and cloud computing.
4. Enhanced scalability: Layer-3 networks scale well and can support a large number of network devices and endpoints. This makes them a good fit for large-scale service provider and enterprise networks that require high scalability and flexibility.


---

# Agent Instructions: 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/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.
