User Case
Multicast PIM-ASM/SSM Configuration Guide
35 min
introduction introduction this guide provides a comprehensive, step by step tutorial for establishing ipv4 multicast networks on the asterfusion open intelligent gateway by leveraging the high performance vpp data plane, you will learn how to build multicast routing architectures that are both highly efficient and scalable for enterprise and data center environments what this guide will accomplish what this guide will accomplish by following this guide, you will learn how to deploy robust multicast architectures the configuration scenarios are structured into two distinct phases phase 1 establish asm underlay phase 1 establish asm underlay scenario 1 basic pim sm with static rp establishing a foundational pim asm network using ospf as the underlay routing protocol with a central rendezvous point scenario 2 multicast over bgp deploying pim asm over a bgp underlay to validate advanced rpf checks within a typical spine leaf topology phase 2 phase 2 advanced capabilities advanced capabilities scenario 3 pim ssm built directly upon the underlay established in phase 1, this scenario demonstrates how to migrate to a highly efficient, rp less architecture using igmpv3 and explicit (s, g) tree building scenario 1 basic pim sm with static rp scenario 1 basic pim sm with static rp scenario overview scenario overview in this scenario, we establish a standard pim sm domain without using loopback interfaces the spine's ethernet1 ip (10 0 1 2) serves as the static rp for the entire domain device roles source dr (leaf1) gateway for the multicast source rp (spine) the central rendezvous point its downlink interface ip (10 0 1 2) is used as the rp address receiver dr (leaf2) gateway for the receiver, running igmpv3 network topology plan network topology plan role device interface ip address function source dr leaf1 ethernet 1 (downlink) 192 168 10 1/24 connects to source pc ethernet 2 (uplink) 10 0 1 1/30 connects to spine (ethernet1) rp / spine spine ethernet 1 (downlink) 10 0 1 2/30 connects to leaf1 (rp address) ethernet 3 (downlink) 10 0 2 1/30 connects to leaf2 receiver dr leaf2 ethernet 1 (uplink) 10 0 2 2/30 connects to spine (ethernet3) ethernet 2 (downlink) 192 168 20 1/24 connects to receiver pc configuration steps configuration steps configure source dr (leaf1) configure source dr (leaf1) leaf1 connects to the source pc via ethernet 1 and the spine via ethernet 2 the critical step is enabling the unknown multicast trap to ensure the first multicast packet is sent to the cpu for pim registration sonic# configure terminal # 1 configure interfaces # 1 configure interfaces sonic(config)# interface ethernet 1 sonic(config if 1)# description link to source pc sonic(config if 1)# ip address 192 168 10 1/24 sonic(config if 1)# ip pim sonic(config if 1)# exit sonic(config)# interface ethernet 2 sonic(config if 2)# description link to spine sonic(config if 2)# ip address 10 0 1 1/30 sonic(config if 2)# ip pim sonic(config if 2)# exit # # 2 2 enable control plane trap enable control plane trap sonic(config)# unknown multicast trap # 3 configure static rp # 3 configure static rp sonic(config)# ip pim rp 10 0 1 2 224 0 0 0/4 # 4 configure underlay routing (ospf) # 4 configure underlay routing (ospf) sonic(config)# router ospf sonic(config router)# network 10 0 1 0/30 area 0 sonic(config router)# network 192 168 10 0/24 area 0 sonic(config router)# exit configure spine (rp) configure spine (rp) the spine acts as the rendezvous point we use the ip address of ethernet 1 (10 0 1 2) as the rp address for the entire network # 1 configure interfaces # 1 configure interfaces sonic(config)# interface ethernet 1 sonic(config if 1)# description link to leaf1 sonic(config if 1)# ip address 10 0 1 2/30 sonic(config if 1)# ip pim sonic(config if 1)# exit sonic(config)# interface ethernet 3 sonic(config if 3)# description link to leaf2 sonic(config if 3)# ip address 10 0 2 1/30 sonic(config if 3)# ip pim sonic(config if 3)# exit # 2 configure static rp # 2 configure static rp sonic(config)# ip pim rp 10 0 1 2 224 0 0 0/4 # 3 configure underlay routing (ospf) # 3 configure underlay routing (ospf) sonic(config)# router ospf sonic(config router)# network 10 0 1 0/30 area 0 sonic(config router)# network 10 0 2 0/30 area 0 sonic(config router)# exit configure receiver dr (leaf2) configure receiver dr (leaf2) leaf2 connects to the spine via ethernet 1 and the receiver pc via ethernet 2 igmpv3 is explicitly enabled on the receiver facing interface # 1 configure interfaces # 1 configure interfaces sonic(config)# interface ethernet 1 sonic(config if 1)# description link to spine sonic(config if 1)# ip address 10 0 2 2/30 sonic(config if 1)# ip pim sonic(config if 1)# exit sonic(config)# interface ethernet 2 sonic(config if 2)# description link to receiver pc sonic(config if 2)# ip address 192 168 20 1/24 sonic(config if 2)# ip igmp sonic(config if 2)# ip pim sonic(config if)# exit # 2 configure static rp # 2 configure static rp sonic(config)# ip pim rp 10 0 1 2 224 0 0 0/4 # 3 configure underlay routing (ospf) # 3 configure underlay routing (ospf) sonic(config)# router ospf sonic(config router)# network 10 0 2 0/30 area 0 sonic(config router)# network 192 168 20 0/24 area 0 sonic(config router)# exit verification verification control plane control plane verification verification verify pim neighbors (on spine) verify pim neighbors (on spine) sonic# show ip pim neighbor verify rp mapping (any device) verify rp mapping (any device) sonic# show ip pim rp info data plane verification data plane verification send multicast traffic from source ( 192 168 10 10 ) to group ( 239 1 1 1 ) and have the receiver join the group leaf1 (source dr) verify registration leaf1 (source dr) verify registration sonic# show ip mroute spine (rp) verify forwarding tree spine (rp) verify forwarding tree sonic# show ip mroute leaf2 (receiver dr) verify reception leaf2 (receiver dr) verify reception sonic# show ip mroute scenario 2 multicast over bgp (data center architecture) scenario 2 multicast over bgp (data center architecture) scenario overview scenario overview this scenario replicates a typical data center spine leaf architecture using bgp as the underlay routing protocol unlike ospf, bgp does not automatically flood routing information this scenario validates that the asternos pim stack can correctly perform rpf (reverse path forwarding) checks based on bgp routing tables key changes underlay protocol replaced ospf with bgp routing logic leaf2 must learn the rp address via bgp to send pim join messages configuration steps configuration steps configure source dr (leaf1) configure source dr (leaf1) leaf1 connects to the source (192 168 10 10) it must advertise the source subnet into bgp so the spine knows where the multicast source is located # 1 interface configuration # 1 interface configuration sonic(config)# interface ethernet 1 sonic(config if 1)# ip address 192 168 10 1/24 sonic(config if 1)# ip pim sonic(config if 1)# exit sonic(config)# interface ethernet 2 sonic(config if 2)# ip address 10 0 1 1/30 sonic(config if 2)# ip pim sonic(config if 2)# exit # 2 enable control plane trap # 2 enable control plane trap sonic#(config)# unknown multicast trap # 3 static rp configuration # 3 static rp configuration sonic(config)# ip pim rp 10 0 1 2 224 0 0 0/4 # 4 bgp configuration (as 65001) # 4 bgp configuration (as 65001) sonic(config)# router bgp 65001 sonic(config router)# bgp router id 1 1 1 1 sonic(config router)# no bgp ebgp requires policy sonic(config router)# bgp default ipv4 unicast sonic(config router)# neighbor 10 0 1 2 remote as 65000 sonic(config router)# address family ipv4 unicast sonic(config router af)# neighbor 10 0 1 2 activate sonic(config router af)# network 192 168 10 0/24 sonic(config router af)# exit sonic(config router)# exit configure spine (rp) configure spine (rp) # 1 interface configuration # 1 interface configuration sonic(config)# interface ethernet 1 sonic(config if 1)# ip address 10 0 1 2/30 sonic(config if 1)# ip pim sonic(config if 1)# exit sonic(config)# interface ethernet 3 sonic(config if 3)# ip address 10 0 2 1/30 sonic(config if 3)# ip pim sonic(config if 3)# exit # 2 static rp configuration # 2 static rp configuration sonic(config)# ip pim rp 10 0 1 2 224 0 0 0/4 # 3 bgp configuration (as 65000) # 3 bgp configuration (as 65000) sonic(config)# router bgp 65000 sonic(config router)# bgp router id 2 2 2 2 sonic(config router)# no bgp ebgp requires policy sonic(config router)# bgp default ipv4 unicast sonic(config router)# neighbor 10 0 1 1 remote as 65001 sonic(config router)# neighbor 10 0 2 2 remote as 65002 sonic(config router)# address family ipv4 unicast sonic(config router af)# neighbor 10 0 1 1 activate sonic(config router af)# neighbor 10 0 2 2 activate sonic(config router af)# network 10 0 1 0/30 sonic(config router af)# exit sonic(config router)# exit configure receiver dr (leaf2) configure receiver dr (leaf2) leaf2 (as 65002) connects to the receiver it learns the rp route via bgp # 1 interface configuration # 1 interface configuration sonic(config)# interface ethernet 1 sonic(config if 1)# ip address 10 0 2 2/30 sonic(config if 1)# ip pim sonic(config if 1)# exit sonic(config)# interface ethernet 2 sonic(config if 2)# ip address 192 168 20 1/24 sonic(config if 2)# ip pim sonic(config if 2)# ip igmp sonic(config if 2)# exit # 2 static rp configuration # 2 static rp configuration sonic(config)# ip pim rp 10 0 1 2 224 0 0 0/4 # 3 bgp configuration (as 65002) # 3 bgp configuration (as 65002) sonic(config)# router bgp 65002 sonic(config router)# bgp router id 3 3 3 3 sonic(config router)# no bgp ebgp requires policy sonic(config router)# bgp default ipv4 unicast sonic(config router)# neighbor 10 0 2 1 remote as 65000 sonic(config router)# address family ipv4 unicast sonic(config router af)# neighbor 10 0 2 1 activate sonic(config router af)# network 192 168 20 0/24 sonic(config router af)# exit sonic(config router)# exit verification verification verify underlay routing (bgp) verify underlay routing (bgp) sonic# show ip route leaf1 rp leaf2 verify multicast routing (pim over bgp) verify multicast routing (pim over bgp) check the multicast routing table after the receiver joins the group sonic# show ip mroute leaf1 rp leaf2 scenario 3 pim ssm (source specific multicast) scenario 3 pim ssm (source specific multicast) scenario overview scenario overview this scenario demonstrates the transition from asm to pim ssm in this mode, the rp is eliminated, and the multicast distribution tree is built directly from the receiver to the source using igmpv3 configuration steps configuration steps this configuration assumes the physical underlay (scenario 1 or 2) is already functional upgrade to igmpv3(leaf2 only) upgrade to igmpv3(leaf2 only) to process source specific joins, the receiver facing interface on leaf2 must be upgraded to igmp version 3 sonic(config)# interface ethernet 2 sonic(config if)# ip igmp version 3 sonic(config if)# exit global rp cleanup (all devices) global rp cleanup (all devices) the core of ssm is the complete absence of a rendezvous point you must remove the static rp configuration from leaf1, spine, and leaf2 to tear down the asm shared tree mechanism sonic(config)# no ip pim rp 10 0 1 2 224 0 0 0/4 note (no further router configuration is needed the network is now ready for ssm ) flow triggering requirements flow triggering requirements to establish the ssm shortest path tree (spt), the following conditions must be met by the end stations source side outbound multicast traffic must target a destination ip within 232 0 0 0/8 receiver side the host must issue an igmpv3 membership report that includes the specific source ip (192 168 10 10) and group ip verification verification verify igmpv3 join verify igmpv3 join check the igmp groups on leaf2 to ensure the receiver has successfully sent an igmpv3 source specific join sonic# show ip igmp groups verify pim ssm routing table verify pim ssm routing table check the multicast routing table on leaf2 to confirm the shortest path tree (spt) has been established directly to the source sonic# show ip mroute conclusion conclusion this guide has verified the comprehensive multicast routing capabilities of asternos, enabling highly efficient traffic distribution across diverse topologies the completed scenarios demonstrate that asternos provides the essential flexibility required for modern networks, seamlessly supporting both traditional pim asm and advanced, rp less pim ssm architectures
