We already discussed about PIM – Sparse Mode in previous posts. Let’s see one basic example for it. I hope it will help to understand PIM Sparse mode practically. For theory part , Plz refer previous post in Multicasting Tab..
In this example, I used Maipu routers. For Cisco Routers the configuration is same.
Maipu 3840 is BSR and RP
Maipu 7508 is receiver router
Multicast Source – 192.168.1.7
Multicast Receiver – 192.168.200.2
We used static Routing for connectivity, you can use any routing protocol as per requirement. You can use any 3rd party software or tool like VLC for multicast testing.
Topology:
Multicast PIM -Sparse Mode Setup |
Configuration template –
MP 3840- Multicast Source
ip access-list standard 1
10 permit host 224.0.1.12
exit
ip multicast-routing
ip address 192.168.1.137 255.255.252.0
ip pim sparse-mode
exit
ip address 192.168.100.2 255.255.255.0
ip pim sparse-mode
exit
ip pim rp-candidate gigaethernet0 192 60 group-list 1
### We are configuring this router as BSR candidate and RP candidate ###
ip route 192.168.200.0 255.255.255.0 192.168.100.1
!end
PIMv2 Bootstrap information
PIM VRF Name: Default
This system is the Bootstrap Router (BSR) ##Check this information ##
BSR address: 192.168.100.2
BSR Priority: 0
Hash mask length: 10
Up time: 00:26:00
Next bootstrap message in 00:00:05
Role: Candidate BSR
State: Elected BSR
Candidate RP: 192.168.1.137(gigaethernet0)
Advertisement interval 60 secs.
Next Cand_RP_advertisement in 00:00:53
MP3840#sh ip pim rp mapping
PIM Group-to-RP Mappings Table:
PIM VRF Name: Default
Total 1 RP set entry
Total 1 RP entry
This system is the Bootstrap Router (v2) ### Check this information ###
Group(s): 224.0.1.12/32
RP count: 1
RP: 192.168.1.137
Info source: 192.168.100.2, via bootstrap, priority 192
Up time: 00:25:19
Expiry time: 00:02:11
MP3840#sh ip pim mroute
IP Multicast Routing Table:
PIM VRF Name: Default
Total 0 (*,*,RP) entry
Total 4 (*,G) entries
Total 1 (S,G) entry
Total 1 (S,G,rpt) entry
Total 0 FCR entry
Up timer/Expiry timer
(*, 224.0.1.12)
Up time: 00:12:29
RP: 192.168.1.137
RPF nbr: 0.0.0.0
RPF idx: None
Upstream State: JOINED
Local interface list:
Joined interface list:
gigaethernet1 00:12:29/00:03:01
Asserted interface list:
(192.168.1.7, 224.0.1.12) ### We can see Multicast S,G entry ###
Up time: 00:25:27
KAT time: 00:02:05
RPF nbr: 0.0.0.0
RPF idx: None
SPT bit: TRUE
Upstream State: JOINED
Local interface list:
Joined interface list:
gigaethernet1 00:12:29/00:03:01
Asserted interface list:
Outgoing interface list:
gigaethernet1
Packet count 37735
(192.168.1.7, 224.0.1.12, rpt)
Up time: 00:12:29
RP: 192.168.1.137
Upstream State: NOT PRUNED
Local interface list:
Pruned interface list:
Outgoing interface list:
gigaethernet1
(*, 224.0.1.41)
Up time: 00:46:23
RP: 0.0.0.0
RPF nbr: 0.0.0.0
RPF idx: None
Upstream State: JOINED
Local interface list:
gigaethernet0
Joined interface list:
Asserted interface list:
(*, 225.102.116.110)
Up time: 00:46:23
RP: 0.0.0.0
RPF nbr: 0.0.0.0
RPF idx: None
Upstream State: JOINED
Local interface list:
gigaethernet0
Joined interface list:
Asserted interface list:
(*, 239.255.255.250)
Up time: 00:46:23
RP: 0.0.0.0
RPF nbr: 0.0.0.0
RPF idx: None
Upstream State: JOINED
Local interface list:
gigaethernet0
Joined interface list:
Asserted interface list:
MP7508 Configuration – Multicast Receiver
ip multicast-routing
interface gigaethernet0
ip address 192.168.200.1 255.255.255.0
ip pim sparse-mode
exit
ip address 192.168.100.1 255.255.255.0
ip pim sparse-mode
exit
ip route 192.168.0.0 255.255.252.0 192.168.100.2
!end
### As BSR is configured in network, It will be advertised in Multicast network , no need to configure RP ###
MP7508# sh ip pim bsr-router
PIMv2 Bootstrap information
PIM VRF Name: Default
BSR address: 192.168.100.2 ### BSR router Information ###
BSR Priority: 0
Hash mask length: 10
Up time: 00:26:57
Expiry time: 00:01:14
Role: Non-candidate BSR
State: Accept Preferred
MP7508#sh ip pim rp mapping
PIM Group-to-RP Mappings Table:
PIM VRF Name: Default
Total 1 RP set entry
Total 1 RP entry
Group(s): 224.0.1.12/32
RP count: 1
RP: 192.168.1.137 ### RP information ###
Info source: 192.168.100.2, via bootstrap, priority 192
Up time: 00:26:02
Expiry time: 00:02:29
MP7508#sh ip pim mroute
IP Multicast Routing Table:
PIM VRF Name: Default
Total 0 (*,*,RP) entry
Total 1 (*,G) entry
Total 1 (S,G) entry
Total 1 (S,G,rpt) entry
Total 0 FCR entry
Up timer/Expiry timer
(*, 224.0.1.12)
Up time: 00:13:22
RP: 192.168.1.137
RPF nbr: 192.168.100.2
RPF idx: gigaethernet1
Upstream State: JOINED
Local interface list:
gigaethernet0
Joined interface list:
Asserted interface list:
(192.168.1.7, 224.0.1.12) ### We can see multicast S,G entry , Multicast receiver is active##
Up time: 00:13:22
KAT time: 00:02:22
RPF nbr: 192.168.100.2
RPF idx: gigaethernet1
SPT bit: TRUE
Upstream State: JOINED
Local interface list:
Joined interface list:
Asserted interface list:
Outgoing interface list:
gigaethernet0
Packet count 41562
(192.168.1.7, 224.0.1.12, rpt)
Up time: 00:13:22
RP: 192.168.1.137
Upstream State: NOT PRUNED
Local interface list:
Pruned interface list:
Outgoing interface list:
In this testing I included all outputs; it will help you in practice to compare it.
As I already mentioned above Cisco configuration will be same. If anyone is facing any issue, Plz put comments.
Hope this example will help you in configuring PIM Sparse mode..
For likes and any queries, Plz put comments with your mail id...