Broadcast address

On this page 7

A broadcast address is a reserved destination address that delivers a single packet to every host on a network segment rather than to one recipient. In Internet addressing, the term usually refers to the IPv4 address whose host bits are all set to one, such as 192.168.1.255 in the subnet 192.168.1.0/24, together with the limited broadcast address 255.255.255.255 and the link-layer broadcast MAC address FF:FF:FF:FF:FF:FF.

Broadcasting is the oldest one-to-all delivery model on the Internet and remains essential for local discovery protocols such as ARP and DHCP. Its reach is deliberately confined: routers do not forward broadcasts by default, so a broadcast stays inside its broadcast domain, and IPv6 removed the concept entirely in favor of multicast.

How a broadcast address is derived

The broadcast address of an IPv4 subnet is obtained by keeping the network prefix unchanged and setting every host bit to 1. Mathematically, it is the bitwise OR of the network address with the inverted subnet mask, which is why it is always the highest address in the block. The lowest address, with all host bits set to 0, is the network address, and the two together explain why a subnet of n host bits offers 2^n minus 2 usable host addresses.

The following table shows how the prefix length determines the broadcast address for blocks inside the private range 10.20.0.0.

SubnetSubnet maskBroadcast addressUsable hosts
10.20.0.0/24255.255.255.010.20.0.255254
10.20.0.0/26255.255.255.19210.20.0.6362
10.20.0.64/27255.255.255.22410.20.0.9530
10.20.0.0/22255.255.252.010.20.3.2551,022
10.20.0.0/30255.255.255.25210.20.0.32
Broadcast addresses for common prefix lengths

A frequent error is assuming that a broadcast address must end in .255. That holds only for /24 and shorter prefixes aligned on octet boundaries; in a /22 network, an address such as 10.20.1.255 is an ordinary host address, while in a /26 the broadcast ends in .63, .127, .191 or .255 depending on the block.

Types of broadcast in IPv4 networks

IPv4 distinguishes limited broadcast from directed broadcast, and the two differ mainly in how far a packet may travel. Both are mapped to the Ethernet broadcast frame on the local link, but only directed broadcast names a specific remote subnet.

TypeAddress formScopeTypical use
Limited broadcast255.255.255.255Local segment onlyDHCP discovery before a host has an address
Directed broadcastSubnet with host bits all 1A named subnet, possibly remoteWake-on-LAN, legacy management tools
Link-layer broadcastFF:FF:FF:FF:FF:FFOne Layer 2 domainCarrying ARP requests and IP broadcasts
All-zeros source0.0.0.0 as senderLocal segment onlyHost without an address sending DHCP requests
Broadcast types and their scope

The limited broadcast is never routed under any circumstances. A directed broadcast can in principle cross routers until it reaches the target subnet, where the last router converts it into a link-layer broadcast; RFC 2644 changed the default so that routers drop directed broadcasts unless an administrator explicitly enables forwarding.

Protocols that depend on broadcasting

Broadcasting exists because some tasks must happen before a host knows whom to contact. Address Resolution Protocol (ARP) broadcasts the question of which device owns a given IPv4 address, and DHCP clients broadcast a DHCPDISCOVER message because they have neither an address nor knowledge of the server. Other users include NetBIOS name resolution, some routing protocols such as RIP version 1, and Wake-on-LAN magic packets.

Because DHCP servers usually sit in a central data center, routers use a DHCP relay agent, often configured as an IP helper address, to convert local broadcasts into unicast packets sent to the server. This design keeps broadcasts local while still allowing centralized address management across dozens of subnets.

Broadcast compared with unicast, multicast and anycast

Broadcast is one of four delivery models in Internet addressing, and it is the least selective of them. The comparison below clarifies why modern designs reserve broadcasting for bootstrapping and use other models for everything else.

ModelRecipientsReceiver choiceIPv6 support
UnicastExactly one hostNot applicableYes
BroadcastAll hosts in the domainNone, every host must process itNo
MulticastHosts that joined a groupHosts opt inYes, replaces broadcast
AnycastNearest of several hostsRouting decidesYes
Delivery models compared

IPv6 has no broadcast address. Functions that relied on broadcasting were moved to multicast: Neighbor Discovery replaces ARP with solicited-node multicast addresses, and the all-nodes group ff02::1 offers a link-wide reach when it is truly needed. Because only interested interfaces accept those frames, IPv6 avoids interrupting every host’s CPU for traffic it will discard.

Risks, limitations and design practice

Every broadcast frame must be received and inspected by every device in the broadcast domain, so excessive broadcast traffic consumes bandwidth and processing time across the whole segment. Large flat networks therefore suffer from broadcast storms, especially when a Layer 2 loop causes switches to forward the same frame endlessly.

Directed broadcasts also enabled the Smurf amplification attack, in which an attacker sent ICMP echo requests with a spoofed source to a remote broadcast address so that every host replied to the victim. This history is the main reason directed broadcast forwarding is disabled by default on modern routers.

SymptomLikely causeRemedy
Network saturation, high switch CPULayer 2 loop creating a broadcast stormEnable Spanning Tree and storm control
Slow hosts in a large VLANToo many devices in one broadcast domainSplit the VLAN into smaller subnets
Clients on remote subnets get no addressDHCP broadcasts not relayedConfigure a DHCP relay agent
Amplified ICMP floodsDirected broadcast forwarding enabledDisable it on all router interfaces
Common broadcast problems and remedies
  • Keep broadcast domains moderate in size; a few hundred hosts per VLAN is a common practical ceiling.
  • Never assign the broadcast address to an interface, since hosts will reject or misroute such traffic.
  • On /31 point-to-point links defined in RFC 3021, there is no broadcast address and both addresses are usable.

Explained without jargon

A broadcast address works like the public address system in a building. Instead of calling one office, a message goes to every room on the floor at once. Computers use this when they need help but do not yet know whom to ask, for example when a new laptop joins a network and calls out for someone to give it an address.

The announcement stays on its own floor, because routers act like closed doors between floors. That limit is useful: if every announcement reached the whole building, nobody could work. The key idea is simple: a broadcast is a shout to everyone nearby, used sparingly and only when a direct call is impossible.

A typical use case

A school network administrator manages a classroom subnet of 10.40.8.0/25, which gives a broadcast address of 10.40.8.127 and 126 usable host addresses. The DHCP server sits in the central server room on another subnet. When a student opens a laptop, it sends a DHCPDISCOVER to 255.255.255.255, which the classroom router receives and, through its configured relay agent, forwards as unicast to the server.

After the school grew to 600 devices in one large VLAN, teachers reported sluggish laptops during lessons. The administrator split the network into five smaller subnets of /25 and enabled storm control on the access switches. Broadcast traffic per segment fell sharply, address assignment remained automatic, and the complaints about slow devices stopped within the first week.