BRKARC-3472 NX-OSRouting and Layer 3 Switching
BRKARC-3472 NX-OSRouting and Layer 3 Switching
Layer 3 Switching
Arkadiy Shapiro
Technical Marketing Engineer, NX-OS and Nexus 7000
arshapir@cisco.com
BRKARC-3472
Session Objectives
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Session Non-objectives
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Notes
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Related Cisco Live 2011 events
Breakout sessions
Session-ID Session Name
BRKARC-3470 Cisco Nexus 7000 Switch Architecture
BRKARC-3452 Cisco Nexus 5000/5500 and 2000 Switch Architecture
BRKARC-3471 Cisco NX-OS Software – Architecture
Data Center deployments with MPLS on NX-OS (Nexus
BRKMPL-2107
7000)
BRKCRS-3145 Troubleshooting Cisco Nexus 5000/2000 Series Switches
BRKCRS-3144 Troubleshooting Cisco Nexus 7000 Series Switches
BRKDCT-2951 Deploying Nexus 7000 in Data Center Networks
Virtual Device Context (VDC) Design and Implementation
BRKDCT-2121
Considerations with Nexus 7000
TECRST-3190 Advanced IP Routing Fast Convergence
TECCRS-2001 Enterprise High Availability Design and Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Related Cisco Live 2011 events
Labs
Session-ID Session Name
LTRDCT-4047 Deploying Nexus 7000/NX-OS Hands-on Lab
LTRCRT-5205 Configuring Nexus 7000 Virtualization
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Agenda
Layer 3 Requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Agenda
Layer 3 Requirements
Network Design Requirements
System Requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Layer 3 Requirements
Branch
Campus Core
Enterprise Core
DC Core
DC Aggregation DC Core /
Aggregation
DC Access DC Access
DC 1 DC 2
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Layer 3 Requirements
Enterprise L3: Routing Table Scale or Lean Core, BGP, IGP, BFD
Core MPLS P/PE
DC Core L3: Routing Table Scale, BGP, IGP, BFD, Dual Stack, IPv6/v4 translation
MPLS P/PE
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Layer 3 Requirements
Advantages:
Lower L2 table utilization
Smaller L2 domain reduce
STP impact
Drawbacks:
More subnets to manage that are
smaller
More L3 configuration points
VM mobility constrained to a
smaller L2 domain
Use OSPF stub area, / EIGRP
stub, default routes
Fabric Extender technology Servers Servers
enables the expansion of L2
domains without adding STP
hops
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Layer 3 Requirements
L2
Access
Aggregation
L3 links northbound
Access
Process
multicast state
(Multicast DR)
Relay DHCP query
Listen to DHCP reply
(DHCP request) My MAC address Who is my default
is 11:22:33:44:55:66. gateway?
What‟s my IP address? (ARP request)
(DHCP request)
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Layer 3 Requirements
Layer 3 Core
100% Layer 3
Network backbone
MPLS P / PE functionality
Fast Convergence
ISP multi-homing
Routing table scale
Allows growth in aggregation
PODs
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
Agenda
Layer 3 Requirements
Network Design Requirements
System Requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Layer 3 Requirements
N7K-M132XP-12 N7K-M108X2-12L
N7K-M132XP-12L
N7K-M148GS-11 N7K-M148GT-11
N7K-M148GS-11L N7K-M148GT-11L
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
Layer 3 Requirements
5.2
Transport
MPLS XL
Services 5.2 5.2
Enterprise Advanced Enhanced L2 FCoE SAN
Enterprise
Base
Enterprise Services License - all routing protocols except RIP
MPLS License – MPLS features
XL License – higher FIB table sizes (optional)
Base License - all other Layer 3 features (SVIs, Layer 3 ports,
FHRP, IGMP etc)
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Layer 3 Requirements
N55-D160L3
Single daughter-card
Nexus 5548P / 5548UP only
In-rack upgradeable for deployed units
N55-M160L3
Expansion module
Nexus 5596UP only
No front-panel ports
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Layer 3 Requirements
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing and Forwarding
Multicast Routing and Forwarding
Layer 3 Virtualization
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
NX-OS Layer 3 Software Architecture
AM
u4RIB u6RIB
mRIB
Unicast Routing Information Base (uRIB)
Reverse Path Forwarding
(RPF) updates
• Common API to clients
• Digest routing info
• Push routes to platform
• Select best-nexthop(s) per prefix uFDM • Route download
• Apply routing policy
• Build final routing table
Supervisor
FIB Manager
Forwarding Hardware
I/O Module
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
NX-OS Layer 3 Software Architecture
u4RIB u6RIB
Unicast Routing Information Base (uRIB)
AM
u4RIB u6RIB
mRIB
Unicast Routing Information Base (uRIB)
uFDM
Supervisor
FIB Manager
Forwarding Hardware
I/O Module
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
NX-OS Layer 3 Software Architecture
FIB Manager
Forwarding Hardware
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
NX-OS Layer 3 Software Architecture
URIB
Management and troubleshooting
switch# show routing ipv4 direct
31.3.3.3/32, ubest/mbest: 2/0, attached
*via 31.3.3.3, Lo0, [0/0], 1w5d, direct
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
NX-OS Layer 3 Software Architecture
FIB
Management and troubleshooting
switch# show forwarding vrf default route 10.13.34.4 module 8
Prefix Next-hop Interface
10.13.34.4/30 10.13.32.6 Ethernet8/2
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing and Forwarding
Multicast Routing and Forwarding
Layer 3 Virtualization
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
NX-OS Layer 3 Software Architecture
m4RIB m6RIB
uRIB
Multicast Routing Information Base (mRIB)
RPF updates
• Add routes, OIFs
• Update when RPF changes • Push routes to platform
mFDM • Route download
Supervisor
FIB Manager
• Translate routes to hardware format
• Program hardware forwarding and
replication engines
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing and Forwarding
Multicast Routing and Forwarding
Layer 3 Virtualization
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
NX-OS Layer 3 Software Architecture
LACP … PIM …
hardware and software
resources
Layer 2 Protocols Layer 3 Protocols
Isolate software faults and VDC 2 CDP STP BGP VRRP
Securely delineate
Layer 2 Protocols Layer 3 Protocols
administrative domains Default VDC VLAN STP OSPF HSRP
Linux Kernel
More details: BRKDCT-2121 - Virtual Device Context (VDC) Design and Implementation with Nexus 7000
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
NX-OS Layer 3 Software Architecture
Default VRF
All Layer-3 interfaces are in the default VRF
Default routing context for all show commands
Routing protocols run in default VRF context unless
other VRF context is specified
Similar to IOS global routing table
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
NX-OS Layer 3 Software Architecture
VRF Awareness
VRF_C
VRF_E
VRF Aware SCP
VRF_D
VRF_B
PBR-set VRF
VRF_A
VRF Aware AAA (RADIUS) VRF Aware SNMP agent
VRF Aware AAA (TACACS+) VRF Aware SSH
VRF Aware BGP VRF Aware Syslog
VRF Aware DHCP VRF Aware Telnet
VRF Aware DNS VRF Aware Traceroute
VRF Aware FTP / TFTP VRF Aware uRPF
VRF Aware NTP VRF Aware FHRP protocols
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
VRF Aware OSPF VRF Aware WCCP
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
NX-OS Layer 3 Software Architecture
Layer 3 VPN
VRF D
P
VRF C
VRF B
DC Core
application to provide
VRF A
scalable segmentation
Supports network
consolidation and access to PE PE
Agg /Access
shared services (L2/L3 boundary)
Server
Server
Server
Server
Server
Server
Server
Server
L3VPN infrastructure Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Server
Easier IPv4 to IPv6 migration
More details: BRKMPL-2107 - Data Center deployments with MPLS on NX-OS (Nexus 7000)
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
NX-OS Layer 3 Software Architecture
switch# switch%management#
ping 172.26.242.1 vrf management ping 172.26.242.1
switch# switch%management#
show routing vrf management show routing
switch# switch%management#
show ip arp vrf management show ip arp
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
NX-OS Layer 3 Software Architecture
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
NX-OS Layer 3 Software Architecture
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Routing
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
For Your
Reference
NX-OS Unicast Routing Protocols
Platform support
Nexus 7000 Nexus 5500 Nexus 3000
Protocol
IPv4 IPv6 IPv4 IPv4
RIPv2 -
IS-IS - - -
OSPFv2 N/A
OSPFv3 - - -
EIGRP
BGPv4
Static
Notes:
• Nexus 3000 / 5000 support IPv6 in hardware, software support in future release
• Check release notes and configuration guides for latest support information
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Unicast Routing Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Unicast Routing Protocols
IGP Virtualization
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Unicast Routing Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Unicast Routing Protocols
Controlled restart
restart ospf 1
Debug-filters
Restrict the amount of debug output: neighbor, interface, VRF etc.
Each protocol has its own set of debug-filters
Use debug-filter <protocol> vrf all to apply to all
VRFs
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
OSPF
IS-IS
EIGRP
BGP
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Unicast Routing Protocols
OSPF in NX-OS
Highlights
OSPF v2 (RFC 2328 with RFC 1583 compatibility)
OSPF v3 (RFC 5340, IPv6 only)
Dynamic and modern link-state protocol
Extensive High-Availability features
Graceful Restart (Nexus 3000 / 5500 in helper mode only)
Stateful Restart
SSO / ISSU
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Unicast Routing Protocols
For Your
OSPF in NX-OS Reference
Key features
Sub-feature area Details (defaults in bold)
Areas Multi-area
Regular, Stub, NSSA (RFC 3101)
LSAs Type 3 (summary), Type 5 (redistributed), Type 9
and 10 (opaque)
Multi-pathing 8 (up to 16)
Metric manipulation Static cost
Auto-cost reference bandwidth
Link types Broadcast, Point-to-point, Virtual link, Sham link
Summarization and Area range; summary-address
filtering Filter lists (using route-maps)
Authentication Clear text, MD5, keychains
Traffic Engineering Yes – TE extentions (RFC3630) for OSPF v2
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Unicast Routing Protocols
OSPF in NX-OS
Configuration and management highlights
Area ID for OSPF v2 and v3:
Configure as single decimal or dotted decimal
switch(config-if)# ip router ospf 1 area ?
A.B.C.D or <0-4294967295> Area Id as an integer or ip address
switch(config-if)# ip router ospf 1 area 2
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Unicast Routing Protocols
OSPF in NX-OS
Configuration examples
OSPF v2
router ospf foo
passive-interface default
network 10.0.2.0/24 area 0.0.0.2
interface Ethernet2/5
ip router ospf 100 area 0.0.0.0
interface Ethernet2/6
no ip ospf passive-interface
ip router ospf 100 area 0.0.0.1
OSPF v3
router ospfv3 foo
router-id 60.60.60.60
area 4 virtual-link 50.50.50.50
address-family ipv6 unicast
area 4 range 2006:2000::/32
interface Ethernet3/1
ipv6 address 2006:5101:0100::2003/33
ipv6 router ospfv3 foo area 0
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Unicast Routing Protocols
OSPF in NX-OS
Management and troubleshooting
switch# show ip ospf
Routing Process p1 with ID 40.40.40.40 VRF default
Stateful High Availability enabled
Graceful-restart is configured
grace period: 60, state: (null)
Last graceful restart exit status: None
Supports opaque LSA
This router is an area border and autonomous system boundary.
Redistributing External Routes from
isis-one
Administrative distance 110
Reference Bandwidth is 40000 Mbps
<…>
Maximum paths to destination 8
Number of external LSAs 6, checksum sum 0x2d81e
Number of areas is 3, 2 normal, 0 stub, 1 nssa
Number of active areas is 2, 2 normal, 0 stub, 0 nssa
Area BACKBONE(0)
Area has existed for 1d01h
Interfaces in this area: 5 Active interfaces: 5
Passive interfaces: 0 Loopback interfaces: 0
No authentication available
SPF calculation has run 18 times
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
Unicast Routing Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
OSPF
IS-IS
EIGRP
BGP
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Unicast Routing Protocols
IS-IS in NX-OS
Highlights
ISO 10589 Intermediate system to intermediate
system intra-domain routing exchange protocol
IPv4 routing support only, IPv6 on roadmap
Extensive High-Availability features
Graceful Restart
Stateful Restart
SSO / ISSU
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Unicast Routing Protocols
For Your
IS-IS in NX-OS Reference
Key Features
Sub-feature area Details (defaults in bold)
Multi-pathing 8 (up to 16)
Authentication Clear text, MD5, keychains
Wide Metric Yes
Traffic Engineering Yes – TE extentions (RFC 3784)
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Unicast Routing Protocols
IS-IS in NX-OS
Configuration highlights
IS-IS point-to-point link configuration:
switch(config)# interface Ethernet 2/4
switch(config-if)# medium p2p
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Unicast Routing Protocols
IS-IS in NX-OS
Configuration
router isis foo
mpls ldp autoconfig level-1-2
net 49.0000.0032.0001.0001.00
is-type level-1-2
metric-style transition
log-adjacency-changes
address-family ipv4 unicast
default-information originate
interface Vlan90
ip router isis 1
isis passive level-1-2
interface loopback0
ip router isis 1
interface Ethernet1/8
ip router isis 1
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Unicast Routing Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
OSPF
IS-IS
EIGRP
BGP
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Unicast Routing Protocols
EIGRP in NX-OS
Highlights
Single process instance for IPv4 and IPv6 routing
Support for only IP protocols
Wide metric support with interoperability
High-Availability features
Graceful Restart (Nexus 3000 / 5500 in helper mode only)
SSO / ISSU
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Unicast Routing Protocols
For Your
EIGRP on NX-OS Reference
Key features
Sub-feature area Details (defaults in bold)
Summarization and Summary address (on interface)
route-filtering Distribute lists (using prefix list or route
map)
Multi-pathing 8 (up to 16)
Authentication MD5, keychains
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
Unicast Routing Protocols
EIGRP in NX-OS
Configuration highlights
“distribute-list” configuration is interface-centric only:
feature eigrp
interface Ethernet2/1
ip address 10.1.48.4/24
ip router eigrp 1
ip distribute-list eigrp 1 route-map test in
router eigrp 1
network 10.1.48.0 0.0.0.255
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Unicast Routing Protocols
EIGRP in NX-OS
Configuration
router eigrp foo
router-id 31.3.3.3
vrf 100
router-id 31.3.3.3
address-family ipv4 unicast
address-family ipv6 unicast
address-family ipv4 unicast
address-family ipv6 unicast
redistribute bgp 1 route-map test
interface Vlan100
ip router eigrp 1
ip passive-interface eigrp 1
interface port-channel10.100
ip router eigrp 1
ip summary-address eigrp 1 101.0.0.0/16 255
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Unicast Routing Protocols
EIGRP in NX-OS
Management and troubleshooting highlights
switch# show ip eigrp topology detail-links vrf 100
IP-EIGRP Topology Table for AS(1)/ID(31.1.1.1) VRF 100
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 11.0.15.0/30, 6 successors, FD is 768, serno 603
via 11.0.9.2 (768/320), Ethernet1/16.100
via 11.0.6.2 (768/320), Ethernet1/13.100
via 11.0.21.2 (768/320), Ethernet1/1.100
via 11.0.22.2 (768/320), Ethernet1/2.100
via 11.0.8.2 (768/320), Ethernet1/15.100
via 11.0.7.2 (768/320), Ethernet1/14.100
via 11.0.10.2 (1024/768), port-channel10.100
<…>
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Unicast Routing Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
OSPF
IS-IS
EIGRP
BGP
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Unicast Routing Protocols
BGP
Highlights
Full MP-BGP support
BGP version 4 (RFC 4271)
Multi-Protocol Extensions (RFC 2858)
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Unicast Routing Protocols
For Your
BGP in NX-OS Reference
Key Features
BGP and MP-BGP features:
Sub-feature area Details (defaults in bold)
Address Families IPv4/ IPv6 unicast and multicast, MDT (MVPN),
VPNv4, VPNv6 (6VPE), IPv6 labeled-unicast (6PE)
Load-balancing Label, IP src-dst, TCP/UDP
Multipath Yes – up to 16 for iBGP / eBGP
Route reflector Yes for all AFs
Route Manipulation Conditional Advertisement, routing policies
Hub and spoke Yes
HA and Graceful Restart (RFC 4724)
Convergence PIC Core
Next Hop Tracking
Low Memory Alert handling
Authentication MD5
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Unicast Routing Protocols
BGP in NX-OS
Configuration highlights
Neighbor-centric nested configuration model
Address-family configuration required per neighbor
feature bgp
router bgp 1
address-family ipv4 unicast
network 20.20.20.0/24
neighbor 2.2.2.2 remote-as 2
update-source loopback 0
address-family ipv4 unicast
Peer-templates (similar to peer-groups)
Can inherit session and policy templates
template peer-session SESSION1
timers 30 90
template peer-policy POLICY1
send-community
default-originate
template peer CUSTOMER-PEERS
inherit peer-session SESSION1
address-family ipv4 unicast
inherit peer-policy POLICY1
neighbor 192.168.2.1 remote-as 10
BRKARC-3472
inherit© 2011
peer CUSTOMER-PEERS
Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Unicast Routing Protocols
MP-BGP in NX-OS
Configuration for L3 Unicast VPN
vrf context test
rd 118.48.20.162:100
address-family ipv4 unicast
route-target import 300:30
route-target export 100:10
router bgp 65000
address-family vpnv4 unicast
router-id 118.48.20.162
address-family ipv4 unicast
neighbor 118.8.20.164 remote-as 65000
update-source loopback10
address-family vpnv4 unicast
send-community extended
!Configuration under router bgp mode
vrf Prod
address-family ipv4 unicast
network 18.26.16.0/24
maximum-paths ibgp 4
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Unicast Routing Protocols
For Your
BGP in NX-OS Reference
BRIB (routes)
show ip bgp [<prefix>]
show ip bgp nexthop-database
show ip route [<prefix>]
show bgp paths
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Unicast Routing Protocols
BGP in NX-OS
Management and troubleshooting
show ip bgp neighbor 10.103.72.72
BGP neighbor is 10.103.72.72, remote AS 65001, ebgp link, Peer index 2
BGP version 4, remote router ID 3.3.3.3
BGP state = Established, up for 5d22h
Peer is directly attached, interface Ethernet2/1
Last read 00:00:21, hold time = 180, keepalive interval is 60 seconds
Last written 00:00:16, keepalive timer expiry due 00:00:43
Connections established 1, dropped 0
Last reset by us 00:00:10, due to bad peer AS error
Reset error value 6501
Last reset by peer 1d20h, due to holdtimer expired error
Neighbor capabilities:
4-Byte AS capability: advertised
Address family IPv4 Unicast: advertised received
Message statistics: Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 2 3
Keepalives: 8555 8558
Total: 8558 8562
Total bytes: 162604 162773
Bytes in queue: 0 0
For address family: IPv4 Unicast
BGP table version 20, neighbor version 20
6 accepted paths consume 216 bytes of memory
Local host: 10.103.72.3, Local port: 20582
Foreign host: 10.103.72.72, Foreign port: 179
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Unicast Routing Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
For Your
Reference
NX-OS Multicast Protocols
Platform support
Nexus 7000 Nexus 5500 Nexus 3000
Protocol
IPv4 IPv6 IPv4 IPv4
IGMP v1 / v2 / v3 N/A
PIM SM
PIM SSM*
PIM BiDir* - -
MSDP N/A
MLD v1 / v2 N/A N/A N/A
PIM in NX-OS
Highlights
PIM process responsibilities: Source Shared Tree
a.k.a RPT,
Source Tree rooted at the
Form PIM relationship with peers a.k.a SPT,
rooted at the
rendezvous point
protocol packets
Interface with MRIB to provide/learn
multicast routes
PIM support
IPv4 (PIM) and IPv6 (PIM6)
Sparse Mode - RFC 4601
SSM - RFC 3569 / RFC 4607
Bidir
Receivers
Configurable ASM/SSM/Bidir group-ranges
One single PIM process runs all PIM
flavors (SSM, BiDir, ASM) for VDC
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Multicast Protocols
For Your
PIM in NX-OS Reference
Key features
Configurable options for when Auto-RP should
listen versus forward Auto-RP messages.
Configurable options for when BSR should listen
versus forward Bootstrap and Candidate-RP
messages
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Multicast Protocols
PIM in NX-OS
Configuration highlights
Multicast routing enabled by default, no commands needed
such as “ip multicast-routing”, only enable PIM with
“feature pim”
Group range taken inline without ACL (can supply a route-map)
Configuring PIM Sparse Mode:
switch(config)# ip pim rp-address 1.1.1.1 group-list 224.0.0.0/4
switch(config)# interface Vlan101
switch(config-if)# ip pim sparse-mode
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
First Hop Redundancy Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
First Hop Redundancy Protocols
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
First Hop Redundancy Protocols
Active/Active mode
No additional
configuration required
General VRRP / HSRP best L3
practices still apply, except: L2
Since running in active/active
mode, aggressive timers can
be relaxed
No need to manipulate
priorities / preemption on
different devices to achieve
load-balancing
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
First Hop Redundancy Protocols
FHRPs in NX-OS
Configuration and management highlights
HSRP - use “hsrp” keyword instead of “standby”
Config commands exist under HSRP/VRRP/GLBP sub-mode
switch(config)# int Ethernet 1/1
switch(config-if)# hsrp 1
switch(config-hsrp)# ?
authentication Authentication
ip Enable HSRP IPv4 and set the virtual IP address
mac-address Virtual MAC address
preempt Overthrow lower priority Active routers
priority Priority level
timers Hello and hold timers
track Associates track object to HSRP group
…
switch(config)# int Ethernet1/1
switch(config-if)# glbp 1
switch(config-glbp)# ?
ip Set Virtual IP address
…
switch# show hsrp brief
Interface Grp Prio P State Active addr Standby addr Group addr
Vlan100 100 120 P Active local 101.0.100.4 101.0.100.1
Vlan110 110 120 P Active local 101.0.110.4 101.0.110.1
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Routing Policy and PBR
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Routing Policy and PBR
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
Routing Policy and PBR
Routing Policy
Configuration highlights
Route map configuration and use in redistribution
Classless redistribution by default (no “subnets” option)
router ospf 1
redistribute static route-map STATIC_TO_IGP
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Routing Policy and PBR
Note: Packets that are denied by the route map, or packets for which no
active next-hop can be found in the route map, will be forwarded through the
normal destination-based routing process.
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Layer 3 High Availability and Fast Convergence
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Software High Availability
Protocol Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Layer 3 High Availability and Fast Convergence
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Layer 3 High Availability and Fast Convergence
OSPF OSPF
PSS
No interaction with the
neighbor to recover state
Graceful Restart
Graceful Restart
EIGRP EIGRP
BGP BGP
OSPF OSPF
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Layer 3 High Availability and Fast Convergence
Process
freezes/crashes
Process
Process
restarted Stateless Restart
restarted
Yes twice in 4
No (use GR extentions)
recently?
min?
No Yes
!IOS
switch(config-t)# router ospf 1
switch(config-router)# nsf ietf
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 115
Agenda
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Software High Availability
Protocol Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 119
Layer 3 High Availability and Fast Convergence
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 120
Layer 3 High Availability and Fast Convergence
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 121
Layer 3 High Availability and Fast Convergence
“FFD timers”
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 122
Layer 3 High Availability and Fast Convergence
FFD Challenges
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 123
Layer 3 High Availability and Fast Convergence
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 124
Layer 3 High Availability and Fast Convergence
BFD in NX-OS
Highlights
Software support: NX-OS 5.0(2a) onwards
RFC 5880
Version 1 only
Single-hop only
Distributed packet processing
BFD packets sent with DSCP CS6 / CoS 6
msec timer
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 126
Layer 3 High Availability and Fast Convergence
For Your
BFD Clients and Interface Types Reference
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 129
Layer 3 High Availability and Fast Convergence
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 131
Layer 3 High Availability and Fast Convergence
Layer 3 requirements
NX-OS Layer 3 Software Architecture
Unicast Routing Protocols
Multicast Protocols
First Hop Redundancy Protocols
Routing Policy and Policy-based Routing (PBR)
Layer 3 High Availability and Fast Convergence
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 133
Summary
Summary
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 134
Summary
Acronyms
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 136
Complete Your Online
Session Evaluation
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 137
Visit the Cisco Store for
Related Titles
http://theciscostores.com
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 138
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 139
Thank you.
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 140
For Your
Layer 3 Functional Comparison Reference
ARP 50K 8K
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 144
For Your
Nexus 7000 M1 Forwarding Engines Reference
Ingress and egress NetFlow (full Unicast RPF check and IP source
and sampled) guard
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 145
Unicast Routing Protocols
IOS NX-OS
1) Highest loopback interface IP 1) IP from loopback 0
2) Highest IP from any other 2) IP from first loopback interface
interface 3) IP from first physical interface
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 146
Unicast Routing Protocols
Switch Switch
P
P
P P L3
7k1 7k2 ECMP
P Routing Protocol Peer
RIB
Prfx1: 100.0.0.0/24 Prfx0: 1.1.1.1/32
via 10.1.1.1 label 100 1 via 10.1.1.1 label 1
via 20.1.1.1 label 100 2 via 20.1.1.1 label 2
I/O Module
FIB
Prfx1: 100.0.0.0/24 Prfx2 Prfx3 Prfx0
via 10.1.1.1 label 100 1
via 20.1.1.1 label 100 2
via …
via …
via …
via … … via …
via …
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 150
Layer 3 High Availability and Fast Convergence
BRKARC-3472 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 151