Professional Documents
Culture Documents
VXLAN Tutorial: THERDTOON Theerasasana
VXLAN Tutorial: THERDTOON Theerasasana
THERDTOON Theerasasana
ttheera@cisco.com
May 2019
Agenda
• Introduction
• VXLAN – Flood and Learn
• VXLAN - BGP EVPN
• Summary
2
Introduction
Traditional Data Center Networking
Layer-2
Baremet al Hypervisor Hypervisor Hypervisor Baremet al Hypervisor Baremet al Baremet al Hypervisor Hypervisor
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Data Center “Fabric” Journey
Layer-3 HSRP HSRP
Layer-2
Spanning-Tree
Baremet al Hypervisor Hypervisor Hypervisor Baremet al Hypervisor Baremet al Baremet al Hypervisor Hypervisor
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
IEEE 802.1Q
Classic 802.1Q
Classic Ethernet IEEE 802.1Q Frame Ethernet DMAC SMAC Etype Payload CRC
Format Frame
Data (Payload)
CRC/FCS
VLAN ID
12 bits
48
MAC-in-IP Encapsulation
Src. MAC Address
Underlay
Header
16 20 Bytes
Checksum
32
50 (54) Bytes of Overhead
Source IP
Outer IP Header Src and Dst addresses
of the VTEPs
Source Dest. IP 32
16
Port
UDP Header VXLAN Port 16
8 Bytes
Hash of the inner L2/L3/L4
UDP Length 16 headers of the original frame.
UDP 4789 Enables entropy for ECMP Load
VXLAN Header
Checksum 0x0000 16 balancing in the Network.
Overlay
Reserved 8
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
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 ☺
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
VXLAN – Flood and Learn
VXLAN Overview (1)
Edge Device
Edge Device
Local LAN
Local LAN Segment
IP Interface
Segment
Physical
Host Physical
Edge Device
Local LAN Host
Segment
Virtual Switch
Virtual Hosts
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
VXLAN Overview (2)
VTEP VTEP
V V
Local LAN
Local LAN Segment
Segment Encapsulation
Physical
Host VTEP V Physical
Local LAN Host
Segment
Virtual Switch
VTEP – VXLAN Tunnel End-Point
VNI/VNID – VXLAN Network Identifier
Virtual Hosts
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
VXLAN Flood & Learn
MAC VNI VTEP MAC VNI VTEP
E1/4
E1/12
V1 V2
E1/9
Host A
MAC_A / IP_A V3 Host B
MAC_B / IP_B
Virtual Switch
Host C
MAC_C / IP_C
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
VTEP Peer Discovery & Address Learning (1)
VXLAN Flood & Learn
MAC VNI VTEP MAC VNI VTEP
1 3
2 4
SMAC: MAC_V1 MAC VNI VTEP
DMAC: 00:01:5E:01:01:01
Underlay
MAC_C 30000 E1/8
E1/9
SIP: IP_V1
DIP: 239.1.1.1
E1/9
MAC_A 30000 IP_V1
Host A
MAC_A / IP_A
UDP V3 Host B
MAC_B / IP_B
VXLAN VNID: 30000 ARP Request for IP_B
Src MAC: MAC_A
Overlay
Host C
MAC_C / IP_C
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
VTEP Peer Discovery & Address Learning (2)
VXLAN Flood & Learn
7
6 5
SMAC: MAC_V2
DMAC: hop-by-hop
Underlay
SIP: IP_V2
DIP: IP_V1
Host A
MAC_A / IP_A V3 UDP Host B
MAC_B / IP_B
VXLAN VNID: 30000
Overlay
ARP Response
SMAC: MAC_B
DMAC: MAC_A
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
VTEP Peer Discovery & Address Learning (3)
VXLAN Flood & Learn
MAC VNI VTEP
Underlay
MAC_Y 30001 E1/8
SIP: IP_V1
DIP: 239.1.1.2
Host X E1/8 MAC_X 30001 V1
MAC_X / IP_X
UDP V3
VXLAN VNID: 30001 ARP Request for IP_Y
Src MAC: MAC_X
Overlay
Host Y
MAC_Y / IP_Y
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
VTEP Peer Discovery & Address Learning (4)
VXLAN Flood & Learn
MAC_Y 30001 V3
Underlay
MAC_Y 30001 E1/8
SIP: IP_V3
DIP: IP_V1
Host X E1/8 MAC_X 30001 V1
MAC_X / IP_X
UDP V3
VXLAN VNID: 30001 ARP Response for IP_Y
Src MAC: MAC_Y
Overlay
Host Y
MAC_Y / IP_Y
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
VXLAN Packet Forwarding (1)
VXLAN Flood & Learn
Underlay
DMAC: hop-by-hop DMAC: MAC_V2
Underlay
SIP: IP_V1 SIP: IP_V1
DIP: IP_V2 DIP: IP_V2
Host A
MAC_A / IP_A
UDP V3 UDP Host B
MAC_B / IP_B
VXLAN VNID: 30000 VXLAN VNID: 30000
Overlay
Overlay
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
VXLAN Packet Forwarding (2)
VXLAN Flood & Learn 3
SMAC: MAC_V1
DMAC: MAC_V3
Underlay
MAC VNI VTEP SIP: IP_V1
DIP: IP_V3
MAC_X 30001 E1/11 UDP
Overlay
SMAC: MAC_X
DMAC: MAC_Y
DMAC: MAC_Y
SIP: IP_X
E1/11
V1 SIP: IP_X
V2
DIP: IP_Y
DIP: IP_Y
1
2
SMAC: MAC_V1 MAC VNI VTEP
DMAC: hop-by-hop
Underlay
MAC_Y 30001 E1/8
SIP: IP_V1
DIP: IP_V3
Host X E1/8 MAC_X 30001 V1
MAC_X / IP_X
UDP V3
SMAC: MAC_X
VXLAN VNID: 30001
DMAC: MAC_Y
Overlay
SMAC: MAC_X
DMAC: MAC_Y 4 SIP: IP_X
DIP: IP_Y
SIP: IP_X Virtual Switch
DIP: IP_Y
Host Y
MAC_Y / IP_Y
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Centralized Gateway (FHRP)
VXLAN Routing
• Centralized Routing in a Layer-2
VXLAN Network VY
• Routing between VNI ( Different VX
Subnet)
• Bridging within VNI (Same Subnet)
V2
• Inter-VXLAN Routing at
Core/Aggregation Layer
V3
• vPC provides MAC state
synchronization and HSRP peering
• Redundant VTEPs share Anycast V1
VTEP IP address in the Underlay
Host Y
• Bottleneck for throughput Host A
VNI 30001
VNI 30000
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
VXLAN Benefits
• Flexible placement of any workload in any rack throughout and between data
centers
• Decoupling between physical and virtual networks
• Large Layer 2 network to provide work load mobility
• Centralized Management, provisioning, and automation, from a controller
• Scale, performance, agility and stream lined operations
• Better utilization of available network paths in the underlying infrastructure
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
VXLAN with BGP EVPN
Ethernet VPN (EVPN)
EVPN MP-BGP
(RFC 7432)
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
EVPN Control Plane - Host and Subnet Routes
• BGP EVPN NLRI*
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Host Advertisements (L2VNI)
Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Host Advertisements (L3VNI)
Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.
2 0000.3002.2101 / 48
Overlay 3002, 65500:3002 192.168.20.101 /32 -
5000, 65500:5000 Route Target for MAC-VRF
10.200.200.107
- MPLS Label2 (L3VNI*)
Leaf Leaf Leaf Leaf Leaf Leaf Leaf - Route Target for IP-VRF
Router MAC
101010110101 101010110101 101010110101
01010101010 01010101010 01010101010
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Distributed IP Anycast Gateway*
VXLAN/EVPN
• Distributed Routing with IP Anycast
Gateway (Integrated Route/Bridge
IRB)
- Routing between VNI (Different Subnet)
- Bridging within VNI (Same Subnet)
V2
• Inter-VXLAN Routing Leaf/Access
Layer
- All Leafs share gateway IP and MAC for V3
a Subnet (No HSRP)
- A Host will always find its Gateway V1
directly attached anywhere it moves
Host Y
VNI 30001
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Distributed IP Anycast Gateway
192.168.20.1
192.168.10.1 2020.0000.AAAA • Distributed First-Hop Routing on
2020.0000.AAAA
Spine Spine Spine Spine
Edge Device
- All Edge Device share same Gateway
Overlay IP and MAC address
- Pervasive Gateway approach
Leaf Leaf Leaf Leaf Leaf Leaf Leaf • Gateway is always active
- No redundancy protocol for hello or
state exchange
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Distributed IP Anycast Gateway
192.168.20.1
192.168.10.1 2020.0000.AAAA • Distributed First-Hop Routing on
2020.0000.AAAA
Spine Spine Spine Spine
Edge Device
- All Edge Device share same Gateway
Overlay IP and MAC address
- Pervasive Gateway approach
Leaf Leaf Leaf Leaf Leaf Leaf Leaf • Gateway is always active
- No redundancy protocol for hello or
state exchange
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Anycast – One-to-Nearest Association
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
VXLAN Routing – Symmetric (A to C)
Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.
2 0000.3001.1101 / 48 3001, 65500:3001 192.168.10.101/32 5000, 65500:5000 10.200.200.101
2 0000.3002.2102 / 48 3002, 65500:3002 192.168.20.101/32 5000, 65500:5000 10.200.200.107
Spine Spine Spine Spine
0000.3001.1101 2020.0000.AAAA
Baremetal 192.168.10.101 192.168.20.101 Baremetal Baremetal
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
VXLAN Routing – Symmetric (C to A)
Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.
2 0000.3001.1101 / 48 3001, 65500:3001 192.168.10.101/32 5000, 65500:5000 10.200.200.101
2 0000.3002.2102 / 48 3002, 65500:3002 192.168.20.101/32 5000, 65500:5000 10.200.200.107
Spine Spine Spine Spine
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Summary
Summary
• Overlays (VXLAN) for Network Virtualization
• Layer-3 in the Underlay – Defines the Topology
• Layer-2 and Layer-3 in the Overlay – Defines the Services
• End-Points State exists in the Overlay
Cisco VXLAN Tutorial © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Thank you