Beruflich Dokumente
Kultur Dokumente
BRKARC-3470
BRKARC-3470
Cisco Public
Session Goal
To provide you with a thorough understanding of the Cisco Nexus 7000 switching architecture, supervisor, fabric, and I/O module design, packet flows, and key forwarding engine functions
This session will not examine NX-OS software architecture or other Nexus platform architectures
Related sessions:
BRKARC-3471: Cisco NX-OS Software Architecture
Cisco Public
Fabrics
Forwarding Engines
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
Front-toback airflow
Air exhaust
Fan trays
21RU
Front
N7K-C7010Cisco Public
Rear
Fan trays
25RU
Power supplies
Front
Rear
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
Supervisor Engine
Performs control plane and management functions
Dual-core 1.66GHz x86 processor with 8GB DRAM
2MB NVRAM, 2GB internal bootdisk, compact flash slots, USB
Console, aux, and out-of-band management interfaces Interfaces with I/O modules via 1G switched EOBC Houses dedicated central arbiter ASIC that controls VOQ admission/fabric access via dedicated arbitration path to I/O modules
N7K-SUP1
ID LED
Status LEDs
CMP Ethernet
Reset Button
8
N7K-M108X2-12L
N7K-M148GS-11/N7K-M148GS-11L
N7K-M132XP-12/ N7K-M132XP-12L
F family Low-cost, high performance, low latency, low power and streamlined feature set
N7K-F132XP-15
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
BRKARC-3470
Cisco Public
11
Fabric ASIC
LC CPU
VOQs
Forwarding Engine
Replication Engine
Forwarding Engine
Replication Engine
VOQs
Replication Engine
Replication Engine
Cisco Public
12
N7K-M132XP-12 Supported in all releases N7K-M132XP-12L Supported in NX-OS release 5.1(1) and later
Oversubscription option for higher density (up to 4:1) Supports Nexus 2000 (FEX) connections Distributed L3 multicast replication 802.1AE LinkSec
N7K-M132XP-12/ N7K-M132XP-12L
BRKARC-3470
2011 Cisco and/or its affiliates. All Public reserved. Cisco rights
Cisco Public
13
11
13
15
Shared mode
Four interfaces in port group share 10G bandwidth Port group group of contiguous even or odd ports that share 10G of bandwidth (e.g., ports 1,3,5,7)
To Fabric
rate-mode dedicated
10G
Dedicated mode
9 11 13 15
First interface in port group gets 10G bandwidth Other three interfaces in port group disabled
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
14
Fabric ASIC
LC CPU
VOQs
Forwarding Engine
VOQs
10 12 14 16 18 20 22 24 26 28 30 32
Cisco Public
15
N7K-M148GT-11
All releases
N7K-M148GS-11
Release 4.1(2) and later
N7K-M148GT-11L
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
To Central Arbiter
Fabric ASIC
LC CPU
VOQs
Replication Engine
Forwarding Engine
Replication Engine
12 x 1G MAC
12 x 1G MAC
12 x 1G MAC
12 x 1G MAC
Linksec
Linksec
Linksec
Linksec
Linksec
Linksec
1-12
13-24
Front Panel Ports
25-36
37-48
BRKARC-3470
Cisco Public
17
230G full-duplex fabric connectivity (320G local switching) System-on-chip (SoC) forwarding engine design
16 independent SoC ASICs
Layer 2 forwarding with L3/L4 services (ACL/QoS) Multi-protocol Classic Ethernet, FabricPath, DCB, FCoE
N7K-F132XP-15
BRKARC-3470
Cisco Public
18
Arbitration Aggregator
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
1 2 3 4 5 6
2 X 10G SoC
7 8
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
BRKARC-3470
Cisco Public
19
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
21
RACL/VACL/PACLs
128K 512K
Cisco Public
128K 512K
128K 512K
22
Ingress policing
Ingress NetFlow collection FIB TCAM and adjacency table lookups for Layer 3 forwarding ECMP hashing Multicast RPF check
Layer 3 Engine
Egress policing
Layer 2 Engine
23
VACL/PACLs
QoS remarking policies FabricPath forwarding Priority Flow-Control (PFC) and Enhanced Transmission Selection (ETS)
480Mpps Layer 2 bridging with hardware MAC learning per I/O module
30Mpps per forwarding engine
Hardware Table
BRKARC-3470
Cisco Public
24
From Fabric
Ingress Buffer (VOQ) Ingress forwarding decision (MAC lookup, FP lookup, ingress ACL/QoS
Forwarding tables
1G/10G MAC
1G/10G MAC
Port A 1G/10G
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Port B 1G/10G
25
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
26
N7K-C7010-FAB-1 N7K-C7018-FAB-1
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
27
Multistage Crossbar
Nexus 7000 implements 3-stage crossbar switch fabric
Stages 1 and 3 on I/O modules Stage 2 on fabric modules Fabric Modules
2nd stage
2 x 23Gbps per I/O slot per fabric module
1st stage
Ingress Module
Cisco Public
Egress Module
3rd stage
BRKARC-3470
28
Fabric Modules
Crossbar Fabric ASICs
46Gbps/slot
46Gbps/slot
10G modules
Require 2 fabrics for full bandwidth Require 3 fabrics for N+1 redundancy
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
46Gbps/slot
Cisco Public
30
Fabric Modules
46Gbps/slot
Crossbar Fabric ASICs
230G
46Gbps/slot
46Gbps/slot
230G
46Gbps/slot
46Gbps/slot
BRKARC-3470
Cisco Public
31
Virtual Output Queues (VOQs) at ingress to fabric represent bandwidth availability on egress modules
Four levels of priority per VOQ destination Central arbiter controls admission to VOQ based on bandwidth availability and priority
Buffer credits represent bandwidth availability for each VOQ destination at each priority level
Credits requested by ingress I/O modules with traffic to send into fabric Credits granted by central arbiter based on bandwidth availability Credits returned to the pool by egress I/O modules after receiving traffic from fabric
BRKARC-3470
Cisco Public
32
Ensures fair access to bandwidth for multiple ingress ports transmitting to one egress port
Central arbiter ensures all traffic sources get appropriate access to fabric bandwidth, even with traffic sources on different modules
Prevents congested egress ports from blocking ingress traffic destined to other ports
Mitigates head-of-line blocking by providing independent queues for individual destinations across the fabric
Enables lossless service for some traffic classes across the fabric
Can provide strict priority and backpressure (blocking instead of dropping) for certain traffic classes, such as FCoE traffic
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
34
Agenda
Chassis Architecture Supervisor Engine and I/O Module Architecture Forwarding Engine Architecture Fabric Architecture
NetFlow Summary
BRKARC-3470
Cisco Public
35
BRKARC-3470
Cisco Public
36
Ingress VOQ buffer manages congestion toward egress interface over fabric Egress FIFO buffer just enough to catch frames in flight and keep pipe full
Egress port buffer manages congestion at egress interface
Ingress port buffer Ingress VOQ buffer
Ingress Module
Ingress Module
Crossbar Fabric
Egress Module
Ingress Module
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
37
Ingress Module
Ingress Module
Crossbar Fabric
Egress Module
Ingress Module
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
38
To fabric
Egress
LC CPU
Fabric ASIC
FIFO
Shared VOQs
VOQs
Forwarding Engine
Replication Engine
Forwarding Engine
Replication Engine
VOQs
1234
VOQ 16MB
10G MAC
Replication Engine
Replication Engine
1p3q1t
Replication Engine
10G MAC
10G MAC
10G MAC
10G MAC
10G MAC
10G MAC
10G MAC
Linksec
Linksec
Linksec
Linksec
Linksec
Linksec
Linksec
Linksec
5
Front Panel Ports
12345678
Egress 80MB
1p7q4t
Per-Port 10G MAC 10G MAC
12345678
Ingress 96MB
Port 1
Port 2
8q2t
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
40
To fabric
Egress
LC CPU Fabric ASIC Fabric ASIC Arbitration Aggregator
FIFO
1234
VOQ 1.25MB
Per-Port
1p3q1t
1
Skid
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
2 X 10G SoC
FIFO
Port 1
Port 2
BRKARC-3470
Cisco Public
41
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
43
Layer 2 Forwarding
MAC table size depends on module type:
M1 MAC table is 128K entries F1 MAC table is 256K entries (16K entries per SoC)
Spanning tree (PVRST or MST), Virtual Port Channel (VPC), or FabricPath ensures loop-free Layer 2 topology
BRKARC-3470
Cisco Public
44
Source MAC lookup drives new learns and refreshes aging timers
Destination MAC lookup dictates outgoing switchport (CE/FabricPath local) or destination Switch ID (FabricPath remote)
In FabricPath core switches, Switch ID (routing) table lookup drives Layer 2 forwarding
Destination SID lookup dictates outgoing FabricPath interface and next hop
BRKARC-3470
Cisco Public
46
HDR
= Packet Headers
DATA
= Packet Data
CTRL
= Internal Signaling
M1 L2 Packet Flow
Supervisor Engine
Central Arbiter
12
Fabric Module 1
Fabric ASIC
Fabric Module 2
Fabric ASIC
Fabric Module 3
Fabric ASIC
Transmit to fabric
10
11
8
Fabric ASIC
Layer 3 Engine
Layer 2 Engine
Forwarding Engine
Layer 3 Engine
Layer 2 Engine
Forwarding Engine
Fabric ASIC
VOQs
VOQs
Replication Engine
10G MAC
Replication Engine
10G MAC
LinkSec decryption
Linksec
Module 1
13 Module 2
Transmit 15 packet on Cisco Public wire
Linksec
LinkSec encryption
14
47
e1/1
e2/1
BRKARC-3470
HDR
= Packet Headers
DATA
= Packet Data
CTRL
= Internal Signaling
F1 L2 Packet Flow
Supervisor Engine
Central Arbiter
Fabric Module 1
Fabric ASIC
Fabric Module 2
Fabric ASIC
Fabric Module 3
Fabric ASIC
Transmit to fabric
Fabric ASIC
Fabric ASIC
2 SoC
1
e1/1
Module 1
e1/2
SoC
Transmit packet on wire
Module 2
e2/2
e2/1
BRKARC-3470
Cisco Public
48
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
49
IP Forwarding
Nexus 7000 decouples control plane and data plane
Forwarding tables built on control plane using routing protocols or static configuration
OSPF, EIGRP, IS-IS, RIP, BGP for dynamic routing
BRKARC-3470
Cisco Public
50
IP Forwarding Architecture
Routing protocol processes learn routing information from neighbors IPv4 and IPv6 unicast RIBs calculate routing/next-hop information
Unicast Forwarding Distribution Manager (UFDM) interfaces between URIBs on supervisor and IP FIB on I/O modules IP FIB process programs forwarding engine hardware on I/O modules
FIB TCAM contains IP prefixes
Supervisor Engine
BGP
OSPF
ISIS
RIP
EIGRP
URIB/U6RIB UFDM
IP FIB
Hardware
IP FIB
Hardware
IP FIB
Hardware
I/O Module
I/O Module
I/O Module
module-9# sh processes cpu | egrep fib 1534 80042 330725 242 0.0 module-9#
BRKARC-3470
ipfib
Cisco Public
51
FIB hit returns adjacency, adjacency contains rewrite information (next-hop) Pipelined forwarding engine architecture also performs ACL, QoS, and NetFlow lookups, affecting final forwarding result
BRKARC-3470
Cisco Public
52
Forwarding Engine
Next-hop 1 (IF, MAC) Next-hop 2 (IF, MAC)
Index, # next-hops Index, # next-hops Index, # next-hops Index, # next-hops Index, # next-hops
Load-Sharing Hash
10.10.0.100 10.10.0.33
10.1.1.xx 10.1.2.xx 10.1.3.xx 10.10.100.xx
HIT!
Offset
Index, # next-hops
Index, # next-hops Index, # next-hops Index, # next-hops Index, # next-hops Index, # next-hops Index, # next-hops
Hit in FIB Index, returns result# next-hops in FIB DRAM Adjacency index identifies ADJ block
Cisco Public
Next-hop 4 (IF, MAC) # nexthops Adj Index Next-hop 5 (IF, MAC) Next-hop 6 (IF, MAC) Next-hop 7 (IF, MAC)
Result
FIB DRAM
2011 Cisco and/or its affiliates. All rights reserved.
Adjacency Table
53
Use maximum-paths command in routing protocols to control number of load-sharing paths Load-sharing is per-IP flow Configure load-sharing hash options with global ip load-sharing command:
Source and Destination IP addresses
Source and Destination IP addresses plus L4 ports (default) Destination IP address and L4 port
BRKARC-3470
Cisco Public
57
HDR
= Packet Headers
DATA
= Packet Data
CTRL
= Internal Signaling
Return credit to pool
M1 L3 Packet Flow
Fabric Module 1
Fabric ASIC
Transmit to fabric VOQ arbitration and queuing
Supervisor Engine 9
Central Arbiter
12
Fabric Module 2
Fabric ASIC
Fabric Module 3
Fabric ASIC
10
8
Fabric ASIC
6
Layer 3 Engine
Layer 2 Engine
Forwarding Engine
11
Layer 3 Engine
Fabric ASIC
VOQs
Submit packet headers for 4 lookup
Replication Engine
10G MAC
Layer 2 Engine
Forwarding Engine
VOQs
Replication Engine
10G MAC
3
Receive packet from wire
Linksec
LinkSec decryption
Module 1
2011 Cisco and/or its affiliates. All rights reserved.
13 Module 2
Transmit packet on 15 Cisco Public wire
Linksec
LinkSec encryption
14
60
e1/1
e2/1
BRKARC-3470
However, one or more M1/M1-XL modules can provide proxy Layer 3 services
M1 ports can proxy route for F1 modules Proxy L3 forwarding enabled by default when VDC in mixedmodule mode
Packets destined to router MAC forwarded to M1 modules for Layer 3 via internal Router Port-Channel
Selection of which port on which M1 module based on EtherChannel hash function Traffic requiring L3 from F1 modules traverses the fabric, vectoring toward M1 ports enabled for proxy L3 M1 module receiving such packets programmed to perform full ingress/egress L3 lookups
BRKARC-3470
Cisco Public
61
Proxy L3 Forwarding
VLAN 10 DMAC router_mac
2 3
F1
interface vlan 10 ip address 10.1.10.1/24 ! interface vlan 20 ip address 10.1.20.1/24
Fabric ASIC
F1
Fabric ASIC
Fabric Module
Fabric
M1
Fabric
Routing: DIP Server 2
MAC: VLAN 20 Next Hop 10.1.20.100
VOQs
6
DMAC server_2
Forwarding Engine
Forwarding Engine
VOQs
Replication Engine 5
Replication Engine
BRKARC-3470
Cisco Public
e1/4
e1/5 e1/6
e1/7 e1/8
62
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
64
IP Multicast Forwarding
Forwarding tables built on control plane using multicast protocols
PIM-SM, PIM-SSM, PIM-Bidir, IGMP, MLD
BRKARC-3470
Cisco Public
65
Supervisor Engine
PIM IGMP PIM6 ICMP6 BGP MSDP MRIB/M6RIB MFDM
Multicast Forwarding Distribution Manager (MFDM) interfaces between MRIBs on supervisor and IP FIB on I/O modules IP FIB process programs hardware:
FIB TCAM
IP FIB
IP FIB
IP FIB
Adjacency table
Multicast Expansion Table (MET) n7010# PID 3842 3850 n7010# 3843 3847 n7010# 3846 sh processes Runtime(ms) 109 133 sh processes 177 115 sh processes 2442 cpu | egrep pim|igmp|PID Invoked uSecs 1Sec Process 32911620 0 0 pim 33279940 0 0 igmp cpu | egrep m.?rib 33436550 0 0 mrib 47169180 0 0 m6rib cpu | egrep mfdm 743581240 0 0 mfdm
Hardware
I/O Module
Hardware
I/O Module
Hardware
I/O Module
Hardware
FIB TCAM
MET
ADJ Table
module-9# sh processes cpu | egrep fib 1534 80153 330725 242 0.0 module-9#
BRKARC-3470
ipfib
Cisco Public
66
Forwarding Engine
RPF, ADJ Index RPF, ADJ Index
RPF, ADJ Index RPF, ADJ Index RPF, ADJ Index FIB DRAM
10.6.6.10, 239.44.2.1
FIB TCAM
Hit in FIB returns result in FIB DRAM
MET Index
Adjacency Table
Result
Replication Engine
Replication for each OIF in MET block
Replicate
BRKARC-3470
67
Egress Replication
IIF
Distributes multicast replication load among replication engines of all I/O modules with OIFs
Local OIF
Module 1
Replication MET Engine
Input packets get lookup on ingress forwarding engine For OIFs on ingress module, ingress replication engine performs the replication For OIFs on other modules, ingress replication engine replicates a single copy of packet over fabric to those egress modules
Each egress forwarding engine performs lookup to drive replication
2 Fabric Module
Fabric ASIC
Fabric Copy
Fabric ASIC
Fabric ASIC
Fabric ASIC
Fabric ASIC
Local OIFs
Local OIFs
71
Cisco Public
HDR
= Packet Headers
DATA
= Packet Data
Fabric Module 2
Fabric ASIC
Fabric Module 3
Fabric ASIC
Dequeue multicast distribution copy from fabric
11
VOQ queuing
10
Fabric ASIC
Transmit multicast fabric distribution packet 9 Submit packet headers for 4 lookup Ingress port QoS
6
Layer 3 Engine Layer 2 Engine
Forwarding Engine
L3 multicast FIB lookup Ingress ACL/QoS/ NetFlow lookups Egress ACL/QoS/ NetFlow lookups L2 ingress snooping lookup
12
Layer 3 Engine
Fabric ASIC
Replicate for local OIF delivery
VOQs
Replication Engine 10G MAC
15
Layer 2 Engine
VOQs
13
Linksec
Forwarding Engine
Egress port QoS
Replication Engine
10G MAC
14
LinkSec encryption
Module 1
LinkSec decryption
16
17 Module 2
Transmit packet on wire
Linksec
18
e1/1
2
19
e2/1
BRKARC-3470
Cisco Public
72
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
73
Classification Policies
Enforce security and QoS policies based on Layer 2, Layer 3, and Layer 4 information Classification TCAM (CL TCAM) provides ACL lookups in forwarding engine
64K(non-XL) or 128K (XL) hardware entries in M1 modules 1K ingress/1K egress hardware entries per SoC in F1 modules (16K/16K entries per module)
Security policies
Router ACL (RACL) for IPv4, IPv6, ARP VLAN ACLs (VACLs) for IPv4, MAC Port ACLs (PACLs) for IPv4, MAC Secure Group Tag ACLs (SGACLs) for Cisco TrustSec
BRKARC-3470
Cisco Public
74
Forwarding Engine
Permit Deny
Deny
Permit Deny Deny Permit Result
X=Mask
Permit
CL SRAM
BRKARC-3470
76
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
78
NetFlow
NetFlow support provided by M1 I/O modules
No support for F1F1 or F1M1 proxy-routed flows
NetFlow table is 512K entries, shared between ingress/egress NetFlow Hardware NetFlow entry creation
CPU not involved in NetFlow entry creation/update
All modules have independent NetFlow table Full and sampled NetFlow supported by hardware
BRKARC-3470
Cisco Public
79
Each interface can collect full or sampled flow data Full NetFlow: Accounts for every packet of every flow on interface, up to capacity of NetFlow table Sampled NetFlow: Accounts for M in N packets on interface, up to capacity of NetFlow table
BRKARC-3470
Cisco Public
83
Sampled NetFlow
Random packet-based sampling
M:N sampling: Out of N consecutive packets, select M consecutive packets and account only for those flows in the hardware NetFlow table
Sampled flows aged and exported from NetFlow table normally Advantages
Reduces NetFlow table utilization Reduces CPU load on switch and collector
Disadvantages
Accuracy may be sacrificedcollector or user must extrapolate total traffic load based on configured sampling rate
BRKARC-3470
2011 Cisco and/or its affiliates. All rights reserved.
Cisco Public
84
I/O Module
Fabric ASIC via Inband VOQs
Supervisor Engine
LC CPU
NetFlow Table
Aged Flows
Main CPU
Switched EOBC
Aged Flows
via mgmt0
Mgmt Enet
To NetFlow Collector
Aged Flows
Forwarding Engine
BRKARC-3470
Cisco Public
87
Agenda
Chassis Architecture
BRKARC-3470
Cisco Public
89
Supervisor Engines
I/O Modules
Chassis
Fabrics
Forwarding Engines
BRKARC-3470
Hardware services, including unicast/multicast, bridging/routing, ACL/QoS classification, and NetFlow statistics
Cisco Public
Lossless-capable fabric with 230G/slot bandwidth to interconnect I/O modules and provide investment protection
90
Conclusion
You should now have a thorough understanding of the Nexus 7000 switching architecture, I/O module design, packet flows, and key forwarding engine functions
Any questions?
BRKARC-3470
Cisco Public
91
Complete your session evaluation online now (open a browser through our wireless network to access our portal) or visit one of the Internet stations throughout the Convention Center. Dont forget to activate your Cisco Live and Networkers Virtual account for access to all session materials, communities, and ondemand and live activities throughout the year. Activate your account at any internet station or visit www.ciscolivevirtual.com.
BRKARC-3470
Cisco Public
93
BRKARC-3470
Cisco Public
94
BRKARC-3470
Cisco Public
95
Thank you.
BRKARC-3470
Cisco Public
96