EVPN Multihoming

Hello, everyone.

I have this simple EVPN VPWS Multihoming setup:

The great part about this is that many of the routes that you see in traditional LAN multihoming such as T2, T1 per ES or T4 are irrelevant/ignored in this scenario.

My question is: if you take R1-XR as an example, it will receive routes from R4-XR and R5-XR and notice that the ES matches for both of them. R1-XR now knows that they connect to the same ethernet segment - 45.x.x.x.

R1-XR can now load-balance traffic when sending it towards the other end of the VPWS. This is the confusing part for me:

obrázok

R1-XR will load-balance to both R4-XR and R5-XR, yet the entry above is a little confusing.

Why did it generate a local label of 24010? Also, doesn’t the MPLS entry above state “if a packet is received with an MPLS label of 24010, it’s swapped with 24008 (since R4 and R5 both generated the same label value) and sent over EVI 100?”

I don’t understand why it generated a local label of 24010. When SW1 even generates any kind of traffic, it won’t label it with 24010 at all, so how does ECMP work with a multihomed VPWS?

Thank you
David

Hello David,

You’re mostly right that many of the LAN multihoming routes are irrelevant here, but not all of them. VPWS is point-to-point, so there’s no MAC lookup and nothing to learn. That means Type 2 (MAC/IP) routes aren’t used, and Type 3 (IMET) isn’t needed because there’s no BUM replication to set up.

The per-ES Type 1 route actually still has a job here. It enables fast convergence and mass withdraw. When a CE link or PE fails, the PE withdraws the per-ES route, which removes all the per-EVI routes for that site in one message, and remote PEs switch to the backup PE.

Type 4 still matters, but its role depends on the mode:

  • All-Active: There’s no DF election, because all active PEs forward traffic. Type 4 is used for PE discovery and state synchronisation.
  • Single-Active: DF election still applies. The primary PE advertises the P flag, and the backup PE advertises the B flag.

Anyway, that’s just a quick clarification. On to the main meat of the post:

First, how does R1-XR learn that R4 and R5 share the ES? Well, on R4-XR and R5-XR, the CE-facing bundle uses the same Ethernet Segment Identifier. Each PE advertises per-EVI and per-ES Type 1 routes carrying that ESI. R1-XR receives per-EVI routes with the same ESI and Ethernet Tag from two different next hops (the loopbacks of R4 and R5). Matching on those values tells R1 that both PEs connect to the same segment and are the same remote endpoint.

Second, why does R1-XR allocate 24010, and what does the LFIB entry mean? Label 24010 is a local-only label. When R1 sees a remote Ethernet Segment that is multihomed, it allocates a local “multi-paths internal label” for that remote ES. You can check it with show evpn internal-label vpn-id 100 detail. The label stands for the whole remote ES rather than one particular PE, so R1 can load-balance across R4 and R5 without choosing between them up front. It comes from R1’s own dynamic label pool, which is why the value looks arbitrary. R4 and R5 never send or receive it.

The LFIB entry does not mean that traffic arriving with 24010 is swapped to 24008. Read it from R1’s point of view as an outgoing label for traffic leaving R1. For traffic coming from R1’s attachment circuit toward the remote site, R1 pushes the remote PE’s EVPN label (24008) plus the transport label and sends the packet across the core toward R4 or R5. The “EVI 100” text is just a tag naming the EVPN service. It is not an interface.

So why do both PEs advertise 24008? EVPN VPWS labels are downstream-assigned, so each PE chooses its own value. RFC 8214 only requires that the label identify the EVI and VPWS instance on that PE. It does not require R4 and R5 to match. In this lab they match because both PEs are configured identically and allocate from the same starting point. R1 can then use one outgoing label for both next hops.

Finally, where does the ECMP actually take place? SW1 never sends traffic labeled 24010, and it doesn’t need to. SW1 is the CE. It sends plain Ethernet frames into its port-channel and has no part in MPLS or EVPN. Label 24010 is R1-XR’s downstream-assigned service label. It is used when traffic arrives at R1-XR from the core and R1 needs to know which AC to forward the frame out of toward SW1. Traffic in the other direction uses the labels that the remote PE advertised.

There are two independent load-balancing decisions:

  1. CE to PEs (SW1 to R1-XR and R2-XR): This is ordinary LAG hashing on SW1’s port-channel. It’s not an EVPN or MPLS decision, so the CE implementation decides which PE each flow uses.
  2. Remote PE to R1-XR/R2-XR: Both PEs share the same ESI and advertise per-EVI routes with the same Ethernet Tag. Each advertises its own label, and together they form the ECMP path set for the remote PE.

So the remote PE sees one VPWS neighbor with multiple paths, for example (R1 loopback, label 24010) and (R2 loopback, label X). Because the two directions are independent, traffic can be asymmetric. If all of SW1’s traffic hashes to R2-XR, R1-XR still has 24010 programmed and advertised, but it may see no inbound traffic on it. That’s expected, and it’s what gives you resilience: if R2-XR’s CE link fails, its per-ES route is withdrawn and the remote PE moves onto R1-XR’s label.

I hope this has been helpful!

Laz