CCNP (暑期记录) multicast
组播的优势
1.减少消耗,有效利用带宽
2.未知目的地在
3.同时性
组播 缺点
基于UDP ——数据层面
UDP无序包依靠RTP来控制第一个包
避免重复报文duplicates
multicast application
1. One to many
2. Many to Many 视频会议,共享白板
3. Many to one
组播服务模型
1.PIM 组播路由协议
2.组管理协议称为IGMP协议
组播地址:
224.0.0.0 - 239.255.255.255
224.0.0.1 host and router
224.0.0.2 router
224.0.0.5/6 OSPF
224.0.0.9 RIPv2
224.0.0.10 EIGRP
224.0.0.13 PIM hello包
1. 本地链路 224.0.0.0/24
2. 公网 224.0.1.0-238.255.255.255
SSM:232.0.0.0/8
GLOP:233.0.0.0/8 永久组地址
AS 65123 =(16进制)0xFE 63
FE=(10进制)=254
63=(10进制)=99
233.254.99.0/24
3.私网地址
239.0.0.0/8
IGMP internet 组管理协议
internet Group Management Protocol
路由器发 MEmbership queries [成员请求] 60S一次查询包 ->224.0.0.1
holddown 180S
MEmbership report [成员回应]
1. ACK
2.主动建立组224.1.1.1 目标地址改为同组IP
3.组地址:224.1.1.1
4.目标地址:224.1.1.1
MEmbership leave [离组消息]
1.组地址:224.1.1.1
2.目标地址:224.0.0.2
V2
group-specific query
当有组员离开路由器会发送指定组查询来发现该组的其他PC
leave group message
当有组员离开时会发送leave 消息
D:224.0.0.2 group id:224.1.1.1自定义组名
2台路由器冗余时 querier机制
Querier: IGMPv2 (查询包,ip地址较小充当queriers另一台不发)
IGMPV1 (PIM,DR充当查询者)
查询时间60S/120S
ip multicast-routing 开启组播
32个组播IP映射同一个MAC地址
目标MAC地址 01-00-5e-xx-xx-xx
交换机config下
路由器在多播模式下的接口CGMP映射MAC地址
GDA= 组播MAC地址
USA = PC的MAC地址
int e0
ip pim sparse-mode
int e0
ip igmp join-group 224.1.1.1.1
IGMP Snooping 窥视
让交换机能够向指定地址发送组播
RPF接口防止组播泛洪
从上往下比
小AD
小METRIC
大IP
SPT shortest-Path Trees
一个源一个条目
shared distribution Trees
多播静态路由
ip mroute 1.1.1.1 255.255.255.255 serial 0
AD为0
PIM Protocol Independent Multicast
Dense
模型 结构
PUSH SPT