Re: Unusual use of IP Broadcast Address

Steve Deering <deering@parc.xerox.com> Thu, 13 January 1994 18:54 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa09185; 13 Jan 94 13:54 EST
Received: from CNRI.RESTON.VA.US by IETF.CNRI.Reston.VA.US id aa09177; 13 Jan 94 13:54 EST
Received: from venera.isi.edu by CNRI.Reston.VA.US id aa14302; 13 Jan 94 13:54 EST
Received: from alpha.Xerox.COM by venera.isi.edu (5.65c/5.61+local-14) id <AA17058>; Thu, 13 Jan 1994 10:44:17 -0800
Received: from skylark.parc.xerox.com ([13.2.116.7]) by alpha.xerox.com with SMTP id <14512(4)>; Thu, 13 Jan 1994 10:43:58 PST
Received: from localhost by skylark.parc.xerox.com with SMTP id <12171>; Thu, 13 Jan 1994 10:43:51 -0800
To: etkind@stowe.mitre.org
Cc: ietf-hosts@isi.edu
Subject: Re: Unusual use of IP Broadcast Address
In-Reply-To: postel's message of Wed, 12 Jan 94 17:21:02 -0800. <199401130121.AA20804@zen.isi.edu>
Date: Thu, 13 Jan 1994 10:43:46 -0800
X-Orig-Sender: Steve Deering <deering@parc.xerox.com>
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Steve Deering <deering@parc.xerox.com>
Message-Id: <94Jan13.104351pst.12171@skylark.parc.xerox.com>

Wendy,

It is legal for a host or router to send packets addressed to the Limited
Broadcast Address (255.255.255.255) on any of its attached subnets; in fact,
that is the preferred address to use for IP broadcasting on any subnet
(see Host Requirements RFC 1122, section 3.3.6).  Your two serial lines
are simply two additional subnets attached to your Sun.

One issue that arises is the following: if an application on a multihomed
host or a router originates a packet destined to 255.255.255.255, which
interface should it be sent over?  In my opinion, the service interface to
the IP module should provide a means for the application to specify the
outgoing interface (it might be implicit in the application's choice of IP
source address or explicit as, say, a separate parameter to the Send()
operation or a control operation performed before the Send() operation).
Unfortunately, BSD-derived Unixes do not provide any such means, but
rather limit the use of 255.255.255.255 to one interface only
(configurable through the ifconfig command).  If you are stuck with
such an implementation, the best you can do is configure one of the
serial lines to use the 255.255.25.255 broadcast address, and configure
the Ethernet and the other serial line to use Directed Broadcast addresses,
i.e., addresses of the form <net><subnet><-1>.

Steve Deering

P.S.  I suggest that you consider using IP multicast rather than IP broadcast;
      the service interface to IP multicast does include the ability to
      choose the outgoing interface.