PIM(Protocol Independent Multicast)称为协议无关组播,作为一种组播路由解决方案,也可以支持IPv4和IPv6网络,在实践中得到广泛的应用。
PIM通过路由器之间交互PIM控制消息实现组播路由功能。PIM控制消息使用IP报文封装。

所有的PIM控制消息头部有相同的格式,如下图:

| 字段 | 长度 | 说明 |
|---|---|---|
| Version | 4比特 | PIM版本,值为2。 |
| Type | 4比特 | 消息类型,取值如下:
|
| Reserved | 8比特 | 保留。 |
| Checksum | 16比特 | 校验和。 |
| 标准 | 描述 |
|---|---|
| RFC 4601 | Protocol Independent Multicast - Sparse Mode (PIM-SM):Protocol Specification (Revised) |
| RFC 3973 | Protocol Independent Multicast - Dense Mode (PIM-DM):Protocol Specification (Revised) |
| RFC 4607 | Source-Specific Multicast for IP |