组播协议PIM-SM之RP
(2012-09-28 11:19:31)
标签:
it |
分类: 思科路由技术 |
RP的三种方式
1>静态
2>动态auto-rp 思科私有(ip pim-sm-dens-mode)
注:RP的选举
a,如果RP服务的组播地址完全冲突,(就是不同RP服务的组播地址范围完全一样)选举ip地址大的为RP。
b,如果RP服务的组播地址不完全冲突,(就是不同RP服务的组播地址范围不完全一样)此时acl定义的服务范围小的RP 优先。
c,对于多个RP MA,不用选举主MA,对于普通路由器,来自MA的消息可以相互覆盖。反正都是一样的。
d,auto rp 必须运行在sparse-dense-mode模式下,这是cisco的私有标准,如果运行在sparse-mode需要配置ip pim autorip
Auto-rp中没有树的生成,解决方法为DM方案,包括candidate rp 和MA通告的消息都用dense的方式推出去。所以在运行auto-rp的接口下有 特殊的模式为pim-sm-dense-mode。注:宣称announced和discovery角色的接口要使能pim(loopback口)
如果在实验中误配模式为SM,那么必须在路由器上使能ip pim autorp lister,这样路由器就可以把AUTORP的mapping信息从pim sm的接口 发送出去。
Auto-rp中没有对丢失数据包的检测和重传机制,所以auto-rp发现消息的传输是不可靠的。所以一般可以使用多个MA来提供冗余。
3>BSR(标准)
Cisco routers perform the following steps to determine which C-RP is used for a group:
1. A longest match lookup is performed on the group prefix that is announced by the BSR C-RPs.
2. If more than one BSR-learned C-RP are found by the longest match lookup, the C-RP with the lowest priority (configured with the ip pim rp-candidate command) is preferred.
3. If more than one BSR-learned C-RP have the same priority, the BSR hash function is used to select the RP for a group.
4. If more than one BSR-learned C-RP return the same hash value derived from the BSR hash function., the BSR C-RP with the highest IP address is preferred.
源文档 <</SPAN>http://www.cisco.com/en/US/docs/ios/ipmulti/command/reference/imc_04.html>
1>最长匹配组(acl覆盖的范围小的优先)
2>RP优先级数值低的
3>bsr的哈希值,可以做到冗余处理
4>ip地址大的
show ip pim rp
show ip pim interface
show ip mroute
注:当一个网络里同时存在auto-rp和BSR的配置是,通过实验是auto-rp优先于BSR。但是实验现象去查看rp的mapping会发现一个很奇怪 的现象如下;
R5#sho ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
.