Definition
An IPv4 address identifies a network interface. The prefix identifies its network; the remaining bits identify an address within that network.
Intuition
A router can connect several networks using a different interface address on each. The network address names the subnet; a host address identifies an interface inside it; broadcast addresses the subnet’s hosts collectively.
Example
For 223.1.1.0/24 under traditional subnet rules:
| Address | Role |
|---|---|
223.1.1.0 | Network ID: host bits all zero |
223.1.1.1 through 223.1.1.254 | Usable interface addresses |
223.1.1.255 | Directed broadcast: host bits all one |
255.255.255.255 | Limited broadcast on the local network |
127.0.0.1 | Common loopback address, within 127.0.0.0/8 |
Important rules
- The prefix length is necessary to determine network and broadcast addresses.
- An address ending in
.0or.255is not automatically reserved; examine the host bits. - Routers do not forward limited broadcasts.
- A /31 point-to-point link has an exception to the ordinary network/broadcast reservations.
Common mistakes
Broadcast is not an alternative individual address for a device. In a traditional /31, both available addresses have reserved roles, leaving no usable individual host address.
Related concepts
Source
Lecture 01 - IPv4 Addressing and Routing, PDF pages 5-6 and 12. Table and misconception explanation are added study material.