Complete Cisco Nexus Multicast PIM Sparse Mode, Auto-RP & BSR Lab | Part 9
Welcome to Part 9 of the Cisco Nexus Enterprise Networking Lab Series. In this advanced enterprise multicast lab, you will learn how to configure and verify PIM Sparse Mode, Static RP, Auto-RP, Bootstrap Router (BSR), RP-Candidates, Mapping Agents, IGMP Group Membership, and Multicast RP elections.
- PIM Sparse Mode
- Static Rendezvous Point (RP)
- Multicast Group Mapping
- IGMP Join Groups
- Multicast Verification
- Auto-RP Configuration
- Mapping Agent Election
- RP Candidate Election
- Bootstrap Router (BSR)
- Enterprise Multicast Design
- Multicast Scaling Concepts
- RP Redundancy
Table of Contents
- 1. Understanding Multicast Routing
- 2. Configure PIM Sparse Mode with Static RP
- 3. Configure IGMP Join Groups
- 4. Verify Multicast Connectivity
- 5. Configure Auto-RP
- 6. Configure Bootstrap Router (BSR)
- 7. Verification Commands
- 8. Multicast Mathematics & Scaling
- 9. Enterprise Multicast Design Concepts
- 10. Troubleshooting PIM Multicast
- 11. Related Articles
- 12. Conclusion
1. Understanding Multicast Routing
Traditional unicast routing sends one copy of traffic to one destination. Broadcast sends traffic to all devices. Multicast is different because it efficiently sends one stream to multiple interested receivers only.
| Traffic Type | Communication Model |
|---|---|
| Unicast | One-to-One |
| Broadcast | One-to-All |
| Multicast | One-to-Many |
Bandwidth Mathematics
Suppose a video stream requires:
\[ 5Mbps \]
For 100 receivers:
Unicast:
\[ 5Mbps \times 100 = 500Mbps \]
Multicast:
\[ 5Mbps \]
Multicast saves:
\[ 500 - 5 = 495Mbps \]
2. Configure PIM Sparse Mode with Static RP
PIM Sparse Mode requires a Rendezvous Point (RP). The RP acts as the meeting point between multicast sources and receivers.
R1 Configuration
ip multicast-routing
access-list 21 permit 225.21.21.0 0.0.0.255
access-list 22 permit 225.22.22.0 0.0.0.255
ip pim rp-address 10.1.1.21 21
ip pim rp-address 10.1.1.22 22
interface E 0/1
ip pim sparse-mode
interface E 0/2
ip pim sparse-mode
NX-01 Configuration
feature pim
ip pim rp-address 10.1.1.21 group-list 225.21.21.0/24
ip pim rp-address 10.1.1.22 group-list 225.22.22.0/24
interface Loopback10
ip pim sparse-mode
interface VLAN10
ip pim sparse-mode
NX-02 Configuration
feature pim
ip pim rp-address 10.1.1.21 group-list 225.21.21.0/24
ip pim rp-address 10.1.1.22 group-list 225.22.22.0/24
interface Loopback10
ip pim sparse-mode
interface VLAN20
ip pim sparse-mode
3. Configure IGMP Join Groups
IGMP allows hosts and routers to join multicast groups. Devices interested in multicast traffic send IGMP membership reports.
R1 Configuration
interface Loopback10
ip igmp join-group 225.21.21.1
ip igmp join-group 225.22.22.1
NX-01 Configuration
interface Loopback10
ip igmp join-group 225.21.21.1
ip igmp join-group 225.22.22.1
NX-02 Configuration
interface Loopback10
ip igmp join-group 225.21.21.1
ip igmp join-group 225.22.22.1
4. Verify Multicast Connectivity
After configuring multicast groups and PIM Sparse Mode, verify connectivity using multicast ping and RP mapping commands.
show ip pim rp mapping
show ip mroute
show ip igmp groups
ping 225.21.21.1
ping 225.22.22.1
All 3 devices respond to multicast ping requests.
5. Configure Auto-RP
Static RP configuration does not scale well in large enterprise environments. Auto-RP automates RP discovery using multicast advertisements.
- RP Candidate
- Mapping Agent
- Auto-RP Listener
Remove Static RP Configuration
Click to Expand Static RP Removal Commands
R1
no ip pim rp-address 10.1.1.21 21
no ip pim rp-address 10.1.1.22 22
NX-01
no ip pim rp-address 10.1.1.21 group-list 225.21.21.0/24
no ip pim rp-address 10.1.1.22 group-list 225.22.22.0/24
NX-02
no ip pim rp-address 10.1.1.21 group-list 225.21.21.0/24
no ip pim rp-address 10.1.1.22 group-list 225.22.22.0/24
R1 Auto-RP Listener
ip pim autorp listener
NX-01 Auto-RP Configuration
ip pim auto-rp listen forward
ip pim auto-rp rp-candidate loopback10 group-list 224.0.0.0/4
ip pim auto-rp mapping-agent loopback10
NX-02 Auto-RP Configuration
ip pim auto-rp listen forward
ip pim auto-rp rp-candidate loopback10 group-list 224.0.0.0/4
Multicast Group Range
Multicast Class D Address Range:
\[ 224.0.0.0 \rightarrow 239.255.255.255 \]
Total multicast addresses:
\[ 2^{28} = 268,435,456 \]
6. Configure Bootstrap Router (BSR)
BSR is a standards-based RP distribution mechanism that improves scalability and interoperability compared to Auto-RP.
- Standards Based
- Better Scalability
- Vendor Interoperability
- Improved RP Selection
Remove Auto-RP Configuration
Click to Expand Auto-RP Removal Commands
R1
no ip pim autorp listener
NX-01
no ip pim auto-rp listen forward
no ip pim auto-rp rp-candidate loopback10 group-list 224.0.0.0/4
no ip pim auto-rp mapping-agent loopback10
NX-02
no ip pim auto-rp listen forward
no ip pim auto-rp rp-candidate loopback10 group-list 224.0.0.0/4
NX-01 BSR RP-Candidate
ip pim bsr listen
ip pim bsr rp-candidate loopback10 group-list 224.0.0.0/4 priority 1
NX-02 BSR Candidate
ip pim bsr listen
ip pim bsr bsr-candidate loopback10
ip pim bsr rp-candidate loopback10 group-list 224.0.0.0/4 priority 10
7. Verification Commands
| Command | Purpose |
|---|---|
| show ip pim rp mapping | Verify RP mapping |
| show ip pim rp | Display RP information |
| show ip mroute | View multicast routing table |
| show ip igmp groups | Verify IGMP membership |
| show ip pim neighbor | Verify PIM neighbors |
show ip pim rp mapping
Group(s) 224.0.0.0/4
RP 10.1.1.21
8. Multicast Mathematics & Scaling
Enterprise Multicast Efficiency
Suppose:
- 1000 receivers
- 10Mbps video stream
Unicast:
\[ 10Mbps \times 1000 = 10Gbps \]
Multicast:
\[ 10Mbps \]
Bandwidth savings:
\[ 10Gbps - 10Mbps \]
PIM Sparse Tree Optimization
Multicast traffic follows the shortest path tree:
\[ SPT = Shortest\ Path\ Tree \]
This minimizes latency and bandwidth consumption.
9. Enterprise Multicast Design Concepts
Where Multicast is Used
- IPTV
- Financial Trading Networks
- Enterprise Video Streaming
- Live Corporate Broadcasts
- Data Replication
- Market Data Distribution
- Real-Time Monitoring
10. Troubleshooting PIM Multicast
Common Issues
- PIM not enabled on interfaces
- No RP configured
- Incorrect group-list
- IGMP joins missing
- Multicast routing disabled
- RPF failure
Troubleshooting Commands
show ip pim rp
show ip pim neighbor
show ip mroute
show ip rpf
show ip igmp groups
RPF failed for source 10.1.1.21
This usually indicates incorrect routing toward the multicast source.
11. Related Articles
- Part 1 - Complete Cisco Nexus VLAN Trunking Lab
- Part 2 - Complete Cisco Nexus Static Routing Lab
- Part 3 - Complete Cisco Nexus EIGRP Lab
- Part 4 - Complete Cisco Nexus EIGRP Authentication & Summarization Lab
- Part 5 - Complete Cisco Nexus OSPF & EIGRP Redistribution Lab
- Part 6 - Complete Cisco Nexus OSPF Authentication & Summarization Lab
- Part 7 - Complete Cisco Nexus BGP & OSPF Stub Area Lab
- Part 8 - Complete Cisco Nexus BGP Authentication & Aggregation Lab
12. Conclusion
In this advanced Cisco Nexus Multicast lab, you learned how to:
- Configure PIM Sparse Mode
- Configure Static RP
- Configure Auto-RP
- Configure Bootstrap Router (BSR)
- Configure RP Candidates
- Configure Mapping Agents
- Configure IGMP Join Groups
- Verify Multicast Connectivity
- Troubleshoot multicast routing
- Understand enterprise multicast scaling
No comments:
Post a Comment