Most of this series has been about the control plane.
Part 2 covered what each route type advertises. Part 3 covered multihoming, the anycast gateway and ARP suppression. The IRB deep dive compared the two ways to route between subnets.
All of that only exists to program tables. Packets are forwarded from those tables.
This article follows the packets. At every hop it asks two questions:
Which table answers this lookup?
Which header field changes here?
If you can answer both for any packet at any point in the fabric, you can read a capture, predict where a packet goes, and find where it was dropped.
We will follow five packets:
- An ARP request, the first thing a host sends
- A bridged packet between two hosts in the same subnet
- A routed packet between two subnets
- A packet to a host attached to two leaves
- A packet leaving the fabric
The Reference Fabric
Every packet in this article crosses the same fabric. It extends the one from the IRB deep dive with two more leaves and a border leaf.
Figure 1: The reference fabric. Spines route the underlay only; every leaf and the border leaf is a VTEP.
The addressing:
VRF TENANT-A L3VNI 50001 (symmetric IRB)
VLAN 10 L2VNI 10010 198.51.100.0/24 gateway 198.51.100.1
VLAN 20 L2VNI 10020 203.0.113.0/24 gateway 203.0.113.1
Anycast gateway MAC 02:00:00:00:00:01
Leaf1 VTEP 192.0.2.11 RMAC 02:00:00:11:11:11 VLAN 10
Leaf2 VTEP 192.0.2.12 RMAC 02:00:00:22:22:22 VLAN 10, 20
Leaf3 VTEP 192.0.2.13 VLAN 10
Leaf4 VTEP 192.0.2.14 VLAN 10
Border1 VTEP 192.0.2.21 RMAC 02:00:00:21:21:21 VRF only
Host A 198.51.100.10 02:aa:aa:aa:aa:aa VLAN 10 Leaf1
Host C 198.51.100.30 02:cc:cc:cc:cc:cc VLAN 10 Leaf2
Host B 203.0.113.20 02:bb:bb:bb:bb:bb VLAN 20 Leaf2
Host D 198.51.100.40 02:dd:dd:dd:dd:dd VLAN 10 Leaf3 + Leaf4 (ESI-1, all-active)
ESI-1 stands for the segment’s 10-byte identifier, for example 00:11:22:33:44:55:66:77:88:99.
The VTEP addresses are loopbacks advertised into the underlay. The spines are plain IP routers: they may also be BGP route reflectors, but they never encapsulate or decapsulate anything.
The Tables a VTEP Forwards From
Before following any packet, it helps to know where the answers come from.
A leaf in an EVPN-VXLAN fabric forwards from a small set of tables. EVPN routes program most of them:
| Table | Key | Answer | Programmed by |
|---|---|---|---|
| VLAN → VNI map | local VLAN | L2VNI | configuration |
| MAC table (per bridge domain) | MAC | local port, or remote VTEP + VNI, or ESI | local learning, Type 2 |
| ESI next-hop set | ESI | list of VTEPs attached to the segment | Type 1 |
| ARP/ND suppression cache | IP | MAC | local snooping, Type 2 (MAC/IP) |
| Flood list (per L2VNI) | VNI | VTEPs that want BUM traffic | Type 3 |
| VRF routing table | IP prefix | local, or remote VTEP + L3VNI + RMAC | connected, Type 2 host routes, Type 5 |
| Underlay routing table | VTEP IP | spine next hops (ECMP) | underlay IGP or BGP |
Two things stand out.
First, almost every overlay answer ends in a VTEP address. The overlay never knows how to reach that address. The underlay table does. An EVPN route is only usable if its next hop, the remote VTEP, resolves in the underlay. If it does not, the leaf still receives the route but does not select or install it.
Second, the spines appear in exactly one row: the last one. That is the whole point of the design.
Anatomy of a VXLAN Packet
The ingress leaf builds one packet format for everything it sends across the fabric. Learn it once and every walk below becomes predictable.
Figure 2: The VXLAN packet, its overhead, and which device reads which header.
Field by field, from the outside in:
Outer Ethernet (14 bytes). Destination is the next hop in the underlay, source is the sending interface. Like any routed packet, it is rewritten at every hop. It never contains a host MAC.
Outer IP (20 bytes for IPv4). Source is the ingress VTEP, destination is the egress VTEP. This is the only address the spines route on. The ingress VTEP sets the outer TTL, and each spine decrements it.
RFC 7348 says nothing about how the outer TTL or DSCP are chosen. Both are platform behavior. QoS deserves a check: the spines can only classify on the outer DSCP, and defaults differ. NX-OS and Junos on QFX5000-series switches copy the inner DSCP to the outer header by default. Arista and current Cumulus Linux do not copy it for bridged traffic unless configured to (see Vendor Notes).
UDP (8 bytes). Destination port 4789, the IANA port for VXLAN. The source port is not a real port at all: RFC 7348 recommends deriving it from a hash of the inner packet’s headers. Its job is entropy, which we come back to at the spine. RFC 7348 says the UDP checksum SHOULD be sent as zero, and receivers must accept a zero checksum. (With an IPv6 underlay, zero checksums are only allowed under the rules of RFC 6935 and RFC 6936.)
VXLAN (8 bytes). One flags byte with the I bit set (0x08), meaning the VNI is valid, and a 24-bit VNI. The rest is reserved. The VNI is the only field that tells the egress leaf which bridge domain or VRF the packet belongs to.
Inner frame. The original Ethernet frame, normally without its 802.1Q tag. The VLAN ID is a local matter of each leaf; across the fabric the VNI replaces it.
The 50 Bytes That Break Things
The encapsulation makes every frame 50 bytes longer: outer Ethernet, outer IPv4, UDP and VXLAN (54 with an outer 802.1Q tag, 70 with an IPv6 underlay).
For the underlay IP MTU, count it differently. The outer Ethernet header is not part of the IP packet, but the inner Ethernet header is:
Inner IP packet 1500
+ inner Ethernet 14
+ VXLAN 8
+ UDP 8
+ outer IPv4 20
= outer IP packet 1550 (IPv6 underlay: 1570)
A VTEP must not fragment VXLAN packets (RFC 7348 section 4.3). The RFC lets transit routers fragment them, but the destination VTEP may discard the fragments, and data center switches generally do not fragment in hardware. In practice, a 1550-byte packet that meets a 1500-byte underlay link is dropped.
That is why most fabrics run jumbo frames on every underlay link and keep the host MTU well below them. The usual symptom of getting it wrong is covered at the end: ping works, the application does not.
Who Reads What
| Device | Reads | Writes |
|---|---|---|
| Ingress leaf | inner frame, local tables | everything outside the inner frame |
| Spine | outer Ethernet, outer IP, UDP ports (for the hash) | outer Ethernet, outer TTL |
| Egress leaf | outer IP (is it mine?), UDP port, VNI, inner frame | the frame sent to the host |
The spine is a router forwarding a UDP packet between two loopbacks. It has no idea that a VLAN, a tenant or a host exists.
Packet 1 — First Contact: ARP
Host A wants to talk to Host C, 198.51.100.30, in its own subnet.
It does not know Host C’s MAC address, so the first packet is an ARP request: a broadcast.
Step 1 — Can the Leaf Answer Itself?
Leaf1 receives the broadcast on VLAN 10 and checks its ARP suppression cache.
If Leaf2 has already learned both Host C’s MAC and IP (from its ARP or DHCP traffic), it advertised a Type 2 route with both. Leaf1 has the binding:
198.51.100.30 → 02:cc:cc:cc:cc:cc (from Type 2, VTEP 192.0.2.12)
Leaf1 answers the ARP request itself, with Host C’s MAC, and the broadcast never enters the fabric. RFC 9161 calls this the Proxy ARP/ND function; Part 3 covers it and its limits in detail.
Step 2 — Flood When It Cannot
If there is no binding, for example because Host C has not sent anything yet, the ARP request is BUM traffic. It has to be flooded. RFC 9161 explicitly does not recommend suppressing unknown ARP requests in data centers: a silent host would never be found.
Leaf1 maps VLAN 10 to VNI 10010 and looks up the flood list for that VNI.
The flood list is built from Type 3 (Inclusive Multicast Ethernet Tag) routes. Every VTEP that has VNI 10010 advertises one, with a PMSI Tunnel attribute that says how it wants to receive BUM traffic. In most data center fabrics that is ingress replication: send me a unicast copy.
Flood list VNI 10010
192.0.2.12 (Leaf2)
192.0.2.13 (Leaf3)
192.0.2.14 (Leaf4)
Border1 is not in the list. It has no VLAN 10, so it never advertised a Type 3 route for VNI 10010.
Step 3 — One Frame In, Three Packets Out
Leaf1 replicates the frame and sends three separate unicast VXLAN packets, one per remote VTEP:
Copy 1 192.0.2.11 → 192.0.2.12 VNI 10010
Copy 2 192.0.2.11 → 192.0.2.13 VNI 10010
Copy 3 192.0.2.11 → 192.0.2.14 VNI 10010
Inner 02:aa:aa:aa:aa:aa → ff:ff:ff:ff:ff:ff ARP who-has 198.51.100.30
The underlay sees three ordinary unicast packets. No multicast routing is involved.
Figure 3: A broadcast becomes one unicast copy per VTEP in the VNI’s flood list. Only the designated forwarder sends it into the multihomed segment.
Step 4 — What Each Receiver Does
- Leaf2 decapsulates, maps VNI 10010 to its VLAN 10 and floods the frame to its local VLAN 10 ports. Host C sees the request. Host B, in VLAN 20, does not.
- Leaf3 and Leaf4 both receive a copy, and both are attached to Host D. Only the designated forwarder (DF) for ESI-1, elected from the Type 4 (Ethernet Segment) routes that Leaf3 and Leaf4 exchange, sends BUM traffic into the segment; assume that is Leaf3. Leaf4 drops its copy toward ESI-1. Without that rule, Host D would see every broadcast twice.
Host C replies with a unicast ARP reply to 02:aa:aa:aa:aa:aa. Leaf2 learns Host C locally, if it had not already, and advertises a Type 2 route. From now on every leaf with VNI 10010 can answer ARP for Host C itself.
The Cost of Ingress Replication
Every broadcast, unknown unicast and multicast frame costs the ingress leaf one copy per remote VTEP in the VNI.
That is fine for ARP in a well-suppressed fabric. It becomes a design question when a VNI spans many leaves and carries real multicast or chatty broadcast traffic. The alternative, underlay multicast for BUM, moves the replication into the network at the cost of running multicast in the underlay.
This is also why the flood list matters: a VNI configured on a leaf that does not need it puts that leaf on every flood list for that VNI.
Packet 2 — Known Unicast, Same Subnet
Host A now knows Host C’s MAC. It sends an ICMP echo request.
This is the simplest packet in the fabric, and the one to know by heart.
Step 1 — Host A Sends a Frame
Dst MAC 02:cc:cc:cc:cc:cc (Host C)
Src MAC 02:aa:aa:aa:aa:aa (Host A)
VLAN 10 (access port or trunk)
Dst IP 198.51.100.30
Step 2 — Leaf1: Two Lookups
VLAN to VNI:
VLAN 10 → bridge domain for L2VNI 10010
MAC lookup in that bridge domain:
02:cc:cc:cc:cc:cc → remote, VTEP 192.0.2.12, VNI 10010
This entry came from Leaf2’s Type 2 route. The VNI the route carries is the VNI to put on the wire.
The destination MAC is not the gateway MAC, so there is no routing. The inner frame is not changed.
Step 3 — Leaf1: Encapsulate and Pick a Path
Outer IP 192.0.2.11 → 192.0.2.12
UDP src 53412 (hash of inner headers) → dst 4789
VXLAN I flag, VNI 10010
Inner 02:aa:aa:aa:aa:aa → 02:cc:cc:cc:cc:cc, untouched
The source port, 53412 here, is only an example. What matters is that the value depends on the inner headers. Which fields are hashed is platform-specific: with an inner L3/L4 hash, different flows between the same two hosts usually get different source ports; with an L2-only hash, only different host pairs do.
Now Leaf1 needs to send a packet to 192.0.2.12. That is an underlay lookup:
192.0.2.12/32 → via Spine1, via Spine2 (ECMP)
Leaf1 hashes the outer headers, including the UDP source port, and picks one uplink. Say Spine1. It writes Spine1’s interface MAC as the outer destination MAC and sends the packet.
Step 4 — Spine1: Just a Router
Spine1 sees an IPv4 packet to 192.0.2.12. It performs one route lookup, decrements the outer TTL, rewrites the outer MACs, and forwards it toward Leaf2.
If Spine1 had several links to Leaf2, it would hash again over the same outer fields.
This is where the UDP source port earns its place. Between two VTEPs, the outer IP addresses are always the same pair. Without a varying source port, every flow between Leaf1 and Leaf2 would hash to the same spine and the same link. Because the source port is derived from the inner headers, different flows spread across all equal-cost paths, while each individual flow stays on one path and is not reordered.
Spine1 does not look past the UDP header. (Some platforms can hash on inner headers too; this is a platform feature, not something VXLAN forwarding needs.)
Step 5 — Leaf2: Decapsulate and Bridge
Leaf2 checks, in order:
Outer dst IP 192.0.2.12 → my VTEP address
UDP dst port 4789 → VXLAN
VNI 10010 → bridge domain of VLAN 10
It strips the outer headers, looks up the inner destination MAC in that bridge domain, and finds a local port:
02:cc:cc:cc:cc:cc → local, access port to Host C, VLAN 10
It sends the original frame to Host C, tagged or untagged as the port requires.
What Changed, Hop by Hop
| Field | Host A → Leaf1 | Leaf1 → Spine1 | Spine1 → Leaf2 | Leaf2 → Host C |
|---|---|---|---|---|
| Outer dst MAC | — | Spine1 | Leaf2 | — |
| Outer IP | — | .11 → .12 | .11 → .12 | — |
| Outer TTL | — | set by Leaf1 | −1 | — |
| UDP src port | — | hash | unchanged | — |
| VNI | — | 10010 | 10010 | — |
| Inner MACs | A → C | A → C | A → C | A → C |
| Inner TTL | unchanged | unchanged | unchanged | unchanged |
Nothing inside the tunnel changes. A bridged packet across an EVPN fabric is, from the hosts’ point of view, exactly a bridged packet across a switch.
Two Details Worth Knowing
VLAN IDs are local, VNIs are global. Leaf2 could map VNI 10010 to VLAN 110 and nothing would break: the VNI is the fabric-wide identity of the segment. (RFC 8365 treats VNIs as globally significant in a typical data center; locally significant VNIs exist mainly for interconnecting data centers.) Keeping VLAN IDs aligned is good operational hygiene, not a forwarding requirement.
Remote MACs come from BGP, not from traffic. In flood-and-learn VXLAN, Leaf2 would learn 02:aa:aa:aa:aa:aa → 192.0.2.11 from this packet. In an EVPN fabric, remote MACs come from Type 2 routes: RFC 8365 uses control-plane learning instead of data-plane learning between VTEPs. Platforms follow suit; Cumulus Linux, for example, disables data-plane MAC learning on VXLAN interfaces by default when EVPN is used. Local hosts are still learned from traffic on the access ports. A MAC that is missing from BGP is unknown to every remote leaf, however much traffic it sends. At best, traffic to it is flooded as unknown unicast; where unknown-unicast flooding is disabled, it is dropped.
Packet 3 — Routed Between Subnets
Host A sends to Host B, 203.0.113.20, in VLAN 20.
The IRB deep dive walks this case for both IRB models. Here is the same packet in our symmetric fabric, reduced to its lookup chain.
Leaf1:
1. MAC lookup dst 02:00:00:00:00:01 = anycast gateway → route
2. VRF lookup TENANT-A: 203.0.113.20/32 → VTEP 192.0.2.12, VNI 50001,
RMAC 02:00:00:22:22:22 (from Type 2, Label2 + Router's MAC)
3. Rewrite inner MAC 02:00:00:11:11:11 → 02:00:00:22:22:22, inner TTL −1
4. Underlay 192.0.2.12 → ECMP over Spine1 / Spine2
Spine: identical to Packet 2. The underlay cannot tell a routed packet from a bridged one.
Leaf2:
1. Decap VNI 50001 → VRF TENANT-A
2. MAC check inner dst = my RMAC → route
3. VRF lookup 203.0.113.20 → local, VLAN 20, 02:bb:bb:bb:bb:bb (ARP table)
4. Rewrite src 02:00:00:00:00:01 → dst 02:bb:bb:bb:bb:bb, inner TTL −1
Compared with Packet 2, three things differ, and all of them are inside the tunnel:
VNI the VRF's L3VNI, not a subnet's L2VNI
Inner MACs router MAC to router MAC, not host to host
Inner TTL decremented at each leaf
That is also the fastest way to tell bridged from routed traffic in a capture.
Packet 4 — A Multihomed Destination
Host A sends to Host D, 198.51.100.40. Same subnet, but Host D is attached to both Leaf3 and Leaf4 through an all-active LAG: Ethernet segment ESI-1.
What Leaf1 Knows
Host D’s LAG hashed its first frames to Leaf3. So only Leaf3 learned Host D’s MAC and advertised a Type 2 route.
That Type 2 route carries ESI-1. Separately, both Leaf3 and Leaf4 advertised Type 1 (Ethernet A-D) routes for ESI-1: one per segment (per-ES) and one per EVI (per-EVI). RFC 7432 needs both before a remote leaf may use a VTEP for aliasing.
Leaf1 combines them:
MAC 02:dd:dd:dd:dd:dd → ESI-1
ESI-1 → 192.0.2.13, 192.0.2.14
The MAC points at the segment, not at a leaf. The segment points at every VTEP attached to it. This is aliasing (RFC 7432 section 8.4): Leaf1 can send to Leaf4 even though Leaf4 never advertised Host D.
Many platforms later synchronise the entry between the two leaves, so Leaf4 advertises Host D too. Aliasing covers the gap before that, and platforms that do not sync at all.
Two Levels of Load Balancing
For each flow, Leaf1 makes two hash decisions:
Overlay which VTEP? 192.0.2.13 or 192.0.2.14 (ESI next-hop set)
Underlay which uplink? Spine1 or Spine2 (ECMP to that VTEP)
Different flows from Host A to Host D can land on different leaves and spines, depending on which fields the platform hashes. Each flow stays on one path.
Figure 4: Aliasing turns one MAC route into a load-balanced path to every leaf on the segment; mass withdrawal removes a leaf from all of them at once.
When a Link Fails
Host D’s link to Leaf3 goes down.
Leaf3 withdraws its per-ES Type 1 route for ESI-1. Leaf1 removes 192.0.2.13 from ESI-1’s next-hop set, and every MAC behind the segment moves to Leaf4 in one step. RFC 7432 describes this in section 8.2, “Fast Convergence”; it is usually called mass withdrawal.
The alternative would be to wait for Leaf3 to withdraw a Type 2 route for every MAC behind the segment, one by one. With thousands of MACs behind a pair of leaves, that difference is the difference between a blip and an outage.
BUM Traffic and the Segment
We saw the DF rule in Packet 1: only the DF sends flooded traffic into a multihomed segment.
The reverse direction needs a second rule. Suppose Host D sends a broadcast and its LAG hashes it to Leaf4. Leaf4 floods it to its flood list, which includes Leaf3. Leaf3 is the DF for ESI-1. Without a further rule, Leaf3 would send Host D’s own broadcast back to Host D.
MPLS-based EVPN prevents this with an ESI label. VXLAN has no room for one, so RFC 8365 specifies local bias instead:
Ingress leaf (Leaf4) floods to its local ports, including other local
segments, whether it is DF or not
Egress leaves (Leaf3) never forward a flooded frame into a segment they
share with the VTEP it came from (192.0.2.14)
Leaf3 knows from the Type 4 and Type 1 routes for ESI-1 that 192.0.2.14 is attached to the same segment. It recognises the source VTEP in the outer IP header and keeps the frame out of ESI-1. The outer source IP is doing real forwarding work here.
Packet 5 — Leaving the Fabric
Host A sends to an address outside the fabric, somewhere behind the external router.
The Route
Border1 learns a default route from the external router and advertises it into the fabric as a Type 5 IP Prefix route:
Type 5
Prefix 0.0.0.0/0
Label 50001 (L3VNI)
Next hop 192.0.2.21 (Border1)
Router's MAC 02:00:00:21:21:21
In the interface-less model of RFC 9136, Leaf1 installs it in VRF TENANT-A exactly like a symmetric host route: next hop VTEP, L3VNI and router MAC.
The Walk
Leaf1: the destination MAC is the gateway, so it routes. The VRF lookup finds no host route and no subnet for the destination, and the longest match is the default:
0.0.0.0/0 → VTEP 192.0.2.21, VNI 50001, RMAC 02:00:00:21:21:21
It encapsulates exactly as in Packet 3, with Border1 as the destination.
Spines: forward to 192.0.2.21. Nothing new.
Border1: decapsulates, maps VNI 50001 to VRF TENANT-A, sees its own router MAC, and routes. The VRF lookup points to the external router, reached through a normal routed interface or subinterface. The packet leaves the fabric as a plain IP packet, no VXLAN.
The Return Path
The external router sends the reply to Border1.
Border1 looks up 198.51.100.10 in VRF TENANT-A and finds the host route built from Host A’s Type 2 route (or the subnet route, if the leaves that carry VLAN 10 advertise their subnets as Type 5):
198.51.100.10/32 → VTEP 192.0.2.11, VNI 50001, RMAC 02:00:00:11:11:11
Border1 encapsulates the reply in VNI 50001, and Leaf1 routes it into VLAN 10.
A border leaf is just another VTEP whose routes happen to point outside. Everything that applies to routed traffic inside the fabric applies to it, including the need for a consistent L3VNI and for importing the IP-VRF route target.
Reading a Capture
All of this can be checked on the wire. Capture on a software VTEP (the Linux kernel VXLAN driver in a lab, for example) or on a SPAN/ERSPAN copy of an underlay link:
tcpdump -nn -e -i eth1 udp port 4789
On Linux, create the VXLAN interface with dstport 4789. Without it, the kernel uses the pre-standard port 8472, which needs udp port 8472 and -T vxlan for tcpdump to decode it.
On a hardware switch, tcpdump on a front-panel port only shows traffic punted to the CPU, not forwarded packets, so use port mirroring.
Wireshark decodes UDP port 4789 as VXLAN by default and shows the inner frame as a second Ethernet layer.
Packet 2 as it crosses the Leaf1–Spine1 link, as tcpdump prints it (the outer headers and the inner frame on two lines, each wrapped here):
<Leaf1 uplink MAC> > <Spine1 MAC>, ethertype IPv4 (0x0800), length 148:
192.0.2.11.53412 > 192.0.2.12.4789: VXLAN, flags [I] (0x08), vni 10010
02:aa:aa:aa:aa:aa > 02:cc:cc:cc:cc:cc, ethertype IPv4 (0x0800), length 98:
198.51.100.10 > 198.51.100.30: ICMP echo request, id 1, seq 1, length 64
The 50-byte difference between the two lengths is the encapsulation.
What to read, in order:
1. Outer IPs Is the packet going to the VTEP you expect?
2. VNI L2VNI (bridged) or L3VNI (routed)? The right one?
3. Inner dst MAC A host (bridged) or a router MAC (routed)?
4. Inner IPs/TTL The flow you are looking for? Routed once or twice?
5. UDP src port Different flows should show different values.
If flows between many different host pairs behind two leaves all show the same UDP source port, the ingress leaf is not providing entropy, and the fabric is not load-balancing the way you think it is.
Where Packets Die
Every lookup in the walks above is a place a packet can be dropped. Turning a symptom into the failed lookup is most of the troubleshooting work. This table complements the step-by-step method in Part 5.
| Symptom | Lookup that failed | Check |
|---|---|---|
| Ping works, large transfers or TLS sessions hang | Underlay MTU (VTEPs do not fragment) | Ping VTEP to VTEP, loopback to loopback, with DF set and the full encapsulated size (on Linux, ping -M do -s 1522 sends a 1550-byte IP packet) |
| Type 2 route received but not installed, traffic blackholed | Remote VTEP does not resolve in the underlay | Route to the remote VTEP /32 on the ingress leaf |
| ARP fails for some hosts, works when suppression has the entry | Flood list: missing Type 3 for that VNI | Type 3 routes per VNI on the ingress leaf |
| Same subnet works between some leaves only | VLAN → VNI mapping differs | VNI on the wire vs. VNI configured on the egress leaf |
| Bridged traffic fine, routed traffic fails | L3VNI, router MAC or IP-VRF route target | VRF route for the destination: present, right VNI, right RMAC? |
| Some flows between two hosts fail, others work | One ECMP member is broken; flows hash by UDP source port | Interface errors and drops on every spine-leaf link; test with several TCP/UDP flows and compare their outer UDP source ports |
| Duplicate broadcasts on a multihomed host | DF election disagrees (missing Type 4 route or ESI mismatch), or local bias not applied | Type 4 routes, ESI and DF state on both leaves |
| Traffic to a multihomed host drops after a link failure | Per-ES Type 1 not withdrawn, or ESI mismatch | Type 1 routes and ESI configuration on both leaves |
The flow-dependent row deserves emphasis. A bad link or line card on one spine will drop only the flows that hash onto it. A ping succeeds, a TCP connection between the same two hosts on a different source port fails, and a file transfer stalls. It looks random. It is the UDP source port doing exactly what it was designed to do.
Vendor Notes
The walks follow the standards, and Cisco NX-OS, Arista EOS, Juniper Junos and NVIDIA Cumulus Linux all implement them. The packet format, Type 2 handling, bridged forwarding and Type 5 routing are the same everywhere. Type 3 handling depends on the BUM replication mode (see below).
Defaults and multihoming designs differ, and some of them change what a walk looks like. The notes below follow each vendor’s current documentation (NX-OS 10.6, EOS 4.35–4.36, Cumulus Linux 5.19, current Junos). Check them against the release you run.
Multihoming: ESI or MLAG
Packet 4 assumes EVPN all-active multihoming with an ESI. Many fabrics pair leaves with an MLAG-style design instead:
| Platform | MLAG-style pair | EVPN ESI all-active |
|---|---|---|
| Cisco NX-OS | vPC: the pair shares a virtual VTEP IP | Documented in the 10.6(x) guide for selected Nexus 9000 platforms: all-active only, up to four switches, Layer 2 port-channels only. A switch is either a vPC VTEP or an ESI VTEP, not both |
| Arista EOS | MLAG with a shared VTEP IP | Supported, up to 16 switches per segment. For all-active multihoming with IRB, EOS 4.36 notes that fast mass withdrawal is not supported and at most two destinations are installed per MAC |
| Juniper Junos | Not used for EVPN-VXLAN in this comparison | ESI-LAG is the standard EVPN design. A newer anycast VTEP option keeps ESI-LAG (Type 1 routes, DF election) but advertises the segment behind one shared VTEP address |
| NVIDIA Cumulus | MLAG with an anycast VTEP IP | EVPN multihoming, described by NVIDIA as the standards-based replacement for MLAG |
With an MLAG or vPC pair (NX-OS vPC, Arista MLAG, Cumulus MLAG), Packet 4 looks different. The pair advertises Host D behind one shared VTEP address, so Leaf1 sees a single next hop. There is no aliasing, no Type 1 or Type 4 route and no DF election. Load balancing across the pair happens only in the underlay, through ECMP toward the shared address, and a failure is handled inside the pair rather than by a route withdrawal.
Type 5 prefixes, which may be learned by only one switch of the pair, need per-switch addresses. NX-OS advertise-pip (together with advertise virtual-rmac), the Cumulus option to advertise the primary IP address and Arista’s secondary per-switch VTEP address provide them. Host routes (Type 2) still use the shared address.
Where ESI multihoming is used, Arista and Junos document local bias explicitly: the filter uses the source VTEP address, and the ingress switch forwards to its local segments regardless of DF. NX-OS documents the same behavior (“the ESI ports are pruned”) without using the term. Cumulus documents split-horizon filtering for EVPN multihoming without describing the mechanism.
IRB Model
Packet 3 assumes symmetric IRB. NX-OS routes symmetrically. Arista and Cumulus support both models. Junos uses asymmetric IRB for Type 2 routes by default; symmetric needs irb-symmetric-routing. On a default Junos fabric, Packet 3 looks like the asymmetric walk in the IRB deep dive.
ARP Suppression
Junos and Cumulus enable it by default; Cumulus EVPN multihoming requires it. On NX-OS it is configured, fabric-wide with global suppress-arp or per VNI with suppress-arp. It requires the distributed anycast gateway on the VTEP and must be set consistently across the fabric. On Arista, check the default for your release. Where suppression is off, Packet 1 always floods.
BUM Replication
All four support ingress replication from Type 3 routes, as in Packet 1. Underlay multicast is the main alternative:
- NX-OS supports both. Cisco’s NDFC white paper lists Multicast as the default replication mode of the NDFC VXLAN EVPN fabric template; check which mode your fabric uses.
- Arista uses head-end replication from Type 3 routes and can also use a multicast flood group.
- Cumulus uses head-end replication by default and also supports PIM-SM in the underlay, including with EVPN multihoming; NVIDIA recommends PIM-SM with EVPN multihoming on Spectrum A1. With EVPN multihoming, a fabric uses one mode or the other, not both.
- Junos documents ingress replication for EVPN-VXLAN (
multicast-mode ingress-replication).
With underlay multicast, Step 3 of Packet 1 is one packet to the VNI’s multicast group, and the spines do the replication.
DF Election
The rule in Packet 1 holds everywhere: only the DF sends flooded traffic into a segment. How the DF is chosen differs:
- NX-OS: per-flow by default; modulo when configured, or automatically if any VTEP on the segment does not use per-flow.
- Junos: modulo by default, with preference-based election as an option.
- Cumulus: preference-based (highest wins).
- Arista: preference-based election is available.
With per-flow DF, the DF is chosen per flow rather than per segment and VLAN.
Outer DSCP
The defaults split two ways:
- Copies the inner DSCP to the outer header by default: NX-OS and Junos on QFX5000-series switches.
- Does not copy by default: Arista does not rewrite bridged packets; the outer DSCP comes from the traffic class, and
vxlan qos dscp propagation encapsulationenables copying on the platforms that support it. Cumulus derives the outer DSCP from the switch priority unless set to copy.
If the spines classify on DSCP, verify this on every leaf model.
Capturing Fabric Traffic
On-box capture tools see only traffic to and from the CPU, unless data plane traffic is mirrored to the CPU. The vendors document it like this:
- Junos:
monitor trafficshows only Routing Engine traffic. - Cumulus: NVIDIA notes that tcpdump does not monitor data plane traffic.
- NX-OS: Ethanalyzer can see data plane traffic through SPAN-to-CPU, rate-limited to 50 kbps by default.
For the captures in this article, mirror an underlay link with SPAN or ERSPAN to an external analyzer.
Key Takeaways
- EVPN programs tables; packets are forwarded from tables. For any packet, ask which table answers each lookup and which field changes.
- Every overlay answer ends in a VTEP address. If that address does not resolve in the underlay, the EVPN route is useless.
- The ingress VTEP adds 50 bytes (IPv4 underlay). VTEPs do not fragment, so the underlay MTU must absorb the overhead.
- Spines route on the outer IP header only. The UDP source port, derived from the inner headers, is what spreads flows across equal-cost paths.
- With ingress replication, BUM traffic is copied by the ingress leaf to every VTEP in the flood list built from Type 3 routes, unless ARP suppression answers first.
- Bridged traffic crosses the fabric unchanged: L2VNI, host MACs, inner TTL untouched.
- Routed traffic (symmetric IRB) uses the L3VNI and router MACs, and the inner TTL drops at each leaf.
- Aliasing load-balances to every leaf on an Ethernet segment; per-ES Type 1 withdrawal moves all its MACs at once.
- In VXLAN, local bias and the outer source IP prevent a multihomed host from receiving its own broadcasts.
- A border leaf is just another VTEP; external traffic follows the same routed walk.
- Vendors share the forwarding model but not the defaults: MLAG/vPC pairs replace aliasing with a shared VTEP address, Junos defaults to asymmetric IRB, and ARP suppression, BUM replication and DSCP handling differ.
References
- RFC 7348 — Virtual eXtensible Local Area Network (VXLAN)
- RFC 7432 — BGP MPLS-Based Ethernet VPN
- RFC 8365 — A Network Virtualization Overlay Solution Using EVPN
- RFC 9135 — Integrated Routing and Bridging in Ethernet VPN (EVPN)
- RFC 9136 — IP Prefix Advertisement in Ethernet VPN (EVPN)
- RFC 9161 — Operational Aspects of Proxy ARP/ND in Ethernet Virtual Private Networks
- Cisco — Configuring ESI-Based Multihoming (Nexus 9000 NX-OS VXLAN Configuration Guide, 10.6(x))
- Cisco — Configuring VXLAN BGP EVPN (Nexus 9000 NX-OS VXLAN Configuration Guide, 10.6(x))
- Cisco — Managing and Monitoring VXLAN EVPN Fabrics Using Cisco NDFC
- Arista — EVPN DC Multihoming for Resiliency (white paper)
- Arista — Configuring EVPN (EOS User Manual)
- Juniper — EVPN Multihoming Designated Forwarder Election
- NVIDIA Cumulus Linux — EVPN and PIM