IPv4 Usable Hosts per CIDR Prefix
N_{\text{hosts}} = 2^{32 - p} - 2 \quad (p \le 30)
Subtracts the all-zeros network ID and all-ones broadcast address.
IPv4 CIDR subnet sizing, usable host counts, serialization delay, protocol overhead efficiency, and TCP Bandwidth-Delay Product (BDP).
N_{\text{hosts}} = 2^{32 - p} - 2 \quad (p \le 30)
Subtracts the all-zeros network ID and all-ones broadcast address.
\mathrm{BDP} = \text{Bandwidth} \times \mathrm{RTT}
Minimum TCP receive window needed to keep a high-latency link fully saturated.
T_{\text{total}} = \frac{\text{Data Size}}{\text{Effective Throughput}} + \text{Propagation Delay}
Account for bits vs bytes (1 Byte = 8 bits) and header framing overhead.
\text{Increment} = 256 - \text{Mask Octet}
Gives the step between consecutive subnet network addresses in the interesting octet.
A /24 has 2^8 - 2 = 254 usable host addresses, and a /26 has 2^6 - 2 = 62 usable host addresses.
Small TCP window sizes relative to Bandwidth-Delay Product, packet loss, and Ethernet/IP/TCP header overhead reduce effective application goodput below raw line rate.
Mbps measures megabits per second (10^6 bits/s), while MB/s measures megabytes per second (8 times larger). Divide Mbps by 8 to estimate theoretical MB/s.