+ All Categories
Home > Documents > Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum...

Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum...

Date post: 20-Oct-2019
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
36
VXLAN Tutorial THERDTOON Theerasasana [email protected] May 2019
Transcript
Page 1: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

VXLAN Tutorial

THERDTOON Theerasasana

[email protected]

May 2019

Page 2: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

• Introduction

• VXLAN – Flood and Learn

• VXLAN - BGP EVPN

• Summary

Agenda

2

Page 3: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

Introduction

Page 4: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Traditional Data Center Networking

4

Layer-2Layer-2 Layer-2

Layer-2 Layer-2Layer-2 Layer-2

Hypervisor HypervisorHypervisor HypervisorBaremet al Baremet al Baremet alBaremet al Hypervisor Hypervisor

Spanning-Tree

Layer-3

Layer-2

HSRP HSRP

IEEE 802.1Q

Page 5: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Data Center “Fabric” Journey

5

Layer-2Layer-2 Layer-2

Layer-2 Layer-2Layer-2 Layer-2

Hypervisor HypervisorHypervisor HypervisorBaremet al Baremet al Baremet alBaremet al Hypervisor Hypervisor

Spanning-Tree

Layer-3

Layer-2

HSRP HSRP

Page 6: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

IEEE 802.1Q

Classic Ethernet IEEE 802.1Q Frame Format

• Traditionally VLAN is expressed over 12 bits (802.1Q tag)• Limits the maximum number of

segments in a Data Center to 4096 VLANs

6

Destination MAC (DMAC)

Source MAC (SMAC)

802.1QTPID

0x8100(16 bits)

TCI

PCP(3 bits)

CFI(1 bits)

VID(12 bits)

Ether Type (Etype)

Data (Payload)

CRC/FCS

4 bytes

VLAN ID12 bits

TPID = Tag Protocol Identifier, TCI = Tag Control Information, PCP = Priority Code Point, CFI = Canonical Format Indicator, VID = VLAN Identifier

DMAC SMAC Etype CRCPayload802.1QClassic

EthernetFrame

Page 7: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Overview• Virtual eXtensible LAN

• Standards based Encapsulation• RFC 7348

• Uses UDP-Encapsulation

• Transport Independent• Layer-3 Transport (Underlay)

• Transport Independent• Layer-3 Transport (Underlay)

• VXLAN leverages the VNI field with a total address space of 24 bits• Support of ~16M segments

• The VXLAN Network Identifier (VNI/VNID) is part of the VXLAN Header

7

OuterIP

OuterMAC

CRC(new)

VXLANFrame

DMAC SMAC Etype Payload

802.1Q

802.1Q header removed

Classic EthernetFrame

Original Layer 2 Frame

20B + 8B +8B + 14B* = 50 Bytes of total overhead

VXLANUDP

20B14B 8B 14B 4B8B

DMAC SMAC Etype CRCPayload802.1Q802.1Q

Page 8: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Frame FormatMAC-in-IP Encapsulation

8

Underlay

Outer IP Header

Outer MAC Header

UDP Header

VXLAN Header

Original Layer-2 Frame Ove

rlay

14 Bytes

(4 Bytes Optional)

Ether Type

0x0800

VLAN ID

Tag

VLAN Type

0x8100

Src. MAC Address

Dest. MAC Address 48

48

16

16

16

20 Bytes

Dest. IP

Source IP

Header Checksum

Protocol 0x11 (UDP)

IP HeaderMisc. Data

72

8

16

32

32

8 Bytes

Checksum 0x0000

UDP Length

VXLAN Port

Source Port

16

16

16

16

8 Bytes

Reserved

VNI

Reserved

VXLAN Flags RRRRIRRR 8

24

24

8

Src VTEP MAC Address

Next-Hop MAC Address

Src and Dst addressesof the VTEPs

Allows for 16M possible Segments

UDP 4789

Hash of the inner L2/L3/L4 headers of the original frame. Enables entropy for ECMP Load balancing in the Network.

50 (

54)

Byt

es o

f O

verh

ead

Page 9: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

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 ☺

9

Page 10: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

VXLAN – Flood and Learn

Page 11: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Overview (1)

11

Local LAN Segment

Physical Host

Local LAN Segment

Physical Host

Virtual Hosts

Local LAN Segment

Virtual Switch

Edge Device

Edge Device

Edge Device

IP Interface

Page 12: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Overview (2)

12

Local LAN Segment

Physical Host

Local LAN Segment

Physical Host

VTEP

VTEP

VTEP

VV

V

Encapsulation

Virtual Hosts

Local LAN Segment

Virtual Switch

VTEP – VXLAN Tunnel End-Point

VNI/VNID – VXLAN Network Identifier

Page 13: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Flood & Learn

13

V1

V3

MAC VNI VTEP

MAC_A 30000 E1/12

Host BMAC_B / IP_B

MAC VNI VTEP

MAC_B 30000 E1/4

Virtual Switch

MAC VNI VTEP

MAC_C 30000 E1/9

V2

Host AMAC_A / IP_A

Host CMAC_C / IP_C

E1/12

E1/9

E1/4

Page 14: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

E1/12

E1/9

E1/4

VTEP Peer Discovery & Address Learning (1) VXLAN Flood & Learn

14

V1

V3U

nderlay

SIP: IP_V1

DIP: 239.1.1.1

SMAC: MAC_V1

DMAC: 00:01:5E:01:01:01

UDP

VXLAN VNID: 30000

ARP Request

SMAC: MAC_A

DMAC: FF:FF:FF:FF:FF:FF

Overlay

2

MAC VNI VTEP

MAC_A 30000 E1/12

Host B

MAC_B / IP_B

MAC VNI VTEP

MAC_B 30000 E1/4

MAC_A 30000 IP_V1

Virtual Switch

ARP Request for IP_B

Src MAC: MAC_A

Dst MAC: FF:FF:FF:FF:FF:FF4

MAC VNI VTEP

MAC_C 30000 E1/8

MAC_A 30000 IP_V1

V2

3

Host A

MAC_A / IP_A

1

ARP Request for IP_B

Src MAC: MAC_A

Dst MAC: FF:FF:FF:FF:FF:FF

3

Host C

MAC_C / IP_C

ARP Request for IP_B

Src MAC: MAC_A

Dst MAC: FF:FF:FF:FF:FF:FF

4

MAC VNI VTEP

MAC_B 30000 E1/4

MAC VNI VTEP

MAC_C 30000 E1/9

Page 15: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

E1/12E1/4

VTEP Peer Discovery & Address Learning (2) VXLAN Flood & Learn

15

Host A

MAC_A / IP_A Host B

MAC_B / IP_BV3

ARP Response from IP_B

Src MAC: MAC_B

Dst MAC: MAC_A

5

MAC VNI VTEP

MAC_B 30000 E1/4

MAC_A 30000 IP_V1

MAC VNI VTEP

MAC_A 30000 E1/12

MAC_B 30000 IP_V2

ARP Response for IP_B

Src MAC: MAC_B

Dst MAC: MAC_A

7

V2V1

Underlay

SIP: IP_V2

DIP: IP_V1

SMAC: MAC_V2

DMAC: hop-by-hop

UDP

VXLAN VNID: 30000

ARP Response

SMAC: MAC_B

DMAC: MAC_A

Overlay

6

MAC VNI VTEP

MAC_A 30000 E1/12

Page 16: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

E1/11

VTEP Peer Discovery & Address Learning (3) VXLAN Flood & Learn

16

Host X

MAC_X / IP_X

Virtual Switch

V1

V3

V2

ARP Request for IP_Y

Src MAC: MAC_X

Dst MAC: FF:FF:FF:FF:FF:FF4

ARP Request for IP_Y

Src MAC: MAC_X

Dst MAC: FF:FF:FF:FF:FF:FF

1

Underlay

SIP: IP_V1

DIP: 239.1.1.2

SMAC: MAC_V1

DMAC: 00:01:5E:01:01:02

UDP

VXLAN VNID: 30001

ARP Request

SMAC: MAC_X

DMAC: FF:FF:FF:FF:FF:FF

Overlay

23

MAC VNI VTEP

MAC_Y 30001 E1/8

MAC_X 30001 V1

MAC VNI VTEP

MAC_X 30001 E1/11

Host Y

MAC_Y / IP_Y

E1/8

Page 17: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

E1/11

Host X

MAC_X / IP_X

VTEP Peer Discovery & Address Learning (4) VXLAN Flood & Learn

17

MAC VNI VTEP

MAC_X 30001 E1/11

MAC_Y 30001 V3

V2V1

Virtual Switch

ARP Response for IP_Y

Src MAC: MAC_Y

Dst MAC: MAC_X5

V3

MAC VNI VTEP

MAC_Y 30001 E1/8

MAC_X 30001 V1

7

ARP Response for IP_Y

Src MAC: MAC_Y

Dst MAC: MAC_X

Underlay

SIP: IP_V3

DIP: IP_V1

SMAC: MAC_V3

DMAC: hop-by-hop

UDP

VXLAN VNID: 30001

ARP Response

SMAC: MAC_Y

DMAC: MAC_X

Overlay

6

Host Y

MAC_Y / IP_Y

MAC VNI VTEP

MAC_X 30001 E1/11

E1/8

Page 18: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Packet Forwarding (1)VXLAN Flood & Learn

18

Host A

MAC_A / IP_A Host B

MAC_B / IP_BV3

4

MAC VNI VTEP

MAC_B 30000 E1/4

MAC_A 30000 V1

MAC VNI VTEP

MAC_A 30000 E1/12

MAC_B 30000 V2

V2V1SIP: IP_A

DIP: IP_B

SMAC: MAC_A

DMAC: MAC_B

1

SIP: IP_A

DIP: IP_B

SMAC: MAC_A

DMAC: MAC_B

Underlay

SIP: IP_V1

DIP: IP_V2

SMAC: MAC_V1

DMAC: hop-by-hop

UDP

VXLAN VNID: 30000

SMAC: MAC_A

DMAC: MAC_B

SIP: IP_A

DIP: IP_B

Overlay

2

SIP: IP_V1

DIP: IP_V2

SMAC: hop-by-hop

DMAC: MAC_V2

Underlay

VXLAN VNID: 30000

SMAC: MAC_A

DMAC: MAC_B

SIP: IP_A

DIP: IP_B

UDP

Overlay

3

E1/12E1/4

Page 19: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

E1/11

E1/8

VXLAN Packet Forwarding (2) VXLAN Flood & Learn

19

V2

Underlay

SIP: IP_V1

DIP: IP_V3

SMAC: MAC_V1

DMAC: hop-by-hop

UDP

VXLAN VNID: 30001

SMAC: MAC_X

DMAC: MAC_Y

SIP: IP_X

DIP: IP_Y

Overlay

2

Virtual Switch

MAC VNI VTEP

MAC_Y 30001 E1/8

MAC_X 30001 V1Host X

MAC_X / IP_X

1

MAC VNI VTEP

MAC_X 30001 E1/11

MAC_Y 30001 V3

SIP: IP_X

DIP: IP_Y

SMAC: MAC_X

DMAC: MAC_Y

V3

V1

4 SIP: IP_X

DIP: IP_Y

SMAC: MAC_X

DMAC: MAC_Y

Underlay

SIP: IP_V1

DIP: IP_V3

SMAC: MAC_V1

DMAC: MAC_V3

UDP

VXLAN VNID: 30001

SMAC: MAC_X

DMAC: MAC_Y

SIP: IP_X

DIP: IP_Y

Overlay

3

Host Y

MAC_Y / IP_Y

Page 20: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Centralized Gateway (FHRP)

• Centralized Routing in a Layer-2 VXLAN Network• Routing between VNI ( Different

Subnet)

• Bridging within VNI (Same Subnet)

• Inter-VXLAN Routing at Core/Aggregation Layer

• vPC provides MAC state synchronization and HSRP peering• Redundant VTEPs share Anycast

VTEP IP address in the Underlay

• Bottleneck for throughput

VXLAN Routing

20

Host Y

VNI 30001

Host A

VNI 30000

V1

V3

VX

VY

V2

Page 21: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

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

21

Page 22: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

VXLAN with BGP EVPN

Page 23: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Ethernet VPN (EVPN)

23

Overlay (NVO3)

(RFC 8365)

Provider Backbone Bridges

(RFC 7623)

MPLS

(RFC 7432)

EVPN MP-BGP

(RFC 7432)

• Standards based Control-Plane- RFC 7432- Uses Multiprotocol BGP

Page 24: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

EVPN - Host and Subnet Route Distribution

24

• Host Route Distribution decoupled from the Underlay protocol

• Use MultiProtocol-BGP (MP-BGP) on the Leaf nodes to distribute internal Host/Subnet Routes and external reachability information

• Route-Reflectors (RR) deployed for scaling purposes

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

RR RR

Page 25: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

EVPN Control Plane - Host and Subnet Routes

25

• BGP EVPN NLRI*

• Host MAC (Route Type 2)- MAC only, Single VNI, Single

Route Target

• Host MAC+IP (Route Type 2)- MAC and IP, Two VNI, Two

Route Target, Router MAC

• Internal and External Subnet Prefixes (Route Type 5)- IP Subnet Prefix, Single VNI,

Single Route Target

*NLRI: Network Layer Reachability Information (BGP Update Format)

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

Page 26: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Host Advertisements (L2VNI)

26

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

Baremetal BaremetalBaremetal

Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.

2 0000.3001.1101 / 48 3001, 65500:3001 10.200.200.101

Host AMAC: 0000.3001.1101

Host BMAC: 0000.3001.1102

Host CMAC: 0000.3002.2101

10101011010101010101010

10101011010101010101010

10101011010101010101010

*L2VNI: VNI for all Bridging operation (”VLAN-VNI”)

Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.

2 0000.3001.1101 / 48 3001, 65500:3001 10.200.200.101

2 0000.3001.1102 / 48 3001, 65500:3001 10.200.200.104

Type MAC / Length L2VNI / RT IP / Length L3VNI / RT Next-Hop Seq.

2 0000.3001.1101 / 48 3001, 65500:3001 10.200.200.101

2 0000.3001.1102 / 48 3001, 65500:3001 10.200.200.104

2 0000.3002.2101 / 48 3002, 65500:3002 10.200.200.107

• Host MAC (Route Type 2)- MAC- MPLS Label1 (L2VNI*)- Route Target for MAC-VRF

• MAC attributes are Mandatory

Page 27: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

Host Advertisements (L3VNI)

27

Baremetal

Host AMAC: 0000.3001.1101

IP: 192.168.10.101

Baremetal

Host BMAC: 0000.3001.1102

IP: 192.168.10.102

Baremetal

Host CMAC: 0000.3002.2101

IP: 192.168.20.101

10101011010101010101010

10101011010101010101010

10101011010101010101010

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

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.3001.1102 / 48 3001, 65500:3001 192.168.10.102 /32 5000, 65500:5000 10.200.200.104

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.3001.1102 / 48 3001, 65500:3001 192.168.10.102 /32 5000, 65500:5000 10.200.200.104

2 0000.3002.2101 / 48 3002, 65500:3002 192.168.20.101 /32 5000, 65500:5000 10.200.200.107

• Host MAC+IP (Route Type 2)- MAC and IP- MPLS Label1 (L2VNI)- Route Target for MAC-VRF- MPLS Label2 (L3VNI*)- Route Target for IP-VRF- Router MAC

• IP Attributes are Optional

• Populated through ARP/ND

*L3VNI: VNI for all Routing operation (”VRF-VNI”)

Page 28: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Distributed IP Anycast Gateway*

• Distributed Routing with IP AnycastGateway (Integrated Route/Bridge IRB)- Routing between VNI (Different Subnet)

- Bridging within VNI (Same Subnet)

• Inter-VXLAN Routing Leaf/Access Layer- All Leafs share gateway IP and MAC for

a Subnet (No HSRP)

- A Host will always find its Gateway directly attached anywhere it moves

VXLAN/EVPN

28

Host Y

VNI 30001

Host A

VNI 30000

V1

V3

V2

*Requires EVPN Control-Plane.

Page 29: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Distributed IP Anycast Gateway

29

• Distributed First-Hop Routing on Edge Device- All Edge Device share same Gateway

IP and MAC address- Pervasive Gateway approach

• Gateway is always active- No redundancy protocol for hello or

state exchange

• Distributed and smaller state- Only local End-Points ARP entries

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

192.168.10.12020.0000.AAAA

192.168.20.12020.0000.AAAA

Page 30: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

Distributed IP Anycast Gateway

30

• Distributed First-Hop Routing on Edge Device- All Edge Device share same Gateway

IP and MAC address- Pervasive Gateway approach

• Gateway is always active- No redundancy protocol for hello or

state exchange

• Distributed and smaller state- Only local End-Points ARP entries

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

192.168.10.12020.0000.AAAA

192.168.20.12020.0000.AAAA

Page 31: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

SpineSpine Spine Spine

Overlay

Leaf LeafLeaf LeafLeaf Leaf Leaf

Anycast – One-to-Nearest Association

31

Baremetal

Host A

Baremetal

Host B

Baremetal

Host C

• Network Addressing and Routing Methodology

• Datagrams sent from a single Sender to the Topologically Nearest Node

• Group of potential Receivers, all identified by the same Destination Address

*L3VNI: VNI for all Routing operation (”VRF-VNI”)

Page 32: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Routing – Symmetric (A to C)

32

SpineSpine Spine Spine

Overlay

VTEP VTEPVTEP VTEPVTEP VTEP VTEP

Baremetal

Host AMAC: 0000.3001.1101

IP: 192.168.10.101

Baremetal

Host BMAC: 0000.3001.1102

IP: 192.168.10.102

Baremetal

Host CMAC: 0000.3002.2101

IP: 192.168.20.101

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

SIP DIP VXLAN SMAC DMAC SIP DIPPayload

10.200.200.101 10.200.200.107 5000 0200.0ade.de01 0200.0ade.de07 192.168.10.101 192.168.20.101

SMAC DMAC SIP DIP

0000.3001.1101 2020.0000.AAAA 192.168.10.101 192.168.20.101

SMAC DMAC SIP DIP

2020.0000.AAAA 0000.3002.2101 192.168.10.101 192.168.20.101

Page 33: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

VXLAN Routing – Symmetric (C to A)

33

SpineSpine Spine Spine

Overlay

VTEP VTEPVTEP VTEPVTEP VTEP VTEP

Baremetal

Host AMAC: 0000.3001.1101

IP: 192.168.10.101

Baremetal

Host BMAC: 0000.3001.1102

IP: 192.168.10.102

Baremetal

Host CMAC: 0000.3002.2101

IP: 192.168.20.101

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

SIP DIP VXLAN SMAC DMAC SIP DIPPayload

10.200.200.107 10.200.200.101 5000 0200.0ade.de07 0200.0ade.de01 192.168.20.101 192.168.10.101

SMAC DMAC SIP DIP

2020.0000.AAAA 0000.3001.1101 192.168.20.101 192.168.10.101

SMAC DMAC SIP DIP

0000.3002.2101 2020.0000.AAAA 192.168.20.101 192.168.10.101

Page 34: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

Summary

Page 35: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

© 2019 Cisco and/or its affiliates. All rights reserved.Cisco VXLAN Tutorial Cisco Public

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

• VXLAN evolved as the Control-Plane evolved• Applicability changes over time – VXLAN EVPN Multi-Site for DCI

• BGP EVPN for integrated Layer-2 and Layer-3 Services• Control-Plane driven

• Optimal Routing and Bridging

• Avoid hair pinning and reduced failure domains

35

Page 36: Cisco VXLAN Tutorial - peeringforum.bknix.co.th · over 12 bits (802.1Q tag) • Limits the maximum number of segments in a Data Center to 4096 VLANs 6 Destination MAC (DMAC) Source

Thank you


Recommended