A /20 network has 12 host bits, 4,096 addresses and 4,094 usable hosts. It is 16 /24 networks.
A /20 (4,096 addresses) is what AWS uses for each subnet in the default VPC (172.31.0.0/16 split into /20s per Availability Zone). Docker also hands out /20 networks from 192.168.0.0/16 once its /16 pools run out.
172.31.0.0/20: First subnet of the AWS default VPC (172.31.0.0/16 is split into one /20 per Availability Zone)| Network | Network address | First usable | Last usable | Broadcast | Next /20 | |
|---|---|---|---|---|---|---|
| 10.0.0.0/20 | 10.0.0.0 | 10.0.0.1 | 10.0.15.254 | 10.0.15.255 | 10.0.16.0/20 | calculate |
| 172.16.0.0/20 | 172.16.0.0 | 172.16.0.1 | 172.16.15.254 | 172.16.15.255 | 172.16.16.0/20 | calculate |
| 192.168.0.0/20 | 192.168.0.0 | 192.168.0.1 | 192.168.15.254 | 192.168.15.255 | 192.168.16.0/20 | calculate |
The /20 boundary falls in the third octet, so /20 networks start every 16 in that octet
(16 per /16):
0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240.
| Platform | Allowed subnet sizes | /20 allowed? | Usable after reservation |
|---|---|---|---|
| AWS VPC | /16 to /28 | Yes | 4,091 (5 reserved) |
| Azure VNet | /2 to /29 | Yes | 4,091 (5 reserved) |
| Google Cloud VPC | /4 to /29 | Yes | 4,092 (4 reserved) |
Cloud providers reserve addresses in every subnet (first four and the last address (network, VPC router, DNS, future use, broadcast) on AWS), so the usable count there differs from the classic 2^n - 2.