KSPG-2835 - EVPN Deep Dive Part2
KSPG-2835 - EVPN Deep Dive Part2
BRKSPG-2835
Cisco Webex App
Questions?
Use Cisco Webex App to chat
with the speaker after the session
How
1 Find this session in the Cisco Live Mobile App
2 Click “Join the Discussion”
3 Install the Webex App or go directly to the Webex space Enter your personal notes here
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
• EVPN Basic Principles
• EVPN L2 All-Active Multihomed Service
• EVPN Distributed L3 Anycast Gateway
• EVPN Centralized Gateway
• EVPN L3 Interconnect Options
• EVPN & VPNv4/6 Interconnect
• EVPN Single-Active / Port-Active
• EVPN Routes - Summary
EVPN-VPWS Multihomed Service
Agenda
•
• EVPN L2 Interconnect & Seamless
Integration/Migration (L2 Services)
• EVPN ETREE
• EVPN Fast Re-Route (FRR)
• EVPN Multicast
• EVPN Head End
• EVPN Transport Integration
• Summary
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
From Mac Bridging to Mac Routing
Common BGP Control Plane
EVPN, VPNv4/6 Overlay
Evolution:
Underlay
Segment Routing (SR: MPLS, SRv6) SR, VXLAN SR, VXLAN
Leaf
VM
PE1 DCI1
Spine Spine
Leaf
VM
A1 Access WAN/Core
Leaf
PE2 DCI2 VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Service Provider Network - Simplification Journey
Programmability
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Next-Generation Solutions for L2VPN
Solving VPLS challenges for per-flow Redundancy
M1 M2
CE1 PE1 PE3 CE2
• Existing VPLS solutions do not offer an All- Echo !
Active per-flow redundancy PE2 PE4
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
MPLS Transport & BGP Service
BGP L3VPN/ L3 EVPN BGP L2VPN EVPN
BGP Signaling BGP Signaling BGP Signaling BGP Signaling
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
EVPN – Basic
Principles
EVPN Advantages:
Integrated • Integrated Layer 2 and Layer 3 VPN services
Services • L3VPN-like principles and operational experience for scalability and control
• All-active Multi-homing & PE load-balancing (ECMP)
Fully support IPv4 and IPv6 in the data plane and control plane
Investment •
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Concepts
EVPN Instance (EVI) Ethernet Segment BGP Routes BGP Route Attributes
PE2
ESI2 [4] Ethernet Segment Route Default Gateway
PE
[5] IP Prefix Advertisement Route Encapsulation
• EVI identifies a VPN in the • Represents a ‘site’ • New SAFI [70] • New BGP extended
network connected to one or more • Routes serve control communities defined
• Encompass one or more PEs plane purposes, • Expand information
bridge-domains, • Uniquely identified by a 10- including: carried in BGP routes,
depending on service byte global Ethernet MAC address reachability including:
interface type Segment Identifier (ESI) MAC mass withdrawal MAC address moves
Port-based • Could be a single device Split-Horizon label adv. Redundancy mode
VLAN-based (shown above) or an entire network Aliasing MAC / IP bindings of a GW
VLAN-bundling Single-Homed Device (SHD) Multicast endpoint discovery Split-horizon label encoding
Multi-Homed Device (MHD) Redundancy group discovery Data plane Encapsulation
Single-Homed Network (SHN) Designated forwarder election
Multi-Homed Network (MHN) IP address reachability
L2/L3 Integration
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
EVPN - Load-Balancing Modes
V1 V1 V1 V2 V1, V2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
EVPN - Ethernet VPN
• Concepts are same!!! Pick your side!
C1 C2
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
EVPN - Ethernet-Segment for Multi-Homing
L1 and L2 (L3 and L4) have to know if they multi-home same broadcast domain
SP1 SP2
The bundle on the Leafs
connecting to a node should
have Identical ES identifier (ESI)
L1 L2 L3 L4
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
EVPN - Ethernet VPN
MAC address advertisement and MAC address table synchronization
Leaves run Multi-Protocol BGP to advertise & learn MAC addresses over the Network
MAC addresses are advertised to rest of Leaves
L3/4 – Learn MAC address advertised by L1
L2 – uses MAC address advertised by L1 to synchronize MAC address table
-> L2 forwards MAC via local ETH interface represented by same Ethernet Segment between L1 and L2
SP1 SP2
L1 L2 L3 L4
Data Plane learning
from the hosts
All Active multi-homing
C1 C2 Ethernet Segment
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
EVPN L2 All-Active
Multihomed Service
EVPN - Testbed
RR103 RR104
LACP R39
H2
R38 R35
H1
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
EVPN Configuration CE has to receive same lacp system
MAC
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
EVPN Configuration - BGP
router bgp 1
bgp router-id 3.3.3.36
address-family l2vpn evpn
!
neighbor-group rr
remote-as 1
update-source Loopback0 BGP EVPN CP
address-family l2vpn evpn
!
neighbor 3.3.3.103
use neighbor-group rr
!
neighbor 3.3.3.104
use neighbor-group rr
!
!
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
EVPN – Designated Forwarder (DF)
Challenge:
How to prevent duplicate copies of flooded traffic from being delivered to a multi-homed Ethernet Segment?
If (L3 and L4) Multi-Homing access via same Ethernet Segment -> only one of them can forward traffic to access
Same for (L1 and L2)
SP1 SP2
L1 L2 L3 L4
NDF DF
C1 Duplicate C2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
DF Election per EVI/ESI - Algorithm
Service Carving
R36
R37
0
1
+ 100
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Ethernet Segment - DF Election
R36#show evpn ethernet-segment esi 0036.3700.0000.0000.1100 carving detail
……
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0036.3700.0000.0000.1100 BE100 3.3.3.36
3.3.3.37
ES to BGP Gates : Ready
ES to L2FIB Gates : Ready
Main port :
Interface name : Bundle-Ether100
Interface MAC : 008a.9644.d8dd
IfHandle : 0x0800001c
State : Up
Redundancy : Not Defined
ESI type : 0
Value : 36.3700.0000.0000.1100
ES Import RT : 3637.0000.0000 (from ESI)
Source MAC : 0000.0000.0000 (N/A)
Topology :
Operational : MH, All-active
Configured : All-active (AApF) (default)
Service Carving : Auto-selection
Peering Details : 3.3.3.36[MOD:P:00] 3.3.3.37[MOD:P:00]
Service Carving Results:
Forwarders : 1
Permanent : 0
Elected : 1
EVI E : 100
Not Elected : 0
MAC Flushing mode : STP-TCN
Peering timer : 3 sec [not running]
Recovery timer : 30 sec [not running]
Carving timer : 0 sec [not running]
Local SHG label : 64005
Remote SHG labels : 1
64005 : nexthop 3.3.3.37
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
R36: RT-4 Ethernet Segment Router
R36#show bgp l2vpn evpn rd 3.3.3.36:0 [4][0036.3700.0000.0000.1100][32][3.3.3.36]/128
Mon Oct 15 03:24:50.736 UTC
BGP routing table entry for [4][0036.3700.0000.0000.1100][32][3.3.3.36]/128, Route Distinguisher: 3.3.3.36:0
Versions:
Process bRIB/RIB SendTblVer
RT-4 Ethernet Segment Identifier (ESI)
Speaker 82835 82835
Last Modified: Oct 14 21:32:13.399 for 05:52:37
Paths: (1 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
Advertised to update-groups (with more than one peer):
0.2
Local
0.0.0.0 from 0.0.0.0 (3.3.3.36)
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
Received Path ID 0, Local Path ID 1, version 82835
Extended community: EVPN ES Import:3637.0000.0000 DF Election:00:0:00
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
EVPN – BUM Ingress Replication
Two service labels per EVPN instance
BUM Label – to forward Broadcast, Unknown Unicast and Multicast
Unicast Label – to forward Unicast
SP1 SP2
L1 L2 L3 L4
C1 C2
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
R36: RT-3 Inclusive Multicast
R36#show bgp l2vpn evpn rd 3.3.3.36:100 [3][0][32][3.3.3.36]/80
Mon Oct 15 13:10:17.010 UTC
BGP routing table entry for [3][0][32][3.3.3.36]/80, Route Distinguisher: 3.3.3.36:100
Versions:
Process bRIB/RIB SendTblVer RT-3
Speaker 39774 39774
Last Modified: Aug 31 01:37:02.399 for 6w3d
Paths: (1 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
Advertised to update-groups (with more than one peer):
0.2
Local
0.0.0.0 from 0.0.0.0 (3.3.3.36)
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate
Received Path ID 0, Local Path ID 1, version 39774
Extended community: RT:1:100 EVI 100 Route-Target
PMSI: flags 0x00, type 6, label 64120, ID 0x03030324
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
EVPN – Split Horizon
Challenge:
How to prevent flooded traffic from echoing back to a multi-homed Ethernet Segment?
Transport
BUM Label Label
SP1 SP2
SH Label
L1 L2
Echo !
C1
VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
EVPN – Split Horizon
Challenge:
How to prevent flooded traffic from echoing back to a multi-homed Ethernet Segment?
Transport
BUM Label Label
SP1 SP2
SH Label
L1 L2
Echo !
C1 C11
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
EVPN – MAC Mass-Withdraw
Challenge:
How to inform other Leafs of a failure affecting many MAC addresses quickly while the
control-plane re-converges?
L1 L2 L3 L4
MAC1 can NOT be
reached via ESI1
C1 C2
VM VM VM VM
ESI1 MAC1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
R36: RT-1 Per ESI Ethernet Auto-Discovery
R36#show bgp l2vpn evpn rd 3.3.3.36:0 [1][3.3.3.36:1][0036.3700.0000.0000.1100][4294967295]/184
Sun Oct 14 20:56:59.687 UTC
BGP routing table entry for [1][3.3.3.36:1][0036.3700.0000.0000.1100][4294967295]/184, Route Distinguisher: 3.3.3.36:0
Versions:
Process bRIB/RIB SendTblVer RD - unique per advertising Ethernet Segment Identifier (ESI)
RT-1
Speaker 76372 76372 node (R36 unique)
Local Label: 0
Last Modified: Sep 18 23:02:40.399 for 3w4d
Paths: (1 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
Advertised to update-groups (with more than one peer):
0.2
Local
0.0.0.0 from 0.0.0.0 (3.3.3.36)
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
Received Path ID 0, Local Path ID 1, version 76372
Extended community: EVPN ESI Label:0x00:64005 RT:1:100 EVI(s) Route-Target
All EVI(s) which use this ESI
RT-4 - DF Election
H1 ESI: 0036.3700.0000.0000.1100
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
R36, R37, R38, R39 - EVPN Startup
R36 - Example
1. RT4: DF Election & Multi-Homed Ethernet
Segment Auto-Discovery
LACP R39
2. RT1: Per ESI Ethernet Auto-Discovery
(Split-Horizon, Mass-Withdraw) H2
RT-1 - Per ESI Ethernet AD
R38 R35
RD: 1.1.1.36:1
ESI: 0036.3700.0000.0000.1100
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
R36, R37, R38, R39 - EVPN Startup
R36 - Example
1. RT4: DF Election & Multi-Homed Ethernet
Segment Auto-Discovery
LACP R39
2. RT1: Per ESI Ethernet Auto-Discovery
(Split-Horizon, Mass-Withdraw) H2
3. RT3: Inclusive Multicast RT-3 - Inclusive Multicast
R38 R35
RD: 1.1.1.36:100
Ext-Com: Type 6 Ingress-Replication
Multicast(BUM) Label: 64120
LACP R37 R34
Ext-Com: 1:100 (RT)
H1
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
BUM Forwarding
BUM - Traffic
IR BUM - Traffic
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
BUM Forwarding
X R37 R34
LACP
Transport Label R37
H1 BUM Label R37/EVI100
BUM - Traffic
IR BUM - Traffic
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
R36: RT-2 MAC Advertisement
R36#show bgp l2vpn evpn rd 3.3.3.36:100 [2][0][48][0062.ec71.fbd7][0]/104
Mon Oct 15 04:33:39.527 UTC
BGP routing table entry for [2][0][48][0062.ec71.fbd7][0]/104, Route Distinguisher: 3.3.3.36:100
Versions:
Process bRIB/RIB SendTblVer
Speaker 83317 83317 RT-2 Advertised MAC
Local Label: 64004
3.3.3.37 (metric 30) from 3.3.3.103 (3.3.3.37)
Received Label 64004
Origin IGP, localpref 100, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: SoO:3.3.3.37:100 RT:1:100 R37 MAC DP Learned and
Originator: 3.3.3.37, Cluster list: 3.3.3.103 Advertised
EVPN ESI: 0036.3700.0000.0000.1100
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.37:100
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
R36: RT-2 MAC Advertisement
R36#show evpn evi mac
Mon Oct 15 20:57:14.505 UTC
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
R36, R37, R38, R39 - EVPN Startup
R36 - Example
1. RT4: DF Election & Multi-Homed Ethernet
Segment Auto-Discovery
LACP R39
2. RT1: Per ESI Ethernet Auto-Discovery
(Split-Horizon, Mass-Withdraw) H2
3. RT3: Inclusive Multicast RT-2 - MAC Advertisement
ESI: 0036.3700.0000.0000.1100
H1 Label: 64004
L2 Frame SMAC:
0062.ec71.fbd7
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Unicast Forwarding
L2 Frame Flow1
Transport Label R36
1. RT4: DF Election & Multi-Homed Ethernet DMAC: H1
H1
R36
L2 Frame Flow1
DMAC: H1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
EVPN – Aliasing
Challenge:
How to load-balance traffic towards a multi-homed device across multiple Leafs when
MAC addresses are learnt by only a single Leaf?
L1 L2 L3 L4
MAC1 can be
reached via ESI1
C1 C2
VM VM VM VM
ESI1 MAC1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
R36: RT-1 Per EVI Ethernet Auto-Discovery
RP/0/RP0/CPU0:R36#show bgp l2vpn evpn rd 3.3.3.36:100 [1][0036.3700.0000.0000.1100][0]/120
Mon Oct 15 03:35:13.604 UTC
BGP routing table entry for [1][0036.3700.0000.0000.1100][0]/120, Route Distinguisher: 3.3.3.36:100
Versions:
Process bRIB/RIB SendTblVer Ethernet Segment Identifier (ESI)
Speaker 79640 7964 RT-1
Last Modified: Oct 12 17:40:06.399 for 2d09h
Paths: (2 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
Advertised to update-groups (with more than one peer):
0.2
Local
0.0.0.0 from 0.0.0.0 (3.3.3.36)
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
Received Path ID 0, Local Path ID 1, version 39769
Path #2: Received by speaker 0
Not advertised to any peer
Local
3.3.3.37 (metric 30) from 3.3.3.103 (3.3.3.37) Aliasing Label allocated by R37 for EVI 100
Received Label 64004
Origin IGP, localpref 100, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: RT:1:100 EVI 100 Route-Target
Originator: 3.3.3.37, Cluster list: 3.3.3.103
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.37:100
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
R36, R37, R38, R39 - EVPN Startup
R36 - Example
1. RT4: DF Election & Multi-Homed Ethernet
Segment Auto-Discovery
LACP R39
2. RT1: Per ESI Ethernet Auto-Discovery
(Split-Horizon, Mass-Withdraw) H2
3. RT3: Inclusive Multicast RT-1 - Per EVI Ethernet AD
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Unicast Forwarding
L2 Frame Flow1
Transport Label R36
1. RT4: DF Election & Multi-Homed Ethernet DMAC: H1
H1
R36
L2 Frame Flow1
DMAC: H1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Unicast Forwarding
L2 Frame Flow2
DMAC: H1
L2 Frame Flow1
Transport Label R36
1. RT4: DF Election & Multi-Homed Ethernet DMAC: H1
H1
R36
L2 Frame Flow1
DMAC: H1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Unicast Forwarding
L2 Frame Flow2
DMAC: H1
L2 Frame Flow1
Transport Label R36
1. RT4: DF Election & Multi-Homed Ethernet DMAC: H1
H1
Per Flow Balancing via R36 and R37 - Aliasing
R36
L2 Frame Flow1
DMAC: H1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
EVPN – MAC Mobility
Challenge:
How to detect the correct location of MAC after the movement of host from one Ethernet
Segment to another also called “MAC move”?
C1 C2
VM
Host move
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
EVPN L2 & L3 Integration
Distributed vs Centralized Routing
Layer2 Bridging mandatory between Leaves only Layer2 Bridging mandatory between Leaves and DCI
IRB
L4 X.X.X.H2/24 L4 X.X.X.H2/24
H2 H2
IRB
CO IRB
CO
IRB
L2 L2
DCI1 SP1 DCI1 SP1
H1 H1
X.X.X.H1/24 X.X.X.H1/24
L1 IRB
L1
• Optimized forwarding of east-west traffic • All east<->west routed traffic traverses to centralized gateways
• ARP/MAC state localized to Leafs • Centralized gateways have full ARP/MAC state in the DCI
• Helps with horizontal scaling of DC • Scale challenge
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public
EVPN Distributed
L3 Anycast Gateway
Symmetric vs Asymmetric - Integrated Routing and
Symmetric Bridging (IRB) Asymmetric
IRB
IRB IRB
L4 Y.Y.Y.H2/24 L4 Y.Y.Y.H2/24
H2 H2
IRB
CO CO IRB
IRB IRB
L2 L2
SP1 SP1
H1 H1
IRB
X.X.X.H1/24 X.X.X.H1/24
L1 L1 IRB
IRB
• Ingress and Egress Leaf – Routing and Bridging • Ingress Leaf – Routing and Bridging
• ARP/MAC Entries optimization • Egress Leaf – Bridging Only!
• L1/L2 MAC/ARP of Hosts from X.X.X.0/24 only • ARP/MAC Entries optimization
• L3/L4 MAC/ARP of Hosts from Y.Y.Y.0/24 only • L1/L2 MAC/ARP of Hosts from X.X.X.0/24 and Y.Y.Y.0/24
• Horizontally scalable solution • L3/L4 MAC/ARP of Hosts from Y.Y.Y.0/24 and X.X.X.0/24
• Limited Scale
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
EVPN – Distributed Symmetric Anycast Gateway
Leaves run Multi-Protocol BGP to advertise & learn MAC + HOST IP addresses over the Network
MAC + IP addresses are advertised to rest of Leaves
L3/4 – Learn MAC + IP HOST address advertised by L1
-> L2/L3 update MAC address table + IP Forwarding table
L2 – uses MAC address advertised by L1 to synchronize MAC address table
-> L2 forwards MAC via local ETH interface represented by same Ethernet Segment between L1 and L2
L2 – uses MAC + IP HOST address advertised by L1 to synchronize ARP/ND information
-> L2 forwards IP via local ETH interface
Identical Anycast Gateway Virtual IP
Distributed Anycast Gateway serves and MAC address are configured on
as the gateway for connected hosts SP1 SP2 all the Leafs
L1 L2 L3 L4
All the BVIs perform active forwarding
in contrast to active/standby like First-
hop routing protocol
C1 C2
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
EVPN – IRB in Network Fabric
Intra-subnet
Forwarding
Inter-subnet
Forwarding
SP1 SP2
L1 L2 L3 L4
C1 C2 C3 C4
VM VM VM VM
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
EVPN Distributed L3 Anycast GW - Symmetric IRB
Anycast IRB 192.168.2.1/24
RR103 RR104
IRB
LACP R39
R38 R35
IRB
LACP R37 R34
H1: 192.168.1.10/24 H1
IRB
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
EVPN Configuration - IRB
evpn
no evi 100
no advertise-mac
!
interface BVI100
host-routing MAC/IP RT2
vrf a
ipv4 address 192.168.1.1 255.255.255.0
mac-address 3637.3637.3637 Anycast Distributed IRB: Same IP and MAC
! R36,R37
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
EVPN Configuration - BGP VRF
router bgp 1
bgp router-id 3.3.3.36
address-family vpnv4 unicast
!
address-family l2vpn evpn
!
neighbor-group rr
remote-as 1
update-source Loopback0
address-family l2vpn evpn
!
neighbor 3.3.3.103
use neighbor-group rr
!
neighbor 3.3.3.104
use neighbor-group rr
!
vrf a
rd auto
address-family ipv4 unicast
additional-paths receive
maximum-paths ibgp 2 BGP Multi-Path for Inter-subnet forwarding
redistribute connected
!
!
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
R36: RT-2 MAC/IP Advertisement
R36#show bgp l2vpn evpn rd 3.3.3.36:100 [2][0][48][0062.ec71.fbd7][32][19$
Tue Oct 16 02:47:45.576 UTC
BGP routing table entry for [2][0][48][0062.ec71.fbd7][32][192.168.1.10]/136, Route Distinguisher: 3.3.3.36:100
Versions:
Process bRIB/RIB SendTblVer
Speaker 84847 84847 RT-2 Advertised MAC IP
Last Modified: Oct 15 23:14:52.399 for 03:32:53
Paths: (2 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
Advertised to update-groups (with more than one peer):
0.2
Local
0.0.0.0 from 0.0.0.0 (3.3.3.36)
Second Label 64008
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
Received Path ID 0, Local Path ID 1, version 84838
Extended community: SoO:3.3.3.37:100 RT:1:100 RT:100:100
EVPN ESI: 0036.3700.0000.0000.1100
RT EVI 100 and RT VRF A
Path #2: Received by speaker 0
RT-2 per-BD label
Not advertised to any peer
Local
3.3.3.37 (metric 30) from 3.3.3.103 (3.3.3.37) VRF Agg label
Received Label 64004, Second Label 64008
Origin IGP, localpref 100, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: SoO:3.3.3.37:100 RT:1:100 RT:100:100 RT EVI 100 and RT VRF A
Originator: 3.3.3.37, Cluster list: 3.3.3.103
EVPN ESI: 0036.3700.0000.0000.1100
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.37:100
RP/0/RP0/CPU0:R36#
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
R36: RT-2 MAC/IP
R36#show evpn evi mac
Tue Oct 16 02:52:22.437 UTC
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
R36: VRF Routes
R36#show route vrf a
Tue Oct 16 02:46:34.463 UTC
EVPN Learned Route BGP Multi Path to H2 connected to R38 and R39
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
R36, R37, R38, R39 - EVPN Startup
R36 - Example Anycast IRB 192.168.2.1/24
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
EVPN
Centralized GW
CGW
EVPN Centralized Gateway (CGW)
CGW - Configuration
evpn
virtual access-evi
ethernet-segment
A1 identifier type 0 77.77.77.77.77.77.77.77.77
l2vpn
bridge group test
CE1 bridge-domain test
access-evi 300
routed interface BVI300
A2 CGW1
L2 EVPN L3 VPN
Core
l2vpn
A4 bridge group test
bridge-domain test
interface Bundle-Ether100
!
evi 300
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
EVPN Centralized Gateway (CGW)
R28#show evpn ethernet-segment
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Distributed vs Centralized Gateway
• Distributed Anycast Gateway is our priority!
• Best Scalable solution
• Optimal L2/L3 forwarding
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
BGP Layer3
Interconnect
BGP Layer3 Interconnect
Principles
• DCI/BL provides Layer3 Interconnect
• DCI/BL participates in L3 Routing, but not in Layer2 Bridging
• DCI/BL summarization is required/recommended Layer2 Bridging Required over Leaves
IRB
L4 X.X.X.H2/24
H2
CE1
PE/DCI
3 CORE CO
IRB
L2
DCI1 SP1
H1
X.X.X.H1/24
L1 IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
BGP Layer3 Interconnect
DCI/BL Summarization
Host-Routes are not required outside CO/DC
L3/4 VRF FIB:
PE/DCI3 VRF FIB: DCI1/2 VRF FIB: X.X.X.H1 -> L1, L2
X.X.X.H1 -> DC1, DCI2 X.X.X.H1 -> L1, L2 X.X.X.H2 -> IRB(local)
X.X.X.H2 -> DCI1, DCI2 X.X.X.H2 -> L3, L4 X.X.X.0/24 -> IRB(local)
X.X.X.0/24 -> DC1, DCI2 X.X.X.0/24 -> L1, L2, L3, L4 Z.Z.Z.0/24 -> DCI1, DCI2
Z.Z.Z.0/24 -> CE1 Z.Z.Z.0/24 -> PE3
IRB
L4 X.X.X.H2/24
H2
X.X.X.H1/24
L1 IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
BGP Layer3 Interconnect
Control Plane
BGP - L3VPN VPNv4/6 BGP - L3VPN VPNv4/6 Option #1 – VPNv4/6 & VPNv4/6
BGP – EVPN L3 BGP – EVPN L3
Option #2 – EVPN & EVPN
BGP - L3VPN VPNv4/6 BGP – EVPN L3
Option #3 – VPNv4/6 & EVPN
IRB
L4 X.X.X.H2/24
H2
CE1
PE/DCI
3 CORE CO
IRB
L2
DCI1 SP1
H1
X.X.X.H1/24
L1 IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
BGP Layer3 Interconnect
Option #1 – VPNv4/6 & VPNv4/6
BGP - L3VPN VPNv4/6 BGP - L3VPN VPNv4/6
VPNv4: Z.Z.Z.0/24 VPNv4: Z.Z.Z.0/24
H2
CE1
PE/DCI
3 CORE CO
IRB
L2
DCI1 SP1
H1
X.X.X.H1/24
L1 IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
BGP Layer3 Interconnect
Option #2 – EVPN & EVPN
BGP – EVPN L3 BGP – EVPN L3
RT5: Z.Z.Z.0/24 RT5 Prefix: Z.Z.Z.0/24
H2
CE1
PE/DCI
3 CORE CO
IRB
L2
DCI1 SP1
H1
X.X.X.H1/24
L1 IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
BGP Layer3 Interconnect
Option #3 – VPNv4/6 & EVPN
BGP - L3VPN VPNv4/6 BGP – EVPN L3
VPNv4: Z.Z.Z.0/24 RT5 Prefix: Z.Z.Z.0/24
H2
CE1
PE/DCI
3 CORE CO
IRB
L2
DCI1 SP1
H1
X.X.X.H1/24
L1 IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
BGP Layer3 Interconnect
Control Plane Options Highlight
• Option #1 – VPNv4/6 & VPNv4/6
+ VPNv4/6 Industry proved solution for Layer3 VPN
+ DCI doesn’t need to understand BGP EVPN AF
- Leaf has to peer with Route-Reflector via both BGP EVPN and VPNv4/6 AF
EVPN AF to support L2 stretch (MAC advertisement) across DC/CO between Leaves
EVPN AF to sync ARP/ND for Multi-Homed All-Active
- DC/CO Route-Reflector has to support both BGP EVPN and VPNv4/6 AF
- Leaf has to advertise VM Host-Routes via VPNv4/6
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
R36: BGP Configuration - RT-5
router bgp 1
bgp router-id 3.3.3.36
address-family vpnv4 unicast
!
address-family l2vpn evpn
!
neighbor-group rr
remote-as 1
update-source Loopback0
address-family l2vpn evpn
advertise vpnv4 unicast
!
vrf a
rd auto
RT-5
address-family ipv4 unicast
additional-paths receive
maximum-paths ibgp 2
!
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
R36: RT-5 Route
R36#show bgp l2vpn evpn rd 3.3.3.37:0 [5][0][24][192.168.1.0]/80
Tue Oct 16 03:35:06.480 UTC
BGP routing table entry for [5][0][24][192.168.1.0]/80, Route Distinguisher: 3.3.3.37:0
Versions:
Process bRIB/RIB SendTblVer
Speaker 84912 84912
Last Modified: Oct 16 03:23:18.399 for 00:11:48
Paths: (2 available, best #1) RT-5 VRF A R37 RD
Not advertised to any peer prefix
Path #1: Received by speaker 0
Not advertised to any peer
Local
3.3.3.37 (metric 30) from 3.3.3.103 (3.3.3.37) VRF Agg label
Received Label 64008
Origin incomplete, metric 0, localpref 100, valid, internal, best, group-best, import-candidate, not-in-vrf
Received Path ID 0, Local Path ID 1, version 84912
Extended community: Flags 0x6: RT:100:100
Originator: 3.3.3.37, Cluster list: 3.3.3.103
EVPN ESI: 0000.0000.0000.0000.0000, Gateway Address : 0.0.0.0
Path #2: Received by speaker 0
VRF A Route-Target
Not advertised to any peer
Local
3.3.3.37 (metric 30) from 3.3.3.104 (3.3.3.37) VRF Agg label
Received Label 64008
Origin incomplete, metric 0, localpref 100, valid, internal, not-in-vrf
Received Path ID 0, Local Path ID 0, version 0
Extended community: Flags 0x6: RT:100:100
Originator: 3.3.3.37, Cluster list: 3.3.3.104 VRF A Route-Target
EVPN ESI: 0000.0000.0000.0000.0000, Gateway Address : 0.0.0.0
RP/0/RP0/CPU0:R36#
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
R36: VRF A - Routing Table
R36#show route vrf a
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
EVPN Routes - Summary
EVPN Routes – Cheat Sheet (Unicast)
BGP Signaling PE1 – Advertises:
PE2 PE4
PE1 RT-4 Ethernet Segment Route
CE1 MPLS CE2 • I have ESI1 in case when someone needs this information for
EVI1-L Designated Forwarder(DF) Election
PE1 PE3
BE1-SHL
Data Plane
EVI1-BUML RT-1 Per ESI Ethernet Auto-Discovery (AD) Route
L2 Frame Transport L2 Frame
MPLS Label • I have ESI1
Service
• ESI1 is All-Active
BGP Label
L2 Frame
BD1 EVI1 • AC with ESI1 is connected to EVI1 and EVI2
BD1 MAC • My Split Horizon Label for ESI1 is BE1-SHL
MAC-A
BVI1
MAC-A -> BE1.1
IP-A VRF1 ARP RT-1 Per EVI Ethernet Auto-Discovery (AD) Route(s)
BE1 - ESI1 • EVI1 per-EVI (Aliasing) Label is EVI1-L
Vlan1 IP-A MAC-A -> BVI1
VRF1 IP-B MAC-B -> BVI2 • EVI2 per-EVI (Aliasing) Label is EVI2-L
Vlan2 VRF1-AGGL
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
EVPN Single-Active
EVPN - Load-Balancing Modes
V1 V1 V1 V2 V1, V2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
EVPN - Testbed
RR103 RR104
Single-Active
R39
H2
R38 R35
H1
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
All-Active - Example
R36#show evpn internal-label
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Single-Active – Configuration and Verification
Remote R38/R39
R36#show evpn internal-label
V1 V1 V1 V2 V1, V2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
EVPN - Testbed
RR103 RR104
LACP R39
H2
R38 R35
R36/R37
LACP R37 R34
evpn
interface Bundle-Ether100
ethernet-segment H1
load-balancing-mode port-active
!
!
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Port-Active –Verification
R36#show bundle R37#show bundle
Bundle-Ether100 Bundle-Ether100
Status: Up Status: LACP OOS (out of service)
Local links <active/standby/configured>: 1 / 0 / 1 Local links <active/standby/configured>: 0 / 1 / 1
Local bandwidth <effective/available>: 10000000 (10000000) kbps Local bandwidth <effective/available>: 0 (0) kbps
MAC address (source): 008a.9644.d8de (Chassis pool) MAC address (source): 008a.9644.08de (Chassis pool)
Inter-chassis link: No Inter-chassis link: No
Minimum active links / bandwidth: 1 / 1 kbps Minimum active links / bandwidth: 1 / 1 kbps
Maximum active links: 64 Maximum active links: 64
Wait while timer: 2000 ms Wait while timer: 2000 ms
Load balancing: Load balancing:
Link order signaling: Not configured Link order signaling: Not configured
Hash type: Default Hash type: Default
Locality threshold: None Locality threshold: None
LACP: Operational LACP: Operational
Flap suppression timer: Off Flap suppression timer: Off
Cisco extensions: Disabled Cisco extensions: Disabled
Non-revertive: Disabled Non-revertive: Disabled
mLACP: Not configured mLACP: Not configured
IPv4 BFD: Not configured IPv4 BFD: Not configured
IPv6 BFD: Not configured IPv6 BFD: Not configured
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
EVPN Single-Flow-Active
(SFA)
EVPN Load-Balancing Modes
Single-Flow-Active (SFA)
X
Single-Homed Single-Flow-Active (SFA)
STP/REP/G.8032 “break” L2 loop MST-AG/REP-AG/G.8032 “break” L2 loop
A3 A3
PE1 PE1
PE2 PE2
A2 A2
EVPN-MPLS EVPN-MPLS
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
EVPN Single-Flow-Active (SFA) - Configuration
PE1/PE2
evpn
interface Bundle-Ether100
ethernet-segment
identifier type 0 36.37.36.37.36.37.36.37.01
load-balancing-mode single-flow-active
convergence
mac-mobility
A3 PE37
P2
A2
MST/REP/ MPLS PE38
G8032
P1
A1 PE36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
RT-1 Per ESI Ethernet Auto-Discovery
Single-Flow-Active (SFA)
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
EVPN Single-Flow-Active (SFA)
• PE36/PE37 are both DF (L2 legacy protocol must break a loop)
• PE36 advertise A2 MAC+IP EVPN RT2 with BGP Local-Preference 100
• PE37 synchronize A2 ARP/ND (EVPN RT2 MAC+IP advertised by PE36)
• FIB Next-Hop -> PE36
• PE37 Re-advertise A2 MAC+IP RT2 with BGP Local-Preference 80
• PE38 prefers A2 via PE36 (BGP LP 100)
A3 PE37
P2
MST/REP/ PE38
A2
G8032
P1
A1 PE36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
EVPN-VPWS
Multihomed Service
EVPN vs EVPN-VPWS - Balancing Mode
Single-Active
• Both EVPN and EVPN-VPWS advertise RT1(per-ESI) PE2 PE4
• Signal All-Active or Single-Active CE1 MPLS CE2
PE1 PE3
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
EVPN-VPWS Layer 2 Attributes Extended Community
RFC8214 IOS-XR 7.1.1
+-------------------------------------------+
+-------------------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-------------------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| L2 MTU (2 octets) |
+-------------------------------------------+ Control-Word(C) = 4
| Reserved (2 octets) | Primary(P) = 2
Backup(B) = 1
+-------------------------------------------+
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
EVPN-VPWS
All-Active
EVPN-VPWS - Testbed
Startup Sequence is almost identical with EVPN except:
RT3 and RT2 are not required
RR103 RR104
LACP R39
H2
R38 R35
R37 R34
H1 R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Config: EVPN-VPWS
R36 R38/R39
l2vpn l2vpn
xconnect group 500 xconnect group 500
p2p 500 p2p 500
interface Bundle-Ether100 interface Bundle-Ether100
neighbor evpn evi 500 target 333 source 333 neighbor evpn evi 500 target 333 source 333
! !
! !
! !
R36 R38/R39
l2vpn l2vpn
xconnect group 500 xconnect group 500
p2p 500 p2p 500
interface Bundle-Ether100 interface Bundle-Ether100
neighbor evpn evi 500 service 333 neighbor evpn evi 500 service 333
! !
! !
! !
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
R36: L2vpn xconnect status & Data Plane
verification
R36#show l2vpn xconnect
Legend: ST = State, UP = Up, DN = Down, AD = Admin Down, UR = Unresolved,
SB = Standby, SR = Standby Ready, (PP) = Partially Programmed
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
R36: RT-1 Per EVI Ethernet Auto-Discovery
R36#show bgp l2vpn evpn rd 3.3.3.36:500 [1][0038.3900.0000.0000.1100][3839]/120
Control-Word(C) = 4
BGP routing table entry for [1][0038.3900.0000.0000.1100][3839]/120, Route Distinguisher: 3.3.3.36:500 Primary(P) = 2
Versions:
Process bRIB/RIB SendTblVer RT-1
Backup(B) = 1
Speaker 316 316 ESI R38/R39 AC-ID
Last Modified: Jan 27 08:24:37.527 for 00:01:42
Paths: (2 available, best #1)
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer Control-Word + Primary
Local
3.3.3.38 (metric 30) from 3.3.3.103 (3.3.3.38) MTU 1500B
Received Label 68107
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 1, version 314
Extended community: EVPN L2 ATTRS:0x06:1500 RT:1:500
Originator: 3.3.3.38, Cluster list: 3.3.3.103
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.38:500
Path #2: Received by speaker 0
Not advertised to any peer Control-Word + Primary
Local
3.3.3.39 (metric 30) from 3.3.3.103 (3.3.3.39)
MTU 1500B
Received Label 68107
Origin IGP, localpref 100, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: EVPN L2 ATTRS:0x06:1500 RT:1:500
Originator: 3.3.3.39, Cluster list: 3.3.3.103
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.39:500
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
R36: EVPN-VPWS Instance View
R36#show evpn evi vpn-id 500 detail
Statistics:
Packets Sent Received
Total : 0 0
Unicast : 0 0
BUM : 0 0
Bytes Sent Received
Total : 0 0
Unicast : 0 0
BUM : 0 0
RD Config: none
RD Auto : (auto) 3.3.3.36:500
RT Auto : 1:500
Route Targets in Use Type
------------------------------ ---------------------
1:500 Import
1:500 Export
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
EVPN-VPWS
Single-Active
EVPN-VPWS - Testbed
Startup Sequence is almost identical with EVPN except:
RT3 and RT2 are not required
RR103 RR104
Single-Active
R39
H2
R38 R35
H1
R36
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Config: EVPN-VPWS
R36 R38/R39
l2vpn l2vpn
xconnect group 500 xconnect group 500
p2p 500 p2p 500
interface Bundle-Ether100 interface Bundle-Ether100
neighbor evpn evi 500 target 3839 source 3637 neighbor evpn evi 500 target 3637 source 3839
! !
! !
! !
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
R36: L2vpn xconnect status & Data Plane
verification
R36#show l2vpn xconnect
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
R36: RT-1 Per EVI Ethernet Auto-Discovery
R36#show bgp l2vpn evpn rd 3.3.3.36:500 [1][0038.3900.0000.0000.1100][3839]/120
Tue Apr 14 07:47:20.033 UTC Control-Word(C) = 4
BGP routing table entry for [1][0038.3900.0000.0000.1100][3839]/120, Route Distinguisher: 3.3.3.36:500 Primary(P) = 2
Versions:
Process bRIB/RIB SendTblVer RT-1
Backup(B) = 1
Speaker 430 430 ESI R38/R39 AC-ID
Last Modified: Apr 14 07:47:09.651 for 00:00:10
Paths: (2 available, best #1)
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer Control-Word + Backup
Local
3.3.3.38 (metric 30) from 3.3.3.103 (3.3.3.38) MTU 1500B
Received Label 28127
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 1, version 428
Extended community: EVPN L2 ATTRS:0x05:1500 RT:1:500
Originator: 3.3.3.38, Cluster list: 3.3.3.103
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.38:500
Path #2: Received by speaker 0
Not advertised to any peer Control-Word + Primary
Local
3.3.3.39 (metric 30) from 3.3.3.103 (3.3.3.39)
MTU 1500B
Received Label 28127
Origin IGP, localpref 100, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: EVPN L2 ATTRS:0x06:1500 RT:1:500
Originator: 3.3.3.39, Cluster list: 3.3.3.103
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 3.3.3.39:500
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
EVPN Interconnect/Migration
(L2 Services)
EVPN L2 Interconnect – Let’s connect everything together
Everything in one Bridge Domain
• Legacy L2: REP, G8032, STP, etc.
LACP
• VPLS VPWS
• EVPN-VXLAN/EVPN-MPLS CE A3
• EoMPLS(PW)
• Ethernet – MultiHomed, SingleHomed
Leaf
VM
A3
Spine Spine
DCI/PE DCI/PE
PE1
Leaf
VM
STP/REP/ MPLS MPLS Core
A1 G.8032…. Core
Leaf
VM DCI/PE DCI/PE
PE2
A2 EVPN - VXLAN
EVPN-MPLS
EVPN - MPLS
A1 A2
VPLS
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
EVPN & VPLS
Seamless Integration - Migration
VPLS & EVPN Seamless Integration - Migration
VFI1 is by default in Split Horizon Group 1
CE2 R37 R39 CE4
• SHG1 protects loops in MPLS Core
• Full Mesh of pseudowires(PW) is required
for Any-to-Any forwarding
R36 MPLS
VFI1
PW_R37 UP
BD1 PW_R38 UP
PW_R39 UP
CE1
R38 CE3
l2vpn
bridge group 100
bridge-domain 100
vfi 1
neighbor x.x.x.37 pw-id 37
!
neighbor x.x.x.38 pw-id 38
!
neighbor x.x.x.39 pw-id 39
!
!
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
VPLS & EVPN Seamless Integration - Migration
VFI1 is by default in Split Horizon Group 1
CE2 R37 R39 CE4
• SHG1 protects loops in MPLS Core
• Full Mesh of pseudowires(PW) is required
for Any-to-Any forwarding
R36 MPLS
VFI1
PW_R37 UP
EVI100 is also by default in Split Horizon Group 1
BD1 PW_R38 UP • R36 doesn’t forward data between VFI1 and EVI100
CE1 X PW_R39 UP
l2vpn
bridge group 100
bridge-domain 100
vfi 1
neighbor x.x.x.37 pw-id 37
!
neighbor x.x.x.38 pw-id 38
!
neighbor x.x.x.39 pw-id 39
!
evi 100
!
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
VPLS & EVPN Seamless Integration - Migration
VFI1 is by default in Split Horizon Group 1
CE2 R37 R39 CE4
• SHG1 protects loops in MPLS Core
• Full Mesh of pseudowires(PW) is required
for Any-to-Any forwarding
R36 MPLS
VFI1
PW_R37 UP
EVI1 is also by default in Split Horizon Group 1
BD1 PW_R38 DOWN • R36 doesn’t forward data between VFI1 and EVI100
CE1 X PW_R39 UP
BGP EVPN
EVI100 R38 CE3 R36&R38 run BGP EVPN
• PW_R38 goes DOWN
• Data Forwarding between R36 and R38 via EVI100
l2vpn
bridge group 100
bridge-domain 100
vfi 1
neighbor x.x.x.37 pw-id 37
!
neighbor x.x.x.38 pw-id 38
!
neighbor x.x.x.39 pw-id 39
!
evi 100
!
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
PW & EVPN-VPWS
Seamless Migration
EVPN-VPWS/Legacy-PW Seamless Migration
Supported Modes
CE1 PE38 MPLS PE39 CE2 Discovery: Static/BGP-AD
Signaling: LDP, BGP
LDP based PW
R38 Configuration
l2vpn
xconnect group test
p2p test
interface TenGigE0/0/0/0
neighbor ipv4 3.3.3.39 pw-id 10
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
EVPN-VPWS/Legacy-PW Seamless Migration
CE1 PE38 MPLS PE39 CE2
LDP based PW
R38 Configuration
l2vpn
xconnect group test Allows Tengig0/0/0/0 to be migrated
p2p test
vpws-seamless-integration
interface TenGigE0/0/0/0
neighbor ipv4 3.3.3.39 pw-id 10 Existing LDP based PW is UP and forwarding data
New EVPN-VPWS service is ready and is signaled via BGP EVPN AF
p2p test-new
interface TenGigE0/0/0/0
neighbor evpn evi 1000 service 10
PE40
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 115
EVPN-VPWS/Legacy-PW Seamless Migration
Usecases
Active/Backup PW – Multi-Homed CE
• CE Ethernet Bundle to PE39/40 with maximum link = 1
LDP PW • Link to PE40 is not active
CE1 PE38 PE39 CE2
#1 PE38 EVPN-VPWS Seamless Migration configuration
#2 PE40 EVPN-VPWS Configuration
PE40 PE40 -> CE2 AC is down (not active)
PE38 <-> PE39 LDP PW is UP
#3 CE2 changes ethernet bundle link priorities
PE38 <-> PE39 PW DOWN
PE40 -> Signal EVPN-VPWS
CE1 PE38 LDP PW PE39 CE2 # PE38 <-> PE40 EVPN-VPWS UP
PE40
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
EVPN &
VPLS/VPWS
Interconnect
EVPN & VPLS Interconnect
R36 PE1
CE1 A1
VPLS EVPN
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 118
Virtual Ethernet-Segment (vES)
R36#show evpn ethernet-segment detail
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 119
EVPN & VPWS (Active/Backup) Interconnect
R37 PE2
Backup-PW LACP
Active-PW
R36 PE1
EVPN
• VPWS Active/Backup is Single-Homed from EVPN point of view => VPWS ESI = 0
• A1 Configuration without modification
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 120
EVPN & VPWS (Static-Anycast) Interconnect
Anycast Pseudonode R3637
R37 PE2
MPLS Core/Access LACP
Active-PW
R36 PE1
EVPN
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 121
EVPN ETREE
EVPN ETREE – RT Constrains (Scenario 1a)
• Host connected to Leaf can talk ONLY to device connected to Root
Leaf3
MPLS Root1 H4
H2
Leaf2
Leaf Configuration
evpn
H1 evi 100
bgp
route-target export 1:100
Leaf1 route-target import 1:1000
!
etree
rt-leaf <- MAC Synchronization
!
© 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 123
EVPN ETREE Leaf Label (Scenario 1b)
Root Configuration
No specific Root Configuration
l2vpn
bridge group test • ASR9k/NCS add Leaf ACs to SHG2 automatically
Leaf4 bridge-domain test => Prevents local Leaf to Leaf AC forwarding
interface Bundle-Ether100
!
evi 300
H3
Leaf3
MPLS Root1 H4
H2
Leaf2
Leaf Configuration
l2vpn
H1 bridge group test
bridge-domain test
etree
leaf
Leaf1 !
interface Bundle-Ether100
!
evi 300
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 124
EVPN ETREE Leaf Label (Scenario 1b) - BUM
Leaf Configuration
l2vpn Each Leaf (device with at least one Leaf AC) advertises RT1 per-ESI
bridge group test with ESI 0 with ETREE extended community to distribute ETREE Label
bridge-domain test
etree R28#show bgp l2vpn evpn rd 1.1.1.28:0 [1][1.1.1.28:1][0000.0000.0000.0000.0000][4294967295]/184
leaf Wed Mar 23 03:41:36.734 UTC
! BGP routing table entry for [1][1.1.1.28:1][0000.0000.0000.0000.0000][4294967295]/184, Route Distinguisher: 1.1.1.28:0
Versions:
interface Bundle-Ether100 Process bRIB/RIB SendTblVer
! Speaker 1481327 1481327
evi 300 Local Label: 0
Last Modified: Mar 23 03:21:20.580 for 00:20:17
Paths: (1 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
Leaf4 Advertised to update-groups (with more than one peer):
0.2
Local
0.0.0.0 from 0.0.0.0 (1.1.1.28)
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
H3 Received Path ID 0, Local Path ID 1, version 1481327
Extended community: EVPN E-TREE:0x00:24010 RT:1:3000
Leaf1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 125
EVPN ETREE Leaf Label (Scenario 1b) - Unicast
Leaf Configuration
l2vpn Leaf Advertises local MAC with ETREE extended community
bridge group test Same extended community was used to distribute ETREE Label
bridge-domain test
etree RP/0/RSP0/CPU0:R28#show bgp l2vpn evpn bridge-domain test [2][0][48][682c.7b24.c63d][0]/104
Wed Mar 23 04:13:10.244 UTC
leaf BGP routing table entry for [2][0][48][682c.7b24.c63d][0]/104, Route Distinguisher: 1.1.1.28:300
! Versions:
interface Bundle-Ether100 Process bRIB/RIB SendTblVer
Speaker 1481349 1481349
! Local Label: 24012
evi 300 Last Modified: Mar 23 03:21:48.580 for 00:51:22
Paths: (1 available, best #1)
Advertised to update-groups (with more than one peer):
0.2
Path #1: Received by speaker 0
H1
Leaf1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 126
EVPN ETREE Leaf Label (Scenario 2) per-AC
Root/Leaf Configuration
l2vpn
bridge group test
bridge-domain test
interface Bundle-Ether100 <- interface to H4
Leaf4 interface Bundle-Ether200 <- interface to H5
etree
leaf
!
H3 !
evi 300
H5
Leaf3
MPLS
H2 Root
Leaf2 Leaf H4 Leaf Configuration
Same as Scenario 1b
H1
l2vpn
bridge group test
bridge-domain test
Leaf1 etree
leaf
!
interface Bundle-Ether100
!
evi 300
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 127
EVPN ETREE Summary
Scenario 1a: RT Constrains is simple and HW “friendly”
Unicast/BUM filtering by ingress node => scale benefit
Scenario 1b: Simple configuration, but additional ETREE label must be imposed for BUM
BUM filtered by egress node
Support IRB
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 128
EVPN FRR
Fast Convergence (FRR Data Plane) - Core
Core Failure (Link/Node) – PIC Core
Technology: RSVP-TE/LFA/rLFA/TI-LFA
Transport: IGP -> MPLS, SRv6
Overlay Service: Service Independent
Device: P-Router, Spine
PE2 PE4 L2
P2 S2
X
P1 X
S1
PE1 PE3 L1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 130
Fast Convergence (FRR Control Plane) – DC Leaf/TOR
MAC Mobility
VM/MAC Move
Technology: EVPN Mac Mobility (EVPN RT-2)
Transport: Transport Independent
Overlay Service: EVPN MAC IP ESI Seq. Next-
Device: Leaf/TOR Hop
MAC-1 IP-1 0 1 Leaf-3/4
Sequence number is incremented and
L4 Next-hop is changed to Leaf-3/4
VM1
Move
value will be changed after the host
move
L2 S1
VM1
MAC IP ESI Seq. Next-
Hop
L1
MAC-1 IP-1 0 0 Leaf-1/2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 131
Fast Convergence (FRR CP/DP) – Edge/Leaf/TOR
Leaf/TOR Failure (Link) – EVPN Mass Withdraw
Technology: EVPN RT1 Mass Withdraw
Transport: Transport Independent
Overlay Service: EVPN
Device: Leaf/TOR/Access/Edge
PE2
MAC-CE1 -> ESI1 -> PE1
PE4 X
-> PE2
P2
CE1
P1
PE1 PE3
RT1 ESI1 Mass Withdraw
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 132
Fast Convergence (FRR Data Plane) – Edge L3VPN
Edge Failure (Link) – BGP PIC Edge
Technology: BGP PIC Edge
Transport: MPLS, SRv6 (Transport Independent)
Overlay Service: L3VPN
Device: Access/PE
BGP CE-PE is mandatory!!!
PE2
P2
CE1 L3VPN
P1
PE1
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 133
Fast Convergence (FRR Data Plane) – Edge L2VPN
Edge Failure (Link) – EVPN FRR
Technology: EVPN FRR
Transport: Transport Independent
Overlay Service: EVPN
Device: Access/PE/Leaf/TOR
All-Active Single-Active
PE2 PE2
P2 P2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 134
Fast Convergence (EVPN FRR Data Plane) – Edge
All-Active Single-Active
PE2 PE2
P2 P2
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 135
EVPN FRR - Configuration
All-Active Single-Active
evpn evpn
interface Bundle-Ether100 interface Bundle-Ether100
ethernet-segment ethernet-segment
identifier type 0 36.37.36.37.36.37.36.37.01 identifier type 0 36.37.36.37.36.37.36.37.01
convergence load-balancing-mode single-active
reroute convergence
reroute
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 136
DF Election Convergence Improvements
evpn
interface Bundle-Ether100
ethernet-segment
identifier type 0 36.37.36.37.36.37.36.37.01 BGP Next-Hop Tracking for RT4
load-balancing-mode single-active
convergence
Node Failure Convergence
nexthop-tracking Improvement
reroute
NTP Timestamping for RT4
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 137
EVPN Selective
Multicast
RT6/7/8
EVPN ELAN L2 Selective Multicast – Route-Type 6
RT6 to IGMP Join (Proxy) not supported
Receiver1
Multicast must be received by PE5/6 from source without IGMP join
PE2 PE5
Receiver3
Source1
PE3 PE6
Receiver7
PE4
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 139
EVPN – Native Multicast in the Network Fabric
Source
BL BL
PIM State sync
in EVPN
SP SP
L3
---
L2 L L L L
EVI-x
IGMP Join / Leave
mcast EVI-y
C C
evpn IRB
Receiver Receiver
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 140
EVPN Headend
L3 EVPN Head End (EVPN-PWHE)
HE Modes (PE):
1. Single-Active/Port-Active from Access and All-Active from Core (default)
2. All-Active
A2 PE2
PE1/PE2 Configuration
HE evpn
2. Port-Active EVPN-VPWS
3. Single-Active
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 142
Transport
Integration
EVPN & EVPN-VPWS On-Demand Next Hops (ODN)
DNX Platform
• RT1 and RT3 are advertised with color (color specifies SLA)
R37 R39
R37 R39
R36 R38
R36/37 Configuration
class-map match-any test
match cos 5
end-class-map segment-routing
traffic-eng
on-demand color 100
policy-map per-flow dynamic
class test metric
set forward-class 5 type igp
!
!
interface Bundle-Ether999 !
l2transport on-demand color 1000
service-policy input per-flow per-flow
forward-class 5 color 100
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 145
Summary
Conclusion
• EVPN is an very important complement to BGP based services
• EVPN All-Active Multihomed Service with Distributed Anycast Gateway & Integration to
L3VPN simplifies SPDC/NextGen-CO/WAN Integration
NETCONF
Provisioning YANG
Programmability
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 147
EVPN - Stay Up-To-Date
• https://e-vpn.io/
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 148
Complete your Session Survey
• Please complete your session survey
after each session. Your feedback
is important.
• Complete a minimum of 4 session
surveys and the Overall Conference
survey (open from Thursday) to
receive your Cisco Live t-shirt.
• All surveys can be taken in the Cisco Events Mobile App or
by logging in to the Session Catalog and clicking the
"Attendee Dashboard” at
https://www.ciscolive.com/emea/learn/sessions/session-catalog.html
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 149
Continue
Agenda Your Education
BRKSPG-2835 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 150
Thank you