6. Sending Multicast IP Datagrams
6.1. Extensions to the IP Service Interface
No change to the IP service interface is required to support the sending of multicast IP datagrams. An upper-layer protocol module merely specifies an IP host group destination, rather than an individual IP destination, when it invokes the existing "Send IP" operation.
6.2. Extensions to the IP Module
To support the sending of multicast IP datagrams, the IP module must be extended to recognize IP host group addresses when routing outgoing datagrams. Most IP implementations include the following logic:
if IP-destination is on the same local network,
send datagram locally to IP-destination
else
send datagram locally to GatewayTo(IP-destination)
To allow multicast transmissions, the routing logic must be changed to:
if IP-destination is on the same local network
or IP-destination is a host group,
send datagram locally to IP-destination
else
send datagram locally to GatewayTo(IP-destination)
If the sending host is itself a member of the destination group, a copy of the outgoing datagram must be looped-back for local delivery if and only if loopback was requested when the host joined the group (see section 8.1). (This issue does not arise in level 1 implementations.)
On hosts attached to more than one network, each multicast IP datagram must be transmitted via one network interface only, leaving it to the multicast agents to effect delivery to any other required networks.
A host group address should not be placed in the source address field of an outgoing IP datagram. A host group address may be used in a source routing option as the last element only.
It should be noted that a small IP time-to-live (TTL) value can prevent delivery to some members of a destination group. Thus, a large TTL value should be used to reach all members. Conversely, a small TTL value can be used to advantage to reach only "nearby" members of a widely-dispersed group. In clusters of low-delay local area networks, the TTL field acts as a hop limit; thus, one can perform expanding-ring searches by starting with a TTL of 1 and incrementing on each retransmission, up to some limit defined by the diameter of the cluster.
6.3. Extensions to the Local Network Service Interface
No change to the local network service interface is required to support the sending of multicast IP datagrams. The IP module merely specifies an IP host group destination, rather than an individual IP destination, when it invokes the existing "Send Local" operation.
6.4. Extensions to an Ethernet Local Network Module
The Ethernet directly supports the sending of local multicast packets by allowing multicast addresses in the destination field of Ethernet packets. All that is needed to support the sending of multicast IP datagrams is a procedure for mapping IP host group addresses to Ethernet multicast addresses.
An IP host group address is mapped to an Ethernet multicast address by placing the low-order 28-bits of the IP address into the low-order 28 bits of an Ethernet address. The high-order 20 bits of the Ethernet address are set to a well-known value, to be published in "Assigned Numbers".
[At time of publication of this memo, a block of Ethernet multicast addresses with 28 unspecified bits had not yet been obtained from the allocating authority. If such a block of addresses cannot be obtained, an alternative mapping scheme will be specified.]
6.5. Extensions to Local Network Modules other than Ethernet
Other networks that directly support multicasting, such as rings or buses conforming to the IEEE 802.2 standard, can be handled the same way as Ethernet for the purpose of sending multicast IP datagrams. For a network that supports broadcast but not multicast, such as the Experimental Ethernet, all IP host group addresses can be mapped to a single local broadcast address (at the cost of increased overhead on all local hosts). For a point-to-point networks like the ARPANET or a public data network (X.25), all IP host group addresses might be mapped to the well-known local address of an IP multicast agent; an agent on such a network would take responsibility for completing multicast delivery within the network as well as among networks.