The sender determines whether the destination is on the same network segment by
applying its subnet mask to both its own address and the destination address. If the
resulting IP addresses match, the destination is on the same network segment.
Otherwise, the source must forward the datagram to a router. Thus, a computer that
uses TCP/IP must be configured with the address of at least one router in order to
deliver datagrams to destinations on different network segments.
A computer uses a routing table that contains the addresses of routers to be used for
specific destinations. Often, a computer has one or more entries in its routing table
and uses these entries if no specific router for a destination exists. These entries,
called default routes, identify default routers and must be inserted into the routing
table manually or automatically through DHCP or by another mechanism such as
router discovery (RFC 1256).
Multiple IP Networks on a Network Segment
Although the discussion of IP addressing and datagram delivery in the previous
sections describes a network segment as having a single IP network number, it is
possible to assign multiple IP networks to a single physical network segment. These
IP networks, sometimes referred to as shared or overlay segments, function as though
they are assigned to independent network segments. Datagrams that are sent from a
computer on one IP network to a computer on the other network on the same
segment must be forwarded through a router, even though both computers are on
the same physical network. Routers attached to the network segment have separate
routing table entries for each IP network, each of which points to the same network
interface.
Assigning multiple IP networks to a single network segment complicates the manage-
ment of DHCP servers because the server must know which IP networks are associ-
ated with a common network segment. In addition, the network architect may have
rules about which IP network on a network segment a computer should use, and the
server must follow those rules.
Multicast
IP includes a form of datagram delivery called multicast, in which a datagram is
delivered to more than one destination. Multicast differs from broadcast in that a
multicast datagram may be delivered to a subset of the computers on an internet,
rather than to all the computers on a single IP network.
Multicast is used in applications in which many hosts want to receive copies of data-
grams sent by a source without the overhead of sending a separate copy of the data
to each destination. Examples of applications that use multicast include digitized
audio/video conferencing, other collaborative applications, and routing protocols.
CHAPTER 4 Configuring TCP/IP Stacks50
006 3273 CH04 10/3/02 5:01 PM Page 50