VPC Guide PDF
VPC Guide PDF
VPC Guide PDF
YOU
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Apple iphone4 launched in June 2010
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
‘Antennagate’
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
IPHONE4 Best Practices from CUSTOMERS
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
vPC Best Practices and Design on
NXOS
BRKDCT-2378
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Session Non-Goals
• vPC troubleshooting
• Details of vPC+
• Details of Fabricpath and VXLAN
• ACI with or without vPC
• FCoE
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Agenda
• Feature Overview
• Configuration Best Practices
• Design Best Practices
• Fabricpath / vPC+
• VxLAN
• Scalability
• Reference Material
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
MPLS, OTV,
LISP
ACI
VXLAN
VPC
2014-2015
STP
2013-2014
2010
2010
2009
2008
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Why vPC in 2015 ?
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
vPC is Foundation
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Role of vPC in the Evolution of Data Center
• vPC launched in 2009
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Agenda
• Feature Overview
− Concepts and Benefits
− Terminology
• Configuration Best Practices
• Design Best Practices
• Fabricpath / vPC+
• VxLAN
• Scalability
• Reference Material
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
vPC Feature Overview
vPC Concept & Benefits
S1 S2
S3
STP vPC Physical Topology vPC Logical Topology
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Feature Overview
vPC Terminology
Layer 3 Cloud
vPC vPC Domain vPC Peer
Peer Keepalive Link
Peer-Link
Orphan
CFS S2
Port S1
vPC Member
vPC Port
Orphan
Device S3
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
vPC Failure Scenario
vPC Peer-Keepalive Link up & vPC Peer-Link down
vPC peer-link failure (link loss):
vPC Peer-keepalive
• VPC system checks active status of the remote vPC peer P S
isolated
Keepalive Heartbeat
P Primary vPC
S Secondary vPC
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda
•
• vPC Configuration Best Practices
− Building a vPC domain
− Domain-ID
− Peer-Link
− Peer-Keepalive Link
− Spanning-Tree
− Peer-switch
− Auto-recovery
− Object tracking
− vPC shutdown
− Maintenance Mode
•
•
•
•
•
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
vPC Configuration Best Practices
Building a vPC domain – Configuration Steps
1. Define domains S1 S2
2. Establish Peer Keepalive connectivity
4. Create vPCs
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
vPC Configuration Best Practices
vPC Domain-ID vPC Domain 10
S3 S4
! Configure the vPC Domain ID – It should be unique within the layer 2
domain
NX-1(config)# vpc domain 20
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
vPC Configuration Best Practices
vPC Peer-Link
S1 S2 S1 S2
S3
S3
3 L3 infrastructure L3 infrastructure
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
vPC Configuration Best Practices For Your
Reference
vPC Peer-Keepalive link – Dual Supervisors
Management Switch Management
Network
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
vPC Configuration Best Practices
Spanning Tree (STP)
S4
S3
S5
N7k(config-vpc-domain)# peer-gateway
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
vPC Configuration Best Practices
vPC Peer-switch Primary Secondary
vPC vPC
Without Peer-switch
BPDUs
• STP for vPCs controlled by vPC primary.
• vPC primary send BPDU’s on STP designated ports
• vPC secondary device proxies BPDU’s to primary
Primary Secondary
With Peer-switch vPC vPC
S1 S2 S1 S2 S1 S2
S3 S3 S3
1. vPC peer-link down : S2 - secondary shuts all its vPC member ports
2. S1 down : vPC peer-keepalive link down : S2 receives no keepalives
P vPC Primary
3. After 3 keepalive timeouts, S2 changes role and brings up its vPC
S vPC Secondary
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
vPC Configuration Best Practices For Your
Reference
vPC auto-recovery
Auto-recovery addresses two cases of single switch behavior
• Peer-link fails and after a while primary switch (or keepalive link) fails
• Both VPC peers are reloaded and only one comes back up
How it works
• If Peer-link is down on secondary switch, 3 consecutive missing peer-keepalives will
trigger auto-recovery
• After reload (role is ‘none established’) auto-recovery timer (240 sec) expires while
peer-link and peer-keepalive still down, autorecovery kicks in
• Switch assumes primary role
• VPCs are brought up bypassing consistency checks
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
vPC Configuration Best Practices
Why Object-Tracking ?
S4 S5
• Modules hosting peer-link and uplink
fail on the vPC primary
Primary Secondary
• Peer-Link is down and vPC
Secondary shut all its vPC
S1 S2
• Auto-Recovery does not kick in as
peer-keepalive link is active
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
vPC Configuration Best Practices
Object-tracking
• vPC object tracking, tracks both peer-link and S4 S5
uplinks in a list of Boolean OR
• Object Tracking triggered when the track object
goes down
• Suspends the vPCs on the impaired device.
• Traffic forwarded over the remaining vPC peer.
! Track the vpc peer link
track 1 interface port-channel11 line-protocol
! Track
track 2
the uplinks
interface Ethernet1/1 line-protocol
S1 S2
track 3 interface Ethernet1/2 line-protocol
S3
This Feature is currently supported only on Nexus 5X00 and 600X series
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
vPC Configuration Best Practices
Maintenance Mode
Primary 3 Secondary
1. vPC Primary enters maintenance mode via CLI
vPC
1 2. Running configuration is saved, key show
5
command output is collected and saved
2
4 3. Change priority to highest value (65635)
4. Admin down all vPCs and vPC peer-link
5. Advertise state as “self-isolated” over peer
keepalive link
This Feature is currently supported only on Nexus 5X00 and 600X series
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda
•
•
• vPC Design Best Practices
− Mixed Hardware across vPC Peers
− Dynamic Routing over VPC
− vPC and Multicast
− vPC as Data Center Interconnect (DCI)
− FHRP with vPC
− Hybrid topology (vPC and non-vPC)
− vPC and Network Services
− vPC Fex Supported Topologies
•
•
•
•
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Design Best Practices
Mixed Hardware across vPC Peers : Line Cards
Always use identical line cards on either sides of the peer link and VPC legs !
Examples
vPC vPC
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Design Best Practices
Mixed Hardware across vPC Peers : Chassis & Supervisors
• N7000 and N7700 in same vPC Construct -Supported
• VDC type should match on both peer device
• vPC peers can have mixed SUP version* (SUP1, SUP2, SUP2E)
• N5X00 and N600X in same vPC Construct –Not Supported
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Design Best Practices
Dynamic Routing over VPC
A B
L3 ECMP S2 S1 S2
S1 S2 S1
Source Receivers
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
vPC - Data Center Interconnect(DCI)
Multi-layer vPC for Aggregation
DC 1 and DCI DC 2
N Network port
vPC domain 11 vPC domain 21 E Edge or portfast
Long Distance
Dark Fiber - Normal port type
CORE
CORE
B BPDUguard
E F F E
- - F BPDUfilter
N N R Rootguard
802.1AE (Optional)
N N
- E F F E -
R
R -
- - R R
AGGR
AGGR
N N N N
ACCESS
- -
E
E
B
B
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Design Best Practices
vPC as Data Center Interconnect (DCI)
PROS
• vPC is easy to configure and it provides robust and resilient interconnect
solution
CONS
• Maximum of only two Data Centers can be interconnected
• Layer 3 peering between Data Centers cannot be done through vPC and
separate links are required
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Design Best Practices
vPC -Data Center Interconnect (DCI)
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
FHRP with vPC
HSRP / VRRP/ GLBP Active/Active
FHRP FHRP
“Active”: “Standby”:
Active for Active for
• FHRP in Active/Active mode with vPC shared L3 MAC shared L3 MAC
L3
• No requirement for aggressive FHRP timers
L2
S1 S2
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Use one transit vlan to establish L3 routing
backup path over the vPC peerlink in case L3
FHRP with vPC uplinks were to fail, all other SVIs can use
passive-interfaces
Backup Routing Path
• Point-to-point dynamic routing protocol
adjacency between the vPC peers to establish a
L3 backup path to the core through PL in case of S3 S4
uplinks failure P P
OSPF/EIGRP
• Define SVIs associated with FHRP as routing L3
passive-interfaces in order to avoid routing
adjacencies over vPC peer-link
L2
P
VLAN 99
• A single point-to-point VLAN/SVI (aka transit
P
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Hybrid topology (vPC and non-vPC)
STP Root STP Root STP Root
VLAN 1 VLAN 1 VLAN 2
Bridge Priority VLAN 2 Bridge Priority
VLAN 1 4K VLAN 1 8K
VLAN 2 8K vPC Primary vPC Secondary VLAN 2 4K
vPC Peer-link
S1 S2
peer-switch
VLAN 1
vPC1 (blocked)
S3 S4
VLAN 2
(blocked)
• supports hybrid topology where vPC and non-vPC are connected to the same vPC domain
• Need additional configuration parameters : spanning-tree pseudo-information
• If previously configured global spanning tree parameters and subsequently configure spanning
tree pseudo information parameters, then pseudo information parameters take precedence over
the global parameters.
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
vPC and Network Services
Services Chassis w. Services VDC Sandwich
Two Nexus 7000 Virtual Device Contexts to “sandwich” services
between virtual switching layers
• Layer-2 switching in Services Chassis with transparent
services
Agg Agg
•
Layer Layer
vPC running in both VDC pairs to provide portchannel for both
inside and outside interfaces to Services Chassis
Design considerations:
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Nexus 2000 (FEX)Active-Active Deployment with VPC
5X00 / 6000
• Suited for servers with Single NIC or Fabric Extender dual homed to
Dual NIC not having port-channel redundant Nexus switches
Fabric Links
capability.
• Scale implications of less FEX per
system and less VPC Fex 100 Fex
101
HIF HIF
* This design is currently not supported on N7000 / N7700 and
N9X00
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Nexus 2000 (FEX) - Enhanced VPC
• Port-channel connectivity to dual-homed S1 S2
FEXs Nexus 6000 / 5000
• From the server perspective a single
access switch with port-channel support – Fabric Extender dual homed to
each line card supported by redundant redundant Nexus 5000
Fabric Links
supervisors
• Ideal design for a combination of single
NIC and Dual NIC servers with port- Fex Fex
100 101
channel capability HIF HIF
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
vPC : Get it Right the very First time
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Agenda
• Feature Overview
• vPC Configuration Best Practices
• vPC Design Best Practices
• Fabricpath / vPC+
• vPC in VxLAN network
• Scalability
• Reference Material
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
FabricPath: an Ethernet Fabric
Shipping on Nexus 7x00, Nexus 600x and Nexus 5x00
FabricPath
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
VPC vs VPC+
Architecture of vPC and FabricPath with vPC+
CE FP
CE Port FP Port
CE VLAN’s FP VLAN’s
vPC vPC+
• Physical architecture of vPC and vPC+ is the same from the access edge
• Functionality/Concepts of vPC and vPC+ are the same
• Key differences are addition of Virtual Switch ID and Peer Link is a FP Core Port
• vPC+ is not supported on Nexus 9X00 & Nexus 3X00 Series
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
VPC+ Virtual Switch ID
S100 S200
FabricPath
S300
1/1 1/2
S300: CE MAC
Address Table
MAC IF
B 1/2
A A S100
S200
S100 B
Classical Ethernet
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 55 55
VPC+ Virtual Switch
• A consistently associated to S1
• Multipathing to A
AB S1 S300
1/2
S300: CE MAC
Address Table
MAC IF
S1 B 1/2
virtual A S1
A B
Classical Ethernet
Refer BRKDCT-2081 – Cisco Fabric Path Technology & Design
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 56 56
Dynamic Routing over vPC+
• Layer 3 devices can form routing adjacencies with both
the vPC+ peers over vPC
Fabricpath Core
• The peer link ports and VLAN are configured in
FabricPath mode.
N55xx, N56xx,
N6000
Router/ Firewall
Fabricpath Link
Dynamic Peering Relationship
P Routing Protocol Peer P
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Agenda
• Feature Overview
• vPC Configuration Best Practices
• vPC Design Best Practices
• Fabricpath / vPC+
• VxLAN
• Scalability
• Reference Material
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Why VXLAN ?
Problems being addressed:
• VLAN scale – VXLAN extends the L2 segment ID field to 24-bits,
potentially allowing for up to 16 million unique L2 segments over the
same network
• Layer 2 segment elasticity over Layer 3 boundary – VXLAN
encapsulates L2 frame in IP-UDP header
High Level Technology Overview:
• MAC-in-UDP encapsulation.
• Leverages multicast in the transport network to simulate flooding
behavior for broadcast, unknown unicast and multicast in the same
segment
• Leverage ECMP to achieve optimal path usage over the transport
network
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
For Your
VXLAN Packet Format Reference
14 Bytes
(4 bytes optional) 20 Bytes 8 Bytes 8 Bytes
VXLAN Port
UDP Length
Reserved
RRRR1RRR
IP Header
MAC Addr.
Misc Data
Reserved
MAC Addr.
Checksum
VLAN Type
Ether Type
Checksum
Src. Port
Protocol
Dst. IP
VLAN ID
Outer
Header
0x8100
Src. IP
0x0000
0x0800
Outer
0x11
VNID
VXLAN
UDP
Dst.
Src.
Tag
48 48 16 16 16 72 8 16 32 32 16 16 16 16 8 24 24 8
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
VXLAN Terminology
VTEP – Virtual Tunnel End Point
Transport IP Network
VTEP VTEP
IP Interface IP Interface
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
vPC VTEP
• When vPC is enabled an ‘anycast’ VTEP
address is programmed on both vPC
peers
• Symmetrical forwarding behavior on both
peers provides
• Multicast topology prevents BUM traffic VXLAN
being sent to the same IP address across vPC VTEP vPC VTEP
the L3 network (prevents duplication of
flooded packets)
VLAN
• vPC peer-gateway feature must be
enabled on both peers
• VXLAN header is ‘not’ carried on the vPC
Peer link
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
VXLAN & VPC
VPC Configuration
VTEP1
vlan 10
vn-segment 10000
Map VNI to VLAN
interface loopback 0
ip address <VTEP individual IP – orphan)
ip address <VTEP anycast IP – per VPC domain> secondary
Source Interface !
individual IP is used for single attached Hosts interface nve1
anycast IP is used for VPC attached Hosts source-interface loopback0
member vni 10000 mcast-group 235.1.1.1
vtep vtep vtep vtep
1 2 3 4
VXLAN Tunnel Interface
VTEP2
vlan 10
vn-segment 10000
interface loopback 0
ip address <VTEP individual IP - orphan>
ip address <VTEP anycast IP – per VPC domain> secondary
!
interface nve1
source-interface loopback0
member vni 10000 mcast-group 235.1.1.1
H1 H2
10.10.10.10 10.10.10.20
VLAN 10 VLAN 10
(vpc) (vpc)
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
VXLAN & VPC For Your
Reference
VPC Configuration
VTEP1 VTEP3
vlan 10 vlan 10
vn-segment 10000 vn-segment 10000
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
VXLAN & VPC
Dual attached Host to dual attached Host (Layer-2)
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Agenda
• Feature Overview
• vPC Configuration Best Practices
• vPC Design Best Practices
• Fabricpath / vPC+
• VxLAN
• Scalability
• Reference Material
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
vPC Scalability
For Latest Scalability numbers please refer to the scalability limits pages for the platform
Nexus 7X00
http://www.cisco.com/en/US/docs/switches/datacenter/sw/verified_scalability/b_Cisco_Nexus_7000_Series_NX-OS_Verified_Scalability_Guide.html
Nexus 5X00
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5600/sw/verified_scalability/701N11/b_N5600_Verified_Scalability_701N11/b_N6000_Verified_
Scalability_700N11_chapter_01.html
Nexus 600X
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus6000/sw/verified_scalability/602N21/b_N6000_Verified_Scalability_602N21/b_N6000_Verified_
Scalability_602N12_chapter_01.html
Nexus 3000
http://www.cisco.com/en/US/docs/switches/datacenter/nexus3000/sw/configuration_limits/503_u5_1/b_Nexus3k_Verified_Scalability_503U51.html
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Agenda
• Feature Overview
• vPC Configuration Best Practices
• vPC Design Best Practices
• Fabricpath / vPC+
• VxLAN
• Scalability
• Reference Material
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Reference Material For Your
Reference
• Fabrcipath whitepaper :
http://www.cisco.com/c/en/us/products/collateral/switches/nexus-7000-series-switches/white_paper_c11-687554.html
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Key Take-Aways
vPC in 2015 vPC Benefits
• No Blocked Ports
VXLAN, ACI, Fabricpath • High availability
• Fast Convergence
vPC Design & Best Practices
Optimal vPC performance with
recommended deployment
techniques
Fabricpath VXLAN
• Eliminates Spanning-Tree *
• High resiliency
• L2 segment scalability
• vPC+ for legacy switches, • VTEP redundancy with
servers, hosts vPC
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Related Cisco Live Milan 2015 Events
Technical Breakout Sessions
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Call to Action
• Visit the World of Solutions for
– Cisco Campus – Data Center and Cloud
– Walk in Labs
– Technical Solution Clinics
• Meet the Engineer (Right after this session, until 30th Jan 2015)
• Lunch time Table Topics
• DevNet zone related labs and sessions
• Recommended Reading: for reading material and further resources for this
session, please visit www.pearson-books.com/CLMilan2015
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Complete Your Online Session Evaluation
• Please complete your online session
evaluations after each session.
Complete 4 session evaluations
& the Overall Conference Evaluation
(available from Thursday)
to receive your Cisco Live T-shirt.
BRKDCT-2378 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 73