PART-06 (VXLAN L3 Packet Forwading)
PART-06 (VXLAN L3 Packet Forwading)
Layer 3 VXLAN traffic forwarding refers to the process of routing traffic between different VXLAN
segments or subnets within a VXLAN-enabled network. Since VXLAN is an overlay protocol designed to
extend Layer 2 segments over a Layer 3 network, Layer 3 VXLAN forwarding is essential when
communication needs to happen between devices in different VXLAN segments.
In a VXLAN environment, traffic forwarding within the same VXLAN segment (same VNI) is straightforward
and functions like traditional Layer 2 switching. However, when traffic needs to travel between different
VXLAN segments (different VNIs), Layer 3 VXLAN forwarding is required, and it involves routing functions.
• Distributed L3 Gateway: Each VTEP can handle routing locally, allowing devices in different
VNIs to communicate without going through a centralized router. This reduces latency and
improves scalability in large networks.
• Centralized L3 Gateway: A single device (or a small cluster of devices) performs all routing
between VNIs, creating a central point for Layer 3 VXLAN traffic. This method is simpler to
configure but may introduce bottlenecks in large deployments.
Distributed L3 Gateway has two deployment model:
• Asymmetric IRB: In this model, routing is performed only at the ingress VTEP (VXLAN Tunnel
Endpoint). The packet is routed to the destination subnet and then bridged within that
subnet to reach the destination host. The return traffic follows a different path, often
leading to asymmetric routing.
• Symmetric IRB: Symmetric IRB, on the other hand, performs routing at both the ingress and
egress VTEPs. This ensures that both forward and return paths are symmetrical, providing
consistent routing and simplifying traffic flows
Let consider Host A of one subnet want to communicate with the Host B of another subnet
where the L3 VXLAN performed based on the Asymmetric IRB.
Please note that the response of the Host B follows the same procedure and send the traffic using the
another path.
Note: Cisco device does not support Asymmetric IRB.
Let consider Host A of one subnet want to communicate with the Host B of another subnet where the L3
VXLAN performed based on the symmetric IRB.
Important Note:
In a centralized gateway setup, a single VTEP or a small cluster of VTEPs handles routing for all subnets.
This makes traffic flow paths easier to understand; however, it has disadvantages for scalability. All traffic
is routed centrally through the gateway, which increases traffic overhead on that particular VTEP and can
lead to higher latency. Additionally, if this central VTEP fails, the entire infrastructure is impacted until a
new VTEP is configured as the gateway.
On the other hand, with a distributed gateway setup, each VTEP performs its own routing, which reduces
processing overhead and latency while ensuring redundancy. Although the configuration is more complex,
distributed routing is better suited for scalable infrastructures. If any VTEP fails, only the connected hosts
are affected.
Therefore, we can say, for scalable, high-performance, and low-latency networks, distributed routing is
the preferred choice, especially in large data centers or cloud environments.