Documente Academic
Documente Profesional
Documente Cultură
Agenda
Introduction
Cisco Public
ASR 9001
(Ironman)
ASR 9904
440G/slot
4 I/O slots
ASR 9010
ASR 9912
ASR 9922
(Megatron)
440G/slot
8 I/O slots
550G/slot
10 I/O slots
1.2T/slot
20 I/O slot
Max Capacity
(bi-dir)
120Gbps
Size
2RU
6RU
10RU
21RU
30RU
44RU
Air Flow
Side to side
Side to side
Side to back
Front to back
Front to back
Front to back
BRKSPG-2904
770G/slot
2 I/O slots
ASR 9006
Cisco Public
PEM1
PEM2
PEM2
PEM3
V1 Power
PEM3
PEM4
V2 Power
M3
M2
M1
M0
V2 AC power
PWR A-, M3
RTN A+, M3
BRKSPG-2904
PWR B-, M3
RTN B+, M3
Cisco Public
V2 DC power
5
BRKSPG-2904
Cisco Public
Example output
RP/0/RSP0/CPU0:WEST-PE-ASR9K-2#admin show platform
Tue Jan 28 09:23:00.442 EST
Node
Type
State
Config State
----------------------------------------------------------------------------0/RSP0/CPU0
A9K-RSP-8G(Active)
IOS XR RUN
PWR,NSHUT,MON
0/RSP1/CPU0
A9K-RSP-8G(Standby)
IN-RESET
PWR,NSHUT,MON
0/FT0/SP
FAN TRAY
READY
0/FT1/SP
FAN TRAY
READY
0/0/CPU0
A9K-40GE-E
IOS XR RUN
PWR,NSHUT,MON
0/1/CPU0
A9K-MOD160-TR
IOS XR RUN
PWR,NSHUT,MON
0/1/1
A9K-MPA-20X1GE
OK
PWR,NSHUT,MON
0/6/CPU0
A9K-SIP-700
IN-RESET
PWR,NSHUT,MON
0/PM0/SP
A9K-3KW-AC
READY
PWR,NSHUT,MON
0/PM2/SP
A9K-3KW-AC
FAILED
PWR,NSHUT,MON
Bold sections indicate what would be omitted if show platform was ran in exec mode
BRKSPG-2904
Cisco Public
Example output
RP/0/RSP0/CPU0:WEST-PE-ASR9K-2#admin show environment power-supply
Tue Jan 28 09:17:11.021 EST
R/S/I
Modules
Capacity
Status
(W)
0/PM0/*
host
PM
3000
Ok
0/PM1/*
host
PM
0
Powered (No output)
0/PM2/*
host
PM
0
Powered (No output)
R/S/I
0/PM0/*
0/PM1/*
0/PM2/*
-------------Total: 573.3
BRKSPG-2904
Power Supply
(W)
573.3
0.0
0.0
Voltage
(V)
54.6
0.0
0.0
Current
(A)
10.5
0.0
0.0
Module status
Actual draw
Cisco Public
Example output
R/S/I
0/FT0/*
0/FT1/*
-------------Total: 600.0
R/S/I
0/RSP0/*
-------------Total: 205.0
R/S/I
Power Draw
(W)
300 **
300 **
Voltage
(V)
Current
(A)
Power Draw
(W)
205 **
Voltage
(V)
Current
(A)
Power Draw
(W)
320 **
486.0
Voltage
(V)
Current
(A)
0/0/*
0/1/*
54.0
-------------Total: 806.0
** Indicates worst case power draw
BRKSPG-2904
Actual draw
9.0
Cisco Public
Example output
Power Budget Summary for Rack 0
--------------------------------
Slot
---0/0/CPU0
0/1/CPU0
0/RSP0/CPU0
0/RSP1/CPU0
0/FT0/SP
0/FT1/SP
Max Watts
--------320
590
205
205
300
300
Standby RSP
is allocated for
by default,
even when not
present
1080W
Not Protected
Not Protected
Cisco Public
10
Typhoon
FIA
3x 10G
3x10GE
SFP +
Typhoon
FIA
3x 10G
Typhoon
Typhoon
FIA
3x 10G
3x10GE
SFP +
Typhoon
FIA
3x 10G
3x10GE
SFP +
Typhoon
100GE
MAC/PHY
Switch
Fabric
Switch Fabric
ASIC
3x 10G
3x10GE
SFP +
Switch Fabric
ASIC
3x10GE
SFP +
Ingress 100G
Typhoon
FIA
Egress 100G
Typhoon
FIA
Ingress
Typhoon 100G
100GE
MAC/PHY
3x 10G
3x10GE
SFP +
Typhoon
FIA
3x 10G
3x10GE
SFP +
Typhoon
BRKSPG-2904
Switch
Fabric
FIA
Cisco Public
Egress
Typhoon 100G
31
BRKSPG-2904
Cisco Public
32
Fabric Arbitration
RSP0
1: Fabric Request
Crossbar
Fabric
ASIC
5: credit return
Crossbar
Fabric
ASIC
Arbitration
Fabric Interface
and VOQ
2: Arbitration
Fabric Interface
and VOQ
Crossbar
Fabric
ASIC
3: Fabric Grant
4: load-balanced
transmission across
fabric links
Crossbar
Fabric
ASIC
Arbitration
RSP1
BRKSPG-2904
Cisco Public
33
Crossbar
Fabric
ASIC
Arbitration
Fabric Interface
and VOQ
RSP0
Fabric Interface
and VOQ
Crossbar
Fabric
ASIC
Crossbar
Fabric
ASIC
Arbitration
RSP1
Unicast traffic sent across first available fabric link to destination (maximizes efficiency)
Additional
re-sequencing latency is measured
in nanoseconds
BRKSPG-2904
2013 Cisco and/or
its affiliates. All rights reserved.
Cisco Public
34
RSP0
Fabric Interface
and VOQ
C1
B2
A3
B1
A2
A1
Crossbar
Fabric
ASIC
Crossbar
Fabric
ASIC
Arbitration
RSP1
Cisco Public
35
Packet 2
Packet 1
Max
Super-frame
Min
Super-frame
Packet 1
No super-framing
Packet 1
Min reached
Packet 1
Max reached
Jumbo
0 (Empty)
Note that fabric counters are showing super frames not individual packets!!
(show controller fabric fia stats loc 0/X/CPU0)
BRKSPG-2904
Cisco Public
36
BRKSPG-2904
Cisco Public
37
BRKSPG-2904
Cisco Public
38
Cisco Public
39
Priority
********** FIA-0 **********
Category: eg_drop-0
From Xbar Uc Crc-0
From Xbar Uc Crc-1
From Xbar Uc Crc-2
From Xbar Uc Crc-3
From Xbar Uc Drp-0
From Xbar Uc Drp-1
From Xbar Uc Drp-2
From Xbar Uc Drp-3
From Xbar Mc Crc-0
From Xbar Mc Crc-1
From Xbar Mc Crc-2
From Xbar Mc Crc-3
From Xbar Mc Drp-0
From Xbar Mc Drp-1
From Xbar Mc Drp-2
From Xbar Mc Drp-3
********** FIA-1
**********
BRKSPG-2904
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Cisco Public
40
: 12782
: 9778
Cisco Public
41
Typhoon
SFP+ 10GE
On-board 4x10
SFP+ ports
SFP+ 10GE
Internal
EOBC
SFP+ 10GE
LC
CPU
RP
CPU
SFP+ 10GE
MPAs
2,4x10GE
20xGE
1x40GE
Switch Fabric
ASIC
MPAs
2,4x10GE
20xGE
1x40GE
Typhoon
FIA
Cisco Public
42
2,4x10GE
20xGE
1x40GE
SFP+ 10GE
SFP+ 10GE
Internal
EOBC
SFP+ 10GE
LC
CPU
RP
CPU
SFP+ 10GE
Supported MPA
Switch Fabric
ASIC
FIA
Typhoon
Typhoon
FIA
2,4x10GE
20xGE
1x40GE
BRKSPG-2904
Cisco Public
43
BRKSPG-2904
Parse Search
Resolve Modify
L2/L3 header
Performs QoS
packet parsing in and ACL
TCAM
lookups in
TCAM tables
Builds keys for
ingress ACL,
Performs L2
QoS and
and L3
forwarding
lookups in
lookups (uCode) RLDRAM
Processes
Search results:
ACL filtering
Ingress QoS
classification
and policing
Forwarding
(egress SFP
determined)
Performs L2
MAC learning
Adds internal
system headers
Egress Control
Header (ECH)
Switch Fabric
Header (SFH)
Queueing
Scheduling
Queuing,
Shaping and
Scheduling
functions
Cisco Public
45
BRKSPG-2904
Cisco Public
46
Bridge
----------
Fia
--0
1
2
3
BRKSPG-2904
Ports
--------------------------------------------------GigabitEthernet0/0/0/0 - GigabitEthernet0/0/0/9
GigabitEthernet0/0/0/10 - GigabitEthernet0/0/0/19
TenGigE0/0/1/0
TenGigE0/0/1/1
Cisco Public
47
Example
RP/0/RSP0/CPU0:A9K-BNG#show controller np counters np0 loc 0/0/CPU0
Node: 0/0/CPU0:
---------------------------------------------------------------Show global stats counters for NP0, revision v2
MDF=Modify
TX transmit
WIRE to the
wire = egress
------------------------------------------------------------------------------16 MDF_TX_LC_CPU
22755787
17 MDF_TX_WIRE
1614696
21 MDF_TX_FABRIC
6
0
1530106
29 PARSE_FAB_RECEIVE_CNT
1555034
33 PARSE_INTR_RECEIVE_CNT
22026578
37 PARSE_INJ_RECEIVE_CNT
335774
41 PARSE_ENET_RECEIVE_CNT
2115361
45 PARSE_TM_LOOP_RECEIVE_CNT
17539300
Packets
received from
the fabric
0
1
5
Cisco Public
48
Note
Some counters have an index to a port.
For instance, there is an aggregate count per NPU showing the misses
from vlan to subinterface mapping:
UIDB_TCAM_MISS_AGG_DROP
There is also a specific counter from which port index these drops came
from:
UIDB_TCAM_MISS_DROP_1
This means that the second port (starting count from zero) on that NPU
experienced that drop.
So if your show controller np ports tells us that ports X Y and Z are
connected to this NPU, and the drop index is _1, then port Y is the
culprit.
BRKSPG-2904
Cisco Public
49
You can monitor any counter in the NPU on Typhoon generation line cards
Captured packets are always dropped
Exists automatically after capturing <N> packets or when timeout is reached
NPU is reset upon exit (~50ms forwarding stop)
This will be enhanced later
BRKSPG-2904
Cisco Public
50
Cisco Public
51
LPTS
packets in
App 1
good packets
for-us packets
LPTS Internal FIB
(IFIB)
FIB
App 2
RP
LC
DCoPP
transit
packets out
RP
Dynamic Control
Plane Policing
Local
Stacks
bad packets
LC
Cisco Public
53
Router bgp
neighbor 202.4.48.99
ttl_security
! mpls ldp
port
Rate
ICMP
ANY
ANY
1000
Priority
low
any
179
any
any
100
medium
any
179
202.4.48.99
any
1000
medium
202.4.48.1
179
202.4.48.99
2223
10000
medium
200.200.0.2
13232
200.200.0.1
646
100
medium
ttl
255
Socket
port
Any
LPTS
Local
BGP
LDP
SSH
Cisco Public
54
Tightening LPTS
If you can use only p2p OSPF network type
flow OSPF-uc-known rate 0
flow OSPF-uc-default rate 0
Note that OSPF p2p network type is the recommended setting even
on Ethernet interfaces unless you have multiple routers on the same
segment.
Do we really need BGP, LDP-TCP, MSDP, default for unconfigured
sessions
Flow BGP-default rate 0
Flow LDP-tcp-default rate 0
Flow MSDP-default rate 0
Cisco Public
55
DCN
IP/MPLS
In-band MPP
I/F 1
LPTS
I
/
F
R
P RP
CPU
E
t
h
I/F 2
Cisco Public
56
Cisco Public
58
Ingress LC
CPU
LC-CPU
4a
ucode
3b
1
BRKSPG-2904
4b
PIFIB
(TCAM, dynamic)
3c
NP
3a
ucode
F
A
B
R
I
C
Egress LC
Cisco Public
BRKSPG-2904
Cisco Public
60
BRKSPG-2904
Cisco Public
61
Trident LC
Typhoon LC
CPU Port
TSEC (2x1G):
TSEC2 / TSEC3
DPAA (1x10G)
Punt Switch
10 port / 16 port
(1G)
Port7: TSEC2
Port8: TSEC3
Port[0..(N-1)]: NP
[0 (N-1)]
(exception 8 NP LC)
24x1G + 2x10G
Port24: 10G DPAA
Port10: 1G DPAA
Port [0 (N-1)]: NP [0
(N-1)]
NP
Trident
Typhoon
FIA
Octopus
Skytrain
Bridge
Punt
Fabric (XBAR)
N.A
Sacramento
BRKSPG-2904
Cisco Public
62
LPTS recap
Local Packet Transport System
Pre-IFIB packet processing (for-us packets)
Control plane for Control packets
L3 applications on RSP responsible for triggering / installation of the LPTS entries
LPTS entries are installed in software (on the local CPU) and in hardware (TCAM)
3 categories
Default entries (TCAM) : L3
Dynamic entries (TCAM) : L3
Static entries (NP SRAM) : L2 / internal interest
show lpts pifib hardware entry type <ipv4 | ipv6> brief location <LC>
show lpts pifib hardware entry type <ipv4 | ipv6> statistics location <LC>
show prm server tcam .
show lpts pifib hardware static-police location <LC>
Displays the Static punt table stats. Ie. Exception packet punts
(PRM is platform resource manager, the entity that controls the hw programming between CPU nad NPU+its attached asics/memory)
BRKSPG-2904
Cisco Public
63
SPP Rx on RSP
BRKSPG-2904
Cisco Public
64
Netio Rx on RSP
show netio idb FINT location RSP
show netio drops location RSP
debug netio drivers location RSP [filter packets coming in from fabric]
very chatty!!!
debug lpts packet [for debugging packets of type PKT_LPTS]; use
drops, detail, errors, etc.
BRKSPG-2904
Cisco Public
65
Cisco Public
66
RSP2
run spp_ui
spp_ui> ioctrl mib
8641D
CPU
BRKSPG-2904
TSEC3
Punt
FPGA
show controllers fabric fia <drops | errors> <ingress | egress> loc <RSP>
show controllers fabric fia link-status loc <RSP>
FIA
Fabric
DDR
Cisco Public
67
RSP440
show controllers fabric fia <drops | errors> <ingress | egress> loc <RSP>
show controllers fabric fia link-status loc <RSP>
Jasper
Forest CPU
BRKSPG-2904
10G
DMAC
Dao
FPGA
DDR
Skytrain
(FIA)
Sacramento
(XBAR)
Cisco Public
68
Trident LC
8641D
CPU
TSEC2
TSEC3
Punt
Switch
TM
Show qoshal punt-queue np <> loc <LC>
show qoshal default-queue port <> loc <LC>
BRKSPG-2904
Show controllers
fabric fia bridge stats
location <LC>
NP
MAC
Bridge
Show controllers
fabric fia stats location
<LC>
Octopus
(FIA)
Show controllers
<interface> stats
Cisco Public
69
Typhoon LC
P4040
CPU
1G DPAA
10G DPAA
Punt
Switch
TM
Show qoshal punt-queue np <> loc <LC>
show qoshal default-queue port <> loc <LC>
BRKSPG-2904
NP
MAC
Skytrain
(FIA)
Sacramento
(XBAR)
Show controllers
<interface> stats
Cisco Public
70
RSVP-TE
Static
LSD
BGP
OSPF
ISIS
EIGRP
RIB
RSP CPU
ARP
FIB
SW FIB
Adjacency
AIB
LC NPU
LC CPU
BRKSPG-2904
Cisco Public
72
RSVP-TE
Static
LSD
HW FIB
BGP
OSPF
ISIS
EIGRP
RIB
RSP CPU
ARP
SW FIB
LC CPU
BRKSPG-2904
SW FIB
HW FIB
LC NPU
LC NPU
Ingress LC
AIB
LC CPU
Cisco Public
Egress LC
73
RSVP-TE
Static
LSD
OSPF
ISIS
EIGRP
RIB
Ingress Lookup
HW FIB
BGP
RSP CPU
ARP
SW FIB
LC CPU
BRKSPG-2904
SW FIB
Egress Lookup
HW FIB
LC NPU
LC NPU
Ingress LC
AIB
LC CPU
Cisco Public
Egress LC
74
L3FIB
32ways
Non-Recursive
Prefix Leaf
NR NR
LDI LDI
NR
LDI
OIF
Adj
Adj
LAG (64
members)
OIF
Protected TE
Adj
LAG
OIF
8 or 32 ways
Recursive
Prefix Leaf
R R R R
LDI LDI LDI LDI
Non-Recursive
LDI
Adjacency
pointer
Backup TE Adj
Recursive
Prefix Leaf
BRKSPG-2904
OIF
Recursive
LDI
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
75
LDP
RSVP-TE
Static
LSD
BGP
OSPF
ISIS
EIGRP
RIB
RSP CPU
BRKSPG-2904
FIB
Adjacency
LC NPU
Cisco Public
76
LSD
RIB
Cisco Public
77
BRKSPG-2904
Cisco Public
78
Load balancing
section (if any)
Section repeats for
every NP
Cisco Public
79
Matches egress_ifhandle
from previous slide
Matches rx_adj_field from previous slide
Ports connected to the same NPU share the
same SFP value
BRKSPG-2904
Cisco Public
80
Age
Hardware Addr State
Type Interface
00:43:01 001b.53ff.9a99 Dynamic ARPA GigabitEthernet0/7/0/2
Cisco Public
81
BRKSPG-2904
Cisco Public
82
L3 Unicast Forwarding
Packet Flow (Simplified)
from wire
LAGID
lookup key
L3: (VRF-ID, IP DA)
TCAM
rxIDB
L3FIB
rx-adj
Packet
classification
Source
interface info
L3 FIB
lookup
Next-hop
Rx LAG hashing
LAG
SFP
SFP
Switch Fabric Port
(egress NPU)
Packet rewrite
System headers added
ECH Type:
L3_UNICAS
T
rewrite
SFP
Ingress NPU
Fabric
Tx LAG hashing
LAG
rewrite
txIDB
tx-adj
L3FIB
destination
interface info
Next-hop
L3 FIB
lookup
ECH Type:
L3_UNICAST
Egress NPU
to wire
BRKSPG-2904
Cisco Public
83
BRKSPG-2904
Cisco Public
0/7/CPU0
bytes
bytes
bytes
bytes
84
L2 access AC to PW over mpls enabled core facing bundle uses PW label (not FAT-PW label even if configured)
Cisco Public
85
Load-balancing scenarios
45 for ipv4
BRKSPG-2904
Cisco Public
86
This means that if you have a P router that has no knowledge about the MPLS service of
the packet, that nibble can either mean the IP version (in MPLS/IP) or it can be the
DMAC (in EoMPLS).
RULE: If you have EoMPLS services AND macs are starting with a 4 or 6. You HAVE to
use Control-Word
45 (ipv4)
L2
MPLS
MPLS
0000 (CW)
41-22-33 (mac)
4111.0000.
Control Word inserts additional zeros after the inner label showing the P nodes to go for
label based balancing.
In EoMPLS, the inner label is VC label. So LB per VC then. More granular spread for EoMPLS can be
achieved with FAT PW (label based on FLOW inserted by the PE device who owns the service
BRKSPG-2904
Cisco Public
87
88
ADJ
1G
1/6th
1G
Prefix
100.100.100.0/24
5/6th
1G
BGP Next Hop 2
3.3.3.3
5G
1G
1G
1G
Cisco Public
IGP Hop 1
ADJ
IGP Hop 1
198.18.7.2
ADJ
IGP Hop 2
198.18.7.6
ADJ
IGP Hop 3
198.18.7.10
ADJ
IGP Hop 4
198.18.7.14
ADJ
IGP Hop 5
198.18.7.18
ADJ
89
3.3.3.3/32, version 611, internal 0x4000001 (ptr 0x7178e220) [4], 0x0 (0x0), 0x0 (0x0)
BRKSPG-2904
router static
address-family ipv4 unicast
3.3.3.3/32 198.18.7.2
3.3.3.3/32 198.18.7.6
3.3.3.3/32 198.18.7.10
3.3.3.3/32 198.18.7.14
3.3.3.3/32 198.18.7.18
Buckets for LB
distribution and
path index
Cisco Public
90
router static
address-family ipv4 unicast
3.3.3.3/32 198.18.7.2
3.3.3.3/32 198.18.7.6
3.3.3.3/32 198.18.7.10
3.3.3.3/32 198.18.7.14
3.3.3.3/32 198.18.7.18
router static
address-family ipv4 unicast
3.3.3.3/32 GigabitEthernet0/0/0/5.10 198.18.7.2
3.3.3.3/32 GigabitEthernet0/0/0/5.20 198.18.7.6
3.3.3.3/32 GigabitEthernet0/0/0/5.30 198.18.7.10
3.3.3.3/32 GigabitEthernet0/0/0/5.40 198.18.7.14
3.3.3.3/32 GigabitEthernet0/0/0/5.50 198.18.7.18
BRKSPG-2904
Hash OK Interface
Address
0 Y GigabitEthernet0/0/0/5.10 remote
1 Y GigabitEthernet0/0/0/5.20 remote
2 Y GigabitEthernet0/0/0/5.30 remote
3 Y GigabitEthernet0/0/0/5.40 remote
4 Y GigabitEthernet0/0/0/5.50 remote
Cisco Public
91
Hash OK Interface
Address
Y GigabitEthernet0/0/0/5.50 remote
Y GigabitEthernet0/0/0/5.10 remote
Y GigabitEthernet0/0/0/5.20 remote
Y GigabitEthernet0/0/0/5.30 remote
Y GigabitEthernet0/0/0/5.40 remote
BRKSPG-2904
Y
Y
Y
Y
Y
GigabitEthernet0/0/0/0
GigabitEthernet0/0/0/0
GigabitEthernet0/0/0/0
GigabitEthernet0/0/0/0
GigabitEthernet0/0/0/0
remote
remote
remote
remote
remote
Cisco Public
92
Address
Y GigabitEthernet0/0/0/5.10 remote
Y GigabitEthernet0/0/0/5.20 remote
Y GigabitEthernet0/0/0/5.30 remote
Y GigabitEthernet0/0/0/5.40 remote
Y GigabitEthernet0/0/0/5.50 remote
BRKSPG-2904
Cisco Public
93
Great references
Understanding NP counters
https://supportforums.cisco.com/docs/DOC-15552
BRKSPG-2904
Cisco Public
94
MRIB
PIM
MFIB PI
MFIB PI
MFIB PI
MFIB PD
MFIB PD
MFIB PD
LC1
LC2
LC0
BRKSPG-2904
Cisco Public
96
LC
MFIB PD
NETIO
PRM/uIDB
NP
BRKSPG-2904
MGID Server
Fabric
Cisco Public
97
BRKSPG-2904
Cisco Public
98
FGID (Slotmask)
FGIDs: 10 Slot Chassis
LC 5
LC 4
RSP 0
RSP 1
LC 3
LC 2
LC 0
LC 6
LC 1
LC 7
Logical
Slot
Logical
Slot
LC 3
LC 2
LC 1
LC 0
RSP 1
RSP 0
Slot
Slot
Logical
Slot Mask
Physical
Binary
Hex
LC7
1000000000
0x0200
LC6
0100000000
0x0100
LC5
0010000000
0x0080
LC4
0001000000
0x0040
RSP0
0000100000
0x0020
RSP1
0000010000
0x0010
LC3
0000001000
0x0008
LC2
0000000100
0x0004
LC1
0000000010
0x0002
LC0
0 Cisco Systems,0000000001
2006
Inc. All rights reserved.
BRKSPG-2904
Slot Mask
Logical
Physical
Binary
Hex
LC3
0000100000
0x0020
LC2
0000010000
0x0010
LC1
0000001000
0x0008
LC0
0000000100
0x0004
RSP1
0000000010
0x0002
FGID Calculation
0
0000000001
Examples
0x0001
RSP0
Target Linecards
LC6
0x0100
LC1 + LC5
Cisco0x0001
Confidential
EDCS:xxxx
Cisco Public
99
MGID Tables
MGID Bitmasks
MGID
FIA
Bridge1
MGID
NP3
BRKSPG-2904
Bit 1
Bit 0
Bit 1
Bit 0
Bridge0
NP2
2013 Cisco and/or its affiliates. All rights reserved.
MGID
NP1
Cisco Public
Bit 1
Bit 0
NP0
100
MGID Tables
MGID
FIA
Bridge1
MGID
NP3
BRKSPG-2904
Bridge0
NP2
2013 Cisco and/or its affiliates. All rights reserved.
MGID
NP1
Cisco Public
NP0
101
NP3
Trident LC
Typhoon LC
NP1
FIA
RSP
Br1
NP2
3x
10G
NP3
3x
10G
NP4
3x
10G
NP5
3x
10G
NP6
3x
10G
NP7
3x
10G
NP8
3x
10G
NP2
FIA
Br0
NP0
controller np ports all loc <>
Show controller np counters <np> loc <Ingress NP:
ENET RX From Port
FAB TX To fabric
IPv4MC_DO_ALL_BUT_FRD Punt only
IPv4MC_DO_ALL punt to LC CPU
IFIB IGMP, PIM Control packets
BRKSPG-2904
FABRIC
ASIC
NP1
Switch Fabric
FIA
FIA
FIA
controller np ports all loc <>
Show controller np counters <np> loc <
Egress NP:
ENET FAB RX From Fabric
FAB TX to TM
LOOPBACK RX from TM
ENET TX to port
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
3x10G
E
SFP +
3x10G
E
SFP +
3x10G
E
SFP +
3x10G
E
SFP +
3x10G
E
SFP +
3x10G
E
SFP +
3x10G
E
SFP +
3x10G
E
SFP +
102
BRKSPG-2904
Cisco Public
103
LC1
T3
B0
T2
T1
B1
Fabric
Interface
IGMP
T0
3
4
BRKSPG-2904
Switch Fabric
IGMP Snooping
2
L2FIB
L2FIB
RP
Cisco Public
104
(142.0.0.2,
225.0.0.1/225.0.0.2)
Receiver
Gig0/4/0/10.101
Join 225.0.0.1,
225.0.0.2
Receiver
Gig0/4/0/3.102
Join 225.0.0.1
Gig0/4/0/2
Ten0/5/0/1
Source
Gig0/4/0/10.100
igmp v2
interface GigabitEthernet0/4/0/10.101
ipv4 address 33.0.2.1 255.255.255.0
encapsulation dot1q 101
interface GigabitEthernet0/4/0/3.102
ipv4 address 42.0.1.2 255.255.255.0
encapsulation dot1q 102
interface TenGigE0/5/0/1
ipv4 address 40.0.75.2 255.255.255.0
!
multicast-routing
address-family ipv4
interface all enable
router pim
address-family ipv4
rp-address 110.0.0.24
interface TenGigE0/5/0/1
enable
interface GigabitEthernet0/4/0/3.102
enable
interface GigabitEthernet0/4/0/10.101
enable
RP/0/RSP0/CPU0:ASR9K-3#
BRKSPG-2904
(142.0.0.2,
225.0.0.1/225.0.0.2)
(142.0.0.2,
225.0.0.1/225.0.0.2)
multicast-routing
address-family ipv4
interface all enable
router pim
address-family ipv4
rp-address 110.0.0.24
interface GigabitEthernet0/4/0/2
enable
interface GigabitEthernet0/4/0/10.100
enable
RP/0/RSP0/CPU0:ASR9K-2#
Cisco Public
105
Cisco Public
106
MGID tables
Cisco Public
107
MGID/FGID and NP
RP/0/RSP0/CPU0:asr9k-3#show mfib hardware route olist 225.0.0.1 location 0/4/CPU0
------ SNIP---Source: 142.0.0.2
Group: 225.0.0.1
Mask: 64 RPF Int: Te0/5/0/1
Route Information
-----------------------------------------------------------------------B S DC PL PR PF DR RI
FS
G
M
-----------------------------------------------------------------------F F F F F F F 0xe000100 0x40
19918 3797 FGID and MGID values
-----------------------------------------------------------------------Interface Information
-----------------------------------------------------------------------NP Intf
OT U
T IC B
-----------------------------------------------------------------------2 Gi0/4/0/10.101 REG 85
1 F F
NP and Outgoing port info
3 Gi0/4/0/3.102
REG 109
1 F F
NP and Outgoing port info
-----------------------------------------------------------------------OLIST counts
-------------------------------------------------------NP:
0
1
2
3
Count:
0
0
1
1 Shows 1 port from NP 2 and 3 interested in traffic.
-------------------------------------------------------RP/0/RSP0/CPU0:asr9k-3#
BRKSPG-2904
Cisco Public
108
Information
NP ID
uIDB index
Table ID
HW BACL bit
Bundle interface
OLIST index on NP
Statistics Ptr base
Intf:
OT:
IC:
EU:
EH:
PT:
RM:
Interface
OLE Type
HW IC flag
Interface uIDB index
In HW OLIST table
Punt table entry
Remote FGID (Pri/Back)
BRKSPG-2904
Cisco Public
109
N:
R:
F:
P:
ID:
ED:
Cisco Public
NP ID
Received
Forwarded
Punted to CPU
Ingress Drop
Egress Drop
110
QOS architecture
111
PHY
NP0
PHY
NP1
PHY
NP2
PHY
NP31
Egress side of LC
CPU
Ingress (sub-)interface
QoS Queues
FIA
FIA
Switch
Fabric
3
Virtual
Output
Queues
Configure with
Ingress MQC 4-layer hierarchy
Two strict high priority + Normal priority
BRKSPG-2904
NP0
CPU
Egress FIA
Queues
Implicit Configuration
Two strict high priority +
Normal priority
PHY
NP1
PHY
NP2
PHY
NP3
PHY
Egress (sub-)interface
QoS Queues
112
1: Fabric Request
Crossbar
Fabric
ASIC
5: credit return
Crossbar
Fabric
ASIC
Ingress LC
Egress LC
Arbiter
FIA
FIA
2: Arbitration
Crossbar
Fabric
ASIC
3: Fabric Grant
4: load-balanced
transmission across
fabric links
Crossbar
Fabric
ASIC
Arbiter
RSP1
BRKSPG-2904
Cisco Public
113
BRKSPG-2904
Cisco Public
114
No head-of-line-block issue
Backpressure: egress NP egress FIA
fabric Arbiter ingress FIA VoQ
5Gbps
NP0
PHY
NP1
PHY
NP2
PHY
NP3
5Gbps
CPU
CPU
FIA
FIA
Switch
Fabric
Packet going to different egress NP put into different VoQ set Congestion on
2013 Cisco
and/or its
affiliates.
All rights
reserved.to different NP
Cisco Public
one NP wont
block
the
packet
going
BRKSPG-2904
NP0
PHY
NP1
PHY
NP2
PHY
NP3
PHY
115
Linecard QoS
Switch Fabric Queuing mechanisms
Port 2
RSP 0
DRR
DRR
Port 3
DRR
Slot 9/Port 2
Port 1
DRR
Port 0
DRR
DRR
DRR
Slot 0/Port 1
DRR
Slot 0/Port 0
Slot 9/Port 3
DRR
DRR
RSP 1
Multicast
Switch Fabric
Multicast
Egress
Fabric ASIC
4 multicast classes == 4
4 multicast queues
BRKSPG-2904
2013 Cisco
and/or
its affiliates.
All rights reserved.
Cisco Public of VoQs
higher density cards
will
have
correspondingly
larger numbers
116
Trident
Egress (NP->Line)
Ingress (NP->Fabric)
Egress (NP->Line)
Cisco Public
117
Cisco Public
118
From wire
IFIB action
I/F
classification
ACL
classification
QOS
classification
Fwd lookup
QoS action
L2 rewrite
ACL action
IFIB lookup
To fabric
From fabric
egress linecard
ACL action
QoS action
BRKSPG-2904
QOS
classification
ACL
classification
L2 rewrite
Fwd lookup
To wire
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
119
From wire
IFIB action
I/F
classification
ACL
classification
QOS
classification
Fwd lookup
QoS action
L2 rewrite
ACL action
IFIB lookup
To fabric
ACL action
egress linecard
WRED classifies
on marked/remarked values
(doesntACL
switch class-maps!)
QOS
classification
Police
QoS action
BRKSPG-2904
classification
Mark
L2Queue/sha
rewrite
pe/WRED
Fwd lookup
To wire
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
120
Injected packets
BRKSPG-2904
Cisco Public
121
BRKSPG-2904
Cisco Public
122
ASR 9000
Linecard/NP QoS
Overview
BRKSPG-2904
Cisco Public
123
Cisco Public
124
Higher scale
Higher queue and policer scale
More granular bandwidth control for both policing and queuing
Higher buffer size
Cisco Public
125
BRKSPG-2904
Cisco Public
126
BRKSPG-2904
Cisco Public
127
Inner/outer cos
Inner/Outer vlan *
DEI*
Outer EXP
Dscp/Tos
TTL, TCP flags, source/destination L4 ports
Protocol
Source/Destination IPv4
Source/Destination MAC address*
Discard-class
Qos-group
match all/match any
Note:
Not all fields are supported on L3 interfaces*
Some fields dont make sense on ingress (e.g. dicard-class, qos-group)
MPLS classification is based on EXP only
BRKSPG-2904
Cisco Public
128
Fields supported
BRKSPG-2904
Format 0
Format 1
Format 2
Format 3
-Outer VLAN/COS/DEI
-Inner VLAN/COS
-IPV4 Source address
(Specific/Range)
-IP DSCP / TOS / Precedence
-QOS-group (output policy only)
-Discard-class (output policy only)
-Outer VLAN/COS/DEI
-Inner VLAN/COS
-IPV4 Destination address
(Specific/Range)
-IP DSCP / TOS / Precedence
-QOS-group (output policy only)
-Discard-class (output policy only)
-Outer VLAN/COS/DEI
-Inner VLAN/COS
-MAC Destination address
-MAC source address
-QOS-group (output policy
only)
-Discard-class (output
policy only)
Cisco Public
129
dscp/precedence
EXP imposition
EXP topmost
cos inner/outer
qos-group
discard-class
BRKSPG-2904
Cisco Public
130
ingress/egress) on extended
linecards
Policer actions supported:
transmit
drop
set (implicitly behaves like set and
transmit)
each color can have two set actions:
Policy-map parent
Class class-default
Police rate 10 Mbps peak-rate 20 mbps
conform-action set dscp af12
conform-action set cos 2
exceed-action set dscp af13
exceed-action set cos 3
Cisco Public
131
policy-map parent
class class-default
police rate 60 mbps
service-policy child
BRKSPG-2904
Cisco Public
132
policy-map parent
class class-default
service-policy child
police rate 60 mbps
child-conform-aware
BRKSPG-2904
Cisco Public
133
BRKSPG-2904
Cisco Public
134
Two parameter scheduler support at class level and subscriber group level
(L4, L2):
Shape & BwR (ratio / percent)
Shape & MinBw (absolute / percent)
Not supported: BwR & MinBw on the same class
BRKSPG-2904
Cisco Public
135
BRKSPG-2904
Cisco Public
136
Absolute vs Percentage
All relevant policy actions support both, absolute and percentage based
configuration:
shape
bandwidth
Police
bandwidth remaining*
Cisco Public
137
BRKSPG-2904
Cisco Public
138
Display HA Chkpt related info for all the chkpt tables for QoS EA
BRKSPG-2904
Cisco Public
139
Cisco Public
140
Cisco Public
141
142
143
linerate
PBS
PIR
CIR
RP/0/RSP0/CPU0:A9K-BNG#show policy-map int g 0/0/0/0 | i Queue
Queueing statistics
Queue ID
Queue(conform)
Queue(exceed)
BRKSPG-2904
:
:
: 136
0/0
0/0
Cisco Public
0
0
144
QOS summary
All Ethernet linecards support Queuing, Marking and Policing.
Some high speed linecards do not support ingress Queuing (but
support policing and marking).
Because their ingress TM (Traffic Manager) is disabled
BRKSPG-2904
Cisco Public
145
Egress Line
card
IPP=5 DSCP=44
Ingress
Line card
802.1p = 1 *
IPP=5 DSCP=44
802.1p = 1*
IPP=5 DSCP=44
802.1p = 1
IPP=5 DSCP=44
L2 (VPWS,
VPLS,
Bridging)
internal
cos = 1
802.1p= 1*
EXP= 1*
IPP=5 DSCP=44
EXP= 1*
IPP=5 DSCP=44
Carried in
internal
buffer
header
IPP=5 DSCP=44
Note: VPWS will be treated like a L2 operation on ingress - Applies for all tags/labels in the stack that get imposed.
Not for VLAN translation. Bridging on egress without adding an vlan header is an hypothetical case in case we have a need.
IPP = IP Precedence, showing IPP & DSCP seperately since policymap can treat precedence and dscp separately as required.
BRKSPG-2904
Cisco Public
146
Untagged
IPP=5 DSCP=44
L2 (VPWS,
VPLS,
Bridging)
internal
cos = 0
802.1p = 0 *
IPP=5 DSCP=44
802.1p = 0*
IPP=5 DSCP=44
802.1p= 0*
EXP= 0*
IPP=5 DSCP=44
EXP= 0*
IPP=5 DSCP=44
IPP=5 DSCP=44
Note: Trust cos in case of bridged interfaces in ingress. For untagged packets use cos = 0.
* - Applies for all tags/labels in the stack that get imposed.
BRKSPG-2904
Cisco Public
147
IPP=5 DSCP=44
L2 (VPWS,
VPLS,
Bridging)
internal
cos = 0
802.1p = 0 *
IPP=5 DSCP=44
802.1p = 0*
IPP=5 DSCP=44
802.1p= 0*
EXP= 0*
IPP=5 DSCP=44
EXP= 0*
IPP=5 DSCP=44
IPP=5 DSCP=44
Note: Trust cos in case of bridged interfaces in ingress. For untagged packets use cos = 0.
- Applies for all tags/labels in the stack that get imposed.
BRKSPG-2904
2013
and/or its affiliates.
All rights
Cisco Public
- Explicit NULL
EXP is treated the same as
anCisco
topmost
EXP of
nonreserved.
NULL labels.
148
IPP=5 DSCP=44
Routed
Interface
(IP/MPLS)
internal
cos = 5
802.1p = 5 *
IPP=5 DSCP=44
802.1p = 5 *
IPP=5 DSCP=44
802.1p= 5 *
EXP= 5 *
IPP=5 DSCP=44
EXP= 5*
IPP=5 DSCP=44
IPP=5
DSCP=44
Note: Trust dscp in case of routed interfaces in ingress. For Non IP packets use cos = 0
* - Applies for all tags/labels in the stack that get imposed.
BRKSPG-2904
Cisco Public
149
802.1p = 1
IPP=5 DSCP=44
Routed
Interface
(IP/MPLS)
internal
cos = 5
802.1p = 5 *
IPP=5 DSCP=44
802.1p = 5 *
IPP=5 DSCP=44
802.1p= 5 *
EXP= 5 *
IPP=5 DSCP=44
EXP= 5*
IPP=5 DSCP=44
IPP=5
DSCP=44
Note: Trust dscp in case of routed interfaces in ingress. For Non IP packets use internal dscp= 0
* - Applies for all tags/labels in the stack that get imposed.
BRKSPG-2904
Cisco Public
150
IPP=5 DSCP=44
Routed
Interface
(IP/MPLS)
internal
cos = 3
802.1p = 3 *
IPP=5 DSCP=44
802.1p = 3 *
IPP=5 DSCP=44
802.1p= 3 *
EXP= 3 *
IPP=5 DSCP=44
EXP= 3 *
IPP=5 DSCP=44
IPP=5 DSCP=44
Note: Trust EXP/dscp in case of routed interfaces in ingress. For Non IP packets use internal dscp= 0. Do not
overwrite DSCP fields exposed during disposition to support pipe mode by default.
BRKSPG-2904
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
* - Applies for
all tags/labels in the stack
that get imposed.
151
Scaled ACL
BRKSPG-2904
Cisco Public
153
Configuration improvements:
BRKSPG-2904
Cisco Public
154
TCAMs:
Essentially reverse memory that takes a lookup key and mask, and returns
a result. (TCAM rule or ValueMaskResult)
Always returns the result in a single memory access (i.e. order one
lookup) so its really fast and very determinstic.
BUT, TCAMs are large, dedicated hardware devices. High power, high
cost, and limited to (practically) tens of thousands of rules.
BRKSPG-2904
Cisco Public
155
Configuration improvements:
object-group network ipv4 SRC_1
10.10.1.0/24
host 4.5.6.7
!
object-group network ipv4 SRC_2
20.20.1.0/24
host 7.8.9.10
!
object-group network ipv4 DEST_1
30.30.0.0/16
host 3.4.5.6
Cisco Public
PORT_1
PORT_1
PORT_2
PORT_2
156
test notes/observations
security only ACLs in 4.3.1
no QoS or other applications
BRKSPG-2904
Cisco Public
157
Compression levels
There are three available compression levels for a scaled ACL. (level 2 is not
used/implemented at present on the asr9k...)
level 0 simply expands the object groups and dumps into TCAM (cross product)
identical performance to legacy ACL
Benefit: more convenient configuration
BRKSPG-2904
Cisco Public
158
BRKSPG-2904
Cisco Public
159
shows you how many ACEs, how many TCAM entries, and TCAM entries
per ACE (must be applied to see)
show pfilter-ea fea summary loc <loc>
shows how many total ACEs/TCAM entries/stats counters are used on the
linecard (per NP, where NP=chan#)
show access-lists ipv4 <acl> hardw ing resource-usage LOC
BRKSPG-2904
Cisco Public
160
Cisco Public
161
Non hybrid, tree based ACL differ in performance where you match in the ACL,
ASR9000 does NOT suffer from that (TCAM!)
Disclaimer: These are indicational numbers from benchmarking only, specific to release and subject to variation
BRKSPG-2904
Cisco Public
162
Performance overview
ASR9k: combination of short prefix trees and
O(1) TCAM lookups. Very consistent
performance based on compression levels.
asr9k (level 0)
asr9k (level 1)
asr9k (level 3)
Competitor X
Tree based only
10^2
10^4
10^5
10^7
10^9
Cisco Public
163
Cisco Public
165
SMU Manager
Internet
Intranet
Customer
www.cisco.com
Secure
Connection
Cisco Tools
Automated
SW management
capabilities
Auto Discovery
Multi Node
Recommendations
Analysis and Optimization
BRKSPG-2904
PIMS
Release Ops
SMU Tool
Cisco Public
166
Green areas
cannot restart
BGP
OSPF
EIGRP
ISIS
RIP
VPN
SSH
Telnet
Server
ACLs
LDP
IPv4 Forwarding
TCP/IP
Timers
BRKSPG-2904
Telnet
Server
ACLs
IPv4 Forwarding
Drivers
TCP/IP
Drivers
Scheduler
Timers
Scheduler
BGP
OSPF
EIGRP
ISIS
RIP
VPN
SSH
Telnet
Server
ACLs
LDP
IPv4 Forwarding
TCP/IP
Timers
Drivers
Scheduler
Monolithic
Kernel
Microkernel
IOS
IOS XR
Cisco Public
167
0x000000
No more SYS-MEMDUMP!
0x100000
0x300000
0x200000
0x400000
0x500000
1
OSPF
2
3
0x600000
0x00000
0x10000
0x20000
0x700000
0x800000
0x900000
0xa00000
BRKSPG-2904
Cisco Public
168
App1
App2
SNMP architecture
R
X
snmpd
Concurrent Requests to
multiple MIB daemons
- Q per MIBD
4.2+ Behavior
engine
MIBD
interface
caching
Q
MIBD Entity
FOO-MIB dll
sysdb
Serialized PDU
Processing
Serialized PDU
Processing
Q dispatcher
Cisco Public
169
L3
EFP (Ethernet
Flow Point) or
sub-interface
Routing
Bridging
EoMPLS PW
VPLS
EoMPLS PW
P2P VPWS
Flexible Ethertype
(.1Q, QinQ, .1ad)
EoMPLS PW
Bridging
Multipoint bridging
P2P local
connect
2
BRKSPG-2904
Cisco Public
170
l2vpn
Two logical ports (EFP or PW) form one EVC (Ethernet virtual circuit)
No MAC learning/forwarding involved
BRKSPG-2904
Cisco Public
171
7600 IOS
VLAN tag classification, rewrite, service mapping are all done on the port level (with some
exceptions), which is classic IOS CLI
Introduced service instance configuration mode for better L2VPN scale
Legacy switchport feature support in parallel (but cant co-exist with EVC on the same port)
IEEE trunks
Interface VLAN
172
ASR 9000
Local
Connect
EoMPLS
PW
stitching
BRKSPG-2904
7600
interface GigabitEthernet4/1/0
service instance 101 ethernet
encapsulation dot1q 101 second 10
rewrite ingress tag pop 2 Symmetric
interface GigabitEthernet4/1/1
service instance 100 ethernet
encapsulation dot1q 100
rewrite ingress tag pop 1 Symmetric
interface GigabitEthernet4/1/1
service instance 11 ethernet
encapsulation dot1q 101 second-dot1q 60-70
xconnect 10.0.0.3 101 encapsulation mpls
Cisco Public
173
l2vpn
bridge group cisco
bridge-domain domain1 local bridging
Interface gig 0/0/0/1.101
split-horizon group no bridging among same SHG
Interface gig 0/0/0/2.101
split-horizon group
bridge-domain domain2 vpls
Interface gig 0/0/0/1.101
Interface gig 0/0/0/2.101
vfi cisco
neighbor 192.0.0.1 pw-id 100
neighbor 192.0.0.2 pw-id 100
bridge-domain domain3 h-vpls
Interface gig 0/0/0/1.101
neighbor 192.0.0.3 pw-id 100 spoke PW
vfi cisco core PWs
neighbor 192.0.0.1 pw-id 100 core PW
neighbor 192.0.0.2 pw-id 100
Cisco Public
174
l2vpn
bridge group cisco
bridge-domain domain50
Interface gig 0/0/0/1.50
Interface gig 0/0/0/2.50
routed interface bvi 20
Interface vlan 50
ip address 1.1.1.1 255.255.255.0
Interface bvi 20
ipv4 address 1.1.1.1 255.255.255.0
BRKSPG-2904
Cisco Public
175
Local Bridging
E-LINE (VPWS)
Local
connect
BRKSPG-2904
l2vpn
xconnect group LocalConnect
p2p someone
interface GigabitEthernet0/0/0/1.5
interface GigabitEthernet0/0/0/1.6
interface gig 0/0/0/1.100
encapsulation dot1q 200 second 200
ipv4 address 1.1.1.1 255.255.255.0
2013 Cisco and/or its affiliates. All rights reserved.
E-LAN (VPLS)
Local
connect
L3 service
Cisco Public
176
4.
5.
6.
Linecard 2
Data Plane
BD
1
P2
Linecard 1
4
SA=A, DA=B
P3
P4
P5
P6
Data Plane
BD
1
P1
P2
P2
SA=A, DA=B
Linecard 3
Data Plane
BD
1
Cisco Public
P2
SA=A, DA=B
177
BRKSPG-2904
Cisco Public
178
PE
Virtual
Port-based
Service
PW Context
Service Delimiters
S-I
PW
Forwarder
PE
PW
Forwarder
S-I
Pseudowire
(PW)
Ingress
Encapsulation
Adjustment
Egress
Encapsulation
Adjustment
EVC Encapsulation Adjustment is independent of negotiated Pseudowire (PW) Type; PW type dictates
VLAN adjustment in PW Forwarder only
For Ethernet PW (Type 5), frames pass through PW Forwarder with the Ethernet header unmodified
For VLAN PW (Type 4), the PW Forwarder adds Dummy VLAN in imposition path and rewrites that
VLAN in disposition path
Golden rule, always pop the service delimit VLAN tag regardless of the VC type
BRKSPG-2904
Cisco Public
179
References
BRKSPG-2904
Cisco Public
180
References
ASR9000/XR What is the difference between the -p- and -px- files ?
ASR9000/XR Flexible VLAN matching, EVC, VLAN-Tag rewriting, IRB/BVI and defining L2 services
ASR9000/XR Using Task groups and understanding Priv levels and authorization
Using Embedded Event Manager (EEM) in IOS-XR for the ASR9000 to simulate ECMP "min-links"
BRKSPG-2904
Cisco Public
181
Summary
So what have we discussed today
BRKSPG-2904
Cisco Public
182
Call to Action
Visit the World of Solutions: Cisco Campus
Walk-in Labs
Technical Solutions Clinics
Meet the Engineer
Cisco Public
183
BRKSPG-2904
Cisco Public
184