blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search: Local/Remote Decision Connected: An Internet Encyclopedia Local/Remote Decision

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1122
Up: 3.3.1 Routing Outbound Datagrams
Prev: 3.3.1 Routing Outbound Datagrams
Next: Gateway Selection Local/Remote Decision Local/Remote Decision

To decide if the destination is on a connected network, the following algorithm MUST be used [see IP:3]:

  1. The address mask (particular to a local IP address for a multihomed host) is a 32-bit mask that selects the network number and subnet number fields of the corresponding IP address.

  2. If the IP destination address bits extracted by the address mask match the IP source address bits extracted by the same mask, then the destination is on the corresponding connected network, and the datagram is to be transmitted directly to the destination host.

  3. If not, then the destination is accessible only through a gateway. Selection of a gateway is described below (

A special-case destination address is handled as follows:

  • For a limited broadcast or a multicast address, simply pass the datagram to the link layer for the appropriate interface.

  • For a (network or subnet) directed broadcast, the datagram can use the standard routing algorithms.

The host IP layer MUST operate correctly in a minimal network environment, and in particular, when there are no gateways. For example, if the IP layer of a host insists on finding at least one gateway to initialize, the host will be unable to operate on a single isolated broadcast net.

Next: Gateway Selection

Connected: An Internet Encyclopedia Local/Remote Decision


Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609