LTRDCT 2223
LTRDCT 2223
In a Data Center
Lilian Quan, Principle Engineer, INSBU
Erum Frahim, Technical Leader, Services
Kevin Cook, Solution Architecture
LTRDCT-2223
Agenda
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
Lab Introduction
Agenda
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
Lab Introduction
Recap – What is VXLAN ?
• VXLAN is point to multi-point tunneling mechanism to extend Layer 2 networks over an IP network
VXLAN Tunnel
Ethernet Frames
IP Network IP Addr
NETWORK
OVERLAY
Host1 Host4
2.2.2.2
IP Addr
Host2 Switch 1 1.1.1.1 Switch 2 Host5
Host3 Host6
IP/UDP Packets IP Addr
3.3.3.3
Host7
Switch 3 Host8
Host9
Outer Outer Outer Outer Outer Outer VXLAN Inner Inner Optiona Original CRC
PLANE
DATA
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Why VXLAN?
VXLAN provides a Network with Segmentation, IP Mobility, and Scale
• “Standards” based Overlay
• Leverages Layer-3 ECMP – all links forwarding
• Increased Name-Space to 16M identifier
• Segmentation and Multi-Tenancy
• Integration of Physical and Virtual
• It’s SDN
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
VXLAN VTEP (Virtual Tunnel End Point)
VXLAN terminates its tunnels on VTEPs. Each VTEP has two interfaces:
• Local Lan - provide bridging function for local hosts,
• IP Interface to underlay – send/receive VXLAN encapsulated packets
Tunnel
Ethernet Frames Endpoints
Host Host
1 4
Switch
Switch
Local LAN
Local LAN
Interface
Interface
Host
IP Addr IP Network IP Addr
Host
IP
IP
1.1.1.1 2.2.2.2
2 5
Host Host
3 IP/UDP Packets 6
IP Addr
3.3.3.3
Host
IP Interface 7
Host
Switch 8
Local LAN Host
9
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
VXLAN Underlay Network – IP Routing
• IP routed Network
• Flexible topologies
• Recommend a network with redundant paths using ECMP for load sharing
• Support any routing protocols --- OSFP, EIGRP, IS-IS, BGP, etc.
• All proven best practices for IP routing network apply
IP Transport Network
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
VXLAN Underlay Network – Typical DC Topologies
Fabric Design
3-Tier Design
DC Spine
DC Core
DC Aggregation
DC Access
DC Leaf
DC Interconnect
Collapsed Core/Aggregation
2-Tier Design
DC-1 DC-2
DC Core/ Aggregation
DC Access
WAN
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Agenda
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
VxLAN Capability on Nexus 9000 Series Switches
Lab Introduction
Flood-&-Learn VxLAN
No VXLAN control plane
Learning through data-driven flood-&-learn
End System
End System
VTEP-3
IP-3
VTEP 3
Multicast/Unicast
Replication
VTEP-1 VTEP-2
IP Network
VTEP 1 VTEP 2 End System B
End System A
IP-1 IP-2 MAC-B
MAC-A
IP-A IP-B
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Challenges with Flood-&-Learn VXLAN Deployments
Scale, Mobility and Security Limitations
VXLAN Overlay
VTEP VTEP VTEP VTEP VTEP
VTEP VTEP
Barrier for Scaling out Large Data Centers and Cloud Deployments
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
VxLAN Capability on Nexus 9000 Series Switches
Lab Introduction
What is VXLAN/EVPN?
• Standards based Overlay (VXLAN) with Standards based Control-Plane (BGP)
• Layer-2 MAC and Layer-3 IP information distribution by Control-Plane (BGP)
• Forwarding decision based on Control-Plane (minimizes flooding)
• Integrated Routing/Bridging (IRB) for Optimized Forwarding in the Overlay
EVPN over NVO Tunnels (VXLAN, NVGRE, MPLSoE) for Data Center Fabric encapsulations
Provides Layer-2 and Layer-3 Overlays over simple IP Networks
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
FYI
RFC 7348 Virtual eXtensible Local Area Data Plane Flood and Learn based implemented
Network
RFC 7432 BGP MPLS based Ethernet VPNs EVPN Control Plane Control Plane is based on this RFC
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Functions of VXLAN/EVPN
Host/Network Advertise host/network reachability
Reachability information through control protocol (MP-
Advertisement BGP)
VTEP Security & Authenticate VTEPs through BGP peer
Authentication authentication
Distributed
Seamless and Optimal vm-mobility
Anycast Gateway
Early ARP termination
ARP Suppression Localize ARP learning process
Minimize network flooding
Dynamic Ingress
Replication Unicast Alternative to Multicast underlay
Dynamically discover remote peers for
Ingress Replication
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
EVPN Primer --- MP-BGP Review
Virtual Routing and Forwarding (VRF)
Layer-3 segmentation for tenants’ routing space
BGP advertisement:
VPN-IPv4 Addr = RD:16.1/16
Route Distinguisher (RD): BGP Next-Hop = PE1
8-byte field, VRF parameters; unique value to make eBGP:
Route Target = 100:1
Label=42 eBGP:
VPN IP routes unique: RD + VPN IP prefix 16.1/16 16.1/16
IP Subnet IP Subnet
P P
Selective distribute VPN routes: CE1
PE1 Blue VPN PE2
CE2
VPN Address-Family:
Distribute the MP-BGP VPN routes
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
MP-BGP for VXLAN EVPN Control Plane
EVPN Control Plane – Reachability Distribution
• EVPN Control Plane -- Host and Subnet Route Distribution
BGP Update
Spine
• Host-MAC
• Host-IP
• Internal IP Subnet
• External Prefixes VTEP VTEP VTEP VTEP Leaf
Use MP-BGP with EVPN Address Family on leaf nodes to distribute internal
host MAC/IP addresses, subnet routes and external reachability information
MP-BGP enhancements to carry up to 100s of thousands of routes with
reduced convergence time
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
EVPN Control Plane -- Host Advertisement
Install host info to RIB/FIB:
Install host info to RIB/FIB:
H-MAC-1 MAC table
BGP Update: H-MAC-1 MAC table
H-IP-1 VRF IP host table 4 BGP Update:
H-MAC-1 4 H-IP-1 VRF IP host table
H-MAC-1
Host VNI VTEP H-IP-1
IP
H-IP-1 3 Route VTEP-1 MAC Host VNI VTEP
VTEP-1 3
Reflector VNI-1 IP
C-1 H-IP-1 VNII-1 VTEP-1 VNI-1
H-MAC-1 H-IP-1 VNII-1 VTEP-1
2
VTEP-2
VTEP-3 BGP Update:
H-MAC-1
H-IP-1
VTEP-1
VNI-1
VTEP-1
1
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
VXLAN BGP Control Plane
EVPN Control Plane --- Host Movement
NLRI: Spine
• Host H-MAC-1, H-IP-1
• NVE VTEP-1
• VNI 5000
Ext. Community:
• Encapsulation: VXLAN VTEP-1 VTEP-2 VTEP-3 VTEP-4 Leaf
• Cost
• Sequence number :0 Host 1
H-MAC-1
H-IP-1
VLAN 10
VXLAN 5000
1. Host 1 attaches to VTEP-1
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
VXLAN BGP Control Plane
EVPN Control Plane --- Host Movement
NLRI: Spine
• Host H-MAC-1, H-IP-1
• NVE VTEP-3
• VNI 5000
Ext. Community:
• Encapsulation: VXLAN VTEP-1 VTEP-2 VTEP-3 VTEP-4 Leaf
• Cost
• Sequence number: 1 Host 1
H-MAC-1
H-IP-1
VLAN 10
VXLAN 5000
1. Host 1 moves to VTEP-3 from VTEP-1
2. VTEP-3 detects Host 1, sends MP-BGP update for Host 1 with its own VTEP address and a new seq #1
3. Other VTEPs learn about the new route of Host 1 MAC IP VNI Next-Hop Encap Seq#
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
VXLAN Routing
VXLAN EVPN has two slightly different integrated Route/Bridge (IRB) semantics
Routing ?
IP Transport Network
SVI A SVI B
VTEP-1 VTEP-2 VTEP-3 VTEP-4
Host 1 Host 2
H-MAC-1 H-MAC-2
H-IP-1 H-IP-2
VNI-A VNI-B
Asymmetric Symmetric
• Routing on the ingress VTEP and bridging • Routing on both the ingress and the egress
on the egress VTEP VTEPs
• Requires each VTEP to have all VNIs – • A VTEP only needs to have VNIs in which
can result in forwarding table resource they have local hosts. Optimal utilization of
wastage. forwarding table resources
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
EVPN Control Plane --- ARP Suppression
Minimize flood-&-learn behavior for host learning
1
Host-1 sends ARP
Request for H-IP-2
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Distributed Anycast Gateway in MP-BGP EVPN
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
EVPN Control Plane -- Head-end Replication
Head-end Replication (aka. Ingress replication):
Eliminate the need for underlay multicast to transport overlay BUM traffic
Multicast-Free Spine
Underlay
1
Host-1 sends BUM
traffic into the
VXLAN VNI
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Next-Gen VXLAN Fabric with BGP-EVPN Control Plane
Multi-Tenancy, Seamless Host Mobility and Security at Cloud Scale
Route Route
Reflector Reflector
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
VxLAN Capability on Nexus 9000 Series Switches
Lab Introduction
VXLAN Inter-PoD Extension
L3 Core L2 Link
L3 Link
VTEP
VTEP
VXLAN Overlay
(VLAN Extension)
Pod 1 Pod 2
IP GW IP GW
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
VXLAN Fabric Design with MP-iBGP EVPN
RR RR Spine
MP-iBGP Sessions
VXLAN Overlay
MP-iBGP EVPN
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
VXLAN Fabric Design with MP-eBGP EVPN
AS 65000
Spine
MP-eBGP Sessions
VTEP
VTEP VTEP VTEP VTEP VTEP
Leaf
VXLAN Overlay
Spine EVPN VRF/VRFs Space
VXLAN Overlay
EVPN MP-BGP Border Leaf
VTEP
VTEP VTEP VTEP VTEP VTEP
Leaf
Routing
Protocol
of
Choice Global Default VRF
Or User Space VRFs
IP Routing
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
FYI
EVPN VXLAN External Routing with BGP
Sample Configuration Router bgp 100
vrf evpn-tenant-1
address-family ipv4 unicast
network 20.0.0.0/24
neighbor 30.10.1.2 remote-as 200
RR RR address-family ipv4 unicast
Spine prefix-list outbound-no-hosts out
VXLAN Overlay
Border Leaf interface Ethernet2/9.10
EVPN VRF VTE
Instance VTE
Space mtu 9216
VTE VTE VTEP
P P P P encapsulation dot1q 10
vrf member evpn-tenant-1
ip address 30.10.1.1/30
interface Ethernet1/50.10
mtu 9216
encapsulation dot1q 10
ip address 30.10.1.2/30
VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP
Inter-DC
EVPN eBGP (multi-hop)
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
EVPN Configuration for Stretched Fabric
VXLAN Overlay
RR RR RR EVPN
RR VRF/VRFs Space
DC #1 DC #2
iBGP/eBGP
EVPN iBGP
DCI Border Leaf DCI Border Leaf
iBGP/eBGP
EVPN iBGP
VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP
Multi-hop
Inter-DC
eBGP
EVPN eBGP (multi-hop)
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
VXLAN EVPN Stretched Fabric (Alternative Option)
VXLAN Overlay
RR RR RR EVPN
RR VRF/VRFs Space
DC #1 DC #2
EVPN iBGP Border Leaf Border Leaf EVPN iBGP
VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP VTEP
EVPN Domain #2
EVPN Domain #1
VTEP VTEP
VLAN hand-off
VLAN hand-off
Flood-&-Learn
Flood-&-Learn Inter-DC EVPN
OVT/VPLS
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Agenda
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
Lab Introduction
FYI
iBGP
V1 V2
Enable BGP for Host reachability
V3
*Simplified BGP configuration; would have 4 BGP peers (RR)
IGP not shown
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
FYI
# Leaf (V1)
router bgp 65500 Send Extended BGP Community
router-id 10.10.10.10 to distribute EVPN route attributes
address-family ipv4 unicast V3
neighbor 10.10.10.1 remote-as 65500
update-source loopback0
address-family l2vpn evpn
send-community both
*
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
FYI
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
FYI
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
FYI
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
FYI
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
FYI
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
FYI
peer-gateway
switches can forward traffic
ip arp synchronize for each other’s router MAC
address
# VPC Peer-Link
interface port-channelXX V5
switchport mode trunk
vpc peer-link
V4
# VPC Domain Routing Adjacency Routed Interface (SVI) for routing
interface Vlan3999
no shutdown
adjacency across VPC Peer-Link
ip address 10.254.254.1/30
interface loopback0
ip router ospf 1 area 0.0.0.0 ip address 10.10.10.4/32
ip ospf network point-to-point ip address 10.10.10.99/32 secondary
ip pim sparse-mode Host D
VNI 30000
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
FYI
eBGP EVPN Configuration (1)
Next-hop Unchange
• BGP next-hop is used as the tunnel tail
end address. It shall be the advertising
eBGP configuration on a spine switch
VTEP’s address.
• Ensure the next-hop in the BGP route route-map permit-all permit 10
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
FYI
eBGP EVPN Configuration(2)
Manually configure import/export route-target
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Agenda
VxLAN Overview
Flood-&-Learn VXLAN
VXLAN with MP-BGP EVPN Control Plane
VXLAN Design Options
MP-BGP EVPN VXLAN Configuration
Lab Introduction
Lab Overview
Module Details
• Module 1 – Network Based Overlay DC1: In this module, students will
configure a network based overlay with Nexus 9000 switches and use them
as a VTEP. Students will also learn how to extend the Anycast gateway
using BGP EVPN.
• Module 2 – FW-Security Zone : In this module, students will create the
secure zone via placing the FW ( in transparent mode) between the Fabric
and External Connectivity.
• Module 3- MultiPOD: In this module, students will be able to extend the
VLANs from the first DC/POD to the second DC/POD and able to stretch the
fabric.
• Module 4- (Bonus): InterOp with Host based and Network based VXLAN
clients
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Lab Topology
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Network Overlay DC1
Using BGP EVPN for Control Plane
• Using OSPF for underlay
• IBGP-for overlay-VXLAN EVPN
control plane- Route Reflectors are
on Spines S11 and S12
• Ingress Replication for the BUM
Traffic
• Each student has their own VRF
that will be representative of multi-
tenancy.
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Security Module
Creating the Security Zone via VXLAN
• The Hosts in the Secured Zone are in VXLAN X53.
• Transparent FW is attached to Edge E11-( No redundancy in this lab).
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Firewall Usecase Flow
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
DC2- Stretch Fabric
Using EBGP EVPN for Underlay/Overlay
• Using EBGP for Underlay/Overlay
• Ingress Replication for the BUM Traffic.
• One of the VLAN X51 will be stretch from DC1 to DC2.
• Each student has their own VRF that will be representative of multi-tenancy.
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Manual Overview (1)
• Manual available at
https://cisco.box.com/LTRDCT-2223-Manual
• Password will be provided by proctor
• Any time you see text highlighted in cyan, change the numbers to your pod
number – Pod2 is always used as a sample
• Change XX to your two digit pod number (Pod1 = 01, Pod10 = 10)
• Change X to your single/two digit pod number (Pod1 = 1, Pod10 = 10)
• Only type commands that are shown in a box. Commands shown under
“Configuration Sample” are not meant to be typed into the devices.
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Manual Overview (2)
• Manual available at
https://cisco.box.com/LTRDCT-2223-Manual
• RDP Server: vxlanlab.ciscolive.com:3390
• Username: vxlan\PODxuser
• Password:
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Complete Your Online Session Evaluation
• Give us your feedback to be
entered into a Daily Survey
Drawing. A daily winner will
receive a $750 Amazon gift card.
• Complete your session surveys
through the Cisco Live mobile
app or from the Session Catalog
on CiscoLive.com/us.
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs
• Lunch & Learn
• Meet the Engineer 1:1 meetings
• Related sessions
LTRDCT-2223 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Please join us for the Service Provider Innovation Talk featuring:
Yvette Kanouff | Senior Vice President and General Manager, SP Business
Joe Cozzolino | Senior Vice President, Cisco Services