Skip to main content

Appendix I (continued). Join Group and Leave Group Messages

Join Group Request or Join Group Reply Message​

    0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identifier | Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Group Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ Access Key +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

IP Fields​

Addresses​

A Join Group Request message is sent with an individual IP address of the sending host as its source, and the well-known group address of the multicast agents as its destination.

The corresponding Join Group Reply is sent with those two addresses reversed.

IGMP Fields​

Type​

103 for Join Group Request
104 for Join Group Reply

Code​

For a Join Group Request message, the Code field contains 0.

For a Join Group Reply message, the Code field specifies the outcome of the request:

0 = request approved
1 = request denied, no resources
2 = request denied, invalid group address
3 = request denied, invalid access key

Checksum​

The checksum is the 16-bit one's complement of the one's complement sum of the IGMP message starting with the IGMP Type. For computing the checksum, the checksum field should be zero. This checksum may be replaced in the future.

Identifier​

An identifier to aid in matching Request and Reply messages.

Sequence Number​

A sequence number to aid in matching Request and Reply messages.

Group Address​

For a Join Group Request message, a host group address.

For a Join Group Reply message, the same group address as in the corresponding request.

Access Key​

For a Join Group Request message, the access key allocated when the group was created (0 for unrestricted groups).

For a Join Group Reply message, the same access key as in the corresponding request.

Description​

A Join Group Request message is sent to the the group of local multicast agents by a host wishing to join a specified, existing group. If no Reply message is received within t seconds, the Request is retransmitted. If no reply is received after n transmissions, the request is deemed to have failed.

The first Reply message to arrive, if any, specifies the outcome of the request. The request may be denied because of an invalid access key, an invalid specified group address (e.g. non-existent group) or lack of resources (e.g. no table space in gateways).

The Identifier and Sequence Number fields are used to match the Reply to the corresponding Request. If a multicast agent receives a request from a host to join a group to which it already belongs, the agent approves the request, under the assumption that the request was a retransmission for a lost Reply.

Leave Group Request or Leave Group Reply Message​

    0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identifier | Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Group Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

IP Fields​

Addresses​

A Leave Group Request message is sent with an individual IP address of the sending host as its source, and the well-known group address of the multicast agents as its destination.

The corresponding Leave Group Reply is sent with those two addresses reversed.

IGMP Fields​

Type​

105 for Leave Group Request
106 for Leave Group Reply

Code​

For a Leave Group Request message, the Code field contains 0.

For Leave Group Reply message, the Code field specifies the outcome of the request:

0 = request approved
2 = request denied, invalid group address

Checksum​

The checksum is the 16-bit one's complement of the one's complement sum of the IGMP message starting with the IGMP Type. For computing the checksum, the checksum field should be zero. This checksum may be replaced in the future.

Identifier​

An identifier to aid in matching Request and Reply messages.

Sequence Number​

A sequence number to aid in matching Request and Reply messages.

Group Address​

For a Leave Group Request message, a host group address.

For a Leave Group Reply message, the same group address as in the corresponding request.

Description​

A Leave Group Request message is sent to the the group of local multicast agents by a host wishing to leave a specified, existing group. If no Reply message is received within t seconds, the Request is retransmitted. If no reply is received after n transmissions, the request is deemed to have succeeded.

The first Reply message to arrive, if any, specifies the outcome of the request. The request may be denied only if the specified group address is invalid (e.g. an individual rather than a group address.)

The Identifier and Sequence Number fields are used to match the Reply to the corresponding Request, as with other ICMP transactions. If a multicast agent receives a request from a host to leave a group to which it does not belong, the agent approves the request, under the assumption that the request was a retransmission for a lost Reply.