TCP/IP 详解 卷1 ch13 IGMP: Internet Group Management Protocol
2010-11-10 21:51
746 查看
1. IGMP报文
An IGMP type of 1 is a query sent by a multicast router, and 2 is a response sent by a host. The group address is a class D IP address. In a query the group address is set to 0, and in a report it contains the group address being reported.
1) for query
TTL = 1
IGMP组地址 = 0
目的IP地址=224.0.0.1 <= All-Hosts Group
源IP地址=路由器IP地址
2) for report
TTL = 1
IGMP组地址 = 组地址
目的IP地址=组地址
源IP地址=主机IP地址
2. a multicast router doesn't even care which host belongs to a group. It only needs to know that at least one host belongs to a group on a given interface.
3. 一个多播的例子(代码在前一章)
client join group, dest ip is "224.0.0.22
Internet Group Management Protocol
(IGMP) Version 3", refer to http://en.wikipedia.org/wiki/Multicast_address
server send msg, dest is the real group address, 224.1.1.1
An IGMP type of 1 is a query sent by a multicast router, and 2 is a response sent by a host. The group address is a class D IP address. In a query the group address is set to 0, and in a report it contains the group address being reported.
1) for query
TTL = 1
IGMP组地址 = 0
目的IP地址=224.0.0.1 <= All-Hosts Group
源IP地址=路由器IP地址
2) for report
TTL = 1
IGMP组地址 = 组地址
目的IP地址=组地址
源IP地址=主机IP地址
2. a multicast router doesn't even care which host belongs to a group. It only needs to know that at least one host belongs to a group on a given interface.
3. 一个多播的例子(代码在前一章)
client join group, dest ip is "224.0.0.22
Internet Group Management Protocol
(IGMP) Version 3", refer to http://en.wikipedia.org/wiki/Multicast_address
server send msg, dest is the real group address, 224.1.1.1
相关文章推荐
- TCP-IP详解卷1-13:IGMP(Internet Group Management Protocol):Internet组管理协议
- tcp-ip IGMP: Internet Group Management Protocol
- TCP-IP详解卷1-06:ICMP:Internet控制报文协议(Internet Control Message Protocol)
- TCP/IP 详解 卷1 ch17 TCP: Transmission Control Protocol
- TCP-IP详解卷1-25:SNMP: 简单网络管理协议(Simple Network Management Protocol)
- TCP-IP详解卷1-01:TCP/IP概述(Transport Control Protocol/ Internet Protocol User Datagram Protocol)
- TCP/IP 详解 卷1 ch14 DNS: The Domain Name System
- TCP/IP 详解 卷1 ch28 SMTP:简单邮件传输协议
- TCP-IP详解卷1-05:RARP:逆向地址解析协议(Reverse Address Resolution Protocol)
- TCP/IP 详解 卷1 ch16 BOOTP: Bootstrap Protocol
- TCP/IP 详解 卷1 ch29 网络文件系统
- tcp-ip ICMP: Internet Control Message Protocol
- TCP,IP详解,卷一:协议学习笔记之第六章 ICMP: Internet控制报文协议
- TCP/IP-13-IGMP
- Transmission Control Protocol/Internet Protocol(TCP/IP)
- 《TCP/IP 详解 卷1:协议》第 2 章:Internet 地址结构
- TCP-IP详解卷1-28:SMTP(Simple Mail Transfer Protocol): 简单邮件传送协议
- TCP/IP 详解 卷1 ch21 TCP的超时与重传
- TCP-IP详解卷1-27:FTP:文件传送协议(File Transfer Protocol)
- TCP-IP详解卷1-11:UDP(User Datagram Protocol):用户数据报协议