Presentation_ID
Cisco Public
Session Goals
To provide you with a thorough understanding of the Catalyst 6500 IP Multicast architecture and packet flow To provide you with a thorough understanding of the Catalyst 4500 & 4900 IP Multicast architecture and packet flow
Presentation_ID
Cisco Public
Session Assumptions
Working understanding of General (platform-independent) IPv4 & IPv6 Multicast Working understanding of Catalyst 6500 & 4500/4900 (platform-dependent) architecture and operation
Advanced IP Multicast architecture covered in: IPM-2008: Advanced Topics in IP Multicast Deployment
Presentation_ID
General Catalyst 6500 architecture covered in: RST-3465: Cisco Catalyst 6500 Switch Architecture
General Catalyst 4500/4900 architecture covered in: RST-3445: Cisco Catalyst 4500 Switch Architecture
Cisco Public
Presentation_ID
Cisco Public
Presentation_ID
Cisco Public
Presentation_ID
Cisco Public
Presentation_ID
Cisco Public
Source Tree
Rooted at Source2 2
Source1
Source2
Does NOT use Rendezvous Points (RPs), which makes it simpler to implement & deploy Data-driven Multicast state
Requires Periodic Flooding & Pruning on all PIM routers, and DR Election / Asserts on each subnet
Group membership tracked via IGMP v1 or v2 Catalyst Switches provide support for:
IPv4 PIM-DM (S,G) forwarding IGMPv1 & v2 and Snooping
Presentation_ID
Receivers
Cisco Public
Shared Tree
RP
Uses both Shared (RP) & Source based Trees Data-driven Multicast state
Group membership tracked via IGMP v1, v2, or v3 (IPv4) or MLD v1 or v2 (IPv6) Catalyst Switches provide support for:
IPv4 and IPv6 (*,G) forwarding IPv4 and IPv6 (S,G) forwarding
Presentation_ID
Requires Source Registration, RP group-mapping, DR Election & Asserts, and SPT switch-over
Receivers
10
Source Tree
Rooted at Source2 2
Source1
Source2
Internet, Inter-Domain and Voice / Video distribution Requires only SSM Range, and DR Election / Asserts
Group membership tracked via IGMP v3 (IPv4) or MLD v2 (IPv6) Catalyst Switches provide support for:
IPv4 and IPv6 (S,G) forwarding IGMPv3 & MLDv2 and Snooping
Presentation_ID
S1,G1 S2,G1
S1,G1
Receivers
S1,G1
S2,G1
11
Shared Tree
Highly Scalable variation of PIM-SM, which assumes LOTS of Sources & Receivers Data-Flow Independent
RP
Pre-built (RP/DF-based) distribution trees = NO source registers, DR Asserts, or non-RPF issues Eliminates ALL (S,G) mroute state in the PIM network Multicast traffic can flow Up & Down (Bidirectional) on the Shared (RP-based) tree
Group membership tracked via IGMP v1 or v2 Catalyst Switches provide support for:
IPv4 PIM-Bidir (*,G) forwarding IGMP v1/2 & Snooping
Presentation_ID
Sources/Receivers
Cisco Public
12
SSM
Sparse Mode
(S,G) & (*,G)
Lookup Lookup arrives arrives
BiDir
Lookup Lookup
arrives arrives
Accept Accept
arrives arrives
(*,G)? (*,G)?
RPF RPF or or DF DF
RPF? RPF? RPF? RPF? OIF OIF List? List? PIM PIM Process Process OIF OIF !NULL? !NULL? Forward/ Forward/ Replicate Replicate
PIM PIM Process Process DF DF Forwarding Forwarding // Replication Replication Discard Discard
Discard Discard
rewrite rewrite
Presentation_ID
sent sent
S w S P T itc h o v e r
rewrite rewrite
Cisco Public
sent sent
rewrite rewrite
sent sent
13
Presentation_ID
Cisco Public
14
Host membership reporting for IPv4 Host membership reporting for IPv6
IGMP / MLD Snooping constrains multicast flooding on L2 switchports Snooping process uses both L2 & L3 Hardware & Software information
Based on received Join / Leave reports
Host Join Reports Receivers
PFC/DFC performs hardware protocol redirection of IGMP & MLD packets to SP CPU for processing
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
15
Presentation_ID
Cisco Public
16
MVPN
CE
Join
CE
Used for high-bandwidth data stream
Data MDT
Receiver
PE Default MDT
Receiver
Join
Traffic
Default MDT
Used for low-bandwidth & control-traffic only
Receiver
High-Rate Source
Presentation_ID
Rooted at Source PE: controls multicast distribution within MPLS VPN core
17
MVPN Extranet
Join
Receiver
MPLS Core
Join
Source
Traffic
Receiver
Allows IP Multicast content which originated in one MVPN, to be distributed to other MVPNs Two configuration requirements:
On Source PE or Receiver PE (or both) configure all relevant MVRFs Configure fallback static mroute (for Source VRF IP subnets: Source and / or RP address) to allow RPF check between MVRFs.
2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
Presentation_ID
18
Presentation_ID
Cisco Public
19
Active
Standby
Periodic Syncs
Benefit: Minimizes multicast traffic disruption during supervisor switchover Works with PIM Triggered Joins
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
Cisco Public
20
Benefit: Rebuilds the PIM multicast state very quickly after switchover
GenID 1
GenID 2
Standby Active
Failure
On switchover, new Active supervisor changes Generation ID field in PIM Hellos PIM neighbors use the new GenID as an indication that the neighbor on that Interface has no / old multicast state
GenID 1
Neighbor then sends triggered PIM Join messages for all (*,G) & (S,G) mroutes, which have that Interface as the RPF Interface Assumption is that PIM neighbors know how to interpret GenID field in PIM hello
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
GenID 2
Presentation_ID
Cisco Public
22
Ingress NetFlow tracks multicast traffic received (input) on an Interface Egress NetFlow tracks multicast traffic replicated (output) on an Interface
S3,G1
Ingress
Important for PIM-BiDir networks, where (S,G) entries NOT in mroute table
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
g1/1
Cisco Public
SNMP Server
SNMP MIBs
SNMP Traps
S3,G1
Egress
vlan100 vlan200
Special Trap called Multicast Heartbeat can be used to track availability of a Multicast group
ciscoIpMRouteMissingHeartBeats
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
Ingress
g1/1
Catalyst 6500
vlan300
24
Cisco Public
Presentation_ID
Cisco Public
25
Global Financials - Exchanges, Brokerages and FSPs Video Providers - Domestic / Foreign IPTV and Triple-Play ISPs Retail Enterprise - Inventory & Data-Base Distribution Government and Department of Defense
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
26
IPv4 & IPv6 PIM-SM & PIM-Bidir (*,G) mroute forwarding in hardware
IPv4 MVPN forwarding in hardware IPv4 IGMP v1/v2/v3 Snooping in hardware IPv4 PIM Snooping in hardware IPv6 MLD v1/v2 Snooping in hardware
WS-SUP720-3B/XL WS-SUP720-3B/XL
VS-S720-10GE-3C/XL VS-S720-10GE-3C/XL
27
Presentation_ID
Cisco Public
28
Classic
E-Series
Presentation_ID
Cisco Public
29
30
IGMP (Internet Group Management Protocol) v1, v2, v3 IGMP Snooping (v1, v2, v3) MLD (Multicast Listener Discovery) v1, v2 MLD snooping (v1, v2) PIM (Protocol Independent Multicast) SM (Sparse Mode) PIM DM (Dense Mode) PIM SSM (Source Specific Mode) PIM Bi-Dir (Bi-Directional)
E-Series
Yes Yes Yes Yes Yes Yes Yes Yes
Presentation_ID
Cisco Public
31
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Hardware Replication Multicast Packet Flows IGMP / MLD & PIM Snooping Multicast Forwarding on VSS
Catalyst 6500
Presentation_ID
Cisco Public
32
Presentation_ID
Cisco Public
33
1GE Uplinks
Bidir RP NetFlow
1 Gbps 1 Gbps
DRAM DRAM
Daughter Card
PFC3
Presentation_ID
DBUS RBUS
34
DRAM DRAM
Bidir RP NetFlow
L2 CAM
Daughter Card
PFC3C
32 Gbps Bus
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
35
SP CPU RP CPU
DRAM DRAM
Bidir RP NetFlow
Daughter Card
PFC3B
WS-SUP32-10GE-3B DBUS RBUS Central replication engine performs replication for ENTIRE system
36
Classic Module
Port ASIC Port ASIC Port ASIC Port ASIC
4xGE
4xGE
4xGE
4xGE
DBUS RBUS
Example: WS-X6148A-RJ-45
Classic Module
Port ASIC
Presentation_ID
48x10/100
37
CEF256 Module
Replication Engine
4xGE
Port ASIC
Port ASIC
4xGE
4xGE
Port ASIC
Port ASIC
Presentation_ID
DFC
MET
Replication Engine
4xGE
Port ASIC
Port ASIC
4xGE
4xGE
Port ASIC
4xGE
Port ASIC
Presentation_ID
Cisco Public
39
DBUS RBUS
Complex A Complex B
MET
Bus Interface
Bus Interface
CEF720 Module
MET
Port ASIC
CFC
12xGE 12xGE Fabric Interface & Replication Engine Connects to Fabric & Bus (CFC), and Replicates Packets to OILs
Cisco Public
Port ASIC
Layer3/4 Engine for FIB/ADJ, ACL, QoS, and NetFlow Lookups 20 Gbps Fabric Channel
MET
Complex A
Complex B
Layer 2 Engine
Layer 2 Engine
12xGE 12xGE
Port ASIC
DFC3
L3/4 Engine
MET
12xGE 12xGE
Port ASIC
Presentation_ID
Cisco Public
41
Multicast Hardware Architecture Multicast Hardware Replication Multicast Packet Flows IGMP / MLD & PIM Snooping Multicast Forwarding on VSS
Catalyst 6500
Presentation_ID
Cisco Public
42
Multicast protocols: PIM, IGMP / MLD, AutoRP / BSR, MSDP, MVPN, etc. Calculating RPF interfaces Managing software IP mroute table Downloading IP mroute table entries to SP (for installation in the PFC / DFC hardware)
1 Gbps
Inband Channels
1 Gbps
Presentation_ID
43
RP CPU derives 3 important data structures from the IP Multicast routing table...
Multicast FIB: Contains (S,G) & (*,G) entries, RPF VLAN, and BiDir RP index Adjacency Table: Contains L2 rewrite MAC information and MET index Multicast Expansion Table (MET): Contains Output Interface Lists (OILs)
SP (Supervisor)
MMLS-SP
RP CPU downloads tables to SP... SP CPU installs the tables into the appropriate hardware...
MET installed in replication engines Multicast FIB and Adjacency tables installed in PFC/DFC hardware
LC (Linecard)
MET
LC (Linecard)
FIB/ADJ
MET
MMLS-LC
Presentation_ID
MMLS-LC
2010 Cisco and/or its affiliates. All rights reserved.
Cisco Public
44
10.1.1.10, 239.1.1.1
Lookup Key 2 FFFFFFFF FFFFFFFF
10.1.1.10, 239.1.1.1 10.1.1.10, 239.1.1.1 10.1.1.10, 239.1.1.1 10.1.1.10, 239.1.1.1 10.1.1.10, 239.1.1.1 10.1.1.10, 239.1.1.1 10.1.1.10, 239.1.1.1
Patterns
Multicast Packet
Masks
FIB TCAM
Replication Engine(s)
MAC, MET Index 5 MAC, MET Index MAC, MET Index MAC, MET Index Adjacency Table
45
5 1 2 3
Multicast Packet
xxxxxxxx, 239.14.14.1 4
7 8
Result
Masks
FIB TCAM
Replication Engine(s)
MAC, MET Index 6 MAC, MET Index MAC, MET Index MAC, MET Index Adjacency Table
46
1 2 3 4 5 6 1 2 3 4 5 6
1 2 3 4 5 6
DF Interface Set
4093 4094
1 2 3 4 5 6
4093 4094
4093 4094
4093 4094
RP #1 RP #2 RP #3 RP #4
VLAN 3 4 5 6
VLAN 1 2 3
VLAN 3 4093
Port List
Gi4/12,Gi4/19 Gi9/1 Gi9/25,Gi9/29 Gi4/12,Gi4/22,Gi4/30 Te1/1 Gi4/1,Gi4/2,Gi4/3 Te8/1 Te8/3 Te2/1,Te2/2,Te2/9
MET Block
1019 700
100
Presentation_ID
Cisco Public
48
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Packet Flows Multicast Hardware Replication IGMP / MLD & PIM Snooping Multicast Forwarding on VSS
Catalyst 6500
Presentation_ID
Cisco Public
49
Multicast Replication
Process of creating copies of multicast packets on each Layer 3 OIF
Example: A PIM-SM (S,G) with 3 OIFs - multicast replication creates three copies of every packet received from source (S) & destined to group (G)
For Layer 3 Forwarding between (1 or many) interfaces Replication Engine does the replication
For Layer 2 Forwarding between ports in same LC Port ASIC does the replication
50
In a Classic (bus) system, replication occurs centrally on the Supervisor replication engine In a Fabric-enabled system, there are two possible replication modes:
Ingress replication Egress replication
Presentation_ID
Cisco Public
51
Linecard Linecard
MET
All replicated copies must also pass on the switching bus PFC performs forwarding lookups, and then replicates all packets Only one MET within the system (i.e. the MET on the Supervisor replication-engine)
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
Path Path over over which which actual actual frame Data (and / frame Data (and / or or Header) Header) is is transferred transferred between between Modules Modules and and the the Supervisor Supervisor
RBUS RBUS -- Result Result Bus: Path Bus: Path over over which which
Results Results of of L2-L3/L4 L2-L3/L4 forwarding-engine forwarding-engine lookups lookups by by the the Supervisor Supervisor (PFC) (PFC) are are passed passed back back to to Modules Modules
Cisco Public
52
Ingress Replication-Mode
Supported on Supervisor 720s & Supervisor 2 + SFM
Three Packets Cross Switch Fabric B RE A RE Switch Fabric D RE
Replication load is Distributed: Supervisor and / or Switching modules can perform replication Replication engine on the ingress module performs replication for all OIFs Input and replicated packets get lookup on PFC or ingress DFC
C RE
RE = Replication Engine
53
Egress Replication-Mode
Supported on Supervisor 720s with certain modules
Requires ALL egress-capable modules Input packets get one lookup on ingress PFC/DFC, replicated packets get lookup on egress PFC/DFC
A RE Switch Fabric D RE
e.g. CEF720, 6516A, 6548A-GETX, SIPs
RE
For OIFs on other (egress) modules, the ingress RE only sends a single copy of packet over Switch Fabric The replication-engine on the egress module then replicate for local OIFs MET on different egress-capable modules can be different / asymmetric
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
RE
54
MET Contents
OIF 2/1 2/2 Dest Index 2/1 2/2
Index
Module B
1 2
RE 2/1 2/2
Module A
Receiver Green
DROP
Switch Fabric
RE
Source
RE 2/3 2/4
Entry
1 2
MET Contents
MET Contents
OIF 2/1 2/2 Dest Index 2/1 2/2
Index
Module B
1 2
RE 2/1 2/2
Module A
Receiver Green
Switch Fabric
RE
Source
RE
2/3 2/4
Entry 1
OIF 2/3
MET Contents
56
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Hardware Replication Multicast Packet Flows IGMP / MLD & PIM Snooping Multicast Forwarding on VSS
Catalyst 6500
Presentation_ID
Cisco Public
57
L3/4 Engine
PFC3
Replication Engine
DBUS RBUS Classic Module A Source Receiver Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Entire Packet Packet Header S R
Port ASIC A
Blue S
Port ASIC B4
Blue R
Presentation_ID
Cisco Public
58
L3/4 Engine
PFC3
Replication Engine
5
Classic Module B
Port ASIC A
Port ASIC B
DBUS RBUS Classic Module A Source Receiver Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Entire Packet Packet Header S R
Port ASIC A
Port ASIC B
Blue S
Blue R
Presentation_ID
Cisco Public
59
8 Gbps
Fabric Interface
Replication Engine
CEF256 Module B
Fabric Interface 4
LC-DBUS LC-RBUS
8 Gbps
CEF256 Module A
MET
Replication Engine
Source Receiver Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Entire Packet Packet Header
S R
Blue S
Presentation_ID
Blue R
Cisco Public
60
PFC3
8 Gbps
9 Fabric Interface
Replication Engine
CEF256 Module B
Fabric Interface
LC-DBUS LC-RBUS
8 Gbps
CEF256 Module A
MET
5 Replication Engine
Source Receiver Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Entire Packet Packet Header
S R
Blue S
Presentation_ID
Blue R
Cisco Public
61
MET 20 Gbps
MET
Port ASIC
Source S Receiver R Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Internal VLAN Entire Packet Packet Header
Blue S
Presentation_ID
R Blue
2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
62
MET 20 Gbps
L2 Engine
MET
Port ASIC
Source S Receiver R Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Internal VLAN Entire Packet Packet Header
Blue S
Presentation_ID
R Blue
2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
63
MET 20 Gbps
12
12
L2 Engine
MET
Port ASIC
Source S Receiver R Blue VLAN Orange VLAN Green VLAN Red VLAN Purple VLAN Internal VLAN Entire Packet Packet Header
Blue S
Presentation_ID
R Blue
2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
64
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Hardware Replication Multicast Packet Flows IGMP / MLD & PIM Snooping Multicast Forwarding on VSS
Catalyst 6500
Presentation_ID
Cisco Public
65
IGMP / MLD
Purpose: Signal & Refresh group membership on receiver subnets IGMP (IPv4) & MLD (IPv6) supported IGMP v1, v2 & v3 protocol support for PIM-SM & PIM-BiDir IGMP v3 protocol support for PIM-SSM
MLD v1 & v2 protocol support for PIM-SM MLD v2 protocol support for PIM-SSM Operates on Layer 3 PIM interfaces
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
Option for SSM Mapping to translate IGMPv2 (*,G) joins into PIM-SSM (S,G) joins
Option for SSM Mapping to translate MLDv1 (*,G) joins into PIM-SSM (S,G) join
66
Switch snoops Layer 3 contents of IGMP / MLD packets Switch installs static Layer 2 forwarding entries for each multicast group MAC address
Multicast data traffic forwarded to appropriate Interfaces according to MAC address table entries (per VLAN)
Redirection logic ONLY redirects IGMP/MLD packets, not UDP (multicast data) packets
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
67
PIM Snooping
Purpose: Constrain unnecessary multicast flooding on Layer 2 mrouter ports PIM Snooping code also leverages both Hardware and Software:
Switch snoops Layer 3 contents of PIM packets
Switch installs / removes Layer 2 forwarding entries for interfaces which send PIM Joins / Prunes
PFC/DFC ASICs recognize PIM packets and redirects them to SP CPU (protocol redirection logic)
Multicast data traffic only forwarded to appropriate Interfaces according to PIM Snooping mroute table entries (per VLAN)
Protocol redirection ONLY redirects PIM packets, not UDP (multicast data) packets
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
68
DFC3
L2 Engine
Protocol Redirection Logic
L3/4 Engine
Presentation_ID
Port ASIC
Port ASIC
69
Cisco Public
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Hardware Replication Multicast Packet Flows IGMP / MLD & PIM Snooping
Catalyst 6500
Presentation_ID
Cisco Public
70
Presentation_ID
Cisco Public
71
Stand-Alone
STP/HSRP
Non-DR
Switch-1: Active
Virtual Switch
DR
VSL
Switch-2:-Standby
Inter chassis SSO (*,G) & (S,G) and L2 snooping entries synced across chassis, faster convergence
Simplified multicast topology eliminates PIM DR election process & Non-RPF traffic across inter-switch links
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
72
RP
VSS
ECMP
L3 MEC
DR
STP/HSRP L2 STP
Non-DR
DR
VSL L2 MEC
Receivers
Presentation_ID
Receivers
Cisco Public
Receivers
Receivers
73
SSO
Presentation_ID
Cisco Public
74
Stand-Alone
Non-DR Non-RPF flows
In Stand-Alone (multi-home) topologies, inter-switch link bandwidth is wasted due to non-RPF traffic between DR & non-DR VSS is a single DR, so there is no non-RPF traffic
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
75
RP
1
L3 L2/L3
DR
3 4
L3 L2/L3
2. Supervisor Failure
4. Downlinks Failure
Receivers
Receivers
Multicast State: 500 PIM groups @ 10 sources per-group = 5000 mroute entries With MMLS Egress Replication-Mode = 10,000 shortcuts in hardware Time is in Seconds
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
76
L3 MEC
VSS
L3 MEC
PIM DR
L2 MEC
Use Egress replication-mode (and egress-local) for higher multicast replication throughput
Egress replication-mode requires DFCs for optimized replication performance Size the total number of VSL member links to meet traffic requirements
Cisco Public
77
SP
RP
Presentation_ID
Cisco Public
78
VS STANDBY
The VS Active SP installs forwarding shortcuts onto the Active PFC, Standby PFC and all other DFCs in the VS System.
MET
MET
C2+
C2+
MET
MET
FIB/ADJ
Active SP
Standby
FIB/ADJ
VSL
SP
MET
Presentation_ID
Cisco Public
79
VS STANDBY
The SP on each Chassis manages & programs its own MET, and the METs of all local C2+ modules
Active SP
MET
Standby SP
MET
VSL
Presentation_ID
Cisco Public
80
Egress Core
R R M0 E
LC2
R3
M1 3 M0 E M1
R R
R
LC 1
M1 M0 E
2 MET3 E
LC1 (Ingress)
LC 3
R 6 4
VSL
7 R
LC2
R4 8 R5
Switch 1
LC3
M1
Switch 2
LC 4
MEC
Access Switch
5 R2
Cisco Public
I-E-E-E (Ingress-VSL-VSL-Egress)
Multicast packets may cross up to 4 DFCs Ingress DFC performs L2-L4 forwarding lookup Up to 3 DFCs (VSL) perform L2 egress lookup
81
Egress Core
R R M0 E R R 6 R 4 7 R
LC 1
R3
M1 2 M0 E 3 M1
M1 M0 8 E M1
LC2
LC2 (Egress)
LC 3
E
LC1 (Ingress)
VSL
R
R4 9 R5
LC 4
Switch 1
MET2
LC3 (Egress)
Switch 2
10
MET3
MEC
Access Switch
5 R2
Cisco Public
I-E-E-E (Ingress-VSL-VSL-Egress)
Multicast packets may cross up to 4 DFCs Ingress DFC performs L2-L4 forwarding lookup Up to 3 DFCs (VSL) perform L2 egress lookup
82
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Hardware Replication Multicast Packet Flows
Catalyst 4500/4900
Presentation_ID
Cisco Public
83
Cat4K Architecture
Packet Processor: receive, extract, reconstruct, and send. Forwarding Engine: lookup, rewire, replication, and Qos
Packet Packet Memory Memory
Packet Lookup Descriptor (PLD)
Layer2 module
Output Services
CPU CPU
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
84
Single copy of multicast packet in Packet Memory => Excellent buffer capability Same path as unicast => deterministic and low latency/jitter
Packet Packet Memory Memory
Packet Lookup Descriptor (PLD)
Layer2 module
Output Services
CPU CPU
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
85
Catalyst 4500/4900
Presentation_ID
Cisco Public
86
RET table
RP ID 0 0 2 RET index 1219 1279 1356 index 0 ..
1279 1356
Hardware FIB Table Install mroute table except OIL (Outgoing Interface List)
87
RET table
RP ID 0 0 2 RET index 1219 1279 1356 index 0 ..
1279 1356
VLAN 1
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
1 0 0 0 0
2 0 0 1 0
VLAN DF Table
7 0 0 0 0
88
101 4094
Cisco Public
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Packet Flows Multicast Hardware Replication
Catalyst 4500/4900
Presentation_ID
Cisco Public
89
Replication Module
Packet Packet Memory Memory
PLD
Layer2 module
Output Services
CPU CPU
Presentation_ID
Cisco Public
90
Replication Module
Replicated packetspackets that need to go to two or more ports and/or VLANs Packet which require replication are
CPU copy for Unicast packet SPAN Unknown Unicast Flooding IP multicast packet Broadcast packets
With Classic Supervisors, this module is called Multicast Replication Module (MRM)
Replication Module
With E-Series Supervisors, this module is called Replication Management Module (RMM)
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
91
Replication Table
Packet Packet Memory Memory
PLD
Layer2 module
Output Services
CPU CPU
Presentation_ID
Cisco Public
92
Replication Table
Stores replication vlan/portsets information for L2 multicast/broadcast/flooding and IP multicast forwarding
With Classic Supervisors, this module is called Multicast Expansion Table (MET). The MET size is 64K [it is 32K for SupII+, SupII+TS Replication and SupII+10GE] Table With E-Series Supervisors, this module is called Replication Expansion Table (RET). The RET size is 102K
2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
Presentation_ID
93
Replication Queues
Packet Packet Memory Memory
PLD
Layer2 module
Replication Forwarding Forwarding Engine Engine Queue Replication Replication Module Module Replication Replication Table Table
Output Services
PTD
CPU CPU
Presentation_ID
Cisco Public
94
Replication Queues
Replication queues prevents the congestion in Forwarding Engines pipeline
With Classic Supervisors, this module is called Multicast Replication Queue (MRQ). Queue depth is 2048. It stores [pkt id, header, MET index] With E-Series Supervisors, this module is called Replica Request Queue (RRQ). Queue depth is 4096. It stores [pkt id, header, RET index]
Replication Queue
Presentation_ID
Cisco Public
95
Multicast Hardware Architecture Multicast Hardware Forwarding Multicast Hardware Replication Multicast Packet Flows
Catalyst 4500/4900
Presentation_ID
Cisco Public
96
IP Multicast Forwarding
Packet Packet Memory Memory
Host AVLAN 1 Multicast Source PLD
Layer2 module
Output Services
CPU CPU
Presentation_ID
Cisco Public
97
IP Multicast Forwarding
Packet Packet Memory Memory
Host AVLAN 1 Multicast Source PLD
1
Host BVLAN 2 Multicast Receiver Modules Modules
2
Packet Packet Processor Processor
Layer2 module
Output Services
CPU CPU
Presentation_ID
Cisco Public
98
IP Multicast Forwarding
Packet Packet Memory Memory
Host AVLAN 1 Multicast Source PLD
8
Packet Packet Processor Processor
Layer2 module
Replication Forwarding Forwarding Engine Engine Queue Replication Module Replication Table
Output Services
9
CPU CPU
PTD
Presentation_ID
Cisco Public
99
Session Take-Aways
Catalyst Switches leverage proven IP Multicast IOS code Hardware Switching provides Higher Throughput
Software-based Multicast forwarding is limited by CPU & Memory (vs. bandwidth) MLS & CEF offloads a significant portion of Multicast routing (packet rewrite) to hardware WS-SUP720-3B & VS-S720-10G provide 720Gbps Fabric-based throughput (VSS @ 1.44Tbps) WS-SUP32-3B provides 32Gbps Bus-based throughput DFCs + Egress Replication capable of 30/48Mpps of throughput Supervisor 6L-E capable of 225Mpps of replication.
Software-based forwarding incurs high latency / jitter during routing & replication
Loss of an adjacency will cause RPF re-calculation, DR/DF election, before convergence
Forwarding entries are synchronized & adjacencies will not drop, resulting in near-zero loss
100
Recommended Reading
Continue your Networkers @ Cisco Live learning experience with further reading from Cisco Press Check the Recommended Reading flyer for suggested books
101
Presentation_ID
Cisco Public
102
APPENDIX:
IP Multicast Troubleshooting
Presentation_ID
Cisco Public
103
Some Definitions...
ACL: Access Control List
BIDIR: Bi-Directional (PIM) DR: Designated Router (DM,SM & SSM) DF: Designated Forwarder (BIDIR) DM: Dense-Mode (PIM) IGMP: Internet Group Management Protocol MET: Multicast Expansion Table MLD: Multicast Listener Discovery MVPN: Multicast VPN OIF: Out-going InterFace OIL: Out-going Interface List PIM: Protocol Independent Multicast RP: Rendez-vous Point (SM & BIDIR) SM: Sparse-Mode (PIM) SSM: Source-Specific Multicast (PIM)
Cisco Public
ADJ: Adjacency Table / Rewrite Info CEF: Cisco Express Forwarding HA: High Availability FIB: Forwarding Information Base MLS: Multi-Layer Switching NSF: Non-Stop Forwarding SSO: Stateful Switch-Over RPF: Reverse-Path Forwarding VPN: Virtual Private Network
104
Catalyst 6500
IP Multicast Troubleshooting
Presentation_ID
Cisco Public
105
Presentation_ID
Cisco Public
106
107
Presentation_ID
Cisco Public
108
Presentation_ID
Cisco Public
109
Presentation_ID
Cisco Public
110
Presentation_ID
Cisco Public
111
Mode
Count
Intvl
Prior
GigabitEthernet4/16
Cisco Public
112
State H H H H H H H H
State H H H H H H H H
DF Interfaces for specified Bidir RP
114
Make sure show ip mroute and show ip rpf show correct RPF Interface for (*,G) or (S,G) PIM reliance on unicast routing means multicast issues often caused by unicast routing issues
Presentation_ID
Cisco Public
115
OIFs are Known and Correct OIF Inclusion driven by PIM or IGMP Ensure PIM neighbors active and stable (show ip pim neighbor)
IGMP dictates connected receiver membership ensure joins/leaves sent by receivers and received by RP CPU
Might need to verify PIM and IGMP packet exchange using SPAN/sniffer and/or debugs
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
116
117
Presentation_ID
Cisco Public
118
Catalyst-6506E#show mls ip multicast rp-mapping gm-cache State: H - Hardware Switched, I - Install Pending, D - Delete Pending, Z - Zombie
State H
Group 224.0.0.0
Mask 240.0.0.0
State H
Packet/Byte-count 1183799/1754389822
Statistics
Bidir RP IP Address
Presentation_ID
Cisco Public
119
Make sure the Layer 3 and Layer 2 entries exist and Interface/port membership is correct
Presentation_ID
Cisco Public
120
IGMP max query response time is 10 seconds Last member query response interval is 1000 ms Inbound IGMP access group is not set IGMP activity: 3 joins, 2 leaves
Presentation_ID 2010 Cisco and/or its affiliates. All rights reserved.
Cisco Public
IGMP snooping Gist-leave is disabled and querier is disabled IGMP snooping last member query response interval is 1000 ms Catalyst-6506E# IGMP snooping report-suppression is disabled
122
Switch tracks location of all multicast routers on per-VLAN basis Detection based on IGMP queries and PIM hellos Snooping switch uses list of mrouter ports to flood certain traffice.g., proxied joins/leaves Loss of multicast router port will impact traffic flow
Presentation_ID
Cisco Public
123
Catalyst-6506E#
124
Verify IGMP querier consistency and group membership for routers on shared segments Watch for IGMP access groups, multicast boundary Verify IGMP snooping entries
Make sure entry exists and port membership correct
Be aware of effect of IGMP snooping on Layer 3 IGMP behavior (e.g. not all joins/leaves seen by router)
Presentation_ID
Cisco Public
125
Catalyst-6506E#show ip igmp groups IGMP Connected Group Membership Group Address 239.1.2.0 239.1.2.1 239.1.2.2 239.1.2.3 239.1.1.10 224.0.1.40 Catalyst-6506E# Interface Vlan200 Vlan200 Vlan200 Vlan200 Vlan201 Loopback0
Uptime
00:00:12 00:00:12 00:00:12 Interface with 00:00:13 Connected Receiver 1w4d 00:00:12
Expires
Presentation_ID
126
127
Scalability Limits
Ensure Layer 3 and Layer 2 entry capacity not exceeded Monitor MET utilization Monitor RP and SP CPU utilization Monitor Fabric and bus utilization
Presentation_ID
Cisco Public
128
Multicast entries share FIB TCAM entries and hardware adjacency entries with other protocols (unicast, IPv6, MPLS) Syslogs printed when hardware capacity exceeded (total FIB exhaustion, or exceeded max-routes configuration) Check current entry status:
show mls ip multicast summary
129
130
Cisco IOS allocates in variable block sizes based on need (one, two, four, eight, or 16 entries) Inexact sciencesome internal overhead (pointers, etc.) and wasted space
%MMLS-SP-6-MET_LIMIT_EXCEEDED: Failed to allocate MET entry, exceeded system limit of (65536) entries. Number of times MET limit is exceeded in the last 1 min : 7
Presentation_ID
Cisco Public
131
Catalyst-6506E-sp#
Presentation_ID
Cisco Public
132
%MCAST-SP-6-GC_LIMIT_EXCEEDED: IGMP snooping was trying to allocate more Layer 2 entries than what allowed (15488)
Presentation_ID
Cisco Public
133
Presentation_ID
Cisco Public
134
Catalyst 4500/4900
IP Multicast Troubleshooting
Presentation_ID
Cisco Public
135
CEF
MFIB
Hardware Tables
Presentation_ID
Replication Table
136
MFIB
Table Table show platform hardware met entry < > 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public Show platform hardware ret chain index <>
H/W FIB
Replication
137
Presentation_ID
Cisco Public
138
[E-Series]
[Classic]
show ip mroute < > count show ip mroute active Show ip pim rp mapping in-use
Presentation_ID
Cisco Public
139