Why a /31 Subnet Is Not a Mistake

Router A 10.0.0.0 /31 Point-to-Point Router B 10.0.0.1 Two addresses, both usable No network, no broadcast

At first glance, a /31 IPv4 subnet looks wrong. Two addresses, no broadcast, no “usable host range” — everything that traditional subnetting rules tell you should not exist.

And yet, /31 is not a hack, not a workaround, and not a violation of the IPv4 model. It is a fully standardized and widely used solution for a very specific type of network link.

Where the Confusion Comes From

The classic IPv4 subnet model assumes that every subnet needs three distinct address roles: a network address, a broadcast address, and one or more host addresses in between.

With a /30 subnet, this model fits perfectly: four addresses, two usable hosts, one network, one broadcast. This pattern became so ingrained that it was often treated as a law of nature rather than a design choice.

A /31 subnet breaks that mental model. With only two addresses available, there is no room for a dedicated network or broadcast address. Both addresses must be usable — or the subnet would be pointless.

Point-to-Point Links Change the Rules

On a point-to-point link, there are exactly two devices. No third host will ever appear. No broadcast discovery is required. No ambiguity exists about where a packet should go.

In this context, the concept of a broadcast address becomes redundant. Any packet sent to “the other side” has only one possible destination.

Once you accept that broadcast is unnecessary for point-to-point links, the need for a larger subnet disappears as well.

The Standardization of /31

This idea was formalized in RFC 3021. The RFC explicitly allows both addresses in a /31 subnet to be treated as host addresses, provided the subnet is used exclusively for point-to-point links.

There is no special signaling, no protocol extensions, and no magic behavior. The only requirement is that both endpoints agree that the link is point-to-point.

Why This Matters in Practice

Using /31 subnets cuts IPv4 address consumption in half compared to /30 for point-to-point links. For large networks with thousands of inter-router links, this is not an optimization — it is a necessity.

This is why /31 is common in ISP backbones, BGP peering links, and internal routing infrastructure.

Why Some Equipment Still Fails

Older network stacks and poorly written firmware sometimes assume that the first address in a subnet is always “the network” and the last is always “broadcast”.

When such assumptions are hardcoded, /31 subnets appear broken — not because they violate the protocol, but because the implementation violates the specification.

The Real Lesson

A /31 subnet is a reminder that IP addressing rules are not mathematical truths. They are engineering decisions, shaped by assumptions about how a network is used.

When those assumptions change, the rules can — and sometimes must — change with them.

Scan to share this page
Copyright © 2020-2026 U00 Open Source Software. All rights reserved.