PIM Anycast RP(PIM实现)

拓扑图

配置

配置全局使能组播路由

配置OSPF

配置PIM-SM

配置anycast-rp,Loopback 1为Anycast-RP地址,Loopback 0为Anycast-RP本地地址

配置IGMP

sysname AR1
#
multicast routing-enable
#
interface GigabitEthernet0/0/0
 ip address 10.1.12.1 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/1
 ip address 10.1.100.1 255.255.255.0 
 pim sm
#
ospf 1 router-id 1.1.1.1 
 area 0.0.0.0 
  network 0.0.0.0 255.255.255.255 
#
sysname AR2
#
multicast routing-enable
#
interface GigabitEthernet0/0/0
 ip address 10.1.12.2 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/1
 ip address 10.1.23.2 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/2
 ip address 10.1.24.2 255.255.255.0 
 pim sm
#
ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 0.0.0.0 255.255.255.255 
#
sysname AR3
#
multicast routing-enable
#
interface GigabitEthernet0/0/0
 ip address 10.1.23.3 255.255.255.0 
 pim sm
#
interface LoopBack0
 ip address 3.3.3.3 255.255.255.255 
 pim sm
#
interface LoopBack1
 ip address 35.1.1.1 255.255.255.255 
 pim sm
#
ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 0.0.0.0 255.255.255.255 
#
pim
 c-bsr LoopBack0
 c-rp LoopBack1
 anycast-rp 35.1.1.1
  local-address 3.3.3.3
  peer 5.5.5.5
#
sysname AR4
#
multicast routing-enable
#
interface GigabitEthernet0/0/0
 ip address 10.1.24.4 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/1
 ip address 10.1.45.4 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/2
 ip address 10.1.46.4 255.255.255.0 
 pim sm
#
ospf 1 router-id 4.4.4.4 
 area 0.0.0.0 
  network 0.0.0.0 255.255.255.255 
#
sysname AR5
#
multicast routing-enable
#
interface GigabitEthernet0/0/0
 ip address 10.1.45.5 255.255.255.0 
 pim sm
#
interface LoopBack0
 ip address 5.5.5.5 255.255.255.255 
 pim sm
#
interface LoopBack1
 ip address 35.1.1.1 255.255.255.255 
 pim sm
#
ospf 1 router-id 5.5.5.5 
 area 0.0.0.0 
  network 0.0.0.0 255.255.255.255 
#
pim
 c-bsr LoopBack0
 c-rp LoopBack1
 anycast-rp 35.1.1.1
  local-address 5.5.5.5
  peer 3.3.3.3
#
sysname AR6
#
multicast routing-enable
#
interface GigabitEthernet0/0/0
 ip address 10.1.46.6 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/1
 ip address 10.1.1.1 255.255.255.0 
 pim sm
 igmp enable
#
ospf 1 router-id 6.6.6.6 
 area 0.0.0.0 
  network 0.0.0.0 255.255.255.255 
#

PC1加组

查看(*,G)表项,RP为35.1.1.1

在单自治域中应用基于PIM协议的Anycast-RP,可实现组播源就近注册和接收者就近加入。既可以缓解单个RP的负担,也实现了RP备份、优化组播数据的转发路径。

PC2距离AR5较近,(*,G)Join报文注册到AR5,AR5上可以看到(*,G)表项

AR3上无(*,G)表项

形成RPT树

组播源发送组播流量

源端DR就近注册,注册报文发送给AR3,AR3传给AR5

源端DR发送给就近RP(AR3)的注册报文

AR3发给AR5的注册报文

AR6进行SPT切换,向源端DR发送(S,G)Join,并进行Prune

最终的SPT树

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值