PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:multicast:routing:pim:pim-sm:bsr:config:config

WIP: Multicast PIM-SM: BSR Configuration

Lab 1: PIM-SM BSR abc414de-1291-421b-9780-9bb5707be896

  • (S,G) = (10.1.1.100,239.0.1.1)
  • (*,G) = (*,239.0.1.1)
abc414de-1291-421b-9780-9bb5707be896
network-infrastructure.multicast.pim.pim-sm.static-rp.abc414de
  1. Dependent Custom Images(This lab require following custom images!!)

Common Configuration Snippet

R1

R2

R3

px-ubuntu-nw-0

px-ubuntu-nw-1

Configure PIM-SM

  • R1
configure terminal
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip pim sparse-mode
interface GigabitEthernet0/1
 ip pim sparse-mode
interface GigabitEthernet0/2
 ip pim sparse-mode
!
access-list 10 permit host 239.0.1.1
!
ip pim rp-address 172.16.2.2 10
!
end
  • R2
configure terminal
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip pim sparse-mode
interface GigabitEthernet0/1
 ip pim sparse-mode
!
access-list 10 permit host 239.0.1.1
!
ip pim rp-address 172.16.2.2 10
!
end
  • R3
configure terminal
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip pim sparse-mode
interface GigabitEthernet0/1
 ip pim sparse-mode
interface GigabitEthernet0/2
 ip pim sparse-mode
!
access-list 10 permit host 239.0.1.1
!
ip pim rp-address 172.16.2.2 10
!
end

Verification ad857c9a-ebe3-4f0b-8513-0bb0d43e2d98

  • Sender
msend -g 239.0.1.1 -p 8888 -text "hello multicast world" -t 60
  • Receiver
mreceive -g 239.0.1.1 -p 8888
show ip route ospf | begin Gateway
show ip igmp groups
show ip pim interface
show ip pim neighbor
show ip pim rp mapping
show ip mroute
show ip mroute summary
show ip mroute | begin \(
show ip mroute summary | begin \(
show ip mroute 239.0.1.1 | begin \(
show ip rpf x.x.x.x
!
debug ip mpacket
debug ip pim
debug ip mrouting
!
debug ip mpacket 239.0.1.1
debug ip pim 239.0.1.1
debug ip mrouting 239.0.1.1
  • Wireshark Display Filter

Wireshark Filter Expression Cheat Sheet

!ospf && !igmp && (pim || (icmp && icmp.type != 3 ) || ip.addr  == 224.0.0.0/4)
!ospf && (pim || (icmp && icmp.type != 3 ) || igmp || ip.addr  == 224.0.0.0/4)
igmp || (udp.port == 8888 && ip.addr  == 224.0.0.0/4)
  • Capture Filter (BPF)

tcpdump

# Exclude LOOP protocol
not ether proto 9000
# Exclude CDP, LOOP, 0x6002(DEC DNA Remote Console) protocol
not (ether[20:2] == 0x2000 or ether proto (loopback or 0x6002))
# Exclude CDP, LOOP, 0x6002(DEC DNA Remote Console), OSPF protocol
not (ether[20:2] == 0x2000 or ether proto (loopback or 0x6002) or ip proto ospf)
# **NOT TESTED LLDP!!** Exclude CDP, LOOP, 0x6002(DEC DNA Remote Console), LLDP(0x88cc), OSPF protocol
not (ether[20:2] == 0x2000 or ether proto (loopback or 0x6002 or 0x88cc) or ip proto ospf)
network-infrastructure.multicast.pim.pim-sm.abc414de.235c1e30.lab1.r1ge0-0_r2ge0-1.pcapng
network-infrastructure.multicast.pim.pim-sm.abc414de.235c1e30.lab1.r2ge0-0_r3ge0-1.pcapng
network-infrastructure.multicast.pim.pim-sm.abc414de.235c1e30.lab1.r1ge0-1_r3ge0-0.pcapng
network-infrastructure.multicast.pim.pim-sm.abc414de.235c1e30.lab1.r3ge0-2_px-ubuntu-nw-1-ens2.pcapng

Default: SPT switchover feature enabled 235c1e30-a9aa-471a-96be-fecceb2e64de

Receiver Join

  • IGMPv2 Membership Report

  • PIM (*, 239.0.1.1) Join

Sender start send multicast packet

  • PIM (10.1.1.100, 239.0.1.1) Register to RP (172.16.2.2)

  • PIM (10.1.1.100, 239.0.1.1) Join to R1 from R2

  • And forwarding with (10.1.1.100, 239.0.1.1) and (*, 239.0.1.1)

R1 → R2

R2 → R3

R3 → Receiver

  • PIM (10.1.1.100, 239.0.1.1) Register-stop to RP (172.16.2.2)

R3 Fire SPT Switchover

  • PIM (10.1.1.100, 239.0.1.1) Join to R1 from R3

  • PIM (10.1.1.100, 239.0.1.1) RP-bit Prune to R2 from R3

  • PIM (10.1.1.100, 239.0.1.1) Prune to R2 from R1

  • Start forwarding with (10.1.1.100, 239.0.1.1) to Receiver via R1, R3 link.

R1 Log

R2 Log

R3 Log

Disable SPT switchover feature fa5360f4-bb7e-405a-ad53-1450af1d2e1e

  • R3 (LHR)
configure terminal
!
ip pim spt-threshold infinity
!
end

R1 Log

R2 Log

R3 Log

Notes

  1. PIM DR router sends PIM Join Message and PIM Register Message
  2. ip pim sparse-mode must be enabled all multicast packet path including Sender, Receiver connected interfaces.
  3. If an interface be enabled PIM, IGMPv2 enabled automatically. So, IGMP only enable/disable configuration not exist.
  4. Unicast routing is successfully operational is prerequisite.
  5. And RPF check must be successful.
  6. Typically, RP address will be used loopback interface from fault tolerance point of view.
    1. Multicast router must have IP reachablity.

References

tech/network/cisco/multicast/routing/pim/pim-sm/bsr/config/config.txt · Last modified: 2021/08/30 08:04 by wnoguchi