What is a broadcast address?
A broadcast address is a special IP address used to send a packet to all devices within a single network (subnet).
Short and clear: a broadcast address means "send to all hosts on this network".
What a broadcast address means technically
In IPv4, every IP address is divided into:
- a network part
- a host part
A broadcast address is an address in which:
- the entire host part consists of ones (1)
It denotes all devices of the given network at once.
Example (IPv4)
Network:
192.168.1.0/24
- network part:
192.168.1 - host part: the last octet
Then:
- the broadcast address:
192.168.1.255
The address 192.168.1.255:
- cannot be assigned to a device
- is used only for broadcast delivery
How broadcast works
When a packet is sent to a broadcast address:
- The packet enters the local network
- It is delivered to all devices on that subnet
- Each device:
- receives the packet
- decides whether it needs it
Important:
- broadcast does not go beyond the subnet
- routers do not forward broadcast packets
Where broadcast is used
Broadcast is applied when:
- the sender does not know the recipient's address
- all devices on the network need to be notified
Typical examples:
- ARP requests
- some service network protocols
- initial device discovery
IPv4 vs IPv6
Important for an interview
- IPv4:
- broadcast exists
- IPv6:
- broadcast is absent
- multicast is used instead
What is important to remember
- a broadcast address:
- belongs to the network layer
- is used only within a single subnet
- is not assigned to hosts
- every subnet has its own broadcast address
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.